[issue17914] add os.cpu_count()

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: > I also vote +1 for returning None when the information is unknown. I still don't like it. If a function returns a number of CPU, it should either return an integer >= 1, or raise an exception. None is *not* an integer. And returning an exception is I

[issue17871] Wrong signature of TextTestRunner's init function

2013-05-06 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue17871] Wrong signature of TextTestRunner's init function

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dd076d441ec by Ezio Melotti in branch '3.3': #17871: fix unittest.TextTestRunner signature in the docs. Patch by Yogesh Chaudhari. http://hg.python.org/cpython/rev/5dd076d441ec New changeset 15ed67602ddf by Ezio Melotti in branch 'default': #1787

[issue17833] test_gdb broken PPC64 Linux

2013-05-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg188621 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17833] test_gdb broken PPC64 Linux

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63f2941477d3 by Ezio Melotti in branch '2.7': #17833: add debug output to investigate buildbot failure. http://hg.python.org/cpython/rev/63f2941477d3 -- ___ Python tracker

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Guido van Rossum
Changes by Guido van Rossum : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: That sounds great, except I'd expect the exception type and str(), since a formatted traceback uses the str() of the exception, not its repr(). Personally I don't think the tuples need to be named, but I won't hold up progress either. :-) -- __

[issue17921] explicit empty check instead of implicit booleaness

2013-05-06 Thread R. David Murray
R. David Murray added the comment: Or, to be more helpful than that short answer: if you think there is something that isempty can do that len can't that makes it worth adding complexity to the language, please discuss it on the python-ideas mailing list first. That's the best place to get fe

[issue17921] explicit empty check instead of implicit booleaness

2013-05-06 Thread R. David Murray
R. David Murray added the comment: Just use len. -- nosy: +r.david.murray resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17921] explicit empty check instead of implicit booleaness

2013-05-06 Thread lesmana
New submission from lesmana: Python should have a builtin method `isempty()` which calls the special method name `__isempty__()` for explicit emptiness check. The special method `__isempty__()` should return `True` if the object is "empty" and `False` if the object is "not empty". Observe emp

[issue17883] Fix buildbot testing of Tkinter

2013-05-06 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine - I like your idea, but I think it's a separate issue. I agree with Guido that exposing some lower level non-formatting APIs in the traceback module would be helpful. I see Guido's suggestion here as similar to the change we just made in the dis module

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2013-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like this is an unfortunate dead-end. -- status: open -> closed ___ Python tracker ___ _

[issue17920] Documentation: "complete ordering" should be "total ordering"

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ec04c5dae6e by Raymond Hettinger in branch '3.3': Issue 17920: Fix-up terminology in the set documentation http://hg.python.org/cpython/rev/6ec04c5dae6e -- ___ Python tracker

[issue17920] Documentation: "complete ordering" should be "total ordering"

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a285ce18bd55 by Raymond Hettinger in branch '2.7': Issue 17920: Fix-up terminology in the set documentation http://hg.python.org/cpython/rev/a285ce18bd55 -- nosy: +python-dev ___ Python tracker

[issue17920] Documentation: "complete ordering" should be "total ordering"

2013-05-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue519227] hook method for 'is' operator

2013-05-06 Thread lesmana
Changes by lesmana : -- nosy: +lesmana versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17919] AIX POLLNVAL definition causes problems

2013-05-06 Thread David Edelsohn
David Edelsohn added the comment: That's the way AIX allocated the bits. It's nice to check for overflow, but I think the test is imposing more semantics on the mask bits than POSIX requires. It just happens that the GLibc allocation of bits works out okay. --

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: > I have created a C implementation of the stat module for Python 3.4. Oh, your C module is called "stat", as the "stat" module implemented in Python (Lib/stat.py). What is your plan? Replace completly the Python module with the C module? It may be nice to kee

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: If we use the C language, I would prefer to only expose what does really exist, and not add "fake" functions like: +#ifndef S_ISDOOR +# define S_ISDOOR(mode) 0 +#endif So in: +static PyMethodDef stat_methods[] = { +{"S_ISDIR", stat_S_ISDIR, METH

[issue14191] argparse doesn't allow optionals within positionals

2013-05-06 Thread paul j3
paul j3 added the comment: This is the formal patch corresponding to the `test_intermixed.py`. It includes changes to `argparse.rst`, plus tests in `test_argparse.py`. These tests are near the end, after those for `parse_known_args`. They are roughly equivalent to the examples in `test_inte

[issue14191] argparse doesn't allow optionals within positionals

2013-05-06 Thread paul j3
paul j3 added the comment: This is a revision of the test_intermixed.py that I submitted earlier. Now `parse_intermixed_args` acts like `parse_args', and calls `parse_known_intermixed_args`. Again it is form that can exercise the idea without modifying `argparse.py`. If the parser has incom

[issue17913] stat.filemode returns "-" for sockets and unknown types

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Can you maybe add an unit test? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17914] add os.cpu_count()

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: See also #17444, Trent Nelson wrote an implementation of os.cpu_count(). -- nosy: +trent ___ Python tracker ___

[issue17914] add os.cpu_count()

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: I also vote +1 for returning None when the information is unknown. Just write "os.cpu_count() or 1" if you need 1 when the count is unknown ;-) -- nosy: +haypo ___ Python tracker

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84d1a0e32d3b by Nick Coghlan in branch 'default': Issue #11816: Add missing test helper http://hg.python.org/cpython/rev/84d1a0e32d3b -- ___ Python tracker ___

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Modules/fcntlmodule.c and Modules/posixmodule.c are using explicit cast to long. I don't know if there is a good reason for such cast. PC/_msi.c: Oh, here you should remove cast to int. Example: PyModule_AddIntMacro(m, (int)MSIDBOPEN_CREATEDIRECT); I'

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: bytecode_helper is there in dis_api3.diff - anyone with commit rights should be able to add it to the repository. -- ___ Python tracker ___ ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Ping! The test is still failing. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17915] Encoding error with sax and codecs

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Extracted test from report.txt. Test with Python 3.4: $ ./python test_codecs.py Traceback (most recent call last): File "test_codecs.py", line 7, in xml.startDocument() File "/home/haypo/prog/python/default/Lib/xml/sax/saxutils.py", line 148, in start

[issue17915] Encoding error with sax and codecs

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: It looks like a regression of introduced by the fix of the issue #1470548, changeset 66f92f76b2ce. -- ___ Python tracker ___ __

[issue13349] Non-informative error message in index() and remove() functions

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: > Confirmed with Ezio that issue #7330 will need to be fixed/approved before > this issue can be closed. FYI I just fixed this issue. PyUnicode_FromFormat() now supports width and precision in the format string. -- nosy: +haypo __

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Finally, I closed this issue. Sorry for the long delay, but many other PyUnicode_FromFormat() issues had to be discussed/fixed before this one can be fixed. It was also much easier to fix this issue since my refactoring of PyUnicode_FromFormat() to only parse

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e0f1c3bf9b6 by Victor Stinner in branch 'default': Issue #7330: Implement width and precision (ex: "%5.3s") for the format string http://hg.python.org/cpython/rev/9e0f1c3bf9b6 -- ___ Python tracker

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file30157/ins_macro-1.diff ___ Python tracker ___ ___ Python-bugs-list

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file30155/ins_macro.diff ___ Python tracker ___ ___ Python-bugs-list

[issue17883] Fix buildbot testing of Tkinter

2013-05-06 Thread Ezio Melotti
Ezio Melotti added the comment: FTR there's also test.support.assert_python_ok and test.support.assert_python_failure (and a few convenience functions in subprocess too). I suspect that if the import fails, stdout is empty, and stderr will contain the error message. -- _

[issue17883] Fix buildbot testing of Tkinter

2013-05-06 Thread Zachary Ware
Zachary Ware added the comment: Here's a better patch after learning a bit better how subprocess.Popen works... -- Added file: http://bugs.python.org/file30156/issue17883.diff ___ Python tracker ___

[issue17883] Fix buildbot testing of Tkinter

2013-05-06 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file30154/issue17883.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread STINNER Victor
STINNER Victor added the comment: Could you please generete the same patch without --git so it can be reviewed on Rietveld? -- ___ Python tracker ___ ___

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Also made it to the front-page of Hacker News[1], with better quality comments than the reddit thread. [1] https://news.ycombinator.com/item?id=5658062 -- ___ Python tracker

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy Storchaka added the comment: > > How about base64? > > self.save_reduce(base64.b64decode, > (str(base64.b64encode(obj), 'ascii'),), > obj=obj) > > >>> len(dumps(bytes([200] * 1), 2)) > 13372 It's st

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2013-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How about base64? self.save_reduce(base64.b64decode, (str(base64.b64encode(obj), 'ascii'),), obj=obj) >>> len(dumps(bytes([200] * 1), 2)) 13372 -- nosy: +serhiy.storchaka

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Take it with a large grain of Internet salt, but Ezio pointed me to the following reactions: http://www.reddit.com/r/Python/comments/1dq7sh/python_repl_finally_gets_tab_completion_by_default/ -- ___ Python tracker <

[issue17915] Encoding error with sax and codecs

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since this is a regression, setting (temporarily perhaps) as release blocker. -- nosy: +georg.brandl, larry, pitrou priority: normal -> release blocker stage: -> needs patch ___ Python tracker

[issue17920] Documentation: "complete ordering" should be "total ordering"

2013-05-06 Thread abcdef
abcdef added the comment: Another small thing: "For example, any two disjoint sets are not equal and are not subsets of each other, so all of the following return False: ab." It should be "any two nonempty disjoint sets". -- ___ Python tracker

[issue17915] Encoding error with sax and codecs

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo, serhiy.storchaka type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Pyth

[issue17919] AIX POLLNVAL definition causes problems

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17912] thread states should use a doubly-linked list

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Are there other places in the code base using linked-list? > If yes, I think it could be interesting to add a generic linked-list > implementation, like the one used in the Linux kernel: > http://kernelnewbies.org/FAQ/LinkedLists > http://isis.poly.edu/kulesh/s

[issue17920] Documentation: "complete ordering" should be "total ordering"

2013-05-06 Thread abcdef
New submission from abcdef: The set documentation [http://docs.python.org/3.4/library/stdtypes.html] states "The subset and equality comparisons do not generalize to a complete ordering function. For example, any two disjoint sets are not equal and are not subsets of each other..." Could "com

[issue17918] failed incoming SSL connection stays open forever

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 85e5a93e534e by Antoine Pitrou in branch '2.7': Issue #17918: When using SSLSocket.accept(), if the SSL handshake failed on the new socket, the socket would linger indefinitely. http://hg.python.org/cpython/rev/85e5a93e534e -- nosy: +python

[issue17918] failed incoming SSL connection stays open forever

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: The test is still failling: http://buildbot.python.org/all/builders/AMD64 OpenIndiana 2.7/builds/1670/steps/test/logs/stdio """ == ERROR: test_extract_unicode_filenames (test.test_zip

[issue17918] failed incoming SSL connection stays open forever

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for reporting. For maximum backwards compatibility, the safer fix is to close the socket only in SSLSocket.accept(). Unfortunately I can't think of a way to write a unittest for it, so I'll just commit the fix. -- nosy: +pitrou

[issue17912] thread states should use a doubly-linked list

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: Are there other places in the code base using linked-list? If yes, I think it could be interesting to add a generic linked-list implementation, like the one used in the Linux kernel: http://kernelnewbies.org/FAQ/LinkedLists http://isis.poly.edu/kulesh/st

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a lot of code churn, but it touches code that is unlikely to be modified otherwise, so I guess it's ok. -- ___ Python tracker ___ _

[issue17289] readline.set_completer_delims() doesn't play well with others

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset df0afd3ebb70 by Antoine Pitrou in branch '3.3': Issue #17289: The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable. http://hg.python.org/cpython/rev/df0afd3ebb70 N

[issue17289] readline.set_completer_delims() doesn't play well with others

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch! I made a variable name a bit shorter and also added some error checking on the strdup() result. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Pyth

[issue17289] readline.set_completer_delims() doesn't play well with others

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55c7295aca6c by Antoine Pitrou in branch '2.7': Issue #17289: The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable. http://hg.python.org/cpython/rev/55c7295aca6c -

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file30155/ins_macro.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a (gigantic) patch. I used an ad-hoc script for the conversion (next time I might try with coccinelle). I tested it on Linux, FreeBSD, Openindiana, OS-X and Windows. -- keywords: +needs review, patch nosy: +pitrou stage: needs patch ->

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: Sorry for the delay, it should be fixed now. Federico, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue17289] readline.set_completer_delims() doesn't play well with others

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17912] thread states should use a doubly-linked list

2013-05-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: (this is *because*, sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this is bytecode_helper hasn't been added to the repository. -- nosy: +pitrou ___ Python tracker ___ __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: test_dis is failing on some buildbots: http://buildbot.python.org/all/builders/AMD64 Ubuntu LTS 3.x/builds/1674/steps/test/logs/stdio Re-running test 'test_dis' in verbose mode test test_dis crashed -- Traceback (most recent call last): File "/opt/p

[issue12181] SIGBUS error on OpenBSD (sparc64)

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6c2b216bd14 by Charles-Francois Natali in branch '2.7': Issue #12181: select module: Fix struct kevent definition on OpenBSD 64-bit http://hg.python.org/cpython/rev/c6c2b216bd14 New changeset f6c50b437de6 by Charles-Francois Natali in branch '3.3':

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-05-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1545463] New-style classes fail to cleanup attributes

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This issue is endly fixed in 3.4. Since changing the shutdown sequence is a delicate change, I won't backport to bugfix branches. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue1545463] New-style classes fail to cleanup attributes

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0833e6ff2d2 by Antoine Pitrou in branch 'default': Issue #1545463: Global variables caught in reference cycles are now garbage-collected at shutdown. http://hg.python.org/cpython/rev/f0833e6ff2d2 -- nosy: +python-dev _

[issue17833] test_gdb broken PPC64 Linux

2013-05-06 Thread Dave Malcolm
Changes by Dave Malcolm : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17833] test_gdb broken PPC64 Linux

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4a6b731905a by David Malcolm in branch '3.3': #17833: fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb.PyBtTests) http://hg.python.org/cpython/rev/f4a6b731905a New changeset 6d971b172389 by David Malcolm in branch 'default'

[issue3982] support .format for bytes

2013-05-06 Thread Ecir Hana
Changes by Ecir Hana : -- nosy: +ecir.hana ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue13831] get method of multiprocessing.pool.Async should return full traceback

2013-05-06 Thread Richard Oudkerk
Richard Oudkerk added the comment: The relevant changeset was c4f92b597074, but I wrote the wrong issue number in the commit message and Misc/NEWS. -- ___ Python tracker ___ ___

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

2013-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Actually I'm thinking this duck may only have a beak. Instead of a bunch of fields of None I'd prefer just not having that attribute defined on the object. I consider the os specific "stat-like" info from reading a directory to be so os specific that i'd rather

[issue14187] add "function annotation" entry to Glossary

2013-05-06 Thread R. David Murray
R. David Murray added the comment: Done. Thanks for the ping. And thanks for the suggestion and patch, Chris. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue14187] add "function annotation" entry to Glossary

2013-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2a805281d26 by R David Murray in branch '3.3': #14187: Add glossary entry for 'function annotations'. http://hg.python.org/cpython/rev/e2a805281d26 New changeset 3e1c45f5c585 by R David Murray in branch 'default': Merge #14187: Add glossary entry f

[issue14187] add "function annotation" entry to Glossary

2013-05-06 Thread Zachary Ware
Zachary Ware added the comment: Would anyone mind committing this? It was approved by Raymond almost a year ago now, and is still accurate. The patch still applies cleanly to 3.3 and default, though with some fuzz. -- versions: -Python 3.2 ___ Pyt

[issue17883] Fix buildbot testing of Tkinter

2013-05-06 Thread Zachary Ware
Zachary Ware added the comment: Here's the relevant bit of the output from that buildbot after Terry's change: == FAIL: testLoadWithUNC (test.test_tcl.TclTest)

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch Added file: http://bugs.python.org/file30153/statmodule.patch ___ Python tracker ___ ___

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread R. David Murray
R. David Murray added the comment: "Cannot be implemented correctly in Python" is a darned good reason :) -- ___ Python tracker ___ __

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am in AP's camp on the tab issue, but I think we can preserve "tab inserts tab" behavior at the continuation prompt. I don't like "indent at beginning of line." I have rlcompleter enabled in Python 2.6 and i get the following when I press tab: Pytho

[issue17918] failed incoming SSL connection stays open forever

2013-05-06 Thread Peter Saveliev
Peter Saveliev added the comment: Possible solution would be something like that in SSLSocket.do_handshake(): try: self._sslobj.do_handshake() except SSLError as e: # or even any Exception? self._sock.close() raise e -- _

[issue17913] stat.filemode returns "-" for sockets and unknown types

2013-05-06 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Library (Lib) keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file30152/filemode.patch ___ Python tracker ___

[issue17919] AIX POLLNVAL definition causes problems

2013-05-06 Thread Delhallt
New submission from Delhallt: I encounted exactly the same issue http://bugs.python.org/issue923315 with test_asyncore, test_asynchat and test_poll. On AIX6.1, POLLNVAL=0x8000=SHRT_MIN=SHRT_MAX+1 (on 2 bytes) and parsing events with PyArg_ParseTuple as a signed short 'h' do not work, i.e "Over

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I expect that a lot of users use the tab key to indent in the repl > (as well as in editors, smart enough editors can convert the tab > presses to spaces) The interpreter prompt is not a text editor at all. You can misuse it as one, but that's a loss of time a

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > On Mon, May 6, 2013 at 6:06 AM, Antoine Pitrou > wrote: > > Note that generator cleanup through the frame has a patch in > > issue17807. > > Sadly that doesn't help with my issue. It won't. It's just a building block for the change I've proposed here. -

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, post it to python-dev and see what reaction you get :) I'm not interested in python-dev reactions here. For this kind of issue, we'll have hundreds of messages for and against the change without any useful content. The commit adds an often-requested fea

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: On Mon, May 6, 2013 at 6:06 AM, Antoine Pitrou wrote: > Note that generator cleanup through the frame has a patch in issue17807. Sadly that doesn't help with my issue. I applied path gen3.patch and ran various versions of the code I have. There's still someth

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I expect that a lot of users use the tab key to indent in the repl (as well as in editors, smart enough editors can convert the tab presses to spaces) -- ___ Python tracker __

[issue17911] Extracting tracebacks does too much work

2013-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not snubbing my nose at something that breaks these types of cycles more easily, but I still think that the abstractions offered by the traceback module could be improved. -- ___ Python tracker

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > We've been *adding* python implementations for other modules, so I > don't see why we would remove this one. Well, the one reason is that the C constants aren't accessible from Python code. Once the constants are there, the rest is so trivial that it doesn't r

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It is a release blocker because it is a major usability regression. Really? You can press the space key to indent, it works as well as the tab key... -- ___ Python tracker __

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread R. David Murray
R. David Murray added the comment: We've been *adding* python implementations for other modules, so I don't see why we would remove this one. -- nosy: +r.david.murray ___ Python tracker ___

[issue17732] distutils.cfg Can Break venv

2013-05-06 Thread Éric Araujo
Éric Araujo added the comment: No, patch is good to go, I just need to find some time to commit it. If another core dev wants to do it sooner, please feel free to do so. -- ___ Python tracker

[issue11016] Add S_ISDOOR to the stat module

2013-05-06 Thread Charles-François Natali
Charles-François Natali added the comment: > We've been *adding* python implementations for other modules, so I don't see > why we would remove this one. Because it's buggy, and cannot be implemented correctly in python. -- ___ Python tracker

[issue5845] rlcompleter should be enabled automatically

2013-05-06 Thread R. David Murray
R. David Murray added the comment: Well, post it to python-dev and see what reaction you get :) I could be wrong, but I don't think I am (obviously). -- ___ Python tracker ___ __

  1   2   >