[issue15014] smtplib: add support for arbitrary auth methods

2012-06-08 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2012-06-08 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15035] array.array of UCS2 values

2012-06-08 Thread Ronald Oussoren
New submission from Ronald Oussoren : 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, but no longer works wi

[issue15035] array.array of UCS2 values

2012-06-08 Thread Stefan Krah
Stefan Krah 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 'u' for UCS2 and 'w' for

[issue15035] array.array of UCS2 values

2012-06-08 Thread Stefan Krah
Stefan Krah added the comment: Hmm, obviously the discussion starts here: http://mail.python.org/pipermail/python-dev/2012-March/117376.html -- ___ Python tracker ___ _

[issue12897] Support for iterators in multiprocessing map

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk 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 number of items which

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

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

2012-06-08 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

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

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

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

2012-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: Any progress, or can this issue be closed? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> wont fix stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11379] Remove "lightweight" from minidom description

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1040439] Missing documentation on how to link with libpython

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14097] Improve the "introduction" page of the tutorial

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13455] Reorganize tracker docs in the devguide

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12907] Update test coverage devguide page

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk 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 Process class Unpickla

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-06-08 Thread Roundup Robot
Roundup Robot 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 tracker

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

2012-06-08 Thread Ramchandra Apte
Ramchandra Apte 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 " ? Use s.__name__ rather than type(s) for the type name e.g. -raise TypeError('must be str, not %s' % type(s)) +raise TypeError

[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 : test_mbox is an mbox mailbox with a few messages in it. >>> import mailbox >>> inbox = mailbox.mbox('test_mbox') >>> inbox.lock() >>> inbox.popitem() (0, ) >>> inbox.flush() >>> inbox.unlock() >>> inbox.lock() >>> inbox.popitem() (1, ) >>> inbox.flush() Trace

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

2012-06-08 Thread Petri Lehtinen
Petri Lehtinen added the comment: Actually, you don't even need to unlock() and lock() the mailbox before the second popitem() and flush(). -- ___ Python tracker ___ _

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

2012-06-08 Thread Richard Oudkerk
Richard Oudkerk 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(), signal.SIGTERM). The pr

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-08 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1167300] Error "exec"ing python code

2012-06-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- superseder: -> An inconsistency with nested scopes ___ Python tracker ___ ___ Python-bugs-list maili

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

2012-06-08 Thread Alexander Belopolsky
Alexander Belopolsky 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, mark.dickinson, ping, pitrou, pyt

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

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file25858/issue14908.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue15037] test_curses fails with OverflowError

2012-06-08 Thread John Bollinger
New submission from John Bollinger : 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 test_curses == CPython 3.3.0

[issue2736] datetime needs an "epoch" method

2012-06-08 Thread Roundup Robot
Roundup Robot 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 tracker

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

2012-06-08 Thread Alexander Belopolsky
Alexander Belopolsky 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 -> committed/rejected status: open ->

[issue2736] datetime needs an "epoch" method

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- superseder: Add aware local time support to datetime module -> ___ Python tracker ___ ___ Python-

[issue15031] Split .pyc parsing from module loading

2012-06-08 Thread Ronan Lamy
Ronan Lamy 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, code) instead of (ti

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread John Bollinger
John Bollinger 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 acquire it only if it doesn

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

2012-06-08 Thread Ronan Lamy
Ronan Lamy 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 users of PyPycLoader mus

[issue15019] String termination on Linux

2012-06-08 Thread Terry J. Reedy
Terry J. Reedy 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 do that. I suspe

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread R. David Murray
R. David Murray 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 format (I'm not in a

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

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

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

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: Poor default value for progname -> Poor default value for progname in pythonrun.c ___ Python tracker ___ __

[issue15011] Change Scripts to bin on Windows

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

[issue15033] Different exit status when using -m

2012-06-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, ncoghlan versions: +Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list

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

2012-06-08 Thread Éric Araujo
Éric Araujo added the comment: I don’t understand the request. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mail

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

2012-06-08 Thread R. David Murray
R. David Murray 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 don't know the details

[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 : -- components: +email nosy: +barry, r.david.murray stage: -> needs patch type: -> behavior ___ Python tracker ___ _

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread John Bollinger
John Bollinger 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 module depend on the thread

[issue15031] Split .pyc parsing from module loading

2012-06-08 Thread Brett Cannon
Brett Cannon 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 with this is I don'

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

2012-06-08 Thread Brett Cannon
Brett Cannon 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 : 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 parts of the python core.

[issue15038] Optimize python Locks on Windows

2012-06-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This defect springs out of issue #11618 -- superseder: -> Locks broken wrt timeouts on Windows ___ Python tracker ___

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

2012-06-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- 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 : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14390] Tkinter single-threaded deadlock

2012-06-08 Thread R. David Murray
R. David Murray 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 be, but I have a sinki

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

2012-06-08 Thread Larry Hastings
Larry Hastings 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 added the comment: Is there a reason "manual" is None, True, or False? Wouldn't just True or False suffice? -- ___ Python tracker ___

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

2012-06-08 Thread Vinay Sajip
Vinay Sajip 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 tracker

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

2012-06-08 Thread Eric V. Smith
Eric V. Smith 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 ___

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

2012-06-08 Thread Dan Stromberg
New submission from Dan Stromberg : 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 $ /usr/local/cpython

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

2012-06-08 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-06-08 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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 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 see it's fair to

[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 added the comment: Previously existing redundant functions could be deprecated in documentation. -- ___ Python tracker ___ __

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

2012-06-08 Thread Larry Hastings
Larry Hastings 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 probably worth doi