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

2012-01-02 Thread Piotr Dobrogost
Piotr Dobrogost 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 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Setup

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

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

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola, josiahcarlson, stutzbach stage: -> patch review versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm not sure how useful this is as addr will be set later, when connection is established. -- ___ Python tracker ___ __

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 - use C only on

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

2012-01-02 Thread Roundup Robot
Roundup Robot 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 Charles-François Natali in branch '3.2':

[issue13684] httplib tunnel infinite loop

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2012-01-02 Thread Éric Araujo
Éric Araujo 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 ___ Py

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck 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 test-case at the e

[issue13402] Document absoluteness of sys.executable

2012-01-02 Thread Éric Araujo
Éric Araujo 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 that code)). --

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck 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 formdisplayed as

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall 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 documentation and to use STDOU

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

2012-01-02 Thread Éric Araujo
Éric Araujo 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 the stdlib) -

[issue13511] Specifying multiple lib and include directories on linux

2012-01-02 Thread Éric Araujo
Éric Araujo 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

[issue6983] Add specific get_platform() for freebsd

2012-01-02 Thread Éric Araujo
Éric Araujo 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 said, distutils is fro

[issue13561] os.listdir documentation should mention surrogateescape

2012-01-02 Thread Éric Araujo
Éric Araujo 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 says in the first m

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Éric Araujo
Éric Araujo added the comment: Antoine, would you mind taking this one? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue13663] pootle.python.org is outdated.

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-l

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

2012-01-02 Thread R. David Murray
R. David Murray 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 generate an RFC-valid

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

2012-01-02 Thread R. David Murray
R. David Murray 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 has already been coded

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread R. David Murray
R. David Murray 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 ___ Python

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread R. David Murray
R. David Murray 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 followed by a )", right

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou 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 the way, I t

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

2012-01-02 Thread CRicky
New submission from CRicky : 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 empty. Some lines ha

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Zbyszek Szmek
Zbyszek Szmek 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 sense that os woul

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall 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 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 wrote: > > Piotr Dobrogost add

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Robert Collins
New submission from Robert Collins : 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 attached test script demonstrate

[issue13698] Should not use mboxo format

2012-01-02 Thread endolith
New submission from endolith : 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." http://docs.python.org/dev/

[issue13698] Mailbox module should not use mboxo format

2012-01-02 Thread endolith
Changes by endolith : -- title: Should not use mboxo format -> Mailbox module should not use mboxo format ___ Python tracker ___ ___ P

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

2012-01-02 Thread R. David Murray
R. David Murray 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 cycle to change it). As a

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

2012-01-02 Thread Eric V. Smith
Eric V. Smith 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 string supports %-f

[issue13653] reorder set.intersection parameters for better performance

2012-01-02 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.

[issue13609] Add "os.get_terminal_size()" function

2012-01-02 Thread Zbyszek Szmek
Zbyszek Szmek 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 is available (untested fix for sola

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

2012-01-02 Thread Sandro Tosi
Sandro Tosi 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 smtplib versions:

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Jesús Cea Avión
Jesús Cea Avión 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 : 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] == Linux-2.6.38-13-generic-i686-with-debian-

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch type: -> behavior versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-01-02 Thread Phill
Phill 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 -- nosy: +ge

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

2012-01-02 Thread Phill
Phill added the comment: Im not sure whether to open a new bug report for my issue or just leave it here. -- ___ Python tracker ___ __

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

2012-01-02 Thread Matt Joiner
Matt Joiner 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 are 2 solutions as

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Robert Collins
Robert Collins 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 signal X' [the former fo

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

2012-01-02 Thread Erno Tukia
New submission from Erno Tukia : >>> 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 "", line 1, in imap.authenticate(

[issue13695] "type specific" to "type-specific"

2012-01-02 Thread Boštjan Mejak
Boštjan Mejak 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" fixed to "Python

[issue13695] "type specific" to "type-specific"

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement versions: -Python 3.1, Python 3.4 ___ Python tracker ___ __

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

2012-01-02 Thread R. David Murray
R. David Murray 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 gets bug fixes, so I'm re

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

2012-01-02 Thread Erno Tukia
Erno Tukia added the comment: The same problems exists even if I use b"PLAIN" as the first argument in authenticate(). -- ___ Python tracker ___ ___

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

2012-01-02 Thread R. David Murray
R. David Murray 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 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 is returned from

[issue13701] Remove Decimal Python 2.3 Compatibility

2012-01-02 Thread Ramchandra Apte
New submission from Ramchandra Apte : 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: Library (Lib) messages: 15

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

2012-01-02 Thread R. David Murray
R. David Murray 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 followed the logic in

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2012-01-02 Thread Meador Inge
Changes by Meador Inge : -- nosy: +orsenthil stage: -> test needed versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue13585] Add contextlib.ContextStack

2012-01-02 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12364] Deadlock in test_concurrent_futures

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall 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 there are pending work it

[issue12364] Deadlock in test_concurrent_futures

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall : Added file: http://bugs.python.org/file24129/itest.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1372770] email.Header should preserve original FWS

2012-01-02 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-01-02 Thread Srikanth S
Changes by Srikanth S : -- nosy: +srikanths ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.