[issue13648] xml.sax.saxutils.escape does not escapes \x00

2011-12-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is correct behavior. \x00 is not supported in XML: not in raw form, and not in escaped form. To transmit binary data in XML, use base64. -- nosy: +loewis status: open - closed ___ Python

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Dan Kaminsky
Dan Kaminsky d...@doxpara.com added the comment: There is a new match_hostname that doesn't implement all the required, standard SSL/TLS Client security checks that should be done. Indeed, as the name indicates, it just checks the hostname. Please detail what the other security checks are

[issue13294] http.server: HEAD request should not return a body

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2c1720468dbb by Senthil Kumaran in branch '3.2': Minor code style improvements in http.server suggested in Issue13294. http://hg.python.org/cpython/rev/2c1720468dbb New changeset 0466ee1816b1 by Senthil Kumaran in

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You need to check expiration date of the cert in question, and I suppose invocation date as well. You need to look at each of the CNs in the subject name, as well as each of the DNSname types in the SAN extension. You *absolutely must* make

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

2011-12-23 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: The original issue was invalid. Incorporated Michele Orrù's code style changes into the trunk and other codelines. -- resolution: - fixed status: open - closed title: http.server: HEAD request should not return a body -

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Dan Kaminsky
Dan Kaminsky d...@doxpara.com added the comment: On Fri, Dec 23, 2011 at 4:14 AM, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: You need to check expiration date of the cert in question, and I suppose invocation date as well. You need to

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-23 Thread naif
New submission from naif n...@globaleaks.org: For the certificate store: Can we eventually agree to bind a default CA-store to a Mozilla verified one? Mozilla in handling Firefox does a great job in keeping CA-store up-to-date. Integrating default mozilla CA-store with Python builds could be a

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread naif
naif n...@globaleaks.org added the comment: Hi all, i added a ticket on setting up a default CA-store for Python, eliminating the need of CA-Store mainteinance: http://bugs.python.org/issue13655 This feature is a pre-requisite to implement by default SSL/TLS Client secure certificate

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-23 Thread naif
Changes by naif n...@globaleaks.org: -- type: - security ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13655 ___ ___ Python-bugs-list mailing

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Be sure to support SAN. People forget that, and the API makes it a pain in the butt (the validator doesn't even know who you're validating for). Right, that's why we added the match_hostname() function. It knows about subjectAltName, except

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I wish we had something like: io.file io.file.tempfile io.file.path io.file.atomicfile I adhere to flat is better than nested. e.g. it always irks me to type urllib.request instead of urllib. A 3-level deep nesting in the stdlib would

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread naif
naif n...@globaleaks.org added the comment: looking at OpenSSL command line, there is the verify that does a lot of checks on it's own: http://www.openssl.org/docs/apps/verify.html Dan, do you think that this apps does all the best practice verificati or it's missing something? Antoine,

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-23 Thread naif
naif n...@globaleaks.org added the comment: Mozilla CA are available on: https://www.mozilla.org/projects/security/certs/ The warranty and security process of Mozilla handling of SSL CA root certs is described on: https://wiki.mozilla.org/CA I think that Python language could reasonably

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine, in case it's useful, do you think that it would be possible to have something exactly-like the OpenSSL verify command? Well, to quote the page you mentioned: “The verify program uses the same functions as the internal SSL and S/MIME

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So how about providing a new public `os` module function doing a rename-with-overwrite on all platforms? We could name it e.g. os.replace(). os.rename_overwrite() is another possibility, more explicit but also longer. -- stage: - needs

[issue6983] Add specific get_platform() for freebsd

2011-12-23 Thread Stef Walter
Stef Walter s...@memberwebs.com added the comment: Good plan. So the issue is: * Platform specific eggs are built containing a path that has the full patch level of the freebsd kernel, like 8.2-RELEASE-p2. The -p2 part is updated for every security patch of FreeBSD. * Thus when you

[issue13656] Document ctypes.util and ctypes.wintypes.

2011-12-23 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: Document ctypes.util and ctypes.wintypes. -- assignee: docs@python components: Documentation messages: 150151 nosy: docs@python, maniram.maniram priority: normal severity: normal status: open title: Document ctypes.util and

[issue13656] Document ctypes.util and ctypes.wintypes.

2011-12-23 Thread maniram maniram
Changes by maniram maniram maniandra...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13656 ___

[issue13577] __qualname__ is not present on builtin methods and functions

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7a7b698f6f21 by Antoine Pitrou in branch 'default': Issue #13577: Built-in methods and functions now have a __qualname__. http://hg.python.org/cpython/rev/7a7b698f6f21 --

[issue13577] __qualname__ is not present on builtin methods and functions

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch is committed, thank you! -- resolution: - rejected stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13577

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2011-12-23 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: IDLE doesn't support nor set sys.ps1 and sys.ps2. sys.ps1 Traceback (most recent call last): File pyshell#1, line 1, in module sys.ps1 AttributeError: 'module' object has no attribute 'ps1' sys.ps1 = Test #The next prompt

[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I assume this was due to the following bug: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219 http://lists.freedesktop.org/archives/mesa-dev/2011-March/006180.html In short, MESA didn't use the correct TLS model for

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I adhere to flat is better than nested. e.g. it always irks me to type urllib.request instead of urllib. Well, that's what (selective) imports are for, no ? from urllib import request from file.path import exists import

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Anyway, my thoughts? wasn't referring to this namespace hierarchy proposal (which really isn't one), but rather to the best module which could host an AtomicFile class. Does it have to be a class? What would be the operations apart from

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Does it have to be a class? What would be the operations apart from write()? Well, I thought that making it a file-like object could be useful: that way, one could pass it to pickle.dump(), logging.StreamHandler or any method

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Andrew Dalke
Andrew Dalke da...@dalkescientific.com added the comment: My belief is that the people who use set.intersection with more than two terms are 1) going to pass in a list of sets, and 2) don't care about the specific order. To check the validity of my belief, I did a Google Code Search to find

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does it have to be a class? What would be the operations apart from write()? Well, I thought that making it a file-like object could be useful: that way, one could pass it to pickle.dump(), logging.StreamHandler or any method expecting a

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Wouldn't it be better then to use a default compresslevel of 6 in tarfile? I used level 9 in my patch without a particular reason, just because I thought 9 must be better than 6 ;-) -- Added file:

[issue10513] sqlite3.InterfaceError after commit

2011-12-23 Thread Florent Viard
Florent Viard fvi...@lacie.com added the comment: Hi, I encountered the same regression with python 2.7. I added a new testcase (testcase2) with another effect of the same problem. It is a model of what does python-storm when I try to do: for item in TableA.findall():

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: If you want atomicity to apply to logging, you must instead guarantee the durability of each write() call, meaning calling fsync() on each logging call Why so? There's no point in calling fsync() after each write, since data is

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There's no point in calling fsync() after each write, since data is written to a temporary file which won't be visible before rename(): even if you call fsync() after each write, if the file is not properly closed, it won't be committed

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Yes, that's a good idea. I've been testing a similar change, and it seems to drop the peak memory usage for test_tarfile from around 810MB down to under 200MB. It looks like 2GB genuinely isn't enough to reliably use LZMA compression with

[issue13651] Improve redirection in urllib

2011-12-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil versions: +Python 2.7 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13651 ___

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: Removed file: http://bugs.python.org/file24084/lzma-preset.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689 ___

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: What is the motivation for providing a new function? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8828 ___

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Yes, that's much better. Thanks for the tip. -- Added file: http://bugs.python.org/file24086/lzma-preset.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What is the motivation for providing a new function? Because changing os.rename would break compatibility. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8828

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Joshua Landau
New submission from Joshua Landau joshua.landau...@gmail.com: Inside the grammar for classes[1], the documentation states that the inheritance list can be of type: ( [argument_list [,] | comprehension] ) The comprehension part seems to be superfluous, especially as it is valid grammar without

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I see, people may be depending on rename on Windows not overwriting. I suppose a new function (and eventually deprecating the old?) would be the most straightforward way forward, though I dislike the necessity :) An alternative

[issue8313] unprintable AssertionError object message in unittest tracebacks

2011-12-23 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: traceback patch looks good. Thanks for the unittest2 patch as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8313 ___

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 683a1b1ff15d by Charles-François Natali in branch 'default': Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson. http://hg.python.org/cpython/rev/683a1b1ff15d -- nosy: +python-dev

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Thanks for your patches, David. I've only applied the first one: looking at the second one, I don't think they are really problems (-Wstrict-aliasing=2 is know for generating a lot of false positives). -- nosy: +neologix

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Ah, it's a temporary file indeed. But does that mean you can't inspect your logs in real time? All log files I have ever seen are available under their final name while they are still being written to. Yes, logging was a poor

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'd prefer an optional flag to rename() too. I really don't like having different functions that achieve the same thing. It's not obvious to infer from 'replace' its real intent, since it doesn't match any standard syscall/library.

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: os.rename(overwrite=True) to produce consistent cross-platform behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8828 ___

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: An alternative might be a flag on rename: overwrite=['always', 'os_default'] How about overwrite=[None, True] with None meaning OS default? with a warning and a switch of the default in a subsequent release. I think we should be conservative

[issue13511] Specifying multiple lib and include directories on linux

2011-12-23 Thread Ray
Ray rpq...@hotmail.com added the comment: Whether or not includedir and libdir are supposed to allow multiple packages is beyond me at this point so I'll change the topic to more reflect the problem I am having. More importantly (and possibly related to includedir and libdir) is the fact

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: One of the Python advantages is providing predictable cross-platform behavior. If we can't introduce nice API without BC break, it is not a reason to introduce ulgy API. -- ___ Python

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm good with None/True, but that would imply that for posix rename we'll need to implement the overwrite=False option...which would be a nice thing (the shell mv command has -i for that). I think a warning would be good, because a unix

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm good with None/True, but that would imply that for posix rename we'll need to implement the overwrite=False option...which would be a nice thing (the shell mv command has -i for that). My point was rather to forbid False as a value (on all

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: How about overwrite=[None, True] with None meaning OS default? +1. One of the Python advantages is providing predictable cross-platform behavior. If we can't introduce nice API without BC break, it is not a reason to introduce

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, you are right about the race of course. So yes, I agree with your proposal. It's a weird API, but probably the best we can do. -- ___ Python tracker rep...@bugs.python.org

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2011-12-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13647 ___ ___ Python-bugs-list mailing list

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13655 ___ ___ Python-bugs-list mailing list

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689 ___ ___

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: This change probably should be backported to 3.2 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8623

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 2011/12/23 Charles-François Natali rep...@bugs.python.org One of the Python advantages is providing predictable cross-platform behavior. If we can't introduce nice API without BC break, it is not a reason to introduce ulgy API. We

[issue13655] Python SSL stack doesn't have a default CA Store

2011-12-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I'm not sure Python should be in the business of distributing CA certificates. I think it's better left to the application or Linux distribution. -- nosy: +benjamin.peterson ___ Python tracker

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I propose quite the opposite. rename() should not overwrite existing files by default. 1. That's not what I understood from: os.rename(overwrite=True) to produce consistent cross-platform behavior. 2. The above argument on

[issue13565] test_multiprocessing.test_notify_all() hangs on AMD64 Snow Leopard 02 03.x

2011-12-23 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Victor, could you try the attached script on FreeBSD, to see if you get ECONNREFUSED? Yes, I get a ECONNREFUSED. I tested backlog.py on FreeBSD 8.2. -- ___ Python tracker

[issue13565] test_multiprocessing.test_notify_all() hangs on AMD64 Snow Leopard 02 03.x

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 94494a779c20 by Charles-François Natali in branch '2.7': Issue #13565: Increase multiprocessing's server socket backlog, to avoid http://hg.python.org/cpython/rev/94494a779c20 New changeset 9b99adef3c78 by

[issue13565] test_multiprocessing.test_notify_all() hangs on AMD64 Snow Leopard 02 03.x

2011-12-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Yes, I get a ECONNREFUSED. I tested backlog.py on FreeBSD 8.2. Thanks. I bumped the backlog, I hope it will fix this. We can leave this report open for a couple days, to see how the buildbots behave. --

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 2011/12/23 Charles-François Natali rep...@bugs.python.org Charles-François Natali neolo...@free.fr added the comment: I propose quite the opposite. rename() should not overwrite existing files by default. 1. That's not what I

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: os.rename(overwrite=False) by default will do less harm than the opposite, Disagreed. Then I believe that having a small chance of overwriting file just created at exactly the same moment on a POSIX is a small price to pay for function that

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Fri, Dec 23, 2011 at 10:35 PM, Antoine Pitrou rep...@bugs.python.orgwrote: os.rename(overwrite=False) by default will do less harm than the opposite, Disagreed. Fine. No arguments == no consensus. Then I believe that having a

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: So maybe my warning idea isn't such a bad idea :) As a unix programmer, I was very surprised to read in this thread that Windows doesn't overwrite the file on rename. As a unix programmer, I don't check for errors on a rename, because

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As a Windows programmer I am quite surprised to read this thread with information that on Linux os.rename() overwrites files without questions, so as I Windows programmer I want os.rename() to stop that. As a Windows programmer, you are not

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This would make the IDLE shell interface more consistent with the original interpreter. Presently, the prompt is faked by showprompt in PyShell.py. It relies on sys from the IDLE gui process and not from the sys in the subprocess, so

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13658 ___ ___ Python-bugs-list

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: @OP: As you yourself wrote, this is an abort, not a segfault. It is not a crash; it is a controlled exit of the Python executable. @Benjamin: I don't really understand your reasoning: what is preventing Python to raise the error during the

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Nothing, but that would be pointless; the recursion would just start again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13644

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13658 ___ ___ Python-bugs-list

[issue13615] `setup.py register` fails with -r argument

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Does it do the same with http instead of https? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13615 ___

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13630 ___ ___ Python-bugs-list

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Looks good to me. help(token) already has the corrections. - BACKQUOTE, + RARROW, ELLIPSIS -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13632

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- priority: low - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13632 ___ ___ Python-bugs-list

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b65007ef59c0 by Benjamin Peterson in branch '3.2': kill superfluous 'comprehension' case (closes #13658) http://hg.python.org/cpython/rev/b65007ef59c0 -- nosy: +python-dev resolution: - fixed stage: -

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 2.7 is closed to new features. This looks like it mignt be one. The 2.7 doc for tarfile.open says Return a TarFile object for the pathname name. Does the meaning of 'pathname' in 2.7 generally include unicode as well as str objects? (It is

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Martin, after reading most all of the unusually large sequence of messages, I am closing this because three of the core developers with the most experience in this area are dead-set against your proposal. That does not make it 'wrong', but

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: When I run this with 3.2.2 IDLE, from an edit window, I get an MSVC++ Runtime Library window: Runtime Error! .../pythonw This application has requested termination in an unusual way When I close that, IDLE continues. So I would say that

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Given that equality is not identify, order does matter, although in 3.2.2 the results are the opposite of what one might expect. a = set((1,2,3)) b = set((1.0, 3.0, 5.0)) print(ab, ba) print(a.intersection(b), b.intersection(a)) a = b print(a)

[issue3974] collections.namedtuple uses exec to create new classes

2011-12-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3974 ___ ___ Python-bugs-list mailing list

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: so mimicking the changed prompt would require querying the subprocess for its sys.ps1 and sys.ps2. Is that sensibly possible? Any line of code can change those, so IDLE would have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: @Terry IDLE restarts python (like in the menu entry Restart Shell) when the Python process dies no matter how the Python process dies. So this issue is a valid bug. -- ___ Python tracker

[issue6092] Changed Shortcuts don't show up in menu

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This only applies to menu items from extensions (in this case, ScriptBinding.py). Other events (Copy, Cut, Paste, etc) update the menu shortcut properly. IDLE handles bindings for extensions separately from built-in functions. As a

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Is that sensibly possible? Any line of code can change those, so IDLE would have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2 before every new ps1 statement prompt. It may be possible if the code gets refactored such that

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b7d099e8c136 by Meador Inge in branch '3.2': Issue #13632: Update token documentation to reflect actual token types http://hg.python.org/cpython/rev/b7d099e8c136 New changeset 1461327e63b5 by Meador Inge in branch

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Committed. Thanks for the review Terry. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Changes by Ron Adam ron3...@gmail.com: Removed file: http://bugs.python.org/file24047/f_why1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___

[issue13615] `setup.py register` fails with -r argument

2011-12-23 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Can't test right now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13615 ___ ___

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-23 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: If you call help() a few times on some objects, due to help()'s output IDLE's Shell Window becomes very long and it becomes difficult to scroll through the window. I suggest a new window should be opened when help() is called in IDLE

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-23 Thread Martin Pool
Martin Pool m...@sourcefrog.net added the comment: Terry, that's fine. Thanks to everyone who contributed to the discussion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13643 ___

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Ron Adam ron3...@gmail.com added the comment: Updated patch with suggested changes. It also has a cleaned up fast_block_end section. Concerning speed. What happens is (as Tim and Raymond have pointed out) that we can make some things a little faster, in exchange for other things being a

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: This is identical to issue6028 and may be related to issue3555. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13644 ___

[issue6092] IDLE: Changed Shortcuts don't show up in menu

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Changed Shortcuts don't show up in menu - IDLE: Changed Shortcuts don't show up in menu versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6092

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-23 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: Sorry, new window in I suggest a new window should be a new read-only editor window. It could be implemented through a wrapper around help. IDLE could have a configuration option whether to use the traditional help() or the new help()

[issue13660] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram maniandra...@gmail.com: --- maniandram maniandram wants to stay in touch better using some of Google's great new products. If you already have Gmail or Google Talk, visit:

[issue13661] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram maniandra...@gmail.com: --- maniandram maniandram wants to stay in touch better using some of Google's great new products. If you already have Gmail or Google Talk, visit: