[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat[ST_MTIME]

2011-04-27 Thread John S. Gruber
John S. Gruber added the comment: I can understand what you are saying about side effects. I was trying to suggest that the move to stat.st_mtime in dep_util.py in the hg commit I mentioned be reverted back to use stat[ST_MTIME], thereby matching the other python releases and the old behavior

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b7ad9a88451 by Antoine Pitrou in branch '3.2': Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_* http://hg.python.org/cpython/rev/7b7ad9a88451 New changeset c8f283cd3e6e by Antoine Pitrou in branch 'default': Issue #10517:

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be fixed now! Thank you. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: -Python 3.1 ___ Python tracker ___

[issue10914] Python sub-interpreter test

2011-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Victor, the fix needs to go into 3.2 as well. -- assignee: -> haypo status: closed -> open ___ Python tracker ___

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-04-27 Thread Dev Player
Dev Player added the comment: This is an acedmic note. This is not really the place and perhaps better moved to a PEP or a forum. In my search to discover more about Python ( and its interactive interpreter and its help() function? statement? on my own) I noticed it was kind of a wart in Py

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-04-27 Thread Dev Player
Dev Player added the comment: Just delete the previous message... please. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg134607 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Note: the word is 'separate', 2 e's and 2 a's, not 'seperate') (Note: We already know that using unbound unquoted names does not work. Please do not waste our time telling us the obvious.) (Note: I am removing IDLE because this does not seem to be an IDLE issu

[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat[ST_MTIME]

2011-04-27 Thread John S. Gruber
John S. Gruber added the comment: As I thought about it, I suppose I should demonstrate the problem with stat.st_mtime. Here's an example and its output on an ext4 file system: gruber@gruber-Satellite-L355D:~$ ./mtime.py (1303933305.5525582, 1303933305.5525582) (1303933305.552558, 1303933305.5

[issue11936] plistlib.writePlistToBytes does not exist on 2.6 (osx) and documentation does not include information about version

2011-04-27 Thread Ned Deily
Ned Deily added the comment: You are looking at the documentation for Python 3, not Python 2. For Python 2.6, you should refer to its documentation: http://docs.python.org/release/2.6.6/library/plistlib.html For Python 3, many references to strings were changed to bytes as part of the chang

[issue11940] Howto/Advocacy - update the link to John Ousterhout paper

2011-04-27 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-April/004031.html here's a patch to update the link to John Ousterhout paper. It can be applied on all active branches. -- assignee: docs@python components: Documentation files: howto_advocacy_ous

[issue11922] Add General Index to Windows .chm help file Contents

2011-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had not really noticed that the Index *was* the General Index. In trying it out, I discovered that double-clicking on entries with multiple links in the General Index, such as 'name,binding' with 7 links, brings up a sub-box with all seven. So I will close

[issue8808] imaplib should support SSL contexts

2011-04-27 Thread Sijin Joseph
Sijin Joseph added the comment: I am attaching a patch for the default branch that adds a ssl_context parameter to IMAP4_SSL. Also added a couple of tests to test_imaplib to test the existing ctor with certfile and file and also the new one that accepts an SSLContext. Currently if the ssl_con

[issue11940] Howto/Advocacy - update the link to John Ousterhout paper

2011-04-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks good. Thanks for the patch. -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-04-27 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : I would like to suggest to add st_atim, st_mtim and st_ctim attributes in os.stat_result objects returned by os.stat(). These attributes would be 2-tuples containing number of seconds and number of nanoseconds. They would expose releva

[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-04-27 Thread Ben Okopnik
Ben Okopnik added the comment: Whoops... with all of that, I just realized that this bug should be filed against pkgutil, not pydoc (pydoc, of course, calls pkgutil to do the path resolution, which is where this crash occurs.) My bad. >>> import pkgutil >>> inst = pkgutil.ImpImporter(path='/t

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: A patch is attached, along with corresponding test. Notes: - since I don't have an IPv6 internet connectivity, I could only test it locally - I chose 'ipv6.google.com' as SSL server for the test. If it's a problem, I can change it for svn.python.org (i

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Added file: http://bugs.python.org/file21812/is_ipv6_enabled.diff ___ Python tracker ___ ___ Python-bugs-

[issue10148] st_mtime differs after shutil.copy2

2011-04-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Python >=3.3 contains os.futimens() and os.utimensat() functions. I have filed issue #11941, which suggests to add support for nanosecond resolution in result of os.stat(). -- ___ Python tracke

[issue11942] Fix signature of Py_AddPendingCall

2011-04-27 Thread Sandro Tosi
New submission from Sandro Tosi : Following up with http://mail.python.org/pipermail/docs/2011-April/004021.html here's a couple of patch (the first for 2.7/3.1, the other for 3.2/default) to fix the signature of Py_AddPendingCall (in particular the return type). Adding in CC Ezio since he fix

[issue11942] Fix signature of Py_AddPendingCall

2011-04-27 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file21814/py_addpendingcall-py32.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hello, > This patch (is_ipv6_enabled.diff) must be applied before > ssl_ipv6.diff. is_ipv6_enabled.diff is fine. As for ssl_ipv6.diff, it fails on certificate verification: == ERROR: test_get

[issue11942] Fix signature of Py_AddPendingCall

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6739b9ab7ced by Ezio Melotti in branch '2.7': #11942: Fix return type of Py_AddPendingCall. Patch by Sandro Tosi. http://hg.python.org/cpython/rev/6739b9ab7ced New changeset fd1f47a57ba2 by Ezio Melotti in branch '3.1': #11942: Fix return type of P

[issue11942] Fix signature of Py_AddPendingCall

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue11938] duplicated test name in getattr_static's test case

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef35dae58077 by Ezio Melotti in branch '3.2': #11938: Fix duplicated test name in test_inspect. Patch by Andreas Stührk. http://hg.python.org/cpython/rev/ef35dae58077 New changeset bdd6d8631994 by Ezio Melotti in branch 'default': #11938: merge wit

[issue11938] duplicated test name in getattr_static's test case

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2011-04-27 Thread Quinn Slack
# [1] http://tools.ietf.org/html/rfc5054 [2] http://trustedhttp.org/ [3] http://trustedhttp.org/wiki/TLS-SRP_in_Python -- components: Library (Lib) files: python+tls-srp-20110427.patch hgrepos: 23 keywords: patch messages: 134627 nosy: sqs priority: normal severity: n

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2011-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +debatem1, pitrou stage: -> patch review type: -> feature request ___ Python tracker ___ ___ Py

[issue11940] Howto/Advocacy - update the link to John Ousterhout paper

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c5babbf7a73 by Raymond Hettinger in branch '3.1': Issue #11940: Update external link. http://hg.python.org/cpython/rev/4c5babbf7a73 New changeset 08647ab0ead7 by Raymond Hettinger in branch '3.2': Issue #11940: Update external link. http://hg.pyth

[issue11940] Howto/Advocacy - update the link to John Ousterhout paper

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb7c4526ccbf by Raymond Hettinger in branch '2.7': Issue #11940: Update external link. http://hg.python.org/cpython/rev/eb7c4526ccbf -- ___ Python tracker ___

[issue11940] Howto/Advocacy - update the link to John Ousterhout paper

2011-04-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure how I feel about using surrogateescape. The distutils source is very similar across 2.7, 3.1, 3.2 and default, especially after the Great Revert and freeze last year to restore buggy-but-known behavior while the distutils2 project was created and a

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-04-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue11883] Call connect() before sending an email with smtplib

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: I’d remove the “Connect to the SMTP server” comment before “s.connect()”. It’s redundant, contrary to the other comment (which no doubt prompted you to add a comment too) “Send the message via local SMTP server” which helpfully introduces the next lines of code

[issue11726] linecache becomes specific to Python scripts in Python 3

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

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
New submission from Jeong-Min Lee : Expected "TypeError: cannot concatenate 'str' and 'int' objects" exception raised, but got following result. >>> def g(): ... '1' + 0 ... yield 1, 2 ... yield 3, 4 ... >>> zip(*g()) Traceback (most recent call last): File "", line 1, in TypeEr

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
Changes by Jeong-Min Lee : -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11762] Ast doc: warning and version number

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: Please improve this rough phrasing: “Check the value of *ast.__version__* to write version-specific code blocks if you need to work across versions.” -- nosy: +eric.araujo ___ Python tracker

[issue11762] Ast doc: warning and version number

2011-04-27 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11933] newer() function in dep_util.py mixes up new vs. old files due stat.st_mtime vs stat[ST_MTIME]

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: > I was trying to suggest that the move to stat.st_mtime in dep_util.py > in the hg commit I mentioned be reverted back to use stat[ST_MTIME], > thereby matching the other python releases and the old behavior (and > matching file_util.py). It seems to me that would

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch adds True/False/None to the list of keywords and a special-cased path to have help('True'/'False'/'None') return the same as help(True/False/None). I also added tests and found out that nonlocal was missing too, so I added it to the list (the ch

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: It's not just hiding the real error, it's also saying something that isn't true. If you remove the deliberate error from the generator definition, it is clear that generators are perfectly acceptable as *arg inputs: >>> def g(): yield 1, 2 ... >>> list(*g()) [

[issue1669349] make install fails if no previous Python installation

2011-04-27 Thread Eric Rannaud
Eric Rannaud added the comment: I get the same error when building Python-2.5.6c1 on Fedora 14 (with python2.7 installed). ./configure --prefix=$PREFIX && make install Just to clarify the workaround used by lkraav on Gentoo, I attached a patch that manually enables unicodedata in Modules/Set

[issue9723] Add shlex.quote

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: Someone on Stack Overflow suggested subprocess.list2cmdline. It’s one of those functions undocumented and absent from __all__ that somehow get found and used by some people. So when we make the patch, let’s include links to the new function doc from subprocess

[issue11944] Function call with * and generator hide exception raised by generator.

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

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2011-04-27 Thread Nick Coghlan
New submission from Nick Coghlan : The question of the way Python handles NaN came up again on python-dev recently. The current semantics have been assessed as a reasonable compromise, but a poorly explained and inconsistently implemented one. Based on a suggestion from Terry Reedy [1] I propo

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2011-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: Actually, based on the NumPy precedent [1], array.array should be fine as is. Since it uses raw C floats and doubles internally, rather than Python objects, there is no clear concept of "object identity" to use to enforce reflexivity. [1] http://mail.python.org

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread Éric Araujo
Éric Araujo added the comment: I asked about nonlocal in #9724. Patch looks good (I has to repress a gut reaction “eval is evil” :) -- ___ Python tracker ___ __

[issue11457] Expose nanosecond precision from system calls

2011-04-27 Thread Ross Lagerwall
Ross Lagerwall added the comment: Closed #11941 as a duplicate of this. -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bug

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99d5542399a1 by Ezio Melotti in branch '3.1': #11926: add missing keywords to help("keywords"). http://hg.python.org/cpython/rev/99d5542399a1 New changeset 7b4c853aa07d by Ezio Melotti in branch '3.2': #11926: merge with 3.1. http://hg.python.org/c

[issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

2011-04-27 Thread Ross Lagerwall
Ross Lagerwall added the comment: I think this is a duplicate of #11457. -- nosy: +rosslagerwall resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue11926] help("keywords") returns incomplete list of keywords

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed True/False/None in 3.1/3.2/3.3, nonlocal in 3.1 (it was already ok in 3.2/3.3), and backported tests on 2.7. Thanks for the pointer to #9724. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2011-04-27 Thread Glenn Linderman
Glenn Linderman added the comment: Bertrand Meyer's exposition is flowery, and he is a learned man, but the basic argument he makes is: Reflexivity of equality is something that we expect for any data type, and it seems hard to justify that a value is not equal to itself. As to assignment,

[issue9724] help('nonlocal') missing

2011-04-27 Thread Ezio Melotti
Ezio Melotti added the comment: I backported it to 3.1 as part of 99d5542399a1. -- nosy: +ezio.melotti stage: -> committed/rejected ___ Python tracker ___ __

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Removed file: http://bugs.python.org/file21811/ssl_ipv6.diff ___ Python tracker ___ ___ Python-bugs-list

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Removed file: http://bugs.python.org/file21812/is_ipv6_enabled.diff ___ Python tracker ___ ___ Python-bug

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > As for ssl_ipv6.diff, it fails on certificate verification: Of course. The new version should fix this (tested on google.com). > is_ipv6_enabled.diff is fine. Since IPv6 capability is unlikely to change in the middle of a test, I replaced the func

[issue11811] ssl.get_server_certificate() does not work for IPv6 addresses

2011-04-27 Thread Charles-Francois Natali
Changes by Charles-Francois Natali : Added file: http://bugs.python.org/file21819/is_ipv6_enabled.diff ___ Python tracker ___ ___ Python-bugs-

[issue11937] Interix support

2011-04-27 Thread Markus Duft
Markus Duft added the comment: if the buildbot does not need to be reached from the outside, i could provide one, yes (i'm behind a company firewall/proxy infrastructure) as for the patch: comments and improvement suggestions welcome :) as for interix (actually SUA - Subsystem for UNIX Applic

[issue11937] Interix support

2011-04-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Guido established a policy a few years ago that we should rather not incorporate support for every minority platform for which people contribute patches. While I'd personally agree that an Interix port would certainly be "fun", pragmatically, I'm -1 on havin

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2011-04-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I think it is presently a bug that a list containing > a NaN value compares equal to itself. Moreover, it also compares equal to another list containing the same NaN: >>> [nan] is [nan] False >>> [nan] == [nan] True Here is another case of is implies

[issue11937] Interix support

2011-04-27 Thread Markus Duft
Markus Duft added the comment: since the patch is rather small, and prove to not "fluctuate" too much on releases, i'd be willing to keep maintaining them, although i think that it would not cause too much problems to integrate it into the code base. -- __

[issue11397] os.path.realpath() may produce incorrect results

2011-04-27 Thread Santoso Wijaya
Santoso Wijaya added the comment: (For 3.2) Patch v2. Added some more corner case tests. -- Added file: http://bugs.python.org/file21820/issue11397_py32_2.patch ___ Python tracker _

<    1   2