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

2011-01-28 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

[issue1674555] sys.path in tests contains system directories

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com 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.

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

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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

[issue1674555] sys.path in tests contains system directories

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

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Jan 28, 2011 at 2:44 PM, Alexander Belopolsky rep...@bugs.python.org 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

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

2011-01-28 Thread Glyph Lefkowitz
Glyph Lefkowitz gl...@twistedmatrix.com 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

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson j...@skyrush.com 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),

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson j...@skyrush.com 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

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

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-01-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 mar...@v.loewis.de added the comment: See PEP 382: http://www.python.org/dev/peps/pep-0382/ -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11037 ___

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

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 mar...@v.loewis.de 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

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

2011-01-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Added file: http://bugs.python.org/file20585/mailbox3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

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

2011-01-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file20579/mailbox3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

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

2011-01-28 Thread Julien Miotte
Julien Miotte miotte.jul...@gmail.com 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 sdao...@googlemail.com 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,

[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 arfrever@gmail.com 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 mar...@v.loewis.de added the comment: More likely, it's my email reader. Sorry about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6203 ___

[issue10992] tests failing when run under coverage

2011-01-28 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2011-01-28 Thread Julien Miotte
Julien Miotte miotte.jul...@gmail.com added the comment: My bad, works fine with r903:c3cf81fc64db. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11044 ___

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

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte miotte.jul...@gmail.com: -- resolution: - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11044 ___ ___

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

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte miotte.jul...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11044 ___ ___

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

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-01-28 Thread Alex
Alex alex.gay...@gmail.com 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 j...@skyrush.com: Removed file: http://bugs.python.org/file20557/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson j...@skyrush.com 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

[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 j...@skyrush.com: Removed file: http://bugs.python.org/file20444/imaplib_Internaldate2tuple_bytes_fixes_python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Removed file: http://bugs.python.org/file20587/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024 ___

[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 j...@skyrush.com: Added file: http://bugs.python.org/file20588/imaplib_Internaldate2tuple_bytes_fixes_python32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

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

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2011-01-28 Thread Ivan Egorov
New submission from Ivan Egorov egorich.3...@gmail.com: email.utils.getaddresses behaves wrong in following folding cases (outer single quote is not a part of value): 'A\r\n (B) c...@d.org' '(A\r\n C) d...@e.org' The misbehavior occurs in at least 2.6, 2.7 and branches/py3k. Both these

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

2011-01-28 Thread Julien Miotte
Julien Miotte miotte.jul...@gmail.com 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 pit...@free.fr: 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

[issue11051] system calls per import

2011-01-28 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051 ___ ___ Python-bugs-list

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

2011-01-28 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11032 ___ ___ Python-bugs-list mailing

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

2011-01-28 Thread Eric Smith
Eric Smith e...@trueblade.com 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

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[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 belopol...@users.sourceforge.net: -- assignee: belopolsky - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10939 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Removed file: http://bugs.python.org/file20589/imaplib_Time2Internaldate_locale_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024 ___

[issue10882] Add os.sendfile()

2011-01-28 Thread Matt Joiner
Matt Joiner anacro...@gmail.com 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*

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Joe Peterson
Joe Peterson j...@skyrush.com 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' g.rod...@gmail.com 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:

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

2011-01-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 carsten.kl...@axn-software.de 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,

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

2011-01-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, I think you can commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10989 ___ ___

[issue2193] Cookie Colon Name Bug

2011-01-28 Thread Carsten Klein
Carsten Klein carsten.kl...@axn-software.de 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']) +

[issue11050] email.utils.getaddresses behavior contradicts RFC2822

2011-01-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11050 ___

[issue10882] Add os.sendfile()

2011-01-28 Thread Matt Joiner
Matt Joiner anacro...@gmail.com 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

[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 n...@acm.org 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

[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 n...@acm.org: -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10940 ___ ___

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

2011-01-28 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 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-S

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

2011-01-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/1/28 Eric Smith rep...@bugs.python.org: Eric Smith e...@trueblade.com 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

[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 rhettin...@users.sourceforge.net 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? --

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

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Looks fine. -- nosy: +rhettinger resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11052 ___

[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 n...@acm.org: 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

[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 n...@acm.org 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

[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 rhettin...@users.sourceforge.net: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10940 ___

[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 n...@acm.org: 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.

[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 n...@acm.org: 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.

[issue11049] add tests for test.support

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com 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

[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 rhettin...@users.sourceforge.net added the comment: +1 for reversion. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11054 ___

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list mailing

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- stage: needs patch - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

[issue6715] xz compressor support

2011-01-28 Thread shirish
shirish shirisha...@gmail.com 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 ___

<    1   2