[issue15014] smtplib: add support for arbitrary auth methods

2012-06-08 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- nosy: +catalin.iacob ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15014 ___ ___

[issue15034] tutorial should use best practices in user defined execeptions section

2012-06-08 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15034 ___ ___ Python-bugs-list mailing list

[issue15035] array.array of UCS2 values

2012-06-08 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: I'm sometimes using an array.array with format character u as a writable backing store for buffers shared with platform APIs that access buffers of UCS2 values. This works fine in python 3.2 and earlier with a ucs2 build of python,

[issue15035] array.array of UCS2 values

2012-06-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: See also #13072 and the discussion starting at: http://mail.python.org/pipermail/python-dev/2012-March/117390.html I think the priority should be high, since the current behavior doesn't preserve the status quo. Also, PEP-3118 suggests

[issue15035] array.array of UCS2 values

2012-06-08 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Hmm, obviously the discussion starts here: http://mail.python.org/pipermail/python-dev/2012-March/117376.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15035

[issue12897] Support for iterators in multiprocessing map

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: If you want lazy operation then you should use imap(f, it[, chunksize]) rather than using map_async(f, it). This will return an iterator rather than a list. Also, the iterator's next() method has a timeout argument. (chunksize is the

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-06-08 Thread Laurent Duchesne
Changes by Laurent Duchesne laurent.duche...@gmail.com: -- nosy: +Laurent.Duchesne ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14499 ___ ___

[issue7474] multiprocessing.managers.SyncManager managed object creation fails when started outside of invoked file

2012-06-08 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7474 ___

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14006 ___

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-06-08 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Any progress, or can this issue be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14377 ___

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - wont fix stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14078 ___

[issue11379] Remove lightweight from minidom description

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11379 ___ ___ Python-bugs-list

[issue1040439] Missing documentation on how to link with libpython

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1040439 ___ ___ Python-bugs-list

[issue14097] Improve the introduction page of the tutorial

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___ Python-bugs-list

[issue13455] Reorganize tracker docs in the devguide

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13455 ___ ___ Python-bugs-list

[issue12907] Update test coverage devguide page

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12907 ___ ___ Python-bugs-list

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: As long as you don't pass the arguments on to Process.__init__() when you call it there should be no problem. The following program works, but will fail with RuntimeError if you uncomment the comment line: from multiprocessing import

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-08 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4aeb5b9b62d7 by Hynek Schlawack in branch 'default': #14814: Remove redundant code from ipaddress.IPv6Network http://hg.python.org/cpython/rev/4aeb5b9b62d7 -- ___ Python

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-06-08 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: @Roger Serwy Does anyone know a good way to make the exception render as: must be str, not int instead of must be str, not class 'int' ? Use s.__name__ rather than type(s) for the type name e.g. -raise TypeError('must be str, not %s' %

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-08 Thread Petri Lehtinen
New submission from Petri Lehtinen pe...@digip.org: test_mbox is an mbox mailbox with a few messages in it. import mailbox inbox = mailbox.mbox('test_mbox') inbox.lock() inbox.popitem() (0, mailbox.mboxMessage instance at 0x7f78016bc680) inbox.flush() inbox.unlock() inbox.lock()

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-08 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Actually, you don't even need to unlock() and lock() the mailbox before the second popitem() and flush(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15036

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: One issue with sys.exit() is that it only makes the current thread exit. Even when called in the main thread, the program will wait for non-daemon threads to finish. A closer equivalent to terminate() would be os.kill(os.getpid(),

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-08 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10133 ___ ___ Python-bugs-list mailing

[issue1167300] Error execing python code

2012-06-08 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- superseder: - An inconsistency with nested scopes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1167300 ___

[issue14908] datetime.datetime should have a timestamp() method

2012-06-08 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Added ReST documentation. Will commit soon. Merging nosy list from issue 2736. -- nosy: +Jay.Taylor, Neil Muller, amaury.forgeotdarc, andersjm, catlee, davidfraser, erik.stephens, guettli, hodgestar, jribbens,

[issue14908] datetime.datetime should have a timestamp() method

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Removed file: http://bugs.python.org/file25858/issue14908.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___

[issue15037] test_curses fails with OverflowError

2012-06-08 Thread John Bollinger
New submission from John Bollinger john.bollin...@stjude.org: I encountered this test failure while attempting to verify a patch for a separate issue, and I found that it occurs with the unmodified source on the default branch: LD_LIBRARY_PATH=$PWD ./python -bb -Wd -m test -r -w -uall -v

[issue2736] datetime needs an epoch method

2012-06-08 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6671c5039e15 by Alexander Belopolsky in branch 'default': Issue #2736: Added datetime.timestamp() method. http://hg.python.org/cpython/rev/6671c5039e15 -- ___ Python

[issue14908] datetime.datetime should have a timestamp() method

2012-06-08 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I associated my commit with issue 2736 by mistake, but it is probably a good thing because that issue contains a longer history. Closing this as a duplicate. -- resolution: - duplicate stage: commit review -

[issue2736] datetime needs an epoch method

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- superseder: Add aware local time support to datetime module - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2736 ___

[issue15031] Split .pyc parsing from module loading

2012-06-08 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: I see. However, I think that breaking code noisily is better than breaking it silently, which is what happens when the same protocol is reimplemented many times. And _loads_pyc() could be made more forward-compatible by returning (path_stats,

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread John Bollinger
John Bollinger john.bollin...@stjude.org added the comment: I attach a patch fixing the issue and providing a test and docs. The fix is substantially as I described earlier: a thread that holds the Tcl lock is permitted to acquire it logically any number of times, but physically attempts to

[issue15030] PyPycLoader can't read cached .pyc files

2012-06-08 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: Well, working on a deprecated ABC is certainly low-priority, but it seems rather bad to have 2 incompatible implementations of the .pyc format in the stdlib. If this is to stay like this, it should at least come with a strong warning that

[issue15019] String termination on Linux

2012-06-08 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Jānis, please present examples as proper python -- indentation and comment char -- so others can copy/paste to run without editing. In Idle (tkinter -- tk), '\0' is displayed as a wider space than ' '. The console is fixed pitch, so it cannot

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for working on this. This is not my area of expertise, but what you describe sounds like an RLock, and there is a C implementation of RLock in Python3. Could you just use that for Python3? Also, very minor comments on the patch

[issue15007] Unittest CLI does not support test packages very well

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15007 ___ ___ Python-bugs-list

[issue15020] Poor default value for progname in pythonrun.c

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo title: Poor default value for progname - Poor default value for progname in pythonrun.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15020

[issue15011] Change Scripts to bin on Windows

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15011 ___ ___ Python-bugs-list

[issue15033] Different exit status when using -m

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, ncoghlan versions: +Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15033 ___

[issue15034] tutorial should use best practices in user defined execeptions section

2012-06-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t understand the request. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15034 ___

[issue15034] tutorial should use best practices in user defined execeptions section

2012-06-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The obvious example is that the tutorial makes no mention of calling 'super' in __init__. I'm also aware that there are issues of pickleability that arise if you do things one way, but do not arise if you do things another way. But I

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email nosy: +barry, r.david.murray stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15036

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread John Bollinger
John Bollinger john.bollin...@stjude.org added the comment: Yes, I have basically made tkinter's Tcl lock into an Rlock. With respect to Python3's Rlock implementation, though, are you talking about what I see in Modules/_threadmodule.c? Even if it would be acceptable to make the tkinter

[issue15031] Split .pyc parsing from module loading

2012-06-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I point is that it shouldn't break at all if possible, although path_stats does potentially provide a way to deal with this (as does using keyword-only arguments for what needs to be verified). I'll have to think about this. One issue I have

[issue15030] PyPycLoader can't read cached .pyc files

2012-06-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yes, a fix would be easiest, but someone has to write the fix. =) I will try to get to it before the first beta (unless Antoine, who made the .pyc change, wants to do it =). -- ___ Python tracker

[issue15038] Optimize python Locks on Windows

2012-06-08 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: The attached patch does three things: - Abstract the condition variable used by ceval_gil.h into a separate file, condvar.h. It now defines a PyMUTEX_T, PyCOND_T and associated functions. This file can be used by different

[issue15038] Optimize python Locks on Windows

2012-06-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: This defect springs out of issue #11618 -- superseder: - Locks broken wrt timeouts on Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15038

[issue15034] tutorial should use best practices in user defined exceptions section

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- title: tutorial should use best practices in user defined execeptions section - tutorial should use best practices in user defined exceptions section ___ Python tracker

[issue15034] tutorial should use best practices in user defined exceptions section

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15034 ___ ___

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That's why I phrased it as a question, I don't know enough about the C stuff. Someone else nosy on this bug will probably have a more informed opinion. I don't think the copyright marking policy is currently written down. It ought to

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-08 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: BTW: If PEP 362 is accepted, and this patch makes it for 3.3 (both of which I think will happen), I'll hand-code signatures for the functions that may throw NotImplementedError so users can use is_implemented to LBYL. --

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-08 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Is there a reason manual is None, True, or False? Wouldn't just True or False suffice? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-08 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Is there a reason manual is None, True, or False? Wouldn't just True or False suffice? I suppose before we see the first bracketed form ({} or {\d+}) we don't know which it is. -- ___ Python

[issue13598] string.Formatter doesn't support empty curly braces {}

2012-06-08 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Yes, I guess that's so. I'll have to add a comment, as at first glance it just looks like a bug. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13598

[issue15039] module/ found before module.py when both are in the CWD

2012-06-08 Thread Dan Stromberg
New submission from Dan Stromberg strom...@gmail.com: CPython 3.3a4 appears to find treap/ before treap.py in the CWD. If I rename treap to treap-dir, all seems well for the code in question: dstromberg@zareason-limbo6000a /tmp/tt $ mv treap treap-dir dstromberg@zareason-limbo6000a /tmp/tt $

[issue15039] module/ found before module.py when both are in the CWD

2012-06-08 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15039 ___ ___ Python-bugs-list

[issue15039] module/ found before module.py when both are in the CWD

2012-06-08 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- assignee: - eric.smith nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15039 ___

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-08 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I haven't read the code, but from Larry's description this looks great to me. It's amazing how many extra functions were added to the os module since 3.2! I also agree that the redundant functions that existed in 3.2 should stay and I don't

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Previously existing redundant functions could be deprecated in documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14626

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2012-06-08 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Previously existing redundant functions could be deprecated in documentation. As in, don't start a deprecation cycle (warning in 3.3, deprecated in 3.4, gone in 3.5), just document consider using this other function instead? That's