[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Mark Dickinson
Mark Dickinson added the comment: fold-0.patch looks good to me, but why do you include tests only for the float case (-0.0) and not the integer case (-0)? Style nitpick: "def negzero(): return -(1.0-1.0)" should be on two source lines, not one. -- _

[issue11009] urllib.splituser is not documented

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: splituser is an internal API. It has never been exposed through Docs anytime and there are good reasons for that too. We never want internal helper functions (even tough they don't startwith _) be exposed through docs as it may clutter the API Documentation.

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: > http://lwn.net/Articles/216948/ > Why kernel.org is slow That's all independent of the issue at hand. Whether or not getdents is slow doesn't really matter here because we need to call getdents, anyway: it's the only API to get at the directory contents, ite

[issue11009] urllib.splituser is not documented

2011-03-11 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Senthil, what do you think about "documenting" those methods are private ones in the urllib code (if not using _, at least a short comment above them)? at least we have a mark it's an implementation decision and in case someone has the crazy idea :) to scan t

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-11 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: My benchmarks show that xlistdir() gives the only memory usage advantage on large directories. No speed gain so far - maybe my patch is wrong. -- ___ Python tracker ___

[issue11465] Set documentation: Link to wikipedia

2011-03-11 Thread Thomas Guettler
New submission from Thomas Guettler : A link from http://docs.python.org/library/stdtypes.html#set.union to http://en.wikipedia.org/wiki/Union_%28set_theory%29 would help young people to understand sets. Of course it is the same for intersection(), difference(), and symmetric_difference()

[issue11435] Links to source code should now point to hg repo

2011-03-11 Thread SilentGhost
SilentGhost added the comment: This issue is not about the redirects. It is about links in documentation. The redirect is great for the links in the wild, the online documentation, however, could and should use proper links without any redirects. Georg, or whoever is maintainer of Doc/tools/s

Re: [issue11465] Set documentation: Link to wikipedia

2011-03-11 Thread Senthil Kumaran
Only for relatively uncommon concepts like "Moving Average" and some other cases used in collections module hyperlink to a general article helps. Set theory is a commonly understood concept and link to wikipedia article may not be required. It can be left to the user to find out more, if they want

[issue11009] urllib.splituser is not documented

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sandro, I don't think is a required. Those functions serve the purpose of making the module code modular. They are helper functions for the module and are not really useful outside of it, when used standalone. Think about , splituser, splitpath, splitport etc e

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-03-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11464] Call Mac API Crash via ctypes

2011-03-11 Thread Ned Deily
Ned Deily added the comment: On OS X 10.6, the code segment segfaults for me in 64-bit mode but not in 32-bit mode. If you are using a 64-bit/32-bit Python 3.2, try running your failing code in 32-bit mode: arch -i386 python3.2 The 3.1.3 Python is most likely a 32-bit-only executable.

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : Here is a patch which cures the following ResourceWarning: unclosed file <_io.TextIOWrapper name=3 mode='w+' encoding='UTF-8'> (This only fixes the bug, not the rest of this code...) I did not try it out, but according to some hg cat's this also app

[issue11373] Fix 2 new typos in the docs

2011-03-11 Thread Boštjan Mejak
Boštjan Mejak added the comment: Georg, please fix all the branches. Also, the online docs are still not updated with this fix. -- ___ Python tracker ___ __

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Style nit: you have tabs in your code. Please only use spaces for indentation. On the principle, looks worthwhile, and the changes don't look really complicated. -- nosy: +mark.dickinson ___ Python tracker

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-03-11 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Attached first attempt to close this issue. Are there enough checks? It passes: os.spawnl(os.P_WAIT, '') os.spawnl(os.P_WAIT, 'path') os.spawnl(os.P_WAIT, 'path', '') -- keywords: +patch nosy: +nvetoshkin Added file: http://bugs.python.org/file21080/i

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: This new patch (11466.2.patch) also includes the #11236 patch, because if ^C would work as expected then that would not close the fd either. It's identical to the first patch beside that. -- Added file: http://bugs.python.org/file21081/11466.

[issue11435] Links to source code should now point to hg repo

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c1e779002d3 by Ezio Melotti in branch '3.2': #11435: Update the links generated by the source directive to use hg.python.org. http://hg.python.org/cpython/rev/3c1e779002d3 -- nosy: +python-dev ___ Pytho

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I do consider this as a bug, too (you hit ^C - and it doesn't help!)! I've opened #11466 due to a different problem, but since raising (the expected) KeyboardInterrupt would trigger that problem, too, i've included stripping termios.ISIG in file21081. -

[issue11435] Links to source code should now point to hg repo

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Now it's fixed in 3.2 and 3.3. Thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker

[issue11426] CSV examples can't close their files

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Patch looks good to me. The quotes are somewhat inconsistent (sometimes '' and sometimes ""), if you want you can "fix" them while you are at it. -- ___ Python tracker

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
New submission from Bastian Kleineidam : When using a javascript URL with only digits as paths, the urlsplit() functions behaves different in Python 2.7 than in 2.6: $ python2.6 -c "import urlparse; print urlparse.urlsplit('javascript:123')" SplitResult(scheme='javascript', netloc='', path='123

[issue11426] CSV examples can't close their files

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2a73d65422a by Eli Bendersky in branch 'default': Issue #11426: use 'with' statements on open files in CSV examples http://hg.python.org/cpython/rev/f2a73d65422a -- nosy: +python-dev ___ Python tracker

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
Changes by Bastian Kleineidam : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11426] CSV examples can't close their files

2011-03-11 Thread SilentGhost
SilentGhost added the comment: Related issue #10461 -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11426] CSV examples can't close their files

2011-03-11 Thread Eli Bendersky
Eli Bendersky added the comment: SilentGhost: yep, thanks for the reminder :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-03-11 Thread Alex
Changes by Alex : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Antoine, sure, I'll fix it with any other suggested changes if patches will be accepted. -- ___ Python tracker ___ _

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
Bastian Kleineidam added the comment: The behaviour change is caused by the fix for issue #754016. -- ___ Python tracker ___ ___ Pyth

[issue11454] email.message import time

2011-03-11 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- title: urllib.request import time -> email.message import time ___ Python tracker ___ ___ Python-bugs-l

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: Mark, looks better now? -- Added file: http://bugs.python.org/file21082/fold-0.patch ___ Python tracker ___ _

[issue11426] CSV examples can't close their files

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cb0a8f5c952 by Eli Bendersky in branch 'default': Issue #11426: use 'with' statements on open files in CSV examples http://hg.python.org/cpython/rev/4cb0a8f5c952 New changeset d54e9c4fcd43 by Eli Bendersky in branch '3.1': Issue #11426: use 'with'

[issue8995] Performance issue with multiprocessing queue (3.1 VS 2.6)

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: -> 2.6: ('Using queue.Queue with small data: ', 0.77207708358764648) ('Using queue.Queue with huge data : ', 0.78139781951904297) ('Using multiprocessing.Queue with small data : ', 3.5506501197814941) ('Using multiprocessing.Queue with h

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Eugene Toder
Changes by Eugene Toder : Removed file: http://bugs.python.org/file21082/fold-0.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: (forgot parens around 0) -- Added file: http://bugs.python.org/file21083/fold-0.2.patch ___ Python tracker ___ __

[issue10461] Use with statement throughout the docs

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: > Perhaps something should also be added to the doc style guide (along > with using 'attributes' instead of 'members'). Terry, could you open another report for that, or maybe just commit the change directly? -- ___ P

[issue1706039] Added clearerr() to clear EOF state

2011-03-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 9, 2011 at 2:32 AM, Scott Dial wrote: .. > By rejecting unittests on the merits of its coding style, you are creating a > double-standard for people like > me (outside of the core committers), which eventually wears out my interest > in help

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14205d0fee45 by Antoine Pitrou in branch 'default': Issue #11244: The peephole optimizer is now able to constant-fold http://hg.python.org/cpython/rev/14205d0fee45 -- nosy: +python-dev ___ Python tracker

[issue11244] Negative tuple elements produce inefficient code.

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, Eugene's patch is left to apply now. Can I assign this to you, Mark? -- assignee: -> mark.dickinson ___ Python tracker ___ ___

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm disinclined to accept this patch. There is only minor space savings and no actual speed-up. When constant folding was introduced, a design decision was made to ignore the issue of orphan constants. The rationale behind that decision still stands. Th

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: About dedup_const_planb.patch: _PyCode_AddObj() should be added to Include/code.h, even if it's private (rather than declared extern in peephole.c). About consts_test.patch: "def mapping" deserves a better name, and perhaps a comment or explanation. Same for

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, the peephole optimizer was developed before the AST branch was > added to Python. Constant folding more properly belongs at the AST > level, not in the peepholer itself. Our strategy is to move as much > as possible into an AST optimizer and to stop bu

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: > - why the "#ifndef NDEBUG" path? These entries in the table should not be used, but if something slips through and uses one of them, it's much easier to tell if we remap to invalid value. As this is an internal check, I didn't want it in release mode. If this

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > - why the "#ifndef NDEBUG" path? > These entries in the table should not be used, but if something slips > through and uses one of them, it's much easier to tell if we remap to > invalid value. As this is an internal check, I didn't want it in > release mode

[issue10461] Use with statement throughout the docs

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3d28c84a372 by Éric Araujo in branch 'default': Use with statement where it improves the documentation (closes #10461) http://hg.python.org/cpython/rev/c3d28c84a372 -- nosy: +python-dev resolution: accepted -> fixed status: open -> closed

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: assert() doesn't quite work here. I need to check that this entry in the table is not used in the next loop. I'd need to put assert in that loop, but by that time I have no easy way to tell which entries are bad, unless I mark them in the first loop. so I mark

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: > _PyCode_AddObj() should be added to Include/code.h Should it be declared as PyAPI_FUNC too? This will make it unnecessarily exported (when patch in Issue11410 is merged), so I wanted to avoid that. btw, that you for reviewing the patch. -- __

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: +orsenthil, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > _PyCode_AddObj() should be added to Include/code.h > Should it be declared as PyAPI_FUNC too? This will make it > unnecessarily exported (when patch in Issue11410 is merged), so I > wanted to avoid that. I guess we don't usually try to optimize that, but yo

[issue10461] Use with statement throughout the docs

2011-03-11 Thread SilentGhost
SilentGhost added the comment: Éric, I'm not sure about the first atexit.rst hunk. I thought the purpose of that code was to except IOError when no file is found. I'm not entirely sure why in the simplest case infile.read() would raise IOError. I'd think that eli's patch (file19667) would sui

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: What kind of url is 'javascript:123' and how do you (/ we) say that python2.6 behavior was correct? -- assignee: -> orsenthil keywords: +patch ___ Python tracker __

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Eugene Toder
Eugene Toder added the comment: > Right now, the pattern is tokenize -> parse -> AST -> genbytecode -> > peephole optimization (which disassembles the bytecode, analyzed it > and rewrites it) -> final bytecode. The correct pattern is tokenize > -> parse -> AST -> optimize -> genbytecode -> pee

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also issue10812 which implements os.futimens(). -- ___ Python tracker ___ ___ Python-bugs

[issue11090] Doc errors for unittest in Python 3.1

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: addCleanup/doCleanups/startTestRun/stopTestRun are in 3.1 too and now they are documented as new in 3.1. I also removed the versionchanged note for __iter__ (0f9e5042907c). Test discovery, --failfast, --catch, --buffer are new in 3.2 and not documented on 3.1.

[issue11468] Improve unittest basic example in the doc

2011-03-11 Thread Ezio Melotti
New submission from Ezio Melotti : The current example[0] uses assertTrue(element in self.seq) but it would be better to use assertIn instead. The whole example could be changed to something simpler that uses only the assertTrue/assertEqual/assertRaises methods correctly, e.g.: import unitte

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-11 Thread Bastian Kleineidam
Bastian Kleineidam added the comment: Regarding the correctness of the Python 2.6 implementation: http://www.faqs.org/rfcs/rfc1738.html specifies URLs of the form : where the scheme specific part is allowed to consist only of digits. I agree that the example URL is not a good one and it is a

[issue11444] logging FileHandler.close should acquire its lock before closing stream

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6626c9fc28d by Vinay Sajip in branch '2.6': Reverted bug fixes for #11444 (fc4d045e3170) and #11424 (b9d76846bb1c), which should not have been made in this branch. http://hg.python.org/cpython/rev/d6626c9fc28d --

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed1f7b3f2ff3 by Ezio Melotti in branch '3.1': #11446: fix incorrect PEP link. http://hg.python.org/cpython/rev/ed1f7b3f2ff3 -- nosy: +python-dev ___ Python tracker __

[issue11469] Fix resource warning in test_trailers

2011-03-11 Thread brian.curtin.test
New submission from brian.curtin.test : There is an unclosed file in test_trailers. Attaching a patch to fix this. -- components: Tests files: test_trailers_resourcefix.diff keywords: patch messages: 130602 nosy: brian.curtin.test priority: normal severity: normal status: open title: Fix

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset eeef2f17a774 by Ezio Melotti in branch '3.2': #11446: merge with 3.1. http://hg.python.org/cpython/rev/eeef2f17a774 -- ___ Python tracker

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14a2d276b9ab by Ezio Melotti in branch 'default': #11446: merge with 3.2. http://hg.python.org/cpython/rev/14a2d276b9ab -- ___ Python tracker

[issue11446] Incorrect PEP link in Language Reference section 7.7

2011-03-11 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10812] Add some posix functions

2011-03-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11457] Expose nanosecond precision from system calls

2011-03-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +twouters -rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
New submission from Thomas Wouters : As discussed at the language summit at PyCon 2011, some code takes some liberties with setting class attributes to callable objects, like CFunctions, that (C)Python does not turn into methods. This is problematic because 1) CPython can't then turn that CFun

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Alex
Changes by Alex : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue11469] Fix resource warning in test_trailers

2011-03-11 Thread Brian Curtin
Brian Curtin added the comment: FYI this was created during my PyCon talk...needed a non-dev account for the demo. -- nosy: +brian.curtin ___ Python tracker ___ ___

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread Glenn Linderman
Glenn Linderman added the comment: I can certainly agree with the opinion that raw strings are working as documented, but I can also agree with the opinion that they contain traps for the unwary, and after getting trapped several times, I have chosen to put up with the double-backslash requir

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11179] ccbench doesn't work on 3.1/2.7

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 353032fd38e2 by Antoine Pitrou in branch '3.2': Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. http://hg.python.org/cpython/rev/353032fd38e2 New changeset 92b59654e71c by Antoine Pitrou in branch 'default': Issue #11179: Make ccben

[issue11179] ccbench doesn't work on 3.1/2.7

2011-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21086/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21086/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-l

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21087/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21085/nonmethod-warn.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Don’t forget to remove the comments in codecs that are made obsolete by your changes. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Added file: http://bugs.python.org/file21088/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Thomas Wouters
Changes by Thomas Wouters : Removed file: http://bugs.python.org/file21087/nonmethod-warn-nongit.diff ___ Python tracker ___ ___ Python-bugs-l

[issue9935] Faster pickling of instances

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff0220c9d213 by Antoine Pitrou in branch 'default': Issue #9935: Speed up pickling of instances of user-defined classes. http://hg.python.org/cpython/rev/ff0220c9d213 -- nosy: +python-dev ___ Python trac

[issue706263] print raises exception when no console available

2011-03-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue706263] print raises exception when no console available

2011-03-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9935] Faster pickling of instances

2011-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file21079/getpass_fdclose.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue1271] Raw string parsing fails with backslash as last character

2011-03-11 Thread R. David Murray
R. David Murray added the comment: I think perhaps the language in the language reference is a bit misleading. The purpose of the raw string algorithm is that any characters in the string be copied literally into the string object. That is, \" "escapes" the " not so that you can write r"\""

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Please do not mix issues. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Sorry, accidentally removed the first patch. -1 on the second patch: there’s another issue for that, and your patch is not uncontroversial. -- Added file: http://bugs.python.org/file21089/getpass_fdclose.patch ___ Pyt

[issue11406] There is no os.listdir() equivalent returning generator instead of list

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

[issue11428] with statement looks up __exit__ incorrectly

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: After a quick perusal of the PEP, there are no wrong definitions of context managers (IOW they define methods in a class, not attribute on an object), but the pseudo-code explaining how the statement works use things like “mgr.__enter__” instead of “type(mgr).__

[issue1099] Mac compile fails with pydebug and framework enabled

2011-03-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch removes the call to libtool and always links the framework using gcc (as was already done for universal builds). With this patch I can build the framework using the following configure command-line on OSX 10.6: ../configure --with-pyde

[issue11412] Section numbers in the Library Reference have a trailing period

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

[issue11470] Flag inappropriate uses of callable class attributes

2011-03-11 Thread Guido van Rossum
Guido van Rossum added the comment: This should not reuse DeprecationWarning but instead introduce a different warning, e.g. CompatibilityWarning. -- nosy: +gvanrossum ___ Python tracker _

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Would you like to work on a patch? Guidelines are found at http://docs.python.org/devguide -- nosy: +eric.araujo, rhettinger versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 __

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: I’m afraid I don’t understand “Method's function”. Could you rephrase, or give a commented code example showing the bad behavior? -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker

[issue11466] getpass.getpass doesn't close tty file

2011-03-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Fri, Mar 11, 2011 at 09:20:14PM +, Éric Araujo wrote: > your patch is not uncontroversial. The code is very ugly, but i think that somewhat reflects the code flow of the entire function. At least a bit. I've forced all mis-uses i could imagine

[issue11462] Peephole creates duplicate and unused constants

2011-03-11 Thread Thomas Wouters
Thomas Wouters added the comment: What is the actual performance impact of this change? As far as I can see the difference is almost entirely in .pyc (on-disk) size, as when loading most of these constants are interned anyway. Even the on-disk change is minimal - and I say that as a person wh

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-11 Thread Éric Araujo
Éric Araujo added the comment: Some info: http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.Why_is_the_modification_time_of_files_not_restored_on_checkout.3F and http://mercurial.808500.n3.nabble.com/Mercurial-s-treatment-of-directory-file-timestamps-td796168.html Related bug: ht

[issue11471] If without else generates redundant jump

2011-03-11 Thread Eugene Toder
New submission from Eugene Toder : If statement without else part generates unnecessary JUMP_FORWARD insn with jumps right to the next insn: >>> def foo(x): if x: x = 1 >>> dis(foo) 2 0 LOAD_FAST0 (x) 3 POP_JUMP_IF_FALSE 15

  1   2   >