[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-23 Thread Hrvoje Nikšić

Hrvoje Nikšić added the comment:

Thanks for pointing out the make_header(decode_header(...)) idiom, which I was 
indeed not aware of.  It solves the problem perfectly.

I agree that it is a doc bug.  While make_header is documented on the same 
place as decode_header and Header itself, it is not explained *why* I should 
call it if I already have in hand a perfectly valid Header instance.  
Specifically, it is not at all clear that while unicode(h) and 
unicode(make_header(decode_header(h)) will return different things -- I would 
have expected make_header(decode_header(h)) to return an object 
indistinguishable from h.

Also, the policy=default parameter in Python 3 sounds great, it's exactly what 
one would expect.

--

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



[issue17522] Add api PyGILState_Check

2013-03-23 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Sure, thanks.

--

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



[issue17525] os.getcwd() fails on cifs share

2013-03-23 Thread Charles-François Natali

Charles-François Natali added the comment:

os.getcwd() just calls the libc getcwd(3), so Python's not the problem here.

it's likely an issue with the CIFS implementation (I guess you're using fuse?).

Could you post the output of:
$ strace python -c import os; os.getcwd())

upon failure?

 Even though the unix 'pwd' and 'ls' commands still work, so I know my share 
 is still accessible.

'pwd' is likely your shell builtin, which doesn't call getcwd(). You could try 
with /bin/getcwd. As for 'ls', it doesn't walk the directory tree like getcwd() 
does.

--
nosy: +neologix

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Luca Sbardella

New submission from Luca Sbardella:

http://tools.ietf.org/html/rfc5789

--
components: Library (Lib)
files: validate.patch
keywords: patch
messages: 185031
nosy: lsbardel
priority: normal
severity: normal
status: open
title: PATCH as valid request method in wsgiref.validator
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file29552/validate.patch

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc amaur...@gmail.com:


--
nosy: +pje

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



[issue17522] Add api PyGILState_Check

2013-03-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

A small detail: you should add a versionadded tag in the function doc.

--

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



[issue17522] Add api PyGILState_Check

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2e92d1567ad7 by Kristján Valur Jónsson in branch 'default':
Issue #17522: Add the PyGILState_Check() API.
http://hg.python.org/cpython/rev/2e92d1567ad7

--
nosy: +python-dev

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



[issue17522] Add api PyGILState_Check

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 772d57aac162 by Kristján Valur Jónsson in branch 'default':
Issue #17522: Minor documentation fix
http://hg.python.org/cpython/rev/772d57aac162

--

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



[issue17522] Add api PyGILState_Check

2013-03-23 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Thanks, Antoine.

--

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



[issue17528] Implement dumps/loads for lru_cache

2013-03-23 Thread Francesco Frassinelli

New submission from Francesco Frassinelli:

Hi,
I propose to change the public API of functools.lru_cache in order to make the 
cache persistent when the program is restarted.
It could be implemented using two different functions (dumps/loads), where the 
cached is exported into a classical dictionary and restored in the same way.
A third argument could be also added to provide the initial cache (calling the 
loads function internally after the initialization).

I think this could be an important enhancement because lru_cache will probably 
implemented in C and try to export cache contents it will be not possible (see: 
http://bugs.python.org/issue14373).

--
messages: 185036
nosy: frafra
priority: normal
severity: normal
status: open
title: Implement dumps/loads for lru_cache
type: enhancement

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



[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5f6747a0ffc4 by Vinay Sajip in branch '2.7':
Updated Misc/NEWS with #17508.
http://hg.python.org/cpython/rev/5f6747a0ffc4

New changeset 5f7185cae787 by Vinay Sajip in branch '3.2':
Updated Misc/NEWS with #17508.
http://hg.python.org/cpython/rev/5f7185cae787

New changeset bef32463ecd2 by Vinay Sajip in branch '3.3':
Merged Misc/NEWS update for #17508.
http://hg.python.org/cpython/rev/bef32463ecd2

New changeset 6dc72bd91de1 by Vinay Sajip in branch 'default':
Merged Misc/NEWS update for #17508.
http://hg.python.org/cpython/rev/6dc72bd91de1

--

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



[issue17521] fileConfig() disables any previously-used named loggers, even when getLogger() is called again.

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 533b4a1d2b23 by Vinay Sajip in branch '2.7':
Issue #17521: Corrected non-enabling of logger following two calls to 
fileConfig().
http://hg.python.org/cpython/rev/533b4a1d2b23

New changeset 49d54e4d95df by Vinay Sajip in branch '3.2':
Issue #17521: Corrected non-enabling of logger following two calls to 
fileConfig().
http://hg.python.org/cpython/rev/49d54e4d95df

New changeset 1f6cda549b85 by Vinay Sajip in branch '3.3':
Issue #17521: Merged fix from 3.2.
http://hg.python.org/cpython/rev/1f6cda549b85

New changeset aa01eb949636 by Vinay Sajip in branch 'default':
Closes #17521: Merged fix from 3.3.
http://hg.python.org/cpython/rev/aa01eb949636

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2013-03-23 Thread Frank Hamand

Frank Hamand added the comment:

From msg172531 in issue10551:

You see, MIME\Database\Content Type in the Windows registry is a mime type 
- file extension mapping, *not the other way around*. But 
read_windows_registry() tries to use it as a file extension - mime type 
mapping, and bad things happen, because there are multiple mime types for 
certain file extensions.

This enhancement has basically broken the mimetypes module on windows,

e.g. On my system (windows 7 64 bit, python 3.3)
 mimetypes.guess_type('foo.png')
('image/x-png', None)
 mimetypes.guess_type('foo.jpg')
('image/pjpeg', None)

The expected results are image/png and image/jpeg

I'm having to work around this by calling mimetypes.init(files=[]) immediately 
after importing mimetypes to prevent it reading from the registry

--
nosy: +shawabawa
versions: +Python 3.3

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



[issue17529] fix os.senfile() documentation regarding the type of file descriptor

2013-03-23 Thread Charles-François Natali

New submission from Charles-François Natali:

os.sendfile() documentation states:

On Solaris, out may be the file descriptor of a regular file or the file 
descriptor of a socket. On all other platforms, out must be the file descriptor 
of an open socket.


This isn't true for Linux anymore (changed somewhere around 2.6.33), so it 
would probably be better to rephrase to something like all platforms support 
sockets as out file descriptor, and some platforms allow other types (e.g. 
regular files) as well.

--
assignee: docs@python
components: Documentation
messages: 185040
nosy: docs@python, neologix
priority: normal
severity: normal
stage: needs patch
status: open
title: fix os.senfile() documentation regarding the type of file descriptor
type: behavior
versions: Python 3.3, Python 3.4

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



[issue17528] Implement dumps/loads for lru_cache

2013-03-23 Thread Ezio Melotti

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


--
components: +Library (Lib)
nosy: +anacrolix, ezio.melotti, rhettinger
versions: +Python 3.4

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



[issue504219] locale.resetlocale is broken

2013-03-23 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Adding support for locales that are not recognized is easy and the locale 
parser could also learn about formats that it doesn't yet understand, so 
patches are welcome.

The main problem here is that setlocale() only understands a very limited set 
of locale names.

Please note that locale.getdefaultlocale() is not the same as 
locale.getpreferredencoding():

* getdefaultlocale() aims to find the default locale settings for a program 
which has not yet called setlocale(LC_ALL, ).

* getpreferredencoding() tries to make an educated guess at the encoding the 
user has setup for his/her environment. It works well on Windows, but on Unix, 
requires a call to setlocale() to implement the environment variable parsing, 
which is exactly what getdefaultlocale() tries to avoid.
setlocale() is not thread-safe, so the approach taken by getpreferredencoding() 
can have unwanted side-effects.

--
nosy: +lemburg

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



[issue17529] fix os.sendfile() documentation regarding the type of file descriptor

2013-03-23 Thread Charles-François Natali

Changes by Charles-François Natali cf.nat...@gmail.com:


--
title: fix os.senfile() documentation regarding the type of file descriptor - 
fix os.sendfile() documentation regarding the type of file descriptor

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



[issue17438] json.load docs should mention that it always return unicode

2013-03-23 Thread Ezio Melotti

Ezio Melotti added the comment:

It's documented in the table at 
http://docs.python.org/2/library/json.html#json.JSONDecoder, but indeed a link 
to the table should be added in the docs of load/loads (and similarly to the 
dump/dumps docs too).

--
keywords: +easy
nosy: +ezio.melotti
stage:  - needs patch
type:  - enhancement
versions: +Python 3.2, Python 3.3, Python 3.4

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Takayuki SHIMIZUKAWA

Takayuki SHIMIZUKAWA added the comment:

Hi Steve,

 This becomes more of an issue since VC++ 2008 Express is no longer available 
 for download (unless you're an MSDN subscriber)

Here: http://www.microsoft.com/en-us/download/details.aspx?id=13276

--

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



[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread STINNER Victor

STINNER Victor added the comment:

@skrah: ping!

@piro: can't you modify psycopg2 to add conditional code depending on the 
Python version? IMO the behaviour change is wanted.

http://www.python.org/dev/peps/pep-3118/

--
nosy: +haypo

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



[issue17529] fix os.sendfile() documentation regarding the type of file descriptor

2013-03-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Sounds good to me.

--
nosy: +pitrou

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



[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2013-03-23 Thread Stefan Krah

Stefan Krah added the comment:

I've corresponded privately with Daniele Varrazzo about the psycopg2
issue already and then forgot about this (the psycopg2 fix is good).

Yes, the change was intentional. There's one open issue (#15944)
where dabeaz isn't happy about the change, so let's make that a
superseder.

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - memoryviews and ctypes

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



[issue17489] random.Random implements __getstate__() and __reduce__()

2013-03-23 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - wont fix
status: open - closed

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



[issue17100] rotating an ordereddict

2013-03-23 Thread Raymond Hettinger

Raymond Hettinger added the comment:

For the time being, I want to keep the OrderedDict API simple and avoid feature 
creep into rotation logic.

--
resolution:  - rejected
status: open - closed

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



[issue17441] Do not cache re.compile

2013-03-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think we could happily call such code buggy or at least suboptimal. The docs 
don't even mention that re.compile() actually uses a cache.

--

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



[issue17430] missed peephole optimization

2013-03-23 Thread Ezio Melotti

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


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

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



[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Ezio Melotti

Ezio Melotti added the comment:

IMHO str.isidentifier() should not return False for Python keywords, since it's 
often used in contexts where Python keywords would otherwise be valid.  A 
keyword arg to exclude keywords could be added though, assuming there are 
enough use cases.

--
nosy: +ezio.melotti
type: behavior - enhancement
versions:  -Python 3.2, Python 3.3

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



[issue17449] dev guide appears not to cover the benchmarking suite

2013-03-23 Thread Ezio Melotti

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


--
stage:  - needs patch
type:  - enhancement

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



[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-23 Thread Ezio Melotti

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


--
nosy: +ezio.melotti, michael.foord
stage:  - patch review

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Georg Brandl

Georg Brandl added the comment:

Considering that this behavior has been present in all of Python 3, it does not 
seem useful to make a backwards incompatible change in bugfix releases.

You could change it in 3.4 as a minor API change, but you've indicated that 
that wouldn't make sense to you.

--

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



[issue17479] Fix test discovery for test_io.py

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa9e189e30ad by Ezio Melotti in branch '3.3':
#17479: test_io now works with unittest test discovery.  Patch by Zachary Ware.
http://hg.python.org/cpython/rev/fa9e189e30ad

New changeset 99a81681237d by Ezio Melotti in branch 'default':
#17479: merge with 3.3.
http://hg.python.org/cpython/rev/99a81681237d

--
nosy: +python-dev

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



[issue17479] Fix test discovery for test_io.py

2013-03-23 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee:  - ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue17239] XML vulnerabilities in Python

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue16039] imaplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue16037] httplib: header parsing is not delimited

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue16041] poplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue16042] smtplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue16040] nntplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16040
___
___
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-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

___
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



[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Not blocking 2.7.4 as discussed on mailing list.

--
priority: release blocker - critical

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



[issue17425] Update OpenSSL versions in Windows builds

2013-03-23 Thread Benjamin Peterson

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


--
versions:  -Python 2.7

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



[issue17510] assertEquals deprecated in test_program.py (unittest)

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd7f99e662b7 by Ezio Melotti in branch 'default':
#17510: avoid using deprecated assertEquals method in test_program.  Patch by 
Daniel Black.
http://hg.python.org/cpython/rev/fd7f99e662b7

--
nosy: +python-dev

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



[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Can landed corrected in 2.7.5.

--
priority: release blocker - normal

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



[issue17510] assertEquals deprecated in test_program.py (unittest)

2013-03-23 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report and the patch!

--
assignee:  - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions:  -Python 3.5

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



[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a7fe48dfbfe9 by Raymond Hettinger in branch '3.3':
Issue 17447:  Clarify that str.isidentifier doesn't check for reserved keywords.
http://hg.python.org/cpython/rev/a7fe48dfbfe9

--
nosy: +python-dev

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



[issue17447] str.identifier shouldn't accept Python keywords

2013-03-23 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I've added a clarification to the docs.  Closing this report as invalid.

--
resolution:  - invalid
status: open - closed

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Steve Dower

Steve Dower added the comment:

 This becomes more of an issue since VC++ 2008 Express is no longer available 
 for download (unless you're an MSDN subscriber)

 Here: http://www.microsoft.com/en-us/download/details.aspx?id=13276

That's just the service pack and it won't install unless you already have VS 
installed. There is no way (other than being an MSDN subscriber) to get VS 2008 
at this point - I've checked.

--

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Gregory P. Smith

Gregory P. Smith added the comment:

The number of things we'll break by changing this errant behavior to be 
_correct_ is way less than the number of things that are already broken due to 
it.

If the bufsize=0 default is left in place the behavior differs between Windows 
and POSIX platforms and anyone porting code from Python 2 will be caught by 
surprise.  The behavior change introduced in 3.2 with the new subprocess module 
was 100% unintentional and does not match that of 2.7 or of the subprocess32 
backport to 2.x that more people use _today_ than use 3.x at all.

I think being a purist about this being an API change here is going to cause 
problems.  3.x hasn't seen wide adoption yet, its use is ramping up and code is 
being ported from 2.  The bug this behavior causes is completely non-obvious 
and escapes most testing.  It can occur at random times, more likely on loaded 
systems than idle ones.

Grepping through the standard library, there are several more instances of uses 
of subprocess that are suspect given this behavior change.  Fixing them all 
instead of addressing the cause of the problem seems unwise.

--

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Gregory P. Smith

Gregory P. Smith added the comment:

(actually I'm not sure about the windows vs posix behavior difference, that may 
not be true; I don't have a windows system handy to test that on)

--

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-23 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Georg Brandl

Georg Brandl added the comment:

OK. That was a more passionate statement :)  It would actually be nice to know 
about Windows, but the way you describe it is that the default behavior now is 
quite useless.  Does bufsize=0 have any sensible use on Python 3?

Anyway, you've convinced me -- can you fix this quickly so that it gets into 
the rc's?

--

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Gregory P. Smith

Gregory P. Smith added the comment:

great!  fixing now. :)

--

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



[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-23 Thread Matthias Klose

Matthias Klose added the comment:

tested the backport on MacOSX, fixing the build.

--

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3ecf709dfe69 by Gregory P. Smith in branch '3.2':
Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
http://hg.python.org/cpython/rev/3ecf709dfe69

New changeset 4c2fc172afcc by Gregory P. Smith in branch '3.3':
Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
http://hg.python.org/cpython/rev/4c2fc172afcc

New changeset 3031d69f94ef by Gregory P. Smith in branch 'default':
Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
http://hg.python.org/cpython/rev/3031d69f94ef

--
nosy: +python-dev

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



[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-23 Thread Michael Foord

Michael Foord added the comment:

There's a straightforward patch here, it just needs applying:

http://code.google.com/p/mock/issues/attachmentText?id=190aid=19name=mock.patchtoken=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613

--

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



[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-23 Thread Michael Foord

Michael Foord added the comment:

Thanks for the report and the patch. Good catch!

It will need looking over as it's not immediately obvious to me it's correct. 

In the code that checks the loader path, does it iterate over every member of 
the namespace path - even directories that aren't in the path being searched?

--
assignee:  - michael.foord

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17457
___
___
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-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5a2296093645 by Antoine Pitrou in branch 'default':
Issue #17150: pprint now uses line continuations to wrap long string literals.
http://hg.python.org/cpython/rev/5a2296093645

--
nosy: +python-dev

___
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



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

2013-03-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, I've committed the patch.

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

___
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



[issue17530] pprint could use line continuation for long bytes literals

2013-03-23 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Same as issue #17150: 

 pprint.pprint({a: b\x00\xff * 20})
{'a': 
b'\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff'}

... could be better formatted as:

 pprint.pprint({a: b\x00\xff * 20})
{'a': b'\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00'
  b'\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff'
  b'\x00\xff\x00\xff\x00\xff'}

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

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 23.03.2013 16:39, Steve Dower wrote:
 
 Steve Dower added the comment:
 
 This becomes more of an issue since VC++ 2008 Express is no longer 
 available for download (unless you're an MSDN subscriber)

 Here: http://www.microsoft.com/en-us/download/details.aspx?id=13276
 
 That's just the service pack and it won't install unless you already have VS 
 installed. There is no way (other than being an MSDN subscriber) to get VS 
 2008 at this point - I've checked.

There is, but you have to know what to look for :-)

http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso

--

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



[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-03-23 Thread Gregory P. Smith

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


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

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



[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2013-03-23 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

Hi Terry,
just take/put away some ... (they're not in a special order nor preference, 
just some that could 'see' in the browser).

--
keywords: +patch
nosy: +francismb
Added file: http://bugs.python.org/file29553/issue13802.patch

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Ned Deily

New submission from Ned Deily:

With the changes introduced for Issue4591, test_grp and test_pwd now fail on OS 
X systems when Python is run in 32-bit mode.

Previously, using a 64-bit/32-bit universal build of 2.7.3:

$ arch -i386 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nobody).gr_gid; print(g,type(g))'
(-2, type 'int')
$ arch -x86_64 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nobody).gr_gid; print(g,type(g))'
(4294967294, type 'int')

Now, with 2.7.4rc1:

$ arch -i386 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nobody).gr_gid; print(g,type(g))'
(4294967294L, type 'long')
$ arch -x86_64 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nobody).gr_gid; print(g,type(g))'
(4294967294, type 'int')

This results in test failures in both test_grp and test_pwd:

==
FAIL: test_values (test.test_grp.GroupDatabaseTestCase)
--
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_grp.py,
 line 27, in test_values
self.check_value(e)
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_grp.py,
 line 19, in check_value
self.assertIsInstance(value.gr_gid, int)
AssertionError: 4294967294L is not an instance of type 'int'

--

==
FAIL: test_values (test.test_pwd.PwdTest)
--
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_pwd.py,
 line 23, in test_values
self.assertIsInstance(e.pw_gid, int)
AssertionError: 4294967294L is not an instance of type 'int'

--

--
components: Tests
messages: 185081
nosy: benjamin.peterson, ned.deily, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_grp and test_pwd fail with 32-bit builds on OS X systems
type: behavior
versions: Python 2.7

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Ned Deily

Ned Deily added the comment:

Failure also seen on 32-bit buildbot:
http://buildbot.python.org/all/builders/x86%20Tiger%202.7

--

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



[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-23 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue17449] dev guide appears not to cover the benchmarking suite

2013-03-23 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Mmmh... I'm not very warm on this one. If we start documenting the benchmark 
suite in the devguide, then people will start to be all gung ho about it, be 
obsessed with benchmark numbers, etc.

I guess what I'm saying is that *if* it's covered, then the very beginning of 
the section should explain that benchmarking is not important in most cases, 
and time spent on Python is generally better spent fixing bugs and adding 
features.

--
nosy: +pitrou

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



[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-23 Thread Antoine Pitrou

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


--
nosy: +neologix

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2aa817e0a645 by Benjamin Peterson in branch '2.7':
return int instead long when possible (#17531)
http://hg.python.org/cpython/rev/2aa817e0a645

--
nosy: +python-dev

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I hope that does it?

--

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

No, that was wrong, sorry.

--

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



[issue14945] Setup Usage documentation for selected stdlib modules

2013-03-23 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/issue14945
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I think the tests are wrong.

--

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c982393bea4e by Benjamin Peterson in branch '2.7':
group ids and user ids can be longs now (#17531)
http://hg.python.org/cpython/rev/c982393bea4e

--

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



[issue7267] format method: c presentation type broken

2013-03-23 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

In 2.7.3 

 u'{0:c}'.format(127)
u'\x7f'

 u'{0:c}'.format(128)

Traceback (most recent call last):
  File pyshell#6, line 1, in module
u'{0:c}'.format(128)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal 
not in range(128)

 u'{0:c}'.format(255)

Traceback (most recent call last):
  File pyshell#7, line 1, in module
u'{0:c}'.format(255)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal 
not in range(128)

 u'{0:c}'.format(256)
u'\x00'

 u'{0:c}'.format(257)
u'\x01'

--
nosy: +francismb

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Ned Deily

Ned Deily added the comment:

That fixes the test for nobody (-2). Now the next part of the test fails more 
seriously for nogroup (-1).  Simplifying:

2.7.3
$ arch -i386 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nogroup).gr_gid; print(grp.getgrgid(g),type(g))'
(grp.struct_group(gr_name='nogroup', gr_passwd='*', gr_gid=-1, gr_mem=[]), 
type 'int')
$ arch -x86_64 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nogroup).gr_gid; print(grp.getgrgid(g),type(g))'
(grp.struct_group(gr_name='nogroup', gr_passwd='*', gr_gid=4294967295, 
gr_mem=[]), type 'int')

2.7.4rc1:
$ arch -i386 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nogroup).gr_gid; print(grp.getgrgid(g),type(g))'
Traceback (most recent call last):
  File string, line 1, in module
OverflowError: group id is greater than maximum
$ arch -x86_64 /usr/local/bin/python2.7 -c 'import grp; 
g=grp.getgrnam(nogroup).gr_gid; print(grp.getgrgid(g),type(g))'
(grp.struct_group(gr_name='nogroup', gr_passwd='*', gr_gid=4294967295, 
gr_mem=[]), type 'int')

--

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Roger Serwy

Roger Serwy added the comment:

Thanks, Todd, for reviewing and testing the extension!

The Terminal.py extension patch provided here is outdated. There have been some 
minor tweaks and bug fixes that can be found in the IdleX project which works 
under 2.x and 3.x with the same code. (For example, I removed an unnecessary 
reference to the history object in the latest version so that I could better 
support IPython). I know that the IdleX version works under Linux, Windows, and 
MacOSX. 

Unfortunately, on MacOSX, the Options menu may not be present which breaks 
the loading of Terminal.py. IdleX re-introduces the Options menu on MacOSX if 
it is missing. I will create a separate issue for the Options menu.

--

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



[issue7267] format method: c presentation type broken

2013-03-23 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

Adding a test that triggers the issue, let me know if is enough.

--
keywords: +patch
Added file: http://bugs.python.org/file29554/issue7267.patch

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Whack, whack. a4dbe53577cb

--

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Steve Dower

Steve Dower added the comment:

 That's just the service pack and it won't install unless you already have VS 
 installed. There is no way (other than being an MSDN subscriber) to get VS 
 2008 at this point - I've checked.

 There is, but you have to know what to look for :-)

Fair enough, but I can't (as a Microsoft employee) endorse that link or 
guarantee that it won't go away :)

I still think it's worth fixing distutils to look in the right places for VC, 
since there are multiple ways of installing it that all include different batch 
files.

--

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Ned Deily

Ned Deily added the comment:

a4dbe53577cb appears to fix the latter problem.  Thanks!

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

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-23 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 23.03.2013 22:33, Steve Dower wrote:
 
 Steve Dower added the comment:
 
 That's just the service pack and it won't install unless you already have 
 VS installed. There is no way (other than being an MSDN subscriber) to get 
 VS 2008 at this point - I've checked.

 There is, but you have to know what to look for :-)
 
 Fair enough, but I can't (as a Microsoft employee) endorse that link or 
 guarantee that it won't go away :)
 
 I still think it's worth fixing distutils to look in the right places for VC, 
 since there are multiple ways of installing it that all include different 
 batch files.

Sure, no question about that. Adding support for more MS VC versions
is always a plus :-)

--

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



[issue17531] test_grp and test_pwd fail with 32-bit builds on OS X systems

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 87d266988905 by Benjamin Peterson in branch '2.7':
update NEWS for #17531
http://hg.python.org/cpython/rev/87d266988905

--

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



[issue17532] IDLE: Always include Options menu on MacOSX

2013-03-23 Thread Roger Serwy

New submission from Roger Serwy:

Presently, the Options menu gets eliminated if IDLE runs as an OSX app. This 
behavior was introduced in 2006 in revision 654c380cf8b9. 

I guess that the original motivation for eliminating the Options menu since it 
usually only contained the Configure IDLE option, and the 
Lib/idlelib/macosxSupport.py code supports using the Preferences menu item to 
open the configuration dialog. (The only other item would be the Code Context 
toggle.)

Extensions that rely on the Options menu being present will not function 
properly, especially when the menu item involves a queried boolean variable for 
its checkmark status.

--
components: IDLE
keywords: easy
messages: 185098
nosy: Todd.Rovito, ned.deily, roger.serwy
priority: normal
severity: normal
status: open
title: IDLE: Always include Options menu on MacOSX
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue17532] IDLE: Always include Options menu on MacOSX

2013-03-23 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +ronaldoussoren

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



[issue17533] test_xpickle fails on OS X 10.5 with cannot import name precisionbigmemtest

2013-03-23 Thread Ned Deily

New submission from Ned Deily:

When running the OS X 32-bit-only installer 2.7.4rc1 on OS X 10.5, test_xpickle 
has many test failures all in CPicklePython25Compat.  Note, there is an 
Apple-supplied system Python 2.5 shipped on OS X 10.5. (There is also an 
Apple-supplied system Python 2.5 shipped on OS X 10.8, too, but for some 
reason, the test doesn't report a failure there.)  The use of 
precisionbigmemtest appears to have been added by 680959a3ae2e for Issue13555.

==
ERROR: test_attribute_name_interning (test.test_xpickle.CPicklePython25Compat)
--
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/pickletester.py,
 line 983, in test_attribute_name_interning
s = self.dumps(x, proto)
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_xpickle.py,
 line 115, in dumps
return self.send_to_worker(self.python, arg, proto)
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_xpickle.py,
 line 111, in send_to_worker
raise RuntimeError(stderr)
RuntimeError: Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/test_xpickle.py,
 line 28, in module
exec compile(open(mod_path).read(), mod_path, 'exec') in 
pickletester.__dict__
  File 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/test/pickletester.py,
 line 9, in module
from test.test_support import (TestFailed, have_unicode, TESTFN, _2G, _1M,
ImportError: cannot import name precisionbigmemtest

[...]
--
Ran 180 tests in 5.033s

FAILED (errors=67)

--
components: Tests
messages: 185099
nosy: benjamin.peterson, ned.deily, serhiy.storchaka
priority: normal
severity: normal
status: open
title: test_xpickle fails on OS X 10.5 with cannot import name 
precisionbigmemtest
versions: Python 2.7

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



[issue17534] unittest keeps references to test cases alive

2013-03-23 Thread Ezio Melotti

New submission from Ezio Melotti:

After the subtests commit (5c09e1c57200/#16997), test_queue started showing the 
following warning:
Warning -- threading._dangling was modified by test_queue
1 test altered the execution environment:
test_queue

The warning was caused by the fact that the TestCase subclasses in test_queue 
kept references to the thread, but before 5c09e1c57200 these subclasses (and 
hence the references to the thread) were destroyed before the regrtest check 
for threading._dangling, whereas now they are kept alive (due to 
Lib/unittest/case.py:72, that adds a reference to the TestCase even in case of 
success).  I now fixed the warning in test_queue (1747e50fca55), however 
unittest should probably avoid keeping alive TestCases when they are not needed 
anymore.

See also #9815.

(Thanks to Antoine for the help while I was debugging the issue.)

--
components: Library (Lib)
messages: 185100
nosy: ezio.melotti, michael.foord, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: unittest keeps references to test cases alive
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue17511] Idle find function closes after each find operation

2013-03-23 Thread Roger Serwy

Roger Serwy added the comment:

I can confirm this behavior. The attached preliminary patch allows the Find 
dialog to remain open, and is the same for 2.x and 3.x.

Until PEP434 gets resolved, I won't be able to apply the patch for earlier 
versions of IDLE. For what it's worth, the applied patch from issue13052 
changed the behavior of the Replace All button so that it doesn't close the 
dialog box.

--
assignee:  - roger.serwy
keywords: +patch
nosy: +roger.serwy
stage:  - patch review
type:  - enhancement
versions: +Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29555/issue17511.patch

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



[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-23 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Yes, it iterates over every member of the namespace path. The new attached 
patch fixes this behaviour, by checking that each loader path starts with 
top_level_dir when set_implicit_top is False (if set_implicit_top is True, 
top_level_dir is irrelevant, start_dir will be the package name).

 Also, with the original patch there were other issues:
  1. if no tests were found for the namespace package, the same failure as 
before would have occurred at the lines:

  +if not tests:
  +tests = list(self._find_tests(start_dir, pattern))

  2. it iterated every subfolder, by dropping the check for __init__.py. To fix 
this, I added a new keyword argument to _find_tests, `namespace` which defaults 
to False. If it is True, then we are checking a namespace package and 
subfolders will be checked even if they don't have a __init__.py file.

--
Added file: http://bugs.python.org/file29556/unittest-17457.patch

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



[issue17449] dev guide appears not to cover the benchmarking suite

2013-03-23 Thread Ezio Melotti

Ezio Melotti added the comment:

Benchmarking is also useful to test that existing patches (that fix bug or add 
features) don't have a negative effect on the performance.  Some kind of 
warning that advises against using benchmarks just to try and optimize 
everything sounds like a good idea though.

--

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



[issue513840] entity unescape for sgml/htmllib

2013-03-23 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue4653] Patch to fix typos in C code

2013-03-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4db1b0bb3683 by Gregory P. Smith in branch '3.3':
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
http://hg.python.org/cpython/rev/4db1b0bb3683

New changeset ace52be8da89 by Gregory P. Smith in branch 'default':
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
http://hg.python.org/cpython/rev/ace52be8da89

--
nosy: +python-dev

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



[issue4653] Patch to fix typos in C code

2013-03-23 Thread Gregory P. Smith

Gregory P. Smith added the comment:

the pythonrun issue had already been fixed.  the others were still there (valid 
bugs, but were unlikely to be causing problems given the codepaths).  fixed.

I didn't write a Misc/NEWS entry on the commit because I didn't know how to 
usefully describe these minor fixes.  someone else is welcome to contribute one 
if they feel the need.

--
nosy: +gregory.p.smith
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

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



[issue12920] inspect.getsource fails to get source of local classes

2013-03-23 Thread Richard Eames

Changes by Richard Eames naddi...@gmail.com:


--
nosy: +Naddiseo

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



[issue11087] Speeding up the interpreter with a few lines of code

2013-03-23 Thread Mark Lawrence

Mark Lawrence added the comment:

3-4% faster in some cases is better than a kick in the head but is this worth 
pursuing?

--
nosy: +BreamoreBoy

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



[issue17511] Idle find function closes after each find operation

2013-03-23 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


--
nosy: +Todd.Rovito

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Todd Rovito

Todd Rovito added the comment:

No problem Roger.  I have attached a new patch for documentation updates to 
both the IDLE help.txt file and idle.rst for the Terminal extension.  Would it 
be helpful if I did a diff on the idleX Terminal.py with your original patch?  
In addition to doing the patch I can also perform some more testing.  Please 
let me know what I can do to support you getting this patch committed. Thanks.

--
Added file: 
http://bugs.python.org/file29557/2704IDLEMakeShellBehaveLikeTerminaliDocumentationUpdateFor3dot4.patch

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



[issue17533] test_xpickle fails on OS X 10.5 with cannot import name precisionbigmemtest

2013-03-23 Thread Benjamin Peterson

Benjamin Peterson added the comment:

precisionbigmemtest was added in a 2.5 bug fix release. I suppose Tiger has 
an older version.

--

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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-23 Thread Todd Rovito

Todd Rovito added the comment:

Roger,
   I took Terminal.py and copied it into Lib/idlelib for the 3.4 branch.  The 
extension started just fine but when I toggle it off under the options menu the 
arrow keys still go through history.  Basically on my Mac I see no difference 
between the extension being turned on/off when I use Terminal.py from idle-X 
version 1.11.2.  I am not sure why when I toggle the extension off I can't move 
around the shell window with my cursor keys like the original patch allowed me 
to do.  Hopefully this helps.  Thanks.

--

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



[issue15801] Weird string interpolation behaviour

2013-03-23 Thread Thomas Waldmann

Thomas Waldmann added the comment:

gave 2.7.4rc1 a try and was seeing a failing unit test that does not fail with 
2.7.3.

see the attached file for some minimal code that succeeds on 2.7.3, but not on 
2.7.4rc1.

it seems to have to do with being a subclass of Exception, it doesn't happen 
for subclass of object.

--
nosy: +Thomas.Waldmann
Added file: http://bugs.python.org/file29558/py274_str_mod_bug.py

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



  1   2   >