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

2011-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: The status quo works. Proposals to change it on theoretical grounds have a significantly higher bar to meet than proposals to simply document it clearly. -- ___ Python tracker

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

2011-04-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

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

2011-04-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Apr 28, 2011 at 3:01 AM, Nick Coghlan wrote: .. > The status quo works. No it does not. I am yet to see a Python program that uses non-reflexivity of NaN in a meaningful way. What I've seen was either programmers ignore it and write slightly bug

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

2011-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: By "works" I merely meant that you can currently achieve both of the following: 1. Write fully conformant implementations of IEEE754 floating point types, including the non-reflexive NaN comparisons (keeping in mind that, as a value-based specification, "same p

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c8bc3a0130a by Senthil Kumaran in branch '2.7': Fix closes issue10761: tarfile.extractall failure when symlinked files are present. http://hg.python.org/cpython/rev/0c8bc3a0130a -- nosy: +python-dev resolution: -> fixed stage: -> comm

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: I had tried/tested against 3.x branch and did not find the problem. Later realized that it was only again 2.7. Pushed in the changes and the tests. I shall the tests only in 3.x codeline. -- ___ Python tracker

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

2011-04-28 Thread Glenn Linderman
Glenn Linderman added the comment: Nick says (and later explains better what he meant): The status quo works. Proposals to change it on theoretical grounds have a significantly higher bar to meet than proposals to simply document it clearly. I say: What the status quo doesn't provide is conta

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

2011-04-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Apr 28, 2011 at 3:26 AM, Nick Coghlan wrote: .. > 1. Write fully conformant implementations of IEEE754 floating point types, > including the non-reflexive NaN comparisons > (keeping in mind that, as a value-based specification, "same payload" is

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: > > É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

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57c076ab4bbd by Łukasz Langa in branch '3.2': Closes #11858: configparser.ExtendedInterpolation and section case. http://hg.python.org/cpython/rev/57c076ab4bbd -- nosy: +python-dev resolution: -> fixed stage: test needed -> committed/rejec

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2afaef6cda8a by Łukasz Langa in branch 'default': Merged solution for #11858 from 3.2. http://hg.python.org/cpython/rev/2afaef6cda8a -- ___ Python tracker ___

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-28 Thread Łukasz Langa
Łukasz Langa added the comment: Pink, please give your name so I can include you in Misc/ACKS. -- ___ Python tracker ___ ___ Python-b

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

2011-04-28 Thread Jeong-Min Lee
Jeong-Min Lee added the comment: Some exceptions are reported correctly. >>> def g(): ... 1 / 0 ... yield 1, 2 ... yield 3, 4 ... >>> zip(*g()) Traceback (most recent call last): File "", line 1, in File "", line 2, in g ZeroDivisionError: integer division or modulo by zero

[issue11670] configparser read_file now iterates over f, docs still say it calls readline

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bbda00bbe78 by Łukasz Langa in branch '3.2': Style updates for the #11670 solution after post-commit review by Ezio Melotti: http://hg.python.org/cpython/rev/1bbda00bbe78 New changeset 339cd1d9b21a by Łukasz Langa in branch 'default': Merged styli

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-28 Thread Pink
Pink added the comment: Oh, all right :) My name is Yuxiao Zeng. 2011/4/28 Łukasz Langa : > > Łukasz Langa added the comment: > > Pink, please give your name so I can include you in Misc/ACKS. > > -- > > ___ > Python tracker >

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

2011-04-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11332] Increase logging/__init__.py coverage to 97%

2011-04-28 Thread Vinay Sajip
Vinay Sajip added the comment: Though I did not use this patch verbatim, thank you, Oliver, for the impetus to improve coverage. Now, coverage of the logging package is: logging/__init__.py 99% (97%) logging/config.py 89% (85%) logging/handlers.py 65% (60%) where the brackets include branch c

[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Éric, ParseResult is a class which provides tuple for urlparse/unparse. People should hardly (/never) use ParseResult directly. The original poster's concern was to get something like geturl() from this class which was not suitable and it should be obtained

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sijin, please go ahead and submit a patch. No one is working on this at the moment. -- nosy: +markm ___ Python tracker ___ ___

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

2011-04-28 Thread Éric Araujo
Éric Araujo added the comment: Out of curiosity: Any reason you used a containment test with a list instead of a set (IMO more idiomatic, and in 3.2+ also optimized)? I guess it’s to match the rest of the file, but using sets would not change any behavior. -- ___

[issue11457] Expose nanosecond precision from system calls

2011-04-28 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2011-04-28 Thread Ezio Melotti
Ezio Melotti added the comment: Good question. I considered using sets but then decided to use lists because they don't get rid of duplicates and would make the test fail in the (indeed unlikely) case that a keyword gets added twice (that's actually not possible in Test.keywords because it's

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

2011-04-28 Thread Éric Araujo
Éric Araujo added the comment: I was too vague. I referred only to “if something in ['True', 'False', 'None']” in pydoc.py -- ___ Python tracker ___ __

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

2011-04-28 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2011-04-28 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
New submission from Jason Vas Dias : After building from source in Python-2.7.1.tar.bz2 , I get this 'make test' failure : test_commands test test_commands failed -- Traceback (most recent call last): File "/usr/src/Python-2.7/Lib/test/test_commands.py", line 61, in test_getstatus self.a

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

2011-04-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: The idea seems interesting. I will check the RFC ASAP. The patch should include documentation updates, though. You can update the issue number in the NEWS file, also. Do you plan to complete the sections marked as "TODO"? PS: The mercurial repository URL y

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

2011-04-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Also, I will not invest too much time on this until OpenSSL 1.0.1 is released, with support for this. -- ___ Python tracker ___ _

[issue11858] configparser.ExtendedInterpolation and section case

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b4378689e6 by Łukasz Langa in branch '3.2': Added Yuxiao Zeng for finding and resolving #11858. Thanks! http://hg.python.org/cpython/rev/17b4378689e6 -- ___ Python tracker

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Alternatively it's possible to use binary mode. I'm attaching the patch, which shows this possibility. -- title: distutils command build_scripts fails with UnicodeDecodeError -> distutils command build_scripts fails with Uni

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

2011-04-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Actually issue #11941 should be a dependency of issue #11457. Issue #11941 is only about os.stat(), while issue #11457 proposes changes also in other places (e.g. tarfile module). -- ___ Python

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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Removed file: http://bugs.python.org/file21820/issue11397_py32_2.patch ___ Python tracker ___ ___ Python-bugs-list

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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21822/issue11397_py32_2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-28 Thread Éric Araujo
Éric Araujo added the comment: Was the patch tested in 2.7 only? I think the first_line_re needs to be changed to bytes too. (3.x would have disallowed mixing bytes and str for a regex.) -- ___ Python tracker

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Which patch do you mean? (My patch already changes first_line_re to bytes. My patch was tested only with 3.2. Lib/distutils/command/build_scripts.py is currently identical in 3.1, 3.2 and 3.3.) --

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32031e33d793 by Łukasz Langa in branch '3.2': Closes #11324: ConfigParser(interpolation=None) doesn't work. http://hg.python.org/cpython/rev/32031e33d793 New changeset de7dc59260b1 by Łukasz Langa in branch 'default': Merged solution for #11324 fro

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Oops, bash completion was a bit over-eager, and I inadvertently built /usr/src/Python-2.7 instead of /usr/src/Python-2.7.1 . Nevertheless, when I finally do build Python-2.7.1, I get the same error : test_commands

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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21823/issue11397_py27_2.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21824/issue11397_py31_2.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2011-04-28 Thread Quinn Slack
Quinn Slack added the comment: Thanks for checking this out. Yes, this should wait for OpenSSL 1.0.1. I will fix the TODO. It is there because the current TLS-SRP patch to OpenSSL uses old (pre-RFC 5054) TLS alert values for when the SRP username isn't in the Client Hello. I'm preparing anoth

[issue11786] ConfigParser.[Raw]ConfigParser optionxform()

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7ce67c9237a by Łukasz Langa in branch '2.6': Closes #11786: ConfigParser.[Raw]ConfigParser optionxform(). http://hg.python.org/cpython/rev/c7ce67c9237a New changeset a6b772599594 by Łukasz Langa in branch '2.7': Merged solution for #11786 from 2.6

[issue11786] ConfigParser.[Raw]ConfigParser optionxform()

2011-04-28 Thread Łukasz Langa
Changes by Łukasz Langa : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: We don't ship unless all tests pass on all of our test platforms (and we have quite a few). If you look at that test it says the regex "should match 'ls -ld /.' on any posix system, however perversely configured". Perhaps your system has managed a new bran

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-04-28 Thread Sijin Joseph
Changes by Sijin Joseph : -- nosy: +sijinjoseph ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: $ uname -a Linux jvdspc 2.6.38.2-jvd #1 SMP Sun Apr 3 00:55:29 BST 2011 x86_64 GNU/Linux $ ls -ld / drwxr-xr-x. 25 root root 4096 Apr 20 15:28 / $ ls --version ls (GNU coreutils) 8.10 ... $ eval {gcc,g++,cpp,ld,as,ar,ranlib,objdump,objcopy,make,bash,ldconfig}'

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: $ ldd /usr/bin/python linux-vdso.so.1 => (0x7fff1edff000) libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x7f16aa8c) libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x7f16aa6a3000) libdl.so.2 => /usr/lib64

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: $ ls -ld /. drwxr-xr-x. 25 root root 4096 Apr 20 15:28 /. (oops, forgot the '.' suffix before) -- ___ Python tracker ___ _

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: The re matches for me if I call it manually with your ls -ld output. What output do you get if you do a 'print commands.getstatus("/.")' using your build of the python interpreter? By the way, this is a deprecated function under test here, so I'm setting thi

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

2011-04-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Ok, that's true, reopening. -- resolution: duplicate -> status: closed -> open ___ Python tracker ___

[issue7517] freeze.py not ported to python3

2011-04-28 Thread Marc Sibson
Marc Sibson added the comment: I think the original issue has been fixed by http://hg.python.org/cpython/rev/fd20eba1f201. freeze.py is now broken due to pep3149 and ABIFLAGS, freeze-pep3149-compat.patch adds awareness of ABIFLAGS to Tools/freeze/freeze.py. For me "python3.3 freeze.py hell

[issue11457] Expose nanosecond precision from system calls

2011-04-28 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- dependencies: +Support st_atim, st_mtim and st_ctim attributes in os.stat_result ___ Python tracker ___ ___

[issue7517] freeze.py not ported to python3

2011-04-28 Thread Andreas Stührk
Andreas Stührk added the comment: Note that I also opened issue #11824 for the abiflags problem. -- nosy: +Trundle ___ Python tracker ___

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Seeing the source , I see some complicated RE - should this test maybe be better off in the RE testing module ? I'd have used a simple RE like '^.*(\/.*)$' . Might my newly built & installed pcre-8.02 be a suspect here ? Here is an strace of the installed pyt

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Hmm.. investigating that "syscall_293..." stuff - I did $ cd /usr/src/linux; make headers_install and then built glibc-2.13 with the new header OK, but strace is rather old . I'll rebuild strace ... -- ___ Python

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: $ python Python 2.7 (r27:82500, Jul 4 2010, 23:30:10) [GCC 4.4.2 20090927 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> import re >>> import sys >>> import commands >>> print commands.getstatus(

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: new strace 4.6 of newly built python 2.7.1 failing test_commands.py $ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython2.7.so.1.0 strace -s8192 -f -e trace=execve ./python /usr/src/Python-2.7.1/Lib/test/test_commands.py execve("./python", ["./python", "/usr/sr

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Newly built python 2.7.1 commands.getstatus succeeds : $ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython2.7.so.1.0 ./python Python 2.7.1 (r271:86832, Apr 28 2011, 15:53:47) [GCC 4.6.0] on linux2 Type "help", "copyright", "credits" or "license" for more informa

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: Hmm. This is very odd. The output from getstatus is the same as your ls output, and that output passes the re. Python has its own regular expression implementation, so your pcre version shouldn't have anything to do with it. That complicated re, by the wa

[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-28 Thread Robert Meerman
New submission from Robert Meerman : Regular expressions which are written match literal underscores ("_", ASCII ordinal 95) and specify `re.IGNORECASE` during compilation do not consistently match underscores: it seems some occurrences are matched, but others are not. The following session lo

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: You are running selinux, right? Have you checked for things in the log that might indicate selinux is blocking the ls call for some reason? -- ___ Python tracker __

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Aha ! Fixed ! : patch : [ root@jvdspc:/mnt/sda3/Python-2.7 18:02:22 1685:1178 ] $ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython2.7.so.1.0 ./python /tmp/test_commands.py test_getoutput (__main__.CommandTests) ... ok test_getstatus (__main__.CommandTests) ...

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: oops, over-eager bash again - I've certainly had one too many bash s today :-) Here's the patch against 2.7.1's test_commands.py, not 2.7's : [ root@jvdspc:/mnt/sda3/Python-2.7 18:04:15 1687:1180 ] $ diff -U0 /usr/src/Python-2.7.1/Lib/test/test_commands.py /

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-04-28 Thread Sandro Tosi
New submission from Sandro Tosi : Following up http://mail.python.org/pipermail/docs/2011-April/004029.html here's a small patch (applicable on all the active branches) to "actually" :) connects the two paragraphs about modules search path. -- assignee: docs@python components: Document

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Not sure if relevant, but ls is appending a ' ' (0x20 == space) after the filename : $ ls -ld -d /. | od -x 000 7264 7877 2d72 7278 782d 202e 3532 7220 020 6f6f 2074 6f72 746f 3420 3930 2036 7041 040 2072 3032 3120 3a35 3832 2f20 0a2e 056 See t

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

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0518f32cb747 by Antoine Pitrou in branch 'default': Issue #11811: Factor out detection of IPv6 support on the current host http://hg.python.org/cpython/rev/0518f32cb747 New changeset d3166c359714 by Antoine Pitrou in branch 'default': Issue #11811:

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

2011-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thank you! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Changes by Jason Vas Dias : -- keywords: +patch Added file: http://bugs.python.org/file21827/bug_11946.patch ___ Python tracker ___ __

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Wow, GNU have respun two major releases of coreutils since I built coreutils-2.10 two weeks ago ! Now moving to latest version of coreutils : 8.12 and retesting . -- ___ Python tracker

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: $ ls -dl /. | od -x 000 7264 7877 2d72 7278 782d 202e 3532 7220 020 6f6f 2074 6f72 746f 3420 3930 2036 7041 040 2072 3032 3120 3a35 3832 2f20 0a2e 056 [ root@jvdspc:/tmp 19:15:01 1730:1223 ] $ ls --version ls (GNU coreutils) 8.12 Either GNU cor

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: I would say that coreutils is wrong to be appending a space. If a program were to parse the output of ls, it would reasonably expect the filename to be rendered exactly as it appears in the directory. That is, a program should treat a trailing space as *pa

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread R. David Murray
R. David Murray added the comment: By the way, I wouldn't expect most programs to ever notice that trailing space parsing -l output, but if it also attaches the trailing space in regular ls output, *that* I would expect more programs would trip over. -- __

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

2011-04-28 Thread Daniel Urban
Daniel Urban added the comment: This may be the same/similar as issue4806 (which has a patch). -- nosy: +durban ___ Python tracker ___ __

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Rationale: """ IEEE 754 assigns values to all relational expressions involving NaN. In the syntax of C, the predicate x != y is True but all others, x < y , x <= y , x == y , x >= y and x > y, are False whenever x or y or both are NaN, and then all but

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file21829/unorderable-nans.diff ___ Python tracker ___ ___ Python-bugs-li

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file21828/unorderable-nans.diff ___ Python tracker ___ ___ Python-bugs-

[issue11950] logger use dict for loggers instead of WeakValueDictionary

2011-04-28 Thread Марк Коренберг
New submission from Марк Коренберг : logger use dict for loggers instead of WeakValueDictionary Now, when object returned by getLogger() gets unreferenced - it will not be garbage collected, as reference is stored in logging module. This will results in leaked file object, that cannot be close

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

2011-04-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To repeat concisely what I said on pydev list, I think Reference 5.9. Comparisons, which says "Tuples and lists are compared lexicographically using comparison of corresponding elements. This means that to compare equal, each element must compare equal and t

[issue4296] Python assumes identity implies equivalence; contradicts NaN

2011-04-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-28 Thread Matthew Barnett
Matthew Barnett added the comment: help(re.sub) says: sub(pattern, repl, string, count=0) and re.IGNORECASE has a value of 2. Therefore this: re.sub("_", "X", subject, re.IGNORECASE) is telling it to replace at most 2 occurrences of "_". -- nosy: +mrabarnett __

[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-28 Thread Ezio Melotti
Ezio Melotti added the comment: Closing as invalid. I wonder if it would be better to have count as a keyword-only argument though, since this problem seems to come up pretty often and it's not easy to debug. -- resolution: -> invalid stage: -> committed/rejected status: open -> clos

[issue11951] Mac OSX IDLE 3.2 does not allow entering text into toolbar windows (such as the help search box) unless all shells are closed or minimized

2011-04-28 Thread Brian Buckley
Changes by Brian Buckley : -- components: IDLE nosy: Brian.Buckley priority: normal severity: normal status: open title: Mac OSX IDLE 3.2 does not allow entering text into toolbar windows (such as the help search box) unless all shells are closed or minimized type: feature request versi

[issue11951] Mac OSX IDLE 3.2 does not allow entering text into toolbar windows (such as the help search box) unless all shells are closed or minimized

2011-04-28 Thread Brian Buckley
New submission from Brian Buckley : text enters directly to the window closest to the front rather than to the selected text box. -- Added file: http://bugs.python.org/file21830/Screen shot 2011-04-28 at 5.07.07 PM.png ___ Python tracker

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: Oops, Paul is right here - I asked bug-coreut...@gnu.org, and Paul responds: Re: bug#8578: 8.12 and 8.10 'ls -dl' appends ' ' (0x20: space) to file output lines From: Paul Eggert (UCLA Computer Science Department) To: jason.vas.d...@gmail.com CC: 8...@

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: I imagine lots of other python REs fail if this one is failing ? : $ cat test.py import os import sys import re pat = r'''d. # It is a directory. \+? # It may have ACLs. \s+\d+ # It has some number of links.

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be better to drop the introductory phrase entirely. -- nosy: +rhettinger priority: normal -> low ___ Python tracker ___ ___

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

2011-04-28 Thread Ezio Melotti
Ezio Melotti added the comment: That's just because I'm used to Python 2 where the {} syntax for sets was not available. I'll try to keep that in mind for the next time. -- ___ Python tracker ___

[issue11947] re.IGNORECASE does not match literal "_" (underscore)

2011-04-28 Thread Matthew Barnett
Matthew Barnett added the comment: I don't know how much code that might break. It might not be that much; I can't remember when I last used re.sub without the default count. -- ___ Python tracker ___

[issue11952] typo in multiprocessing documentation: __main__ method should be replaced by __main__ module

2011-04-28 Thread akira
New submission from akira <4kir4...@gmail.com>: s/method/module/: Functionality within this package requires that the ``__main__`` method be importable by the children. -- assignee: docs@python components: Documentation messages: 134724 nosy: akira, docs@python priority: normal

[issue11953] Missing WSA* error codes

2011-04-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : Apparently not all Windows socket error codes (see http://msdn.microsoft.com/en-us/library/ms740668%28v=vs.85%29.aspx) are mapped in the errno module. For example, a buildbot recently got a 11004 error (see http://www.python.org/dev/buildbot/all/builders/x

[issue11953] Missing WSA* error codes

2011-04-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11832] Add option to pause regrtest to attach a debugger

2011-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d9800fcce7f by Brian Curtin in branch 'default': Implement #11832. Add an option to start regrtest and wait for input http://hg.python.org/cpython/rev/3d9800fcce7f -- nosy: +python-dev ___ Python tracke

[issue11832] Add option to pause regrtest to attach a debugger

2011-04-28 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11953] Missing WSA* error codes

2011-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it was raised by getaddrinfo(), so should perhaps belong in the socket module instead. -- ___ Python tracker ___ ___

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-28 Thread Jason Vas Dias
Jason Vas Dias added the comment: When I see messages like this in the "make test" log it makes me want to remove python and all python using software from my system : test_dl test test_dl crashed -- : module dl requires sizeof(int) == sizeof(long) == sizeof(char*) NO, GEE, THAT'S RIGHT !

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

2011-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: After further discussion on python-dev, it is clear that this identity checking behaviour handles more than just NaNs - it also allows containers to cope more gracefully with objects like NumPy arrays that make use of rich comparisons to return something other

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

2011-04-28 Thread Nick Coghlan
Nick Coghlan added the comment: Scratch the first half of that last comment - Guido pointed out that false positives rear their ugly head almost immediately if you try to store rich comparison objects in other containers. -- ___ Python tracker

[issue11951] Mac OSX IDLE 3.2 does not allow entering text into toolbar windows (such as the help search box) unless all shells are closed or minimized

2011-04-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the report: yet another Aqua Tk oddity. This one is a problem in Tk itself. It can be seen using a recent Wish 8.4 with a simple Tcl script to create a help menu. The relevant Tk bug is here: http://sourceforge.net/tracker/index.php?func=detail&aid=18

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Actually, my first attempt to fix the test was faulty. The correct logic seems to be +def is_negative_zero(x): +return x == 0 and math.copysign(1, x) < 0 + +def almost_equal(value, expected): +if math.isfinite(expected) and math.isfinite(value):

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file21829/unorderable-nans.diff ___ Python tracker ___ ___ Python-bugs-

[issue11949] Make float('nan') unorderable

2011-04-28 Thread Alex Gaynor
Alex Gaynor added the comment: The C standard (and/or the POSIX one, I forget) says sqrt(-0.0) returns -0.0. -- nosy: +alex ___ Python tracker ___ __

  1   2   >