[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah
Stefan Krah added the comment: Hmm, maybe this is a FreeBSD bug: http://osdir.com/ml/freebsd-bugs/2011-03/msg00201.html -- ___ Python tracker ___ __

[issue12797] io.FileIO and io.open should support openat

2011-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Attached is a patch which adds dirfd= as a keyword argument. Thanks. Although, on second thought, I'm not sure whether Amaury's idea (allowing a custom opener) is not better... Thoughts? -- ___ Python tracker

[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 80f0accd by Nadeem Vawda in branch '2.7': Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows. http://hg.python.org/cpython/rev/80f0accd New changeset fc7ee478ed3b by Nadeem Vawda in branch

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : Newbies too often do something like (3.2.2, ) >>> id(getattr(x, 'pop')) == id(x.pop) True and get confused by the (invalid) result, whereas >>> a,b=getattr(x, 'pop'),x.pop >>> id(a)==id(b) False works properly. I think we should add a sentence or two or th

[issue12367] select.error has no errno attribute

2011-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6b8e4226260 by Victor Stinner in branch 'default': Issue #12367: Test test_select.test_errno() on FreeBSD http://hg.python.org/cpython/rev/f6b8e4226260 -- ___ Python tracker

[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure it's exactly the same FreeBSD bug as in kern/155606, since I can also reproduce the test_errno failure --without-threads. Seems good to skip the test though. -- ___ Python tracker

[issue13201] Implement comparison operators for range objects

2011-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: The new patch looks fine; I'd still like to have the more explicit reference counting in range_hash (see replies on Rietveld). A few more things: - The patch needs a Misc/NEWS entry before committing; it probably deserves a line in Doc/whatsnew/3.3.rst, to

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Georg Brandl
Georg Brandl added the comment: If we add something at all, it should be much shorter. After all, the current doc already states "unique during its lifetime". -- nosy: +georg.brandl, rhettinger priority: normal -> low ___ Python tracker

[issue12568] Add functions to get the width in columns of a character

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: > I'm -1 on using wcswidth, though. When you write text into a console on Linux (e.g. displayed by gnome-terminal or konsole), I suppose that wcswidth() can be used to compute the width of a line. It would help to fix #2382. Or do you think that wcswidth() g

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: changeset: 72869:32b1999410de user:Victor Stinner date:Tue Oct 11 22:45:02 2011 +0200 files: Modules/_io/fileio.c description: Fix io.FileIO.readall() on Windows 64 bits Use Py_off_t type (64 bits) instead of off_t (32 bits). -

[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ea81e4c58a7 by Victor Stinner in branch 'default': Close #12454: The mailbox module is now using ASCII, instead of the locale http://hg.python.org/cpython/rev/5ea81e4c58a7 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rej

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I gave a maximum addition. The first sentence may be enough (or even just the second half of it). What people do not get is that the lifetime of new arg objects is the duration of the function call -- and that the output of id for departed objects is uniquely

[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: I kept Python 2.7 and 3.2 unchanged because I'm not completly sure that the fix is correct :-) -- ___ Python tracker ___ _

[issue13144] Global Module Index link in the offline documentation is incorrect

2011-10-17 Thread Georg Brandl
Georg Brandl added the comment: 2.x docs are supposed to be built with Sphinx 0.6.x -- there the link is correct. If Ubuntu chooses to ignore this and build with 1.0.x, they will have to include a patch fixing the link. -- nosy: +georg.brandl resolution: -> invalid status: open -> c

[issue12451] open: avoid the locale encoding when possible

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, it should be enough :-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue12367] select.error has no errno attribute

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: rejected -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: mbcs6.patch: update patch to tip. -- Added file: http://bugs.python.org/file23430/mbcs6.patch ___ Python tracker ___ __

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22374/mbcs4.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22389/mbcs5.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-17 Thread Paul Moore
Paul Moore added the comment: I'm not getting the second error on my home PC. As the failing buildbot is mine, I'll have a look on there to see if I can reproduce when I get the chance. -- ___ Python tracker

[issue13193] test_packaging and test_distutils failures under Windows

2011-10-17 Thread Paul Moore
Paul Moore added the comment: First one - the problem is in packaging.manifest._translate_pattern, which uses os.path.join on regex parts. That won't work on Windows where os.sep is a backslash, as the backslash is a RE metacharacter. Actually, the file list seems to only use '/' as a path se

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-17 Thread Roumen Petrov
Roumen Petrov added the comment: May be last report is not related to initial two years old . It seems to me it is introduced recently after some optimization related to creation of pyc files and this is not OpenSUSE related. -- nosy: +rpetrov ___

[issue12619] Automatically regenerate platform-specific modules

2011-10-17 Thread Roumen Petrov
Roumen Petrov added the comment: Related : #1565071 and #3990 . There is no reason to keep plat-xxx files if cannot be managed properly. -- nosy: +rpetrov ___ Python tracker

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Ned Deily
Ned Deily added the comment: Mark, you don't say what version of OS X or which Python you are using but, if you are using an Apple-supplied Python on 10.6 or 10.7 or if you are using python.org 64-bit/32-bit installers for 2.7 or 3.2, the Python standard library sqlite3 modules dynamically li

[issue12405] packaging does not record/remove directories it creates

2011-10-17 Thread Carl Meyer
Carl Meyer added the comment: > Carl: Can you tell us how pip removes directories? In short - pip would _love_ to have directories recorded as well as files, exactly as Vinay has proposed. We don't have that info (even the distutils --record option currently doesn't record directories, thus i

[issue12619] Automatically regenerate platform-specific modules

2011-10-17 Thread Ned Deily
Ned Deily added the comment: What do you do for platforms like OS X where we support one set of binary files that contain multi-architecture C-files that can run as Intel-64, Intel-32 or PPC-32 on the same machine at user option at run time? For example, the Apple-suppled system Python on OS

[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread Andreas Stührk
New submission from Andreas Stührk : It's not possible (by intention) to instantiate a new instance of sys.flags. This is achieved by setting the "tp_new" slot to NULL (in `_PySys_Init()`), after `PyType_Ready()` is called, which means that a slot wrapper is added to the type dict for the "tp_

[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread Andreas Stührk
Changes by Andreas Stührk : Added file: http://bugs.python.org/file23432/sys_flags__new__crash_2.7.patch ___ Python tracker ___ ___ Python-bug

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Mark Bucciarelli
Changes by Mark Bucciarelli : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10197] subprocess.getoutput fails on win32

2011-10-17 Thread bpoaugust
bpoaugust added the comment: A better fix, which supports multiple windows commands: if mswindows: pipe = os.popen('( ' + cmd + ' ) 2>&1', 'r') # Windows uses () rather than { } else: pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') This works with the command subprocess

[issue10197] subprocess.getoutput fails on win32

2011-10-17 Thread bpoaugust
Changes by bpoaugust : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-17 Thread Nadeem Vawda
Nadeem Vawda added the comment: Fixed for 2.7, 3.2 and 3.3. Thanks for the bug report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Ned Deily
Changes by Ned Deily : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10197] subprocess.getoutput fails on win32

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this is over-explaining an implementation detail and it makes the docs for id() harder to understand. Possibly there can be a FAQ entry about identity but the id() function itself is no place to go into the quirks of when new objects are created or

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: Version 7 of my patch. This patch is ready for a review: I implemented all TODO. Summary of the patch (of this issue): - fix mbcs encoding to handle correctly ignore & replace error handlers on all Windows version - the mbcs encoding now supports any error

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file23430/mbcs6.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue8668] Packaging: add a 'develop' command

2011-10-17 Thread David Barnett
Changes by David Barnett : -- nosy: +mu_mind ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-17 Thread David Barnett
New submission from David Barnett : The setup.py file currently generated by "pysetup generate-setup" fails to import the "codecs" module, and also uses a split_multiline function from distutils2/utils.py that's undefined in the setup script. -- assignee: tarek components: Distutils2 f

[issue1757072] Zipfile robustness

2011-10-17 Thread antitree
antitree added the comment: I'm still affected by this issue. A workaround or patch would be appreciated. -- nosy: +antitree ___ Python tracker ___ ___

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-17 Thread David Barnett
David Barnett added the comment: I'm getting this exact error when I run "python setup.py sdist", no matter what I do. Even if I just create a new project, type "1.0.0" for version, type "a" in all the other fields, and say "no" to every question; then run "pysetup generate-setup" and "python

[issue13170] distutils2 test failures

2011-10-17 Thread David Barnett
David Barnett added the comment: I looked into the ConfigTestCase.test_config failure, and it looks like it just needs the righthand edited to match the left. "package_data" lines are supposed to allow comma-separated lists of paths on the righthand. -- nosy: +mu_mind ___

[issue13170] distutils2 test failures

2011-10-17 Thread David Barnett
David Barnett added the comment: The ConfigTestCase.test_parse_extensions_in_config failure is a manifestation of http://bugs.python.org/issue6988. -- ___ Python tracker ___ __

[issue10320] printf %qd is nonstandard

2011-10-17 Thread bugs-pyt...@vendor.thewrittenword.com
bugs-pyt...@vendor.thewrittenword.com added the comment: Objects/stringobject.c already does something similar: else if (longlongflag) sprintf(s, "%" PY_FORMAT_LONG_LONG "d", va_arg(vargs, PY_LONG_LONG)); so it makes sense to do the sa

[issue10320] printf %qd is nonstandard

2011-10-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-17 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: I'm beginning to understand the reasoning. This is quite a bit more complex than I initially thought, and I appreciate the explanations. Phillip On Sun, Oct 16, 2011 at 10:53 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > I co

[issue13206] while loop vs for loop test

2011-10-17 Thread R Blackmore
New submission from R Blackmore : Using Python 3.2.2 on Windows 7 See attached file Was having problem with a program I was doing... couldn't get around issue unless I changed from "while" loop to "for" loop... WTF??? So restarted computer and then Python Shell and IDLE I wrote a very simple

[issue13206] while loop vs for loop test

2011-10-17 Thread R Blackmore
R Blackmore added the comment: for loop works correctly prints divisor 1 divisor 2 divisor 5 (original post incorrectly listed divisor 3,) -- ___ Python tracker ___ __

<    1   2