[issue7175] Define a standard location and API for configuration files

2011-01-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm mildly uncomfortable advocating many different new dot directories in $HOME (e.g. .python2.7 .python3.1 .python3.2). Let's say -0. Also, because of backward compatibility, I think most configuration files will end up being similar enough between Pytho

[issue1674555] sys.path in tests contains system directories

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I'm attaching the patch, which works for me. - New, private variable (_PYTHONNOSITEPACKAGES) disables addition of site-packages directories to sys.path. - regrtest.py always runs test_site.py in a subprocess. -- Added file: http://

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > What is the data type returned by your get_msg? I bet it is string, > and email can't handle messages in string format that have non-ASCII > characters (Now i see that the local names 'box', 'mbox' and 'mailbox' have become somewhat messed up, which

[issue1674555] sys.path in tests contains system directories

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file20584/python-2.7-issue1674555.patch ___ Python tracker ___ _

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jan 28, 2011 at 2:44 PM, Alexander Belopolsky wrote: .. > Also, isn't day supposed to be space- rather than 0- padded? To the best of my understanding, rfc 2060 requires space-padded day (strftime code %e): """ date_day_fixed ::= (SPACE digit)

[issue7175] Define a standard location and API for configuration files

2011-01-28 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: I would still prefer ~/.local/something-parallel-to-where-it's-usually-installed for its ease of documentation. But ~/.python/X.Y isn't terribly objectionable. A minor point about Michael Foord's fallback proposal: I don't know why everyone is so keen to s

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson added the comment: > Also, isn't day supposed to be space- rather than 0- padded? This is not clear to me. RFC2822 (referenced from RFC3501 for internal date) discusses date formats, but as used in the header. In this case, day is specified as "([FWS] 1*2DIGIT)", which implies

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson added the comment: Our messages crossed... :) Hm, I see that in RFC 3501, as well (which obsoletes 2060). But... I wonder: does "(SP DIGIT) / 2DIGIT" mean that " 1" and "01" are both OK? It seems ambiguous to me. I still don't see why major IMAP servers are returning leading

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray added the comment: Well, that's a bunch of code, and I'm afraid I don't know what your answer to my question was. What error do you get now if you use the new version of mailbox3.patch? If you feed the new mailbox/email bytes, it will preserve the bytes as is, as long as you

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are other gui libraries with Python interfaces that you can look at. I agree that something in doc about how to feed data from multiple threads would be nice. -- nosy: +terry.reedy type: crash -> behavior versions: +Python 3.2 _

[issue11037] How distutils2 handle namespaces

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: See PEP 382: http://www.python.org/dev/peps/pep-0382/ -- nosy: +loewis ___ Python tracker ___ ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray added the comment: Added two more tests of non-ASCII. I think the tests now cover the necessary cases. I still want to do a full code review tomorrow, but I think the patch is in final form if anyone else is available to do a review as well. Georg, are you OK with this going

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> That would be highly non-portable, and repeat the mistakes of >> getdefaultlocale. > > You say that often, but I don't really know why. It's certainly portable > between various Unix platforms, perhaps not Windows, but then i18n > on Windows is a different

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file20585/mailbox3.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file20579/mailbox3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11043] On GNU/Linux (Ubuntu) distutils2.mkcfg shouldn't create an executable setup.cfg

2011-01-28 Thread Julien Miotte
Julien Miotte added the comment: Hey Eric, Sorry for that, I should know better. I'll have a look at the other submitted issues and I'll check they are still present in the latest version. Regards. -- ___ Python tracker

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I missed your mailbox3.patch, but now i've merged it in. One error changed, it now happens when a re.search is applied to a header value and thus seems to match what you say. I'm not able to understand this error this evening, but i will review it onc

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Martin v. Löwis: It seems that your web browser replaces ", " with ",\t" in the title (where "\t" is a tab character) each time you add a comment. -- ___ Python tracker

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: More likely, it's my email reader. Sorry about that. -- ___ Python tracker ___ ___ Python-bugs-list

[issue10992] tests failing when run under coverage

2011-01-28 Thread Brett Cannon
Brett Cannon added the comment: The attached patch has all tests passing when run under coverage.py. Most places are flat-out skipped since there is no good way around the tests short of coding up a second set of test values. Plus editing doctests to have optional values is way too painful, s

[issue11044] The description-file isn't handled by distutils2

2011-01-28 Thread Julien Miotte
Julien Miotte added the comment: My bad, works fine with r903:c3cf81fc64db. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11044] The description-file isn't handled by distutils2

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte : -- resolution: -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue11044] The description-file isn't handled by distutils2

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray added the comment: If you are using the most recent mailbox3 patch (I should have renamed it, sorry...I've no done so to make it clear) you should be getting an error message that tells you to use binary or Message. So I don't understand how you are getting this message. I s

[issue9233] json.load failure when C optimizations aren't built

2011-01-28 Thread Alex
Alex added the comment: Just a note from downstream with PyPy: we've cherry-picked the commit Bob linked into our copy of the 2.7 stdlib since we don't have an _json (yet). -- nosy: +alex ___ Python tracker __

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Removed file: http://bugs.python.org/file20557/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker ___ __

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson added the comment: Here's a new patch. I would still like to discuss the leading space vs. leading zero issue, but I have reverted to using a leading space in this patch - fewer changes that way. The long line is also fixed (sorry about that - yes, long lines are ugly). And I

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Removed file: http://bugs.python.org/file20444/imaplib_Internaldate2tuple_bytes_fixes_python32.patch ___ Python tracker ___ ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Removed file: http://bugs.python.org/file20587/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker ___ __

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Added file: http://bugs.python.org/file20588/imaplib_Internaldate2tuple_bytes_fixes_python32.patch ___ Python tracker ___ _

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Added file: http://bugs.python.org/file20589/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker ___ ___

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2011-01-28 Thread Ivan Egorov
New submission from Ivan Egorov : email.utils.getaddresses behaves wrong in following folding cases (outer single quote is not a part of value): '"A\r\n (B)" ' '(A\r\n C) ' The misbehavior occurs in at least 2.6, 2.7 and branches/py3k. Both these strings are RFC 2822 compliant, but current ge

[issue11040] After registering a project to PyPI, classifiers fields aren't displayed.

2011-01-28 Thread Julien Miotte
Julien Miotte added the comment: This can reproduced with: - distutils2 r903:c3cf81fc64db - python 2.6.6 - Ubuntu 10.10 -- nosy: -eric.araujo, tarek, tarek-ziade versions: +3rd party -Python 2.6 ___ Python tracker

[issue11051] system calls per import

2011-01-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : Here are the system calls when importing a single pure Python module: stat("/home/antoine/py3k/py3k/Lib/copyreg", 0x7fff1ed1f740) = -1 ENOENT (No such file or directory) open("/home/antoine/py3k/py3k/Lib/copyreg.cpython-32m.so", O_RDONLY) = -1 ENOENT (No su

[issue11051] system calls per import

2011-01-28 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11032] _string: formatter_field_name_split() and formatter_parser doesn't check input type

2011-01-28 Thread Eric Smith
Changes by Eric Smith : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-28 Thread Eric Smith
Eric Smith added the comment: Release manager: You can decide if this fix should go in before 3.2. It's a trivial fix to a crasher, but it's extremely unlikely anyone would trip over it. It's been a crasher since 3.0. It's also a crasher in 2.7, although there it's in the str module and the

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would write the formatting code as follows: ('"%2d-%s-%04d %02d:%02d:%02d %+03d%02d"' % ((tt[2], _month_names[tt[1]], tt[0]) + tt[3:6] + divmod(zone//60, 60))) The above also assumes that month names are stored in a 1-based array: _month_names = [

[issue10939] imaplib: Internaldate2tuple raises KeyError parsing month and does not work with negative TZ offset due to bytes/str issues

2011-01-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson : Removed file: http://bugs.python.org/file20589/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker ___ __

[issue10882] Add os.sendfile()

2011-01-28 Thread Matt Joiner
Matt Joiner added the comment: I have a few problems with these parts of the latest patch: + The second case may be used on Mac OS X and FreeBSD where *headers* + and *trailers* are arbitrary sequences of buffers that are written before and + after the data from *in* is written. It retur

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson added the comment: Not cryptic at all - looks great! New patch attached with associated tweaks. -- Added file: http://bugs.python.org/file20591/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker

[issue10882] Add os.sendfile()

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I'm pretty sure that Solaris isn't the only platform that supports non- > socket file descriptors here, Linux (the platform I'm using), is one > such case. No, sendfile() on Linux supports only socket file descriptors: http://linux.die.net/man/2/sendfile

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-28 Thread STINNER Victor
STINNER Victor added the comment: Should it be fixed in Python 3.2 or not? (load_verify_locations was introduced with SSLContext in Python 3.2) -- priority: high -> release blocker ___ Python tracker

[issue2193] Cookie Colon Name Bug

2011-01-28 Thread Carsten Klein
Carsten Klein added the comment: Personally I believe that this is WONTFIX. Why? Because, the original RFC states that the colon is part of the unwanted characters, regardless of whether Perl or other similar implementations ignore the standard. Besides that, and most important: The cookies

[issue10989] ssl.SSLContext(True).load_verify_locations(None, True) segfault

2011-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I think you can commit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2193] Cookie Colon Name Bug

2011-01-28 Thread Carsten Klein
Carsten Klein added the comment: One more: if you look closer at the accepted patch by CMLENZ over @ t.e.o., you will find: if self.req.headers_in.has_key('Cookie'): -self.incookie.load(self.req.headers_in['Cookie']) +#self.incookie.load(self.req.headers_in['C

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2011-01-28 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10882] Add os.sendfile()

2011-01-28 Thread Matt Joiner
Matt Joiner added the comment: Thanks for catching that: Presently (Linux 2.6.9): in_fd, must correspond to a file which sup‐ ports mmap(2)-like operations (i.e., it cannot be a socket); and out_fd must refer to a socket. Despite the fact the manpage hasn't changed since 2004,

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Ned Deily
Ned Deily added the comment: The attached temporary patch avoids the hang seen when IDLE is used with Cocoa Tk 8.5 by removing the menu accelerator hints from IDLE's menu on OS X. The keyboard accelerators still work when typed but the character hints are not displayed on their menu items.

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Ned Deily
Changes by Ned Deily : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11052] Fix OS X IDLE menu accelerators for Save As and Save Copy

2011-01-28 Thread Ned Deily
New submission from Ned Deily : On OS X, the menu accelerators for the Save As and Save Copy As commands are incorrect: AreShould Be SaveCmd-S Cmd-S Save As.. Cmd-S Shift-Cmd-S Save Copy As.. Shift-Cmd-SOption-Cmd-S The atta

[issue11032] _string: formatter_field_name_split() and formatter_parser() don't check input type

2011-01-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/1/28 Eric Smith : > > Eric Smith added the comment: > > Release manager: You can decide if this fix should go in before 3.2. It's a > trivial fix to a crasher, but it's extremely unlikely anyone would trip over > it. It's been a crasher since 3.0. Fi

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Shouldn't this just be an edit to config-keys.def? Why does it need to hit EditorWindow.py? Also, instead of killing keys, would it make sense to remap them to other non-exploding keys? -- ___ Python tracker

[issue11052] Fix OS X IDLE menu accelerators for Save As and Save Copy

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looks fine. -- nosy: +rhettinger resolution: -> accepted ___ Python tracker ___ ___ Python-bugs

[issue11053] OS X IDLE 3 with Tk 8.4 appears to hang with syntax error

2011-01-28 Thread Ned Deily
New submission from Ned Deily : When IDLE 3 is used with Aqua Tk 8.4 on OS X (as is the case with the 32-bit-only installer for Python 3.1.x or 3.2rc1), if the user tries to run a Python program with a syntax error from an editor window, the Run command causes the IDLE shell window to move to

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Ned Deily
Ned Deily added the comment: Just editing config-keys.def does not eliminate the problem. The hang seems to occur because of the presence of any menu accelerator along with the detached windows produced by tkinter.simpledialog.Dialog(). Looking at the Cocoa Tk sources, there are some comment

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11054] OS X installer build script for 3.2 can no longer build with system Python on OS X 10.5

2011-01-28 Thread Ned Deily
New submission from Ned Deily : During the 3.2rc1 release cycle, it was discovered that it was no longer possible to build the 32-bit installer on OS X 10.5 as customary with the system Python 2.5 due to an inadvertent 2.6 feature ("with") added to the OS X installer build script. This unnece

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-01-28 Thread Ned Deily
New submission from Ned Deily : With the menu accelerators corrected (as patched in Issue10940), IDLE 3.2 with Cocoa Tk 8.5 opens two Save As dialog windows instead of one. This doesn't happen when the Save As item is selected with the mouse nor does it happen with Carbon Tk 8.4. The simple

[issue11049] add tests for test.support

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Attached is a patch which tests about half the API. Certain functions are not documented and/or it's not clear what they do, for others it seems unlikely they are actually used nowadays (although I haven't checked). Also, it probably makes sense to get rid

[issue11054] OS X installer build script for 3.2 can no longer build with system Python on OS X 10.5

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for reversion. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky added the comment: Giampaolo, FYI I'm also working (issue 11015) in parallel on documenting some of the undocumented functions in Doc/library/test.rst that look useful to me. I think we can collaborate here to make sure they're both documented and tested. I'll review your patch

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky : -- stage: needs patch -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: OK, updated documentation and tests. > Why special case these? Why can't Mac OS X and FreeBSD write those manually > into the output file descriptor. These can be a crucial part of certain protocols such as HTTP to ensure that a minimal amount of TCP packets

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky added the comment: Giampaolo, The patch looks good. Some minor comments below: * class TestCase(unittest.TestCase): -> why not give the test class a more useful name? * import_fresh_module is tested similarly to import_module - can't a test be added that it indeed performs its

[issue6715] xz compressor support

2011-01-28 Thread shirish
shirish added the comment: no programmer or anything. Just adding that the wikipedia link given is not right. The correct link is https://secure.wikimedia.org/wikipedia/en/wiki/XZ_Utils Just my 2 paise. -- nosy: +shirish ___ Python tracker

<    1   2