[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-13 Thread Joonas Kuorilehto
Joonas Kuorilehto added the comment: Senthil, I ported the tests to 3.2. The quoting problem seems to be the same in 3.2 and the new test fails. I don't know how the password managers handle the usernames and passwords in python3 urllib so I did not look at that. Could you please also port th

[issue13294] http.server: minor code style changes.

2012-01-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Eric - noted the point. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13294] http.server: minor code style changes.

2012-01-13 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue4106] multiprocessing occasionally spits out exception during shutdown

2012-01-13 Thread Yaniv Aknin
Yaniv Aknin added the comment: Ugh. Not 100% sure it's related, but I've been getting a similar traceback when running pip's test suite (python setup.py test) on OSX 10.6.8 with Python 2.7.2. Traceback (most recent call last): File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework

[issue13783] Clean up PEP 380 C API additions

2012-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: The current use of PyStopIteration_Create in genobject.c can probably be replaced with PyErr_SetObject(PyExc_StopIteration, value) anyway. -- ___ Python tracker ___

[issue13783] Clean up PEP 380 C API additions

2012-01-13 Thread Nick Coghlan
New submission from Nick Coghlan : Georg noted that the PEP 380 patch added a couple of new C interfaces without documenting them. These interfaces need to be either: 1. Documented; 2. Made private; or 3. Removed (if they're completely trivial) PyGen_FetchStopIterationValue: probably document,

[issue13780] make YieldFrom its own node

2012-01-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the review, Nick. -- Added file: http://bugs.python.org/file24233/yieldfromnode.patch ___ Python tracker ___

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread Santoso Wijaya
Santoso Wijaya added the comment: This does not only affect `append`, but also, `insert`, `extend`, etc. In fact, the list-like operations on Element are merely forwarded to its `_children` (a list) field. Should we really type check these methods' arguments each? Doesn't strike as Pythonic t

[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter

2012-01-13 Thread Faheem Mitha
Faheem Mitha added the comment: This is an issue with SQLAlchemy exceptions, and has been worked around by Mike Bayer in http://www.sqlalchemy.org/trac/ticket/2371 For the record, I think the real problem is that Python exception pickling is broken, see http://bugs.python.org/issue1692335 It

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: The docstring says: """ If ``ensure_ascii`` is false, then the return value will be a ``unicode`` instance subject to normal Python ``str`` to ``unicode`` coercion rules instead of being escaped to an ASCII ``str``. """ -- ___

[issue13780] make YieldFrom its own node

2012-01-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Interpreter Core stage: -> patch review type: -> enhancement versions: +Python 3.3 ___ Python tracker ___ __

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ezio, Raymond: is it the doc that is wrong? -- nosy: +ezio.melotti, rhettinger, terry.reedy stage: -> needs patch ___ Python tracker ___ _

[issue13725] regrtest does not recognize -d flag

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Erno: Okay, I just wanted to make sure you weren’t using it for your own projects, as regrtest is not an official public module. Thanks for your patches! -- ___ Python tracker ___

[issue13779] os.walk: bottom-up

2012-01-13 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 and 3.1 only get security fixes. I am only guessing that this is still an issue for 3.2. A test with 3.2.2 would be good. If this is really about pickling behavior w/r/t exceptions that cannot be changed then this should be closed. -- nosy: +alexa

[issue13749] socketserver can't stop

2012-01-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13744] raw byte strings are described in a confusing way

2012-01-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11633] Document that print may need explicit flushing

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8935a33773b9 by Terry Jan Reedy in branch '2.7': #11633 about buffering of print http://hg.python.org/cpython/rev/8935a33773b9 -- ___ Python tracker _

[issue13725] regrtest does not recognize -d flag

2012-01-13 Thread Erno Tukia
Erno Tukia added the comment: @Éric I just tried to fix, with tests, the imaplib bug (#13700) and I found this bug. And fixing this bug I happened to notice in the source code another bug (#13726). No problems with CPython test suite relating to these regrtest bugs. -- _

[issue13730] Grammar mistake in Decimal documentation

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the report. -- nosy: +terry.reedy versions: +Python 2.7, Python 3.2 ___ Python tracker ___ _

[issue13730] Grammar mistake in Decimal documentation

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e65183337ff by Terry Jan Reedy in branch '2.7': closes #13730 http://hg.python.org/cpython/rev/1e65183337ff New changeset bac18092c1dc by Terry Jan Reedy in branch '3.2': #13730 grammar fix http://hg.python.org/cpython/rev/bac18092c1dc New change

[issue11633] Document that print may need explicit flushing

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Bug fixes include doc improvements, so 2.7 is fair game. Thanks for your suggestion to not mention specific platforms. Let’s just backport the 3.2 text. -- ___ Python tracker

[issue13725] regrtest does not recognize -d flag

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: unittest.test.test_program.TestCommandLineArgs has a few test functions that do at least a minimal test of help and verbosity options and command line args. Should more be added for other options, like this and #13726? -- nosy: +ezio.melotti, michael.

[issue13726] regrtest ambiguous -S flag

2012-01-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list m

[issue13770] python3 & json: add ensure_ascii documentation

2012-01-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13723] Regular expressions: (?:X|\s+)*$ takes a long time

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe it is a known fact that repeated repeats, like (...+)*, make for slow matching (if they work at all) with the current re engine. [I would not be surprised if Perl does some special casing to (in effect at least) rewrite the re to your second version.

[issue13736] urllib.request.urlopen leaks exceptions from socket and httplib.client

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue13773] Support sqlite3 uri filenames

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> ghaering nosy: +eric.araujo, ghaering ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13722] "distributions can disable the encodings package"

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those lines were whitespace reformed by Antoine in 61466/61463. They previously came from 28325 which fixed #663074 (2003). I do not see any discussion in that issue of making the import optional. I suspect there is no test of Python working with no encodings ;-

[issue13770] python3 & json: add ensure_ascii documentation

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Most probably. The text model of Python has no bearing on the JSON spec, and 2.x as well as 3.x Pythons may want to output UTF-8 JSON or JavaScript-escaped ASCII-only JSON. What specific wording is an issue? -- nosy: +eric.araujo versions: -Python 3.4

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

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson, eric.araujo, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13763] rm obsolete reference in devguide

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: I understand the phrasing this way: The system is called Mercurial and commonly abbreviated “hg”, after the name of its main executable. So we say “the hg server”, “I like the branches concept in hg”, etc. -- nosy: +eric.araujo

[issue13760] ConfigParser exceptions are not pickleable

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> lukasz.langa nosy: +lukasz.langa stage: -> test needed versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___

[issue13756] Python3.2.2 make fail on cygwin

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: I am not sure building CPython with Cygwin is supported. -- nosy: +eric.araujo, loewis, mhammond ___ Python tracker ___ __

[issue13737] bugs.python.org/review's Django settings file DEBUG=True

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: (FWIW this tracker is used for what is distributed as CPython, please use the metatracker (link on the left “Report Tracker Problem”) for future reports. Thanks) -- nosy: +eric.araujo ___ Python tracker

[issue13725] regrtest does not recognize -d flag

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch; I can’t easily push these days but if nobody gets to it today I will commit this. BTW, are you finding these regrtest bugs while using it to run the CPython test suite or to run your tests? -- nosy: +eric.araujo ___

[issue12409] Moving "Documenting Python" to Devguide

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: I just replied to your python-dev email. I think you can update 2.7 to use Sphinx 1.0 as soon as you’re down to a handful of warnings. When the migration is done, you can add the documenting doc to the devguide and send a message to pydev to tell people to not

[issue11633] Document that print may need explicit flushing

2012-01-13 Thread Cameron Simpson
Cameron Simpson added the comment: Putting the wording into 2.7 might be nice, but I thought it was in bugfix only mode. Regarding UNIX only, I'd avoid it; any file may be buffered in almost any way on any platform. Saying an explicit flush call may be necessary for immediate output is _not_

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +Library (Lib), XML nosy: +santa4nt versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ __

[issue11633] Document that print may need explicit flushing

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Thank you sir. Should the doc edit be backported to the 2.7 docs, with a mention that it’s only on unix? -- ___ Python tracker ___ _

[issue13722] "distributions can disable the encodings package"

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13752] add a str.casefold() method

2012-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8473] doctest fails if you have inconsistent lineendings

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'update', do you mean to change +Due to the way releases are made on different platforms, we sometimes test +files on a *nix system with Windows file endings. Unfortunately, that leaves +some of the test files broken: to something like +Issue8473: Make sur

[issue1397474] timeit execution enviroment

2012-01-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Pytho

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread John Machin
New submission from John Machin : import xml.etree.ElementTree as et node = et.Element('x') node.append(not_an_Element_instance) 2.7 and 3.2 produce no complaint at all. 2.6 and 3.1 produce an AssertionError. However cElementTree in all 4 versions produces a TypeError. Please fix 2.7 and 3.2 E

[issue13752] add a str.casefold() method

2012-01-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed patch. -- Added file: http://bugs.python.org/file24232/casefolding.patch ___ Python tracker ___ __

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

2012-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +nadeem.vawda versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mail

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've regenerated the diff a couple of times (once after rebasing to not undo Amaury's changes and another after correcting the whitespace). -- keywords: +needs review ___ Python tracker

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24231/577b717055bc.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file24230/55d164f36389.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Alex Regueiro
Alex Regueiro added the comment: That's very good news. I suspected MS has written a wrapper over this somewhere to accommodate for this bug, and it was just a matter of using the right API. I look forward to seeing this in the next 2.7 release. -- ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please regenerate your diff file, it undoes an unrelated fix :-) -- ___ Python tracker ___ ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- keywords: +patch Added file: http://bugs.python.org/file24229/f3c7f4243a04.diff ___ Python tracker ___

[issue6727] ImportError when package is symlinked on Windows

2012-01-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: The MS support engineer has come back confirming the bug and suggesting using the MS C API instead of wstat for doing directory detection. It's still possible they'll fix the bug in an upcoming update, but even if they do, it will leave a window of broken sy

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Paul Boddie
Paul Boddie added the comment: Note that Python 3 provided a good opportunity for doing the minimal amount of work here - just stop things from accessing remote DTDs - but I imagine that even elementary standard library improvements of this kind weren't made (let alone the more extensive stan

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

2012-01-13 Thread Gregory P. Smith
New submission from Gregory P. Smith : gzip.GzipFile accepts a fileobj parameter with an open file object. Unfortunately gzip requires a filename be embedded in the gzip file and the gzip module code uses fileobj.name to get that. This results in the fake "" name from posixmodule.c being embed

[issue13753] str.join description contains an incorrect reference to argument

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see the two as really one issue -- minor corrections to the string section of stdtype.rst -- that py.user happened to have filed as two. But I could have left out the closes and done at least one explicitly. Or I could have closed this and said I was consolid

[issue8881] socket.getaddrinfo() should return named tuples

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: A reasonable request indeed. -- stage: -> needs patch type: -> enhancement versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

[issue8881] socket.getaddrinfo() should return named tuples

2012-01-13 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: I think the part which could possibly a problem is addressed in http://hg.python.org/cpython/rev/384f73a104e9/. Bearing in mind that direct usage for string interpolation is a pretty strange use for the result of getaddrinfo. -- nosy: +flub

[issue13774] json.loads raises a SystemError for invalid encoding on 2.7.2

2012-01-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This will be fixed in the next 2.7.3, thanks for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue13774] json.loads raises a SystemError for invalid encoding on 2.7.2

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9680746ae4a by Amaury Forgeot d'Arc in branch '2.7': Issue #13774: json: Fix a SystemError when a bogus encoding is passed to http://hg.python.org/cpython/rev/a9680746ae4a -- nosy: +python-dev ___ Pytho

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Well, the issue is clearly underspecified, and different people read different things into it. I take your citation of the W3C blog entry that you are asking that caching should be employed. I read the issue entirely different, namely that by default no atte

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Brian Visel
Brian Visel added the comment: Of course, you can do as you like. http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic/ -- ___ Python tracker ___ __

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: And my position still remains the same: this is not a bug. Applications affected by this need to use the APIs that are in place precisely to deal with this issue. So I propose to close this report as invalid. --

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-13 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2012-01-13 Thread Georg Brandl
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. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker

[issue13753] str.join description contains an incorrect reference to argument

2012-01-13 Thread Georg Brandl
Georg Brandl added the comment: You put '*' instead of '#' in the commit message. Also, I don't think you should close more than one issue in one commit. -- nosy: +georg.brandl ___ Python tracker

[issue13737] bugs.python.org/review's Django settings file DEBUG=True

2012-01-13 Thread Georg Brandl
Georg Brandl added the comment: While the actual code may be accessible to everyone, the server configuration (paths etc. -- just look at the page; at least the session secret key and passwords are masked by Django) are not, and exposing that can be a security problem as well. And while I ag

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Brian Visel
Brian Visel added the comment: ..still an issue. -- nosy: +Brian.Visel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13746] ast.Tuple's have an inconsistent "col_offset" value

2012-01-13 Thread Georg Brandl
Georg Brandl added the comment: This is because the parentheses don't really belong to the tuple literal. You could just as well write b = 1, 3.14, 'abc', u'XYZ' In other cases, the parentheses may be needed for grouping purposes (e.g. in function calls), but they still are only for grouping

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Removed then, thank you. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset f36c6f5f9d61 by Antoine Pitrou in branch '3.2': Issue #13764: remove outdated script Misc/build.sh http://hg.python.org/cpython/rev/f36c6f5f9d61 New changeset 609482c6710e by Antoine Pitrou in branch 'default': Issue #13764: remove outdated script

[issue13761] Add flush keyword to print()

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3120a988a1a3 by Georg Brandl in branch 'default': Closes #13761: add a "flush" keyword argument to print(). http://hg.python.org/cpython/rev/3120a988a1a3 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected st

[issue13728] Description of -m and -c cli options wrong?

2012-01-13 Thread Sandro Tosi
Sandro Tosi added the comment: Ah indeed, I could have looked at sys.path doc myself after all.. sorry for the noise. -- resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Neal Norwitz
Neal Norwitz added the comment: If this script isn't used any more, it should be removed. On Fri, Jan 13, 2012 at 8:31 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > I think the script was used by the "period regression test" crontask that > used to send emails to python-

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now pushed in. Thanks for the reviews! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87331661042b by Antoine Pitrou in branch 'default': Issue #13645: pyc files now contain the size of the corresponding source http://hg.python.org/cpython/rev/87331661042b -- ___ Python tracker

[issue12409] Moving "Documenting Python" to Devguide

2012-01-13 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Éric, thanks for the review. On Fri, Jan 13, 2012 at 18:13, Éric Araujo wrote: > > Éric Araujo added the comment: > > About the devguide patch: > > a) The part about C roles and directives should probably mention version > specifics (:cmacro: for 2.7, :c:mac

[issue1475523] gettext breaks on plural-forms header

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: -Add tests for some scripts in Tools/scripts ___ Python tracker ___ ___ Python-bugs-list

[issue1475523] gettext breaks on plural-forms header

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +Add tests for some scripts in Tools/scripts ___ Python tracker ___ ___ Python-bugs-list m

[issue13447] Add tests for some scripts in Tools/scripts

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- title: Add tests for Tools/scripts/reindent.py -> Add tests for some scripts in Tools/scripts ___ Python tracker ___

[issue12409] Moving "Documenting Python" to Devguide

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: About the devguide patch: a) The part about C roles and directives should probably mention version specifics (:cmacro: for 2.7, :c:macro: for 3.x) — unless you make this bug dependent on updating Sphinx to 1.0 for 2.7 and then all versions use new-style :c:. b

[issue12415] Missing: How to checkout the Doc sources

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +Moving "Documenting Python" to Devguide ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One is possibly deprecating path_mtime() so people don't waste time > implementing it (we actually never need to remove it thanks to the > ABC; otherwise we need to make sure the docs strongly state to only > bother with path_stats()). Ok, I saw I also forgot

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the script was used by the "period regression test" crontask that used to send emails to python-checkins. The crontask is offline and the script probably hasn't been used by anyone else, so we could indeed remove it. -- components: +Demos and

[issue13473] Add tests for files byte-compiled by distutils[2]

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Nick, would you have a bit of time to read my OP and reply? -- ___ Python tracker ___ ___ Python-bugs-

[issue11682] PEP 380 reference implementation for 3.3

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: Kudos! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Almar Klein
Almar Klein added the comment: This issue is posted at http://projects.scipy.org/numpy/ticket/2018 -- resolution: invalid -> status: closed -> open ___ Python tracker ___ _

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Éric Araujo
Éric Araujo added the comment: OK, thanks. Please add a link to the Numpy or Cython bug report here. -- assignee: tarek -> eric.araujo resolution: -> invalid stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Almar Klein
Almar Klein added the comment: Ok, I went to prepare a minimal example that does not use Cython nor Numpy. And then the problem was gone. Even more so, my fix would cause a problem, because somewhere quotes are placed around the entire command: ...link.exe /DLL "/LIBPATH:C:\Program Files (x86

[issue12409] Moving "Documenting Python" to Devguide

2012-01-13 Thread Georg Brandl
Georg Brandl added the comment: We'll probably have to redirect all /documenting in Apache anyway. -- ___ Python tracker ___ ___ Pyth

[issue13780] make YieldFrom its own node

2012-01-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : As promised in a review a while ago of PEP 380. -- files: yieldfromnode.patch keywords: patch messages: 151172 nosy: benjamin.peterson, ncoghlan priority: normal severity: normal status: open title: make YieldFrom its own node Added file: http://bu

[issue11682] PEP 380 reference implementation for 3.3

2012-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: Committed for 3.3: http://hg.python.org/cpython/rev/d64ac9ab4cd0 Thanks to Greg for the initial effort on the PEP and reference implementation and to all involved in updating the original patch for 3.3 and getting the tests and documentation to an acceptable st

[issue13779] os.walk: bottom-up

2012-01-13 Thread patrick vrijlandt
New submission from patrick vrijlandt : PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. >>> import os >>> os.makedirs("g:/a/b/c") >>> os.listdir("g:/a

[issue6721] Locks in python standard library should be sanitized on fork

2012-01-13 Thread lesha
lesha added the comment: Just wanted to say that I spent something like 8 hours debugging a subprocess + threading + logging deadlock on a real production system. I suspected one of my locks at first, but I couldn't find any. The post-fork code was very simple, and I didn't suspect that logg

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Locks in python standard library should be sanitized on fork ___ Python tracker

[issue13703] Hash collision security issue

2012-01-13 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Added some small comments in http://bugs.python.org/review/13703/show. -- ___ Python tracker ___ ___

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread lesha
lesha added the comment: Actually, I think it does not matter which thread owns the lock, it is still invalid to try to acquire a lock that was grabbed by the fork() parent. Why? Because the fork() parent cannot free the child's copy of the lock anyway, and it's guaranteed to be dead also. -

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread lesha
New submission from lesha : Here is a great description of the issue: http://docs.oracle.com/cd/E19683-01/806-6867/gen-1/index.html This enhancement proposes a way to make Python more resistant to this kind of deadlock. Consider this program: import threading import subprocess import time

  1   2   >