[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2012-01-02 Thread Piotr Dobrogost
Piotr Dobrogost p...@python.dobrogost.net added the comment: @Lehmann You have to have either Visual Studio 2008 or Visual C++ Express 2008 installed. The folder where vcvarsall.bat file is being looked for is read from the registry. It's either

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

2012-01-02 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright, it seems to be fixed. We can still reopen if this happens again. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola, josiahcarlson, stutzbach stage: - patch review versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the updated patch. I think I would like other people's opinions about the dual-function approach. -- nosy: +loewis, neologix, rosslagerwall ___ Python tracker rep...@bugs.python.org

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm not sure how useful this is as addr will be set later, when connection is established. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: What I would do: - build the namedtuple in Python rather than in C - I don't particularly like CamelCased names for nametuples (I would use size instead of TerminalSize) - on UNIX, the ioctl() stuff can be done in python rather than in C

[issue9975] Incorrect use of flowinfo and scope_id in IPv6 sockaddr tuple

2012-01-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0c10061df711 by Charles-François Natali in branch '2.7': Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by http://hg.python.org/cpython/rev/0c10061df711 New changeset cc346a672091 by

[issue13684] httplib tunnel infinite loop

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13684 ___ ___

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694 ___ ___

[issue13690] Add DEBUG flag to documentation of re.compile

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Display debug information about compiled expression. IMO it would be helpful to define “display” more precisely (e.g. “Print debugging information on stdout during pattern compilation”). -- nosy: +eric.araujo

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck r...@runtux.com added the comment: I've been bitten by this too (in python up to 2.7 in roundup the bug-tracker). We're currently using a workaround that re-inserts spaces, see git on roundup.sourceforge.net file mailgw.py method _decode_header_to_utf8 RFC2047 even has a

[issue13402] Document absoluteness of sys.executable

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This discussion seems relevant: http://mail.python.org/pipermail/python-dev/2006-March/062453.html (it talks about the meaning of sys.executable, special cases such as embedded Python and functions that implement it (so we can have a look at

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1467619 ___ ___

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck r...@runtux.com added the comment: maybe it would be a good start to include the examples at the end of RFC2047 into the regression tests? These examples at least support the case that a '?' may immediately follow an encoded string: encoded form

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Nice patch :-) I think the two function approach works well. Since you have already checked that termsize is not NULL, Py_DECREF can be used instead of Py_CLEAR. Would it not be better to use sys.__stdout__ instead of 1 in the

[issue12394] packaging: generate scripts from callable (dotted paths)

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll get back to this issue later, but now I just wanted to add a link about building the binary exe files: http://mail.python.org/pipermail/python-dev/2006-April/063846.html (it comes from the time where setuptools was supposed to be added to

[issue13511] Specifying multiple lib and include directories on linux

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue6983] Add specific get_platform() for freebsd

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the reply. distutils2 won’t support eggs, and I don’t think setuptools or distribute will be reworked to work on distutils2, so if your problem is only with eggs there is nothing that we can do to solve it in distutils2. (As I

[issue13561] os.listdir documentation should mention surrogateescape

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good, apart from a missing “the”, but I think it should be expanded: Right now it tells that surrogateescape is used, but IMO it would be more useful if it also mentioned practical implications, i.e. what Michael “The Beard” Foord

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Antoine, would you mind taking this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9993 ___

[issue13663] pootle.python.org is outdated.

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13663 ___ ___

[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13665 ___

[issue13693] email.Header.Header incorrect/non-smart on international charset address fields

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Actually, no, the local part cannot be in anything other than ascii (see RFC 5335, which desires to address this problem among others). Also, an encoded word cannot occur inside quotation marks. If you correct those two bugs, you can

[issue10839] email module should not allow some header field repetitions

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Regardless of what anybody thinks about the design, it is what it is and can't be changed for backward compatibility reasons. The best we can do is reject creating duplicate headers for headers that may only appear once. That feature

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Antoine, I marked this for Python 3.3 only because there is no good way to fix it in 2.7/3.2. (If someone comes up with a way I'll be happy to review it, though!) -- versions: -Python 2.7, Python 3.2

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The RFC isn't at all vague about encoded words not separated by white space. That isn't allowed by the BNF. As you say, though, they occur in the wild and should be parsed correctly. In your other point I think you mean immediately

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ow, I'm sorry for overlooking this. I thought you would take it. Unfortunately the patch is now broken because of 5b61334bb776. (technically it applies, but the tests don't run anymore because the other filesystem now uses a mocking approach) By

[issue13696] [urllib.request.HTTPRedirectHandler.http_error_302] Relative Redirect issue

2012-01-02 Thread CRicky
New submission from CRicky cricky@gmx.fr: I had an HTTP redirection that worked perfectly on version 3.1. On version 3.2, I get a HTTP error 302. In this redirection, I actually have 2 redirections. The last one does not work because it is a relative redirection, so urlparts.scheme is

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Thanks for the reviews! - build the namedtuple in Python rather than in C I started this way, but if two functions are used, it is nicer to have them both return the same type. If it was defined in the Python part, there would be loop in the

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I'll try investigate Solaris a bit... Also, what should be the default terminal size? Gnome-terminal and xterm seem to default to 80x24, not 80x25. -- ___ Python tracker

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2012-01-02 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Actually, when using setup.py with MinGW, you just need to say the right thing: % python setup.py build --compiler=mingw32 install That removes the check for vcvarsall.bat. Bill On Mon, Jan 2, 2012 at 6:19 AM, Piotr Dobrogost

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: This affects the python implementation of RLock only. If a signal occurs during RLock.acquire() or release() and then operates on the same lock to acquire() or release() it, process hangs or assertions can be triggered. The

[issue13698] Should not use mboxo format

2012-01-02 Thread endolith
New submission from endolith endol...@gmail.com: The documentation states: Several variations of the mbox format exist to address perceived shortcomings in the original. In the interest of compatibility, mbox implements the original format, which is sometimes referred to as mboxo.

[issue13698] Mailbox module should not use mboxo format

2012-01-02 Thread endolith
Changes by endolith endol...@gmail.com: -- title: Should not use mboxo format - Mailbox module should not use mboxo format ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13698 ___

[issue13698] Mailbox module should support other mbox formats in addition to mboxo

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, supporting the other variants would be good (I'll review any proposed patches), but I think the default will have to stay mboxo for backward compatibility reasons (unless the consensus is to go through the warning/deprecation

[issue13685] argparse does not sanitize help strings for % signs

2012-01-02 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: In case I wasn't clear, I mean that the help string supports %-formatting variable expansion, such as %(default)s. I think it would be good if a sentence were added to the end of the help section, saying something like: Because the help

[issue13653] reorder set.intersection parameters for better performance

2012-01-02 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/issue13653 ___ ___ Python-bugs-list mailing list

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Updated patch termsize.diff.3 - s/TerminalSize/terminal_size/ in Python code - change the fallback to (80, 24) (seems to be the commonest default) - s/Py_CLEAR/Py_DECREF/ - use STDOUT_FILENO - add more hrefs in docs - include termios.h is

[issue8245] email examples don't actually work (SMTP.connect is not called)

2012-01-02 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: This has already been fixed in issue11883 changing the SMTP constructor call. -- nosy: +sandro.tosi resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Call connect() before sending an email with

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Adding myself to the nosy list because I am interested in the issue, but I can't take care of this myself for a few weeks, at least. Robert, would you consider to try to write a patch? -- nosy: +jcea versions: +Python 3.3 -Python 3.4

[issue13699] test_gdb has recently started failing

2012-01-02 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: test_gdb has started failing recently on my Ubuntu Natty system: vinay@eta-natty:~/tools/cpython$ ./python Lib/test/regrtest.py -v test_gdb == CPython 3.3.0a0 (default:3ed5a6030c9b, Jan 2 2012, 23:04:11) [GCC 4.5.2] ==

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13697 ___

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13697 ___ ___ Python-bugs-list mailing

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-02 Thread Phill
Phill beer...@gmail.com added the comment: I have run into the same problem with python 3.2 2.7 on windows 7 with the Listener object. It opens the same port twice for some wierd reason I have tried the example in this bug report and i am getting the same behavoir as the original poster

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-02 Thread Phill
Phill beer...@gmail.com added the comment: Im not sure whether to open a new bug report for my issue or just leave it here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8184 ___

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I don't believe it is. dispatcher.addr is only set if the connection is immediately established. It's set explicitly in dispatcher.__init__ if a socket is provided that is already connected. It's *not* set after a connection completes. There

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: I'm not sure it is sensibly implementable in pure python: the semantics of signal handling (AIUI) are that the vm is interrupted, sets a flag to say 'when the GIL is released or the next bytecode interpretation happens, please process

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread Erno Tukia
New submission from Erno Tukia erno.tu...@iki.fi: import imaplib imap = imaplib.IMAP4_SSL(imap.example.com) authcb = lambda resp: {0}\x00{0}\x00{1}.format(username,password) imap.authenticate(PLAIN, authcb) Traceback (most recent call last): File pyshell#3, line 1, in module

[issue13695] type specific to type-specific

2012-01-02 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Also http://guide.python-distribute.org/quickstart.html#lay-out-your-project needs to have the first sentence fixed: python to Python and http://docs.python.org/library/functools.html#functools.cmp_to_key needs to have the word Py3.x

[issue13695] type specific to type-specific

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - enhancement versions: -Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13695

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The first argument to authenticate must be bytes. This is not well documented. It might also be a bug, since I'm not sure anyone has done a thorough audit of what should be bytes and what should be string in imaplib. 3.1 no longer

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread Erno Tukia
Erno Tukia erno.tu...@iki.fi added the comment: The same problems exists even if I use bPLAIN as the first argument in authenticate(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13700

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Gah, I was looking at the wrong source code when I wrote that. A string first argument is indeed valid. I'm not sure where the problem is coming from since the internal CRAM_MD5 returns a string and that seems to work... --

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread Erno Tukia
Erno Tukia erno.tu...@iki.fi added the comment: File /usr/lib/python3.1/imaplib.py, line 1257, in encode e = binascii.b2a_base64(t) imaplib._Authenticator.encode() calls binascii.b2a_base64() function. In Python 2.6 that function returns a string, and in Python 3.1 it returns bytes. What

[issue13701] Remove Decimal Python 2.3 Compatibility

2012-01-02 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: Decimal has compatibility for Python 2.3 (such as not using decorators) as mentioned in comments in the source code for it. This compatibility should be removed in Python 3.3 and if possible, in Python 3.2. -- components:

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Bytes definitely. We hashed that out a while ago. My point is that CRAM_MD5 login calls authenticate, and its authenticator returns a string, just like your example does. So it ought to be going through the same code path. I haven't

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13697 ___ ___ Python-bugs-list

[issue13696] [urllib.request.HTTPRedirectHandler.http_error_302] Relative Redirect issue

2012-01-02 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +orsenthil stage: - test needed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13696 ___

[issue13585] Add contextlib.ContextStack

2012-01-02 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13585 ___ ___ Python-bugs-list

[issue12364] Deadlock in test_concurrent_futures

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Retrieving the result of a future after the executor has been shut down can cause a hang. It seems like this regression was introduced in a76257a99636. This regression exists only for ProcessPoolExecutor. The problem is that even if

[issue12364] Deadlock in test_concurrent_futures

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: Added file: http://bugs.python.org/file24129/itest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12364 ___

[issue1372770] email.Header should preserve original FWS

2012-01-02 Thread Srikanth S
Changes by Srikanth S sriks...@gmail.com: -- nosy: +srikanths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1372770 ___ ___ Python-bugs-list

[issue11492] email.header.Header doesn't fold headers correctly

2012-01-02 Thread Srikanth S
Changes by Srikanth S sriks...@gmail.com: -- nosy: +srikanths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11492 ___ ___ Python-bugs-list mailing