[issue13661] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram : --- 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: http://mail.google.com/mail/b-a8ddcdef74-00d

[issue13660] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram : --- 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: http://mail.google.com/mail/b-a8ddcdef74-d9b

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

2011-12-23 Thread maniram maniram
maniram maniram 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() which opens a new wind

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

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Changed Shortcuts don't show up in menu -> IDLE: Changed Shortcuts don't show up in menu versions: +Python 3.3 ___ Python tracker ___ __

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Roger Serwy
Roger Serwy added the comment: This is identical to issue6028 and may be related to issue3555. -- ___ Python tracker ___ ___ Python-b

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Ron Adam 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 little slower. You ca

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

2011-12-23 Thread Martin Pool
Martin Pool added the comment: Terry, that's fine. Thanks to everyone who contributed to the discussion. -- ___ Python tracker ___ _

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

2011-12-23 Thread maniram maniram
New submission from maniram maniram : 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 so that no help outpu

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

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: Can't test right now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13607] Move generator specific sections out of ceval.

2011-12-23 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file24047/f_why1.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Meador Inge
Meador Inge added the comment: Committed. Thanks for the review Terry. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Roundup Robot
Roundup Robot 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 'default': Issue #13632: Update to

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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 the subprocess han

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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 consequence, bindings for ext

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread maniram maniram
maniram maniram 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

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

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy 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 before every n

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy 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(a&b, b&a) print(a.intersection(b), b.intersection(a)) a &= b print(a) >>> {1.0, 3.

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy 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 this is not a cr

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

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy 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 does mean that it w

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

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy 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 not in the Glossa

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Roundup Robot
Roundup Robot 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: -> committed/rejected status: open ->

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- priority: low -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks good to me. help(token) already has the corrections. - BACKQUOTE, + RARROW, ELLIPSIS -- nosy: +terry.reedy ___ Python tracker ___ ___

[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 : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does it do the same with http instead of https? -- nosy: +terry.reedy ___ Python tracker ___ ___ Py

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Nothing, but that would be pointless; the recursion would just start again. -- ___ Python tracker ___ __

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Georg Brandl
Georg Brandl 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 except clause?

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-12-23 Thread Roger Serwy
Roger Serwy 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 mimicking the

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 really qualifi

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray 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 I expect it to just wo

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: On Fri, Dec 23, 2011 at 10:35 PM, Antoine Pitrou wrote: > > 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 small chance of overwriting file

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 does safety

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: 2011/12/23 Charles-François Natali > > Charles-François Natali 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 pr

[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 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. --

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

2011-12-23 Thread Roundup Robot
Roundup Robot 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 Charles-François Natali in branch '3.2': I

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

2011-12-23 Thread STINNER Victor
STINNER Victor 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 ___

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 backward incompatib

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

2011-12-23 Thread Benjamin Peterson
Benjamin Peterson 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 anatoly techtonik
anatoly techtonik added the comment: 2011/12/23 Charles-François Natali > > > 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 cannot make rename() overwrite e

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This change probably should be backported to 3.2 branch. -- ___ Python tracker ___

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray 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 ___

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 ulgy API. We

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 OSes) :) >

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray 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 programmer will assum

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik 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 tracker

[issue13511] Specifying multiple lib and include directories on linux

2011-12-23 Thread Ray
Ray 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 that python 2.7 does n

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 with warnin

[issue8828] Atomic function to rename a file

2011-12-23 Thread anatoly techtonik
anatoly techtonik added the comment: os.rename(overwrite=True) to produce consistent cross-platform behavior. -- ___ Python tracker ___ __

[issue8828] Atomic function to rename a file

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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. Ideally, this should

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 example :-) > A

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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

[issue8623] Aliasing warnings in socketmodule.c

2011-12-23 Thread Roundup Robot
Roundup Robot 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 ___

[issue8313] message in unittest tracebacks

2011-12-23 Thread Michael Foord
Michael Foord added the comment: traceback patch looks good. Thanks for the unittest2 patch as well. -- ___ Python tracker ___ ___ Pyt

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray 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 might be a flag on rename:

[issue13658] Extra clause in class grammar documentation

2011-12-23 Thread Joshua Landau
New submission from Joshua Landau : 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 the clause. The 2

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What is the motivation for providing a new function? Because changing os.rename would break compatibility. -- ___ Python tracker ___

[issue5689] Support xz compression in tarfile module

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

[issue8828] Atomic function to rename a file

2011-12-23 Thread R. David Murray
R. David Murray added the comment: What is the motivation for providing a new function? -- ___ Python tracker ___ ___ Python-bugs-list

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Lars Gustäbel
Changes by Lars Gustäbel : Removed file: http://bugs.python.org/file24084/lzma-preset.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13651] Improve redirection in urllib

2011-12-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil versions: +Python 2.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Nadeem Vawda
Nadeem Vawda 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 preset=9. You might want

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 (i.e.renamed). A

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 written to a tempo

[issue10513] sqlite3.InterfaceError after commit

2011-12-23 Thread Florent Viard
Florent Viard 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(): TableB.new_item(name=item.name) conne

[issue5689] Support xz compression in tarfile module

2011-12-23 Thread Lars Gustäbel
Lars Gustäbel 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: http://bugs.python.org/file24084/lzma-preset.diff

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 file-li

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Andrew Dalke
Andrew Dalke 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 cases of people using set

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 file-like

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 write()? > St

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 xml.etree.cElementTree

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

2011-12-23 Thread Charles-François Natali
Charles-François Natali 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 thread-local variables, wh

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

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

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

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is committed, thank you! -- resolution: -> rejected stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

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

2011-12-23 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

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

2011-12-23 Thread maniram maniram
Changes by maniram maniram : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2011-12-23 Thread maniram maniram
New submission from maniram maniram : 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 ctypes.wintypes. type: enh

[issue6983] Add specific get_platform() for freebsd

2011-12-23 Thread Stef Walter
Stef Walter 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 apply a security pa

[issue8828] Atomic function to rename a file

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 patch ___

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

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 verification, t

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

2011-12-23 Thread naif
naif 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 base it's default root

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

2011-12-23 Thread naif
naif 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, in case it's us

[issue8604] Adding an atomic FS write API

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 certainl

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

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 for raw IP add

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

2011-12-23 Thread naif
Changes by naif : -- type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2011-12-23 Thread naif
naif 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 verification. --

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

2011-12-23 Thread naif
New submission from naif : 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 nice way, it's jus

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

2011-12-23 Thread Dan Kaminsky
Dan Kaminsky added the comment: On Fri, Dec 23, 2011 at 4:14 AM, Antoine Pitrou wrote: > > Antoine Pitrou 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,

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

2011-12-23 Thread Senthil Kumaran
Senthil Kumaran 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 -> http.server: minor code s

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

2011-12-23 Thread Antoine Pitrou
Antoine Pitrou 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 sure that e

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

2011-12-23 Thread Roundup Robot
Roundup Robot 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 branch 'default': merge from 3.2.

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

2011-12-23 Thread Dan Kaminsky
Dan Kaminsky 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 (bonus poin

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

2011-12-23 Thread Martin v . Löwis
Martin v. Löwis 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 tracker