[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Lib/tkinter/tix.py:1920
 Val may be: auto -- the width of the column is set the
 the widest cell in the column; a valid Tk screen distance

I believe 'the the' should be 'to the width of the'

Lib/tkinter/tix.py:1944
 Val may be: auto -- the height of the row  is  set  the
 the highest cell in the row; a valid Tk screen distance

Ditto for heigth instead of width.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12768] docstrings for the threading module

2013-02-07 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4331] Can't use _functools.partial() created function as method

2013-02-07 Thread Ulrich Eckhardt

Ulrich Eckhardt added the comment:

Just for the record, the behaviour is documented, unfortunately in the very 
last line of the functools documentation: Also, partial objects defined in 
classes behave like static methods and do not transform into bound methods 
during instance attribute look-up.

Concerning how exactly they should behave during that lookup, I'd use the least 
surprising variant, namely that they are not treated differently from other 
functions: The first parameter is implicitly self.

--
nosy: +eckhardt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I shall go ahead with this change. And when the URLopener and FancyURLopener 
removed, all their references in the docs (including this change) will be 
removed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fae8e212e870 by Senthil Kumaran in branch '3.2':
Fix Issue17069: Document getcode method in urllib.request.rst
http://hg.python.org/cpython/rev/fae8e212e870

New changeset e15d2ad42d93 by Senthil Kumaran in branch '3.3':
Fix Issue17069: Document getcode method in urllib.request.rst
http://hg.python.org/cpython/rev/e15d2ad42d93

New changeset b79df3e8a9a0 by Senthil Kumaran in branch 'default':
Fix Issue17069: Document getcode method in urllib.request.rst
http://hg.python.org/cpython/rev/b79df3e8a9a0

New changeset 5630f0aff6ac by Senthil Kumaran in branch '2.7':
Fix Issue17069: Document getcode method in urllib.request.rst
http://hg.python.org/cpython/rev/5630f0aff6ac

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Ezio Melotti

Ezio Melotti added the comment:

 Are these the addinfourl getters that Ezio wants to deprecate?

Yes, see #12707

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17069
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

As soon as hash randomization is turned on (and it's the default starting with 
Python 3.3), the pickled representation of dicts will also vary from run to run:

$ python -R -c import pickle; print pickle.dumps({'a':1, 'b':2}) |md5sum
c0ae6b7f62b9c0839be883dd1efee84e  -
$ python -R -c import pickle; print pickle.dumps({'a':1, 'b':2}) |md5sum
b03bf608516f3e0244a96d740139b050  -

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16800] tempfile._get_default_tempdir() leaves files behind when HD is full

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

There are reasons to use buffered I/O rather than os.write: os.write can fail 
with EINTR, for example.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16800
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17149] random.vonmisesvariate() returns a value only on the half-circle

2013-02-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17149
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17149] random.vonmisesvariate() returns a value only on the half-circle

2013-02-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

random.vonmisesvariate(mu, kappa) returns a value in the range (mu%2pi)-pi/2 to 
(mu%2pi)+pi/2 for kappa  1e-6. For kappa = 1e-6 it returns an uniform random 
value over the range 0 to 2*pi.

--
components: Library (Lib)
messages: 181588
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: random.vonmisesvariate() returns a value only on the half-circle
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17149
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17143] trace.py uses _warn without importing it

2013-02-07 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - patch review
type:  - behavior
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17143
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13655] Python SSL stack doesn't have a default CA Store

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Éric's suggestion is also implemented in python-requests if I remember 
 correctly. It allows for user-specified PEM files and tries to find the 
 operating system bundle. This would be a wonderful inclusion in the
 standard library.

Aren't load_verify_locations() and set_default_verify_paths() sufficient?

http://docs.python.org/dev/library/ssl.html#ssl.SSLContext.load_verify_locations

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13655
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17149] random.vonmisesvariate() returns a value only on the half-circle

2013-02-07 Thread Mark Dickinson

Mark Dickinson added the comment:

I'll take a look at this.

--
assignee:  - mark.dickinson
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17149
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17144] Distutils: sdist register upload ignores -r argument

2013-02-07 Thread Danilo Bargen

Danilo Bargen added the comment:

chris, no, that command registers the package with the local index but tries to 
upload it to pypi.

What works is setup.py sdist register -r wbrp upload -r wbrp but that's kind 
of awful.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17144
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9253] argparse: optional subparsers

2013-02-07 Thread Bohuslav Slavek Kabrda

Changes by Bohuslav Slavek Kabrda bkab...@redhat.com:


--
nosy: +bkabrda

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9253
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-07 Thread Stefan Krah

Stefan Krah added the comment:

The FreeBSD 6.4 bot is failing, too. Note that the other functions
in test_returnfuncptrs.py do this in order to get strchr():

dll = CDLL(_ctypes_test.__file__)
get_strchr = dll.get_strchr
get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
strchr = get_strchr()

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6083
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17141] random.vonmisesvariate() hangs for large kappa

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is an implementation which is more precise for small and large kappa, 
doesn't hang for large kappa, and even a little faster. It is mathematically 
totally equivalent to existing, but use more accurate calculations.

--
keywords: +patch
Added file: http://bugs.python.org/file28985/random_vonmisesvariate.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17141] random.vonmisesvariate() hangs for large kappa

2013-02-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17141
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It is surprising that the pickled representation of 1-element dict varies from 
run to run.

--
components: +Extension Modules -None

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Try `./python -R -c import pickle; print(pickle.dumps({'a':1, 'v':1})) 
|md5sum`. The output will differ on subsequent run, while trying `./python -R 
-c import pickle; print(pickle.dumps({'a':1})) |md5sum`, the output is always 
the same. I suspect because the order of dicts are different on every run (try 
repr).

--
nosy: +ramchandra.apte
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt

Jan Lachnitt added the comment:

Knowing that the problem is related to the internal representation of the 
strings, I have written a short script which reproduces the problem. It is this 
simple:

import os
name = 'sub-fcc'
wrkdir = 'D:\\Bug reports\\Python\\test'
dirname = wrkdir+os.sep+name
print(dirname)
print(ascii(dirname.encode(unicode_internal)))
dirname += os.sep+'bulk'
print(dirname)
print(ascii(dirname.encode(unicode_internal)))

Output:

D:\Bug reports\Python\test\sub-fcc
b'D\x00:\x00\\\x00B\x00u\x00g\x00 
\x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00t\x00e\x00s\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00'
D:\Bug reports\Python\test\sub-fcc\bulk
b'D\x00:\x00\\\x00B\x00u\x00g\x00 
\x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00t\x00e\x00s\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00\x00\x00\x00\x00\xd8\xa3\x90\x02\x00\x00'

The end of the output varies from run to run.

It works correctly in Python 3.2.3 64-bit on Windows 8.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Darn, last sentence has some mistakes.
I suspect this issue is happening because the order of a dictionary is 
different on every run (try repr).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Further proof:
here are the results of two invocations of `./python -R -c import pickle; 
print(pickle.dumps({'a':1, 'v':1}))`

b'\x80\x03}q\x00(X\x01\x00\x00\x00vq\x01K\x01X\x01\x00\x00\x00aq\x02K\x01u.'
b'\x80\x03}q\x00(X\x01\x00\x00\x00aq\x01K\x01X\x01\x00\x00\x00vq\x02K\x01u.'
Notice that in the second pickled data, the pickled data for 'v' has exchanged 
places with the one for 'a'! ('v' has become 'a' and at the second-last 
character 'a' has become 'v')

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-07 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16389
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Currently:

 pprint.pprint({a: xxx  * 50})
{'a': 'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx 
xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx 
xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '}

It would be nicer if it produced something like:

 pprint.pprint({a: xxx  * 50})
{'a': 'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '
  'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '
  'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '
  'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '
  'xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx '}

(for the record, the real-world use case I encountered was when printing some 
pyudev data)

--
components: Library (Lib)
messages: 181599
nosy: fdrake, pitrou
priority: normal
severity: normal
status: open
title: pprint could use line continuation for long string literals
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

There are 6 different ways to get a function (see comment around 
PyCFuncPtr_new() in Modules/_ctypes/_ctypes.c). The other tests just use other 
ways.

I'm more carefully read ctype code and found my mistake. Need to import 
my_strchr, and not strchr.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6083
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Maybe lru_cache() should have a key argument so you can specify a specialized 
 key function.

It would be interesting to look at the microbenchmarking results.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16389
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread STINNER Victor

STINNER Victor added the comment:

 It works correctly in Python 3.2.3 64-bit on Windows 8.

Can you reproduce the issue on other Windows versions?

2013/2/7 Jan Lachnitt rep...@bugs.python.org:

 Jan Lachnitt added the comment:

 Knowing that the problem is related to the internal representation of the 
 strings, I have written a short script which reproduces the problem. It is 
 this simple:

 import os
 name = 'sub-fcc'
 wrkdir = 'D:\\Bug reports\\Python\\test'
 dirname = wrkdir+os.sep+name
 print(dirname)
 print(ascii(dirname.encode(unicode_internal)))
 dirname += os.sep+'bulk'
 print(dirname)
 print(ascii(dirname.encode(unicode_internal)))

 Output:

 D:\Bug reports\Python\test\sub-fcc
 b'D\x00:\x00\\\x00B\x00u\x00g\x00 
 \x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00t\x00e\x00s\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00'
 D:\Bug reports\Python\test\sub-fcc\bulk
 b'D\x00:\x00\\\x00B\x00u\x00g\x00 
 \x00r\x00e\x00p\x00o\x00r\x00t\x00s\x00\\\x00P\x00y\x00t\x00h\x00o\x00n\x00\\\x00t\x00e\x00s\x00t\x00\\\x00s\x00u\x00b\x00-\x00f\x00c\x00c\x00\x00\x00\x00\x00\xd8\xa3\x90\x02\x00\x00'

 The end of the output varies from run to run.

 It works correctly in Python 3.2.3 64-bit on Windows 8.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue17137
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12596] cPickle - stored data differ for same dictionary

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It is most probable that the difference is caused by the string interning.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Terry, do you want to provide a patch?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. added the comment:

I like this.

It would be especially nice if it were smart enough to split the segments after 
sequences of line-ends (r'(\r?\n)+').

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf98766f464e by Serhiy Storchaka in branch '3.2':
Issue #17114: IDLE now uses non-strict config parser.
http://hg.python.org/cpython/rev/cf98766f464e

New changeset c2ed79fbb9c6 by Serhiy Storchaka in branch '3.3':
Issue #17114: IDLE now uses non-strict config parser.
http://hg.python.org/cpython/rev/c2ed79fbb9c6

New changeset 877fae8d6f5b by Serhiy Storchaka in branch 'default':
Issue #17114: IDLE now uses non-strict config parser.
http://hg.python.org/cpython/rev/877fae8d6f5b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17114
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Just wait a few weeks to release of 3.2.4 and it's appearance in your 
distribution.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17114
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17114] Python IDLE GUI does not open in Ubuntu 12.04

2013-02-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17114
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17118] Add tests for testing Python-Tcl interaction

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f7cc6fbd7ae1 by Serhiy Storchaka in branch '2.7':
Issue #17118: Add new tests for testing Python-Tcl interaction.
http://hg.python.org/cpython/rev/f7cc6fbd7ae1

New changeset 148e6ebfe854 by Serhiy Storchaka in branch '3.2':
Issue #17118: Add new tests for testing Python-Tcl interaction.
http://hg.python.org/cpython/rev/148e6ebfe854

New changeset 452344620c97 by Serhiy Storchaka in branch '3.3':
Issue #17118: Add new tests for testing Python-Tcl interaction.
http://hg.python.org/cpython/rev/452344620c97

New changeset f0d603948cff by Serhiy Storchaka in branch 'default':
Issue #17118: Add new tests for testing Python-Tcl interaction.
http://hg.python.org/cpython/rev/f0d603948cff

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17118
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17118] Add tests for testing Python-Tcl interaction

2013-02-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17118
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Sven Brauch

Sven Brauch added the comment:

Any news on this yet? ;)

Unfortunately, I'm still having no luck in adding the patch to the review tool 
(same error message).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17043] Invalid read in test_codecs

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 498b54e0e856 by Serhiy Storchaka in branch '2.7':
Issue #17043: The unicode-internal decoder no longer read past the end of
http://hg.python.org/cpython/rev/498b54e0e856

New changeset 0f1c2e2b6bc2 by Serhiy Storchaka in branch '3.2':
Issue #17043: The unicode-internal decoder no longer read past the end of
http://hg.python.org/cpython/rev/0f1c2e2b6bc2

New changeset fec2976c8503 by Serhiy Storchaka in branch '3.3':
Issue #17043: The unicode-internal decoder no longer read past the end of
http://hg.python.org/cpython/rev/fec2976c8503

New changeset eb0370d4686c by Serhiy Storchaka in branch 'default':
Issue #17043: The unicode-internal decoder no longer read past the end of
http://hg.python.org/cpython/rev/eb0370d4686c

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17043
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread STINNER Victor

STINNER Victor added the comment:

Can you try to following command to get the size in bytes of the wchar_t type?

 import types
 ctypes.sizeof(ctypes.c_wchar)
4

You can also use _PyObject_Dump() to dump your string:

 import ctypes
 x=abc
 _PyObject_Dump=ctypes.pythonapi._PyObject_Dump
 _PyObject_Dump.argtypes=(ctypes.py_object,)
 _PyObject_Dump(x)
object  : 'abc'
type: str
refcount: 5
address : 0xb70bf980
48

Then you can use _PyObject_Dump() on your string.

You may also try: print(list(dirname)).

It's really strange that something very common like string concatenation 
returns an invalid string.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Are you attaching files directly on Rietveld or on this issue?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Sven Brauch

Sven Brauch added the comment:

Attaching files to this bug report here works fine (see corrected patch above), 
but when I add the file to http://bugs.python.org/review/16795/ under Add 
another patchset, I get the error message I described. I tried with firefox, 
chromium and konqueror.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Yeah, I think that's broken. It's best just to attach them here.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Ezio Melotti

Ezio Melotti added the comment:

It's just not supported -- the Add another patchset link should be removed 
from rietveld.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Sven Brauch

Sven Brauch added the comment:

Oh, alright, that explains things. In this case, the file I attached on Jan 29 
(http://bugs.python.org/file28905/81300-change-var-kwargs-new.diff) should 
contain all the requested changes.

Greetings

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Mark Dickinson

Mark Dickinson added the comment:

I don't think this is just windows;  I see similarly odd results on OS X.  The 
first encode call gives expected results;  the second ends in garbage.


Python 3.4.0a0 (default:eb0370d4686c+, Feb  7 2013, 14:59:41) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type help, copyright, credits or license for more information.
 dir1 = D:\\Bug reports\\Python\\test\\sub-fcc
[66291 refs, 23475 blocks]
 dir1 += \\bulk
[66291 refs, 23474 blocks]
 ascii(dir1.encode('unicode_internal'))
b'D\\x00\\x00\\x00:\\x00\\x00\\x00\\x00\\x00\\x00B\\x00\\x00\\x00u\\x00\\x00\\x00g\\x00\\x00\\x00
 
\\x00\\x00\\x00r\\x00\\x00\\x00e\\x00\\x00\\x00p\\x00\\x00\\x00o\\x00\\x00\\x00r\\x00\\x00\\x00t\\x00\\x00\\x00s\\x00\\x00\\x00\\x00\\x00\\x00P\\x00\\x00\\x00y\\x00\\x00\\x00t\\x00\\x00\\x00h\\x00\\x00\\x00o\\x00\\x00\\x00n\\x00\\x00\\x00\\x00\\x00\\x00t\\x00\\x00\\x00e\\x00\\x00\\x00s\\x00\\x00\\x00t\\x00\\x00\\x00\\x00\\x00\\x00s\\x00\\x00\\x00u\\x00\\x00\\x00b\\x00\\x00\\x00-\\x00\\x00\\x00f\\x00\\x00\\x00c\\x00\\x00\\x00c\\x00\\x00\\x00\\x00\\x00\\x00b\\x00\\x00\\x00u\\x00\\x00\\x00l\\x00\\x00\\x00k\\x00\\x00\\x00'
[69015 refs, 24925 blocks]
 dir1 += \\bulk
[69015 refs, 24925 blocks]
 ascii(dir1.encode('unicode_internal'))
b'D\\x00\\x00\\x00:\\x00\\x00\\x00\\x00\\x00\\x00B\\x00\\x00\\x00u\\x00\\x00\\x00g\\x00\\x00\\x00
 
\\x00\\x00\\x00r\\x00\\x00\\x00e\\x00\\x00\\x00p\\x00\\x00\\x00o\\x00\\x00\\x00r\\x00\\x00\\x00t\\x00\\x00\\x00s\\x00\\x00\\x00\\x00\\x00\\x00P\\x00\\x00\\x00y\\x00\\x00\\x00t\\x00\\x00\\x00h\\x00\\x00\\x00o\\x00\\x00\\x00n\\x00\\x00\\x00\\x00\\x00\\x00t\\x00\\x00\\x00e\\x00\\x00\\x00s\\x00\\x00\\x00t\\x00\\x00\\x00\\x00\\x00\\x00s\\x00\\x00\\x00u\\x00\\x00\\x00b\\x00\\x00\\x00-\\x00\\x00\\x00f\\x00\\x00\\x00c\\x00\\x00\\x00c\\x00\\x00\\x00\\x00\\x00\\x00b\\x00\\x00\\x00u\\x00\\x00\\x00l\\x00\\x00\\x00k\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xfb\\xfb\\xfb\\xfb\\xfb\\xfb\\xfb\\xfb\\x00\\x00\\x00\\x00\\x00\\x015\\x1a'
[69015 refs, 24925 blocks]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17073] Integer overflow in sqlite module

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 649937bb8f1c by Serhiy Storchaka in branch '2.7':
Issue #17073: Fix some integer overflows in sqlite3 module.
http://hg.python.org/cpython/rev/649937bb8f1c

New changeset 55a89352e220 by Serhiy Storchaka in branch '3.2':
Issue #17073: Fix some integer overflows in sqlite3 module.
http://hg.python.org/cpython/rev/55a89352e220

New changeset c5fb8bc56def by Serhiy Storchaka in branch '3.3':
Issue #17073: Fix some integer overflows in sqlite3 module.
http://hg.python.org/cpython/rev/c5fb8bc56def

New changeset b8a6bc70fc08 by Serhiy Storchaka in branch 'default':
Issue #17073: Fix some integer overflows in sqlite3 module.
http://hg.python.org/cpython/rev/b8a6bc70fc08

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17073
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17073] Integer overflow in sqlite module

2013-02-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17073
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt

Jan Lachnitt added the comment:

On Windows XP 32-bit: 3.2.3 works, 3.3.0 fails.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17151] Python 3 changement of behavior with __ne__: documentation not updated

2013-02-07 Thread Franck Michea

New submission from Franck Michea:

Hi. As of python 3, behavior of object.__ne__ changed to call (not 
object.__eq__) if implemented. This changement can be seen in function 
object_richcompare in file Objects/typeobject.c.

Documentation didn't change though, still saying[1] that There are no implied 
relationships among the comparison operators. [...] Accordingly, when defining 
__eq__(), one should also define __ne__().

Maybe a paragraph about this new behavior would be fine? I am not sure if last 
sentence of last paragraph is what it means, but it was already there in python 
2 doc so guess no. I am not sure about how to write it so no patch, sorry.

[1] http://docs.python.org/3.3/reference/datamodel.html#object.__eq__

--
assignee: docs@python
components: Documentation
messages: 181620
nosy: docs@python, kushou
priority: normal
severity: normal
status: open
title: Python 3 changement of behavior with __ne__: documentation not updated
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17151
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Florent Xicluna

Florent Xicluna added the comment:

Confirmed on OSX 64bits with Mark's sample.

$ python3.3
Python 3.3.0 (default, Jan 24 2013, 08:28:09) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
 dir1 = D:\\Bug reports\\Python\\test\\sub-fcc
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 len(s1), s1[499:]
(586, 
00k\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xf0\\xbda\\x00\\x01\\x00\\x00\\x00X\\x1da\\x00\\x01\\x00\\x00\\x00')
 dir1 = D:\\Bug reports\\Python\\test\\sub-fcc
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 len(s1), s1[499:]
(586, 
00k\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x10\\xbca\\x00\\x01\\x00\\x00\\x00X\\x16a\\x00\\x01\\x00\\x00\\x00')
 dir1 = D:\\Bug reports\\Python\\test\\sub-fcc
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 len(s1), s1[499:]
(595, 
00k\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00')
 dir1 = D:\\Bug reports\\Python\\test\\sub-fcc
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 dir1 += \\bulk
 s1 = ascii(dir1.encode('unicode_internal'))
 len(s1), s1[499:]
(586, 
00k\\x00\\x00\\x00\\x00\\x00\\x00\\x00p\\xbba\\x00\\x01\\x00\\x00\\x00\\x88\\x14a\\x00\\x01\\x00\\x00\\x00')
 


Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; 
root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt

Jan Lachnitt added the comment:

...
print(ctypes.sizeof(ctypes.c_wchar))
_PyObject_Dump=ctypes.pythonapi._PyObject_Dump
_PyObject_Dump.argtypes=(ctypes.py_object,)
print(_PyObject_Dump(dirname))
print(list(dirname))

in Python 3.3.0 64-bit on Windows 8 produces:

2
object  : 'D:\\Bug reports\\Python\\test\\sub-fcc\\bulk'
type: str
refcount: 3
address : 028AC298
54
['D', ':', '\\', 'B', 'u', 'g', ' ', 'r', 'e', 'p', 'o', 'r', 't', 's', '\\', 
'P', 'y', 't', 'h', 'o', 'n', '\\', 't', 'e', 's', 't', '\\', 's', 'u', 'b', 
'-', 'f', 'c', 'c', '\\', 'b', 'u', 'l', 'k']

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components:  -Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17152] Array module should support boolean natively

2013-02-07 Thread Jesús Cea Avión

New submission from Jesús Cea Avión:

Array module is used, frequently, as a convenient way of saving a lot of 
memory. I think we should support boolean typeobject natively. Implementation 
should be trivial and efficient, except methods like pop() (a bit convoluted, 
but doable).

Opinions?.

--
keywords: easy
messages: 181623
nosy: jcea
priority: normal
severity: normal
status: open
title: Array module should support boolean natively
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17145] memoryview(array.array)

2013-02-07 Thread Demian Brecht

Demian Brecht added the comment:

Here's a patch for the docs that adds a little clarity.

--
keywords: +patch
Added file: http://bugs.python.org/file28986/buffer.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17145
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread STINNER Victor

STINNER Victor added the comment:

Ok, it's a bug in the function resize a compact Unicode string,
resize_compact(): wstr field is not updated to the new size.

Attached patch should fix it. The bug was introduced by me in Python 3.3.

I don't think that it's possible to resize wstr buffer instead of
freeing it: it will not be refilled by PyUnicode_AsUnicodeAndSize() if
wstr is not NULL. An alternative is to create a new string (instead of
using realloc) if wstr is not NULL.

2013/2/7 Florent Xicluna rep...@bugs.python.org:

 Changes by Florent Xicluna florent.xicl...@gmail.com:


 --
 components:  -Windows

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue17137
 ___

--
keywords: +patch
Added file: http://bugs.python.org/file28987/pep393.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___diff -r b8a6bc70fc08 Lib/test/test_unicode.py
--- a/Lib/test/test_unicode.py  Thu Feb 07 17:05:32 2013 +0200
+++ b/Lib/test/test_unicode.py  Thu Feb 07 17:15:48 2013 +0100
@@ -7,6 +7,7 @@ Written by Marc-Andre Lemburg (mal@lembu
 #
 import _string
 import codecs
+import random
 import struct
 import sys
 import unittest
@@ -2191,6 +2192,20 @@ class UnicodeTest(string_tests.CommonTes
 self.assertEqual(args[0], text)
 self.assertEqual(len(args), 1)
 
+def test_resize(self):
+for length in range(1, 100, 7):
+# generate a fresh string (refcount=1)
+text = 'a' * length + 'b'
+
+# fill wstr internal field
+abc = text.encode('unicode_internal')
+self.assertEqual(abc.decode('unicode_internal'), text)
+
+text += 'c'
+abcdef = text.encode('unicode_internal')
+self.assertNotEqual(abc, abcdef)
+self.assertEqual(abcdef.decode('unicode_internal'), text)
+
 
 class StringModuleTest(unittest.TestCase):
 def test_formatter_parser(self):
diff -r b8a6bc70fc08 Objects/unicodeobject.c
--- a/Objects/unicodeobject.c   Thu Feb 07 17:05:32 2013 +0200
+++ b/Objects/unicodeobject.c   Thu Feb 07 17:15:48 2013 +0100
@@ -717,6 +717,10 @@ resize_compact(PyObject *unicode, Py_ssi
 if (!PyUnicode_IS_ASCII(unicode))
 _PyUnicode_WSTR_LENGTH(unicode) = length;
 }
+else if (_PyUnicode_HAS_WSTR_MEMORY(unicode)) {
+PyObject_DEL(_PyUnicode_WSTR(unicode));
+_PyUnicode_WSTR(unicode) = NULL;
+}
 #ifdef Py_DEBUG
 unicode_fill_invalid(unicode, old_length);
 #endif
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread STINNER Victor

STINNER Victor added the comment:

@Jan Lachnitt: Thanks for your patience and having executed all my commands :-) 
Thanks for the short script reproducing the issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17152] Array module should support boolean natively

2013-02-07 Thread Mark Dickinson

Mark Dickinson added the comment:

What do you mean by 'natively'?  How much space do you envisage each bool 
taking?  That is, are you suggesting a packed bool representation with 8 
entries to a byte, or storing one bool per byte, or something else?

--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +larry
priority: high - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2013-02-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Issue #17151 closed as a duplicate of this one.

--
nosy: +kushou, mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2013-02-07 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
priority: low - normal

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17151] Python 3 changement of behavior with __ne__: documentation not updated

2013-02-07 Thread Mark Dickinson

Mark Dickinson added the comment:

There's a (long-standing) issue already open for this: #4395.  I'll close this 
as a duplicate and add a note to that issue;  with any luck, pinging that issue 
might produce some movement.

--
nosy: +mark.dickinson
resolution:  - duplicate
status: open - closed
superseder:  - Document auto __ne__ generation; provide a use case for 
non-trivial __ne__

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17151
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17153] tarfile extract fails when Unicode in pathname

2013-02-07 Thread Vinay Sajip

New submission from Vinay Sajip:

The attached file failing.tar.gz contains a path with UTF-8-encoded Unicode. 
This causes extractall() to fail, but only when the destination path is 
Unicode. That's because it leads to a implicit str-unicode conversion using 
ASCII.

Test script:

import shutil, tarfile, tempfile

tf = tarfile.open('failing.tar.gz', 'r:gz')
workdir = tempfile.mkdtemp()
try:
# N.B. ensure dest path is Unicode to trigger the failure
tf.extractall(unicode(workdir))
finally:
shutil.rmtree(workdir)

Result:

$ python untar.py
Traceback (most recent call last):
  File untar.py, line 8, in module
tf.extractall(unicode(workdir))
  File /usr/lib/python2.7/tarfile.py, line 2046, in extractall
self.extract(tarinfo, path)
  File /usr/lib/python2.7/tarfile.py, line 2083, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File /usr/lib/python2.7/posixpath.py, line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 44: 
ordinal not in range(128)

--
components: Library (Lib), Unicode
messages: 181631
nosy: ezio.melotti, vinay.sajip
priority: normal
severity: normal
status: open
title: tarfile extract fails when Unicode in pathname
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17153
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17153] tarfile extract fails when Unicode in pathname

2013-02-07 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


Added file: http://bugs.python.org/file28988/failing.tar.gz

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17153
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17153] tarfile extract fails when Unicode in pathname

2013-02-07 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
nosy: +lars.gustaebel

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17153
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-02-07 Thread R. David Murray

R. David Murray added the comment:

Looking at the documentation, it is clear that (a) what you are trying to do is 
documented as being correct and (b) it worked in Python2, making this a 
regression.

I've attached a patch to fix this, which also probably fixes some bugs with 
BytesGenerator handing of non-text CTE 8bit parts created by BytesParser, but I 
haven't added tests to confirm that.

--
keywords: +patch
stage:  - patch review
versions: +Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28989/encode_noop.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16564
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17154] the 'ignore' pdb command raises IndexError

2013-02-07 Thread Xavier de Gaye

New submission from Xavier de Gaye:

An 'ignore' pdb command issued without any parameter raises IndexError.

--
components: Library (Lib)
messages: 181633
nosy: xdegaye
priority: normal
severity: normal
status: open
title: the 'ignore' pdb command raises IndexError
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-02-07 Thread R. David Murray

R. David Murray added the comment:

Updated patch after review by Ezio and Serhiy.

--
Added file: http://bugs.python.org/file28990/encode_noop.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16564
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16038] ftplib: unlimited readline() from connection

2013-02-07 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

LineTooLong should be added to ftplib.all_errors.
4096 looks enough to me.
The longest lines I can think of occur when processing MLSD command which 
produces an output of like this:

type=file;size=156;perm=r;modify=20071029155301;unique=801cd2; music.mp3
type=dir;size=0;perm=el;modify=20071127230206;unique=801e33; ebooks
type=file;size=211;perm=r;modify=20071103093626;unique=801e32; module.py

Considering that the file names listed in there are forced to consist of base 
names (as opposed to *full* path names) I doubt we'll ever hit 4096.
In pyftpdlib I used 2048 bytes.
I can't recall any reference about this in any FTP-related RFC.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-02-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 import io, email
 bytesdata = b'\xfa\xfb\xfc\xfd\xfe\xff'
 msg = email.mime.application.MIMEApplication(bytesdata, 
 _encoder=encoders.encode_7or8bit)
 s = io.BytesIO()
 g = email.generator.BytesGenerator(s)
 g.flatten(msg)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/serhiy/py/cpython3.2/Lib/email/generator.py, line 91, in flatten
self._write(msg)
  File /home/serhiy/py/cpython3.2/Lib/email/generator.py, line 137, in _write
self._dispatch(msg)
  File /home/serhiy/py/cpython3.2/Lib/email/generator.py, line 163, in 
_dispatch
meth(msg)
  File /home/serhiy/py/cpython3.2/Lib/email/generator.py, line 393, in 
_handle_text
if _has_surrogates(msg._payload):
TypeError: can't use a string pattern on a bytes-like object

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16564
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-02-07 Thread R. David Murray

R. David Murray added the comment:

While related, that is a different bug, so I'd rather open a new issue for it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16564
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16038] ftplib: unlimited readline() from connection

2013-02-07 Thread Christian Heimes

Christian Heimes added the comment:

I suggest that we use twice the size of the largest limit (8192) for the DoS 
fix and reduce it to 2048 for Python 3.4. 8192 is still a small number for 
modern computers.

I also like to see comments next to the limit that explain on what grounds we 
have chosen the value. For example

# vfstpd has a limit of 4096 
(ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-3.0.2/defs.h)
# pyftpdlib has a limit of 2048

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17146] Improve test.support.import_fresh_module()

2013-02-07 Thread Brett Cannon

Brett Cannon added the comment:

I don't think this is worth it. I say just start with the basics of issue 17037 
and that subsumes this.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17146
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17155] Logging throwing UnicodeEncodeError exception

2013-02-07 Thread Germán M . Bravo

New submission from Germán M. Bravo:

I've seen *a lot* of people using `logging.exception(exc)` to log exceptions. 
It all seems okay, until the exc object contains unicode strings, at which 
point logging throes a UnicodeEncodeError exception.

Example: `exc = Exception(u'operaci\xf3n'); logger.error(exc)` throws an 
exception, while `exc = Exception(u'operaci\xf3n'); logger.error(u%s, exc)` 
does not and works as expected.

The problem for this is in the `_fmt` string in logging being `%(message)s`, 
not `u%(message)s`, which ends up getting the string (non-unicode) version of 
the exception object (returned by `getMessage()`) and failing to apply the 
formatting since the exception contains unicode.

A solution would be to make the default formatting string a unicode string so 
the object returned by `getMessage()` (the exception) is converted to unicode 
by making all formatting strings for logging unicode strings: (could be done 
for example by changing to `unicode(self._fmt) % record.__dict__` the line 
logging/__init__.py:467).

Other solution could be to encourage users not to use objects as the first 
argument to the logging methods, and perhaps even log a warning against it if 
it's done.

--
assignee: docs@python
components: Documentation, Unicode
messages: 181640
nosy: Kronuz, docs@python, ezio.melotti
priority: normal
severity: normal
status: open
title: Logging throwing UnicodeEncodeError exception
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17155
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-02-07 Thread Brett Cannon

Brett Cannon added the comment:

At this point let's just start with the helper class which takes the arguments 
as necessary to do the proper importing of both the pure Python and accelerated 
versions of the module and optionally the name of the attribute the test 
classes expect (otherwise just use the name of the module itself). Then expose 
two decorator methods to use on subclasses to set the proper class with the 
proper attribute name. Going fancier with a method that generates the 
subclasses can come in a separate patch. import_fresh_module() can stay as-is 
and this class just becomes the preferred way to get both versions of a module 
at the same time.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17037
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17146] Improve test.support.import_fresh_module()

2013-02-07 Thread Eric Snow

Eric Snow added the comment:

My sentiment also.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17146
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17150] pprint could use line continuation for long string literals

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I was thinking we could re-use textwrap, actually.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17150
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16038] ftplib: unlimited readline() from connection

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I suggest that we use twice the size of the largest limit (8192) for
 the DoS fix and reduce it to 2048 for Python 3.4. 8192 is still a
 small number for modern computers.

Why do you want to reduce it? It doesn't bring any additional security.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The import random isn't needed in your patch.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Catalin Iacob

Catalin Iacob added the comment:

There are 2 issues with the documentation changes introduced by these patches.

1. for 2.7, the note added by the doc patch is in the wrong place, at the 
setpassword method instead of the extract or extractall method

2. for 3.x the Never extract archives from untrusted sources... warning got 
removed but it's still useful for users that read the documentation online and 
therefore get the updated docs but haven't updated Python to the latest patch 
release and therefore don't have the fix. For example, anybody reading the docs 
for 3.2 or 3.3 today doesn't see that extractall is dangerous and there is no 
released Python containing the fix so by all practical means extractall is 
still dangerous today.

To address point 2, I think the warning should be kept with an extra mention 
regarding exact version where it got fixed so that, when reading the 
documentation, everybody can assess exactly whether extractall is safe for them 
to use or not.

I can't reopen the bug since I don't have tracker privileges but since it's a 
security issue I think it's important for these to get addressed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith

Gregory P. Smith added the comment:

reopening as documentation mixups remain to be fixed.

--
nosy: +benjamin.peterson, larry
priority: high - release blocker
resolution: fixed - 
stage: patch review - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3b316ea5aa82 by Victor Stinner in branch '3.3':
Issue #17137: When an Unicode string is resized, the internal wide character
http://hg.python.org/cpython/rev/3b316ea5aa82

New changeset c10a3ddba483 by Victor Stinner in branch 'default':
(Merge 3.3) Issue #17137: When an Unicode string is resized, the internal wide
http://hg.python.org/cpython/rev/c10a3ddba483

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17137
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17145] memoryview(array.array)

2013-02-07 Thread Demian Brecht

Demian Brecht added the comment:

Strike that patch, this needs a little more love than 
during-my-first-coffee-of-the-day work. I'll work on it more and submit a 
follow-up for review.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17145
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-02-07 Thread Eric Snow

Eric Snow added the comment:

Fine with me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17037
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock

New submission from umedoblock:

I'd like to parse _('こんにちは').
However pygettext.py doesn't parse _('こんにちは').
pygettext.py said me 'IndexError'.
now I attached pygettext.py.patch to fix a bug.
I show you command history.

$ pygettext.py -o - --verbose konnichiha.py
...
#: konnichiha.py:6
msgid konnichiha
msgstr 

#: konnichiha.py:7
Traceback (most recent call last):
  File /home/umetaro/local/bin/pygettext.py, line 664, in module
main()
  File /home/umetaro/local/bin/pygettext.py, line 657, in main
eater.write(fp)
  File /home/umetaro/local/bin/pygettext.py, line 497, in write
print('msgid', normalize(k), file=fp)
  File /home/umetaro/local/bin/pygettext.py, line 250, in normalize
s = '' + escape(s) + ''
  File /home/umetaro/local/bin/pygettext.py, line 236, in escape
s[i] = escapes[ord(s[i])]
IndexError: list index out of range

please use pygettext.py.patch.

$ pygettext.py -o - --verbose konnichiha.py
...
#: konnichiha.py:6
msgid konnichiha
msgstr 

#: konnichiha.py:7
msgid こんにちは
msgstr 

--
components: Demos and Tools
files: konnichiha.py
messages: 181651
nosy: umedoblock
priority: normal
severity: normal
status: open
title: Tools/i18n/pygettext.py doesn't parse unicode string.
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file28991/konnichiha.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock

Changes by umedoblock umedobl...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file28992/pygettext.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock

umedoblock added the comment:

TOO SORRY.

pygettext.py.patch  umedoblock, 2013-02-08 10:32

is wrong a patch.

please forget it.

--
Added file: http://bugs.python.org/file28993/pygettext.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am working on patch(es) now, against 3.2. But to make 2.7.4/3.2.4, I'd like 
you to apply, as I am not currently set up to do so properly.
I may do separate patches for doc, lib, module, and others, so none is 
overwhelming.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13355] random.triangular error when low = high=mode

2013-02-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'll look at the patch shortly.  At first glance, it looks over-engineered to 
me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17152] Array module should support boolean natively

2013-02-07 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

1 byte = 8 bools.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

First batch for Lib/*. Separate 3.2 and 2.7 files as the later required 
deletion of concurrent patch and adjustment of tix and turtle paths.

--
keywords: +patch
Added file: http://bugs.python.org/file28994/Lib14707-27.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

These of course do not contain patches for new dups introduced in 3.3. I kept a 
record and will later make a separate patch for those. (I hope before 3.3.1).

--
Added file: http://bugs.python.org/file28995/Lib14707-32.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4331] Can't use _functools.partial() created function as method

2013-02-07 Thread Matt Joiner

Matt Joiner added the comment:

What's preventing this from being committed and closed?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-02-07 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
assignee:  - benjamin.peterson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d73fb6b06891 by Gregory P. Smith in branch '2.7':
Issue #6972: fix the documentation mis applied patch.
http://hg.python.org/cpython/rev/d73fb6b06891

New changeset 1c2d41850147 by Gregory P. Smith in branch '3.2':
Issue #6972: keep the warning about untrusted extraction and mention
http://hg.python.org/cpython/rev/1c2d41850147

New changeset 5fbca37de9b1 by Gregory P. Smith in branch '3.3':
Issue #6972: keep the warning about untrusted extraction and mention
http://hg.python.org/cpython/rev/5fbca37de9b1

New changeset f5e3f2f0fe79 by Gregory P. Smith in branch 'default':
Issue #6972: keep the warning about untrusted extraction and mention
http://hg.python.org/cpython/rev/f5e3f2f0fe79

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

C module files. I cannot find python-gdb.py.

--
Added file: http://bugs.python.org/file28996/Mod14707-27.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


Added file: http://bugs.python.org/file28997/Mod14707-32.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17047] Fix double double words words

2013-02-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A majority of doc glitches listed here are new in 3.3. I believe someone make a 
similar de-double patch some time ago. I put the other 2.7/3.2 fixes here so 
this is it for those two versions.

--
Added file: http://bugs.python.org/file28998/Doc17047-27.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17047
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >