[issue13791] Other versions

2012-01-15 Thread Matt Joiner
New submission from Matt Joiner : 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 Unreleased, developmen

[issue13788] os.closerange optimization

2012-01-15 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> subprocess close_fds behavior should only close open fds ___ Python tracker ___

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

2012-01-15 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > New submission from Georg Brandl : > > 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 http://hg.python.org/devguide/file/5d4a90e568ed/docquality.rst, so I got curious and found

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

2012-01-15 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: ok, the url is http://hg.python.org/devguide/file/5d4a90e568ed/docquality.rst -- ___ Python tracker ___ _

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

2012-01-15 Thread Jed Davis
Changes by Jed Davis : -- nosy: +jld ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb
Ferringb 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, and has a daft open

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Charles-François Natali
Charles-François Natali 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 it's more the

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb
Ferringb added the comment: >The only question is: do other Unix also have /proc//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 procfs, or making us

[issue13788] os.closerange optimization

2012-01-15 Thread Georg Brandl
Georg Brandl added the comment: fwiw, s/MSDOS_WINDOWS/MS_WINDOWS/. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue13521] Make dict.setdefault() atomic

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

[issue13788] os.closerange optimization

2012-01-15 Thread Gregory P. Smith
Gregory P. Smith 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. http://hg.python.org/cpython/file/050c07b31192/Modules/_posixsubprocess.c#l118 -

[issue13722] "distributions can disable the encodings package"

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Filip Gruszczyński
Filip Gruszczyński 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 ___ _

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ross Lagerwall
Ross Lagerwall 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 added the comment: Looks good to me. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl
Changes by Georg Brandl : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24245/2b7bf4e5cb9f.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24246/1cdb64480494.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs
Jason R. Coombs 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 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 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 make eq_count a c

[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Martin v . Löwis
Martin v. Löwis 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 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 ___

[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Juan Javier
Juan Javier 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 the idea of having a fut

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

2012-01-15 Thread py.user
py.user added the comment: also strange(unobvious) behavior: >>> '{0:.3s}'.format((i for i in (1, 2, 3))) '>> '{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 'generator' like in

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

2012-01-15 Thread R. David Murray
R. David Murray 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 implemented by objects

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

2012-01-15 Thread R. David Murray
R. David Murray 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 with the description

[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou 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 states could for

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

2012-01-15 Thread Kay Hayen
New submission from Kay Hayen : 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 well so far,

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

2012-01-15 Thread Antoine Pitrou
Antoine Pitrou 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 __

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

2012-01-15 Thread py.user
py.user 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 ("") produces the sam

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

2012-01-15 Thread py.user
py.user 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 __

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

2012-01-15 Thread R. David Murray
R. David Murray 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 all possible python

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

2012-01-15 Thread Roundup Robot
Roundup Robot 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 '3.2': #13039 allow proper deletio

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

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy 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. -- assig

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

2012-01-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-

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

2012-01-15 Thread Jim Jewett
Jim Jewett 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 might occupy. By usi

[issue13588] Change name of internal closure functions in importlib

2012-01-15 Thread Berker Peksag
Berker Peksag added the comment: Hi Brett, did you have a chance to review the patch I submitted? -- ___ Python tracker ___ ___ Pytho

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

2012-01-15 Thread Roundup Robot
Roundup Robot 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 Meador Inge in branch 'default': Issue

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

2012-01-15 Thread Meador Inge
Changes by Meador Inge : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

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

2012-01-15 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2012-01-15 Thread Roundup Robot
Roundup Robot 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 'default': merge 3.2 (#13766) http://hg

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

2012-01-15 Thread py.user
py.user 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 contain “replacement f

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

2012-01-15 Thread Éric Araujo
Éric Araujo 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 doc sidebar vers

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

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy 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. -- ___ Python

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

2012-01-15 Thread Éric Araujo
Éric Araujo added the comment: IMO this is a bug and should be fixed in stable versions too. -- nosy: +eric.araujo ___ Python tracker ___ ___

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

2012-01-15 Thread Jim Jewett
New submission from Jim Jewett : 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, while hasattr, getattr, a

[issue13794] Copyright Year - Chnage it to 2012 please

2012-01-15 Thread AJ
New submission from AJ : 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 : -- nosy: +terry.reedy priority: low -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue13078] IDLE: Python Crashes When Saving Or Opening

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: How difficult would it be to add tests for this? -- ___ Python tracker ___ ___ Python-bugs-list maili

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

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2012-01-15 Thread Éric Araujo
Éric Araujo 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 versions 3.1 and

[issue13794] Copyright Year - Change it to 2012 please

2012-01-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- 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 ___ Python track

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

2012-01-15 Thread Ezio Melotti
Ezio Melotti 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' though). -- k

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

2012-01-15 Thread Kay Hayen
Kay Hayen 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 is "0", wher

[issue13695] "type specific" to "type-specific"

2012-01-15 Thread Roundup Robot
Roundup Robot 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 of typos in the doc. http://hg.py

[issue13695] "type specific" to "type-specific"

2012-01-15 Thread Ezio Melotti
Ezio Melotti 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 status: open -> closed _

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg150397 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg150399 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Terry J. Reedy
Terry J. Reedy 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 though of opening

[issue13715] typo in unicodedata documentation

2012-01-15 Thread Roundup Robot
Roundup Robot 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': #13715: fix typo in unicodedata doc.

[issue13715] typo in unicodedata documentation

2012-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo
Éric Araujo 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 module. -

[issue13695] "type specific" to "type-specific"

2012-01-15 Thread Boštjan Mejak
Boštjan Mejak 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 the hyphen between w

[issue13695] "type specific" to "type-specific"

2012-01-15 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: ezio.melotti -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11906] test_argparse failure in interactive mode

2012-01-15 Thread Ezio Melotti
Ezio Melotti added the comment: This was committed on py3k in 4f8c24830a5c. Terry, can the issue be closed? -- ___ Python tracker ___ ___

[issue13795] CDATA Element missing

2012-01-15 Thread Pedro Andres Aranda Gutierrez
New submission from Pedro Andres Aranda Gutierrez : 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: http://stackoverflow.com/questions/174890/how-to-output-cdat

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

2012-01-15 Thread jbitcm-
jbitcm- added the comment: I am working on it -- nosy: +jbitcm- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : 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): def __init__(self,

[issue12600] Support parameterized TestCases in unittest

2012-01-15 Thread Mark Diekhans
Mark Diekhans 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 it, but they tend to

[issue13275] Recommend xml.etree for XML processing

2012-01-15 Thread Éric Araujo
Éric Araujo 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 ___ _