[issue13791] Other versions

2012-01-15 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: The navigation region at http://docs.python.org/dev/ should list Other versions instead of Old versions as the in development docs are also available here. Docs for other versions Python 2.7 (stable) Python 3.2 (stable) Old versions

[issue13788] os.closerange optimization

2012-01-15 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - subprocess close_fds behavior should only close open fds ___ Python tracker rep...@bugs.python.org

[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-15 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: New submission from Georg Brandl ge...@python.org: Why is that a concern?  It is not needed for the doc build and intended to be used on python.org only. It's mentioned in

[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-15 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: ok, the url is http://hg.python.org/devguide/file/5d4a90e568ed/docquality.rst -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13768

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-15 Thread Jed Davis
Changes by Jed Davis j...@panix.com: -- nosy: +jld ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13781 ___ ___ Python-bugs-list mailing list

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb
Ferringb ferri...@gmail.com added the comment: In #13788, I've uploaded a patch modifying closerange along the same lines as this discussion; someone w/ appropriate rights should set dependencies as needed. Either way, here's a question: does anyone actually know of a unix that does procfs,

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Either way, here's a question: does anyone actually know of a unix that does procfs, and has a daft opendir implementation as described below? Aka, are we actually worrying about something relevant, or just hypotheticals? I think

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb
Ferringb ferri...@gmail.com added the comment: The only question is: do other Unix also have /proc/pid/fd? e.g. FreeBSD, OpenBSD. That's especially important because FreeBSD can have a huge RLIMIT_NOFILE by default. Unless the OS gives some way to optimize the process (whether inferring from

[issue13788] os.closerange optimization

2012-01-15 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: fwiw, s/MSDOS_WINDOWS/MS_WINDOWS/. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13788 ___

[issue13521] Make dict.setdefault() atomic

2012-01-15 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: No more double lookup. -- Added file: http://bugs.python.org/file24244/13521_27_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13521

[issue13788] os.closerange optimization

2012-01-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Reopening. Comments added to the code review. This issue is independent of the subprocess module issue in #8052. The _posixsubprocess.c has its own fd closing loop.

[issue13722] distributions can disable the encodings package

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, that code is from bc861add5d71. But the error was also muted in the initial checkin in d0e06efb3165. In any case, the silencing should be removed, both in 3.2 and 3.3 IMO. -- ___ Python

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Bump! It's almost 3 months since I posted the patch, so I would like to remind about this bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: FreeBSD has a /dev/fd as well as a procfs (deprecated AFAIK). However, both may not be mounted so a patch would *need* to at least fallback to the current functionality. -- ___ Python tracker

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good to me. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___ ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file24245/2b7bf4e5cb9f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file24246/1cdb64480494.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've created yet another patch (1cdb64480494) which adds a regression test under Python 2.7 to demonstrate that the fix works (based on test_import_symlink_package.py). -- ___ Python tracker

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've created yet another patch (1cdb64480494) which adds a regression test under Python 2.7 to demonstrate that the fix works (based on test_import_symlink_package.py). -- ___ Python tracker

[issue13521] Make dict.setdefault() atomic

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: No more double lookup. Your patch doesn't check hashed2.eq_count. Since the dict specification doesn't say on which instance __eq__ will be called when doing a lookup, the patch should either check ``hashed1.eq_count + hashed2.eq_count``, or

[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: See PCbuild/readme.txt, and follow its instructions scrupulously. If you use a different build procedure, or different Tcl sources, you are on your own. -- ___ Python tracker

[issue13589] Aifc low level serialization primitives fix

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, can you explain why infinity and NaN can end up in AIFC files? That said, the patch looks ok to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Juan Javier
Juan Javier jjdomingu...@gmail.com added the comment: Hello, You're right, explaining the difference between CANCELLED and CANCELLED_AND_NOTIFIED is gong to be hard and might be confusing. I also agree that there is no precedent for storing the history of something, and I don't like either

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user
py.user port...@yandex.ru added the comment: also strange(unobvious) behavior: '{0:.3s}'.format((i for i in (1, 2, 3))) 'ge' '{0:.3s}'.format(range(10)) 'ran' '{0:.3s}'.format(None) 'Non' it would be better to print an error: ValueError: Unknown format code 's' for object of type

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, it wouldn't. I expect {}.format(x) to produce something for an arbitrary x. Breaking that would break a fundamental Python contract. Improving the error message for 'd' is more possible. Perhaps the format code 'd' is not

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, and when you say there is nothing in the documentation about the 's' case for arbitrary objects, it is made clear in various places that every object has an str, which defaults to its repr if it has no specific __str__. Combine that

[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The idea is to have access to the current state of the Future using a property instead of calling several methods (done, cancelled, etc.). I think one point of having methods is that querying is decoupled from implementation. The internal

[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Kay Hayen
New submission from Kay Hayen kayha...@gmx.de: Hello, I am the author of the Python compiler Nuitka. It has the ability to immediately execute the created executable file. For that I am using os.execl to immediately replace the compiler and run the freshly created binary instead. This worked

[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Python's os.execl simply calls Windows' execv() function, which AFAIK has nothing to do with cmd.exe. -- nosy: +brian.curtin, pitrou, tim.golden ___ Python tracker rep...@bugs.python.org

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user
py.user port...@yandex.ru added the comment: R. David Murray wrote: it is made clear in various places that every object has an str here: http://docs.python.org/py3k/library/string.html#format-specification-mini-language 3rd paragraph: A general convention is that an empty format string ()

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user
py.user port...@yandex.ru added the comment: also here: http://docs.python.org/py3k/library/string.html#format-examples there is no example with list or tuple to know exactly how they are formatted -- ___ Python tracker rep...@bugs.python.org

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: an empty format string is exactly what I was talking about. Putting nothing between the {}'s is an empty format string. I can't think of any way to make that wording clearer. The format docs should not contains examples of the repr of

[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 95b704cb7f7c by Terry Jan Reedy in branch '2.7': #13039 allow proper deletion of ' ' in IDLE editor windows. http://hg.python.org/cpython/rev/95b704cb7f7c New changeset c6e7473b1fb5 by Terry Jan Reedy in branch

[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I tested with 3.2.2 on Win7. Deletes prompt in editor window with both backspace and delete keys, but not prompt in shell. EditorWindow.py is identical in all three branches, at least in this area, so pushed. One nuisance gone. Thanks Roger.

[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13039 ___

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-15 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Why was the delta-processing removed from the casing functions? As best I can tell, the whole point of going through multiple levels of indirection (courtesy splitbins) is to maximize compression and minimize the amount of cache that unicode

[issue13588] Change name of internal closure functions in importlib

2012-01-15 Thread Berker Peksag
Berker Peksag berker.pek...@gmail.com added the comment: Hi Brett, did you have a chance to review the patch I submitted? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13588 ___

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1c0c6fa7341c by Meador Inge in branch '3.2': Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. http://hg.python.org/cpython/rev/1c0c6fa7341c New changeset c0660d7cc1fe by

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13629 ___

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 03ea95e3b497 by Benjamin Peterson in branch 'default': delta encoding of upper/lower/title makes a glorious return (#12736) http://hg.python.org/cpython/rev/03ea95e3b497 --

[issue13766] explain the relationship between Lib/lib2to3/Grammar.txt and Grammar/Grammar

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8f7e707ab729 by Benjamin Peterson in branch '3.2': explain why we need this grammar file (closes #13766) http://hg.python.org/cpython/rev/8f7e707ab729 New changeset ecc998ec8c6f by Benjamin Peterson in branch

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user
py.user port...@yandex.ru added the comment: R. David Murray wrote: Putting nothing between the {}'s is an empty format string. this is an empty replacement field here: http://docs.python.org/py3k/library/string.html#format-string-syntax the definition of format string: Format strings

[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: To avoid repetition (“Docs for other versions” — “Other versions”), I’d propose changing “Old versions” to “All versions”. -- nosy: +eric.araujo, ezio.melotti, sandro.tosi, terry.reedy title: Other versions - Reword “Old versions” in the

[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I believe this should be closed in favor of #13122. The sidebar needs more change than just this one thing. See my proposal for a version-independent sidebar in msg150907, which Georg B. approved of. --

[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

2012-01-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IMO this is a bug and should be fixed in stable versions too. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12705 ___

[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-15 Thread Jim Jewett
New submission from Jim Jewett jimjjew...@gmail.com: The documentation for hasattr, getattr, and delattr state that they are equivalent to object.attribute access; this isn't quite true, because object.attribute uses a NFKC-normalized version of the string as only the secondary location,

[issue13794] Copyright Year - Chnage it to 2012 please

2012-01-15 Thread AJ
New submission from AJ amanj...@gmail.com: Copyright in the footer on *.python.org says -2011. I believe this can be changed to 2012? -- components: None messages: 151321 nosy: amanjeev priority: normal severity: normal status: open title: Copyright Year - Chnage it to 2012 please

[issue6528] builtins colored as keyword at beginning of line

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +terry.reedy priority: low - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6528 ___

[issue13078] IDLE: Python Crashes When Saving Or Opening

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13078 ___ ___

[issue13052] IDLE: replace ending with '\' causes crash

2012-01-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: How difficult would it be to add tests for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13052 ___

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2134 ___ ___

[issue13465] A Jython section in the dev guide would be great

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13465 ___ ___

[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Agreed (I’d just suggest finding something better than “Everything else” :-) -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Out of date links in the sidebar of the documentation index of

[issue13794] Copyright Year - Change it to 2012 please

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti components: -None nosy: +ezio.melotti stage: - needs patch title: Copyright Year - Chnage it to 2012 please - Copyright Year - Change it to 2012 please type: - enhancement

[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a patch. I found a similar instance that says unicode string or integer address expected instead of %s instance, but it's inside an if (!PyUnicode_Check(value)) {} so it should be ok (unicode string could be replaced to 'str'

[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Kay Hayen
Kay Hayen kayha...@gmx.de added the comment: Well, I saw that code, but expected that there must be more to it. But I found out, the bug is actually caused by at least MinGW. See below how I build a program with it, that does execl on an error exiting program and then the errorlevel variable

[issue13695] type specific to type-specific

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2dd96cf324ee by Ezio Melotti in branch '2.7': #13695: fix a couple of typos in the doc. http://hg.python.org/cpython/rev/2dd96cf324ee New changeset bff9ab281385 by Ezio Melotti in branch '3.2': #13695: fix a couple

[issue13695] type specific to type-specific

2012-01-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I fixed both 'type-specific' and 'Python 3'. The python-distribute link is not part of our documentation so I can't fix it. -- assignee: docs@python - ezio.melotti resolution: - fixed stage: needs patch - committed/rejected

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150397 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13443 ___

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150399 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13443 ___

[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I have read readme.txt, more than once. It seems a bit out-of-date. Parts of it I have trouble understanding, or at least, being sure I have understood. It seems to disagree with the devguide about whether to build debug or release builds. I

[issue13715] typo in unicodedata documentation

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b4dac315feef by Ezio Melotti in branch '2.7': #13715: fix typo in unicodedata doc. Patch by Eli Collins. http://hg.python.org/cpython/rev/b4dac315feef New changeset f50ff6dd6b41 by Ezio Melotti in branch '3.2':

[issue13715] typo in unicodedata documentation

2012-01-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report and the patch! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry, my messages could be confusing. What I meant is: While I think that Antoine’s doc changes were clear improvements, in the specific case of the functional howto there were good arguments in favor of keeping the part about the functional

[issue13695] type specific to type-specific

2012-01-15 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: There's also one more typo in the doc for cmp_to_key() function. Fix the first sentence Transform an old-style comparison function to a key-function. to Transform an old-style comparison function to a key function. (note the removal of

[issue13695] type specific to type-specific

2012-01-15 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: ezio.melotti - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695 ___

[issue11906] test_argparse failure in interactive mode

2012-01-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This was committed on py3k in 4f8c24830a5c. Terry, can the issue be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___

[issue13795] CDATA Element missing

2012-01-15 Thread Pedro Andres Aranda Gutierrez
New submission from Pedro Andres Aranda Gutierrez paag...@gmail.com: When creating ElementTree objects that hold SVG drawings, I need a CDATA object similar to the ProcessingInstruction object. There was a circumvention of the problem for Python 2.6:

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-15 Thread jbitcm-
jbitcm- chakrapacka...@gmail.com added the comment: I am working on it -- nosy: +jbitcm- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___

[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-15 Thread Pedro Andres Aranda Gutierrez
New submission from Pedro Andres Aranda Gutierrez paag...@gmail.com: I have extended the xml.etree.ElementTree.Element class and pass the text attribute in the arguments. This creates much more compact code: import xml.etree.ElementTree as xml class Element(xml.Element):

[issue12600] Support parameterized TestCases in unittest

2012-01-15 Thread Mark Diekhans
Mark Diekhans ma...@kermodei.com added the comment: The lack of the ability to pass a parameter to a test case is a very frustrating restriction with unittest. The frequent need if for a database connection for testing database related classes. Yes, there are lots of other ways to work around

[issue13275] Recommend xml.etree for XML processing

2012-01-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (I haven’t found an elegant XML lib, and have not yet needed to look for one as I touch very little XML.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13275