[issue9444] argparse does not honor prefix_chars when adding default options

2010-07-31 Thread Theodore Turocy
Theodore Turocy added the comment: What is the appropriate behavior for long options when '-' is not one of the accepted prefix_chars? All of '-h', '--help', '-v', and '--version' are hardcoded in the ctor. If, for instance, prefix_chars='+', should the long options be '++help', or should l

[issue9444] argparse does not honor prefix_chars when adding default options

2010-07-31 Thread Theodore Turocy
Theodore Turocy added the comment: Looking at the test fixtures that exercise argparse, it appears that the intended behavior when '-' is not a prefix_char is to accept a doubling of any of the prefix_chars for long arguments. That is, if '-' is not present in prefix_chars but ':' is, then a

[issue8572] httplib getheader() throws error instead of default

2010-07-31 Thread David Stanek
David Stanek added the comment: I created some tests for the existing behavior and the expected behavior. One of my apps was passing in a tuple and the default. Since this already worked and there are probably others besides me expecting this behavior I changed the patch to handle this. The

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-07-31 Thread Dan Buch
Dan Buch added the comment: I first verified that the relevant parts of ``locale:getdefaultlocale`` have been unchanged since 2005-10-17. I'm adding a patch to remove default support for the LANGUAGE variable and tests to assert that values like 'en_DK:en_GB:en_US' raise ValueError (plus ass

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-31 Thread Greg Malcolm
Greg Malcolm added the comment: I've uploaded a patch for 3.2 that throws a ValueError exception for non numeric port numbers and SMTPSocketConnectError for socket connection failures. This patch introduces an API change, by creating the SMTPSocketConnectError which provides information abou

[issue803422] gmllib doesn't support hex or Unicode character references

2010-07-31 Thread Dan Buch
Changes by Dan Buch : -- title: sgmllib doesn't support hex or Unicode character references -> gmllib doesn't support hex or Unicode character references ___ Python tracker ___

[issue803422] sgmllib doesn't support hex or Unicode character references

2010-07-31 Thread Dan Buch
Dan Buch added the comment: gads ... didn't mean to submit a title change there Since this is removed from Python 3, should the status be changed to Rejected? -- nosy: +meatballhat title: gmllib doesn't support hex or Unicode character references -> sgmllib doesn't support hex or Unic

[issue626452] Support RFC 2111 in email package

2010-07-31 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8620] wrong truncation of last line in cmd.Cmd

2010-07-31 Thread R. David Murray
R. David Murray added the comment: Éric: thanks for spotting the whitespace before I got smacked by the commit hook. As for \r\n, our thought was that would be a feature (universal newline support), but upon reflection the current fix could actually break working code if by some weird chance

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-31 Thread R. David Murray
R. David Murray added the comment: A little backstory: the patch was created during the PyOhio sprint, and as we recreated the patch for py3k we noticed that SMTPConnectError is providing an *SMTP* error code. The gaierrors are obviously not SMTP errors. To allow the agreed upon semantics (

[issue9313] distutils error on MSVC older than 8

2010-07-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Other test functions already have such skips. So I think another skip is acceptable here. But maybe it's better to skip entire msvc9compilerTestCase class (by class decorator). -- ___ Python tracker

[issue8572] httplib getheader() throws error instead of default

2010-07-31 Thread David Stanek
David Stanek added the comment: Adding a patch that includes a documentation change. -- Added file: http://bugs.python.org/file18302/8572-with-docs.diff ___ Python tracker ___ __

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching updated patches for py3k and release27-maint branches. Unfortunately I cannot commit them as is. When I run make test, I still get some strange failures. Eli, Why do you need to generated fakemodule inside test_trace? Why not take the

[issue9315] The trace module lacks unit tests

2010-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18304/issue9315.4-p3k.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue8743] set() operators don't work with collections.Set instances

2010-07-31 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue1699594] shlex fails to parse strings correctly

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: How do you reproduce this? The strings seem to work fine with shlex.split(). -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue4600] __class__ assignment: new-style? heap? == confusing

2010-07-31 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue8773] mailbox module is needlessly executable

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83385. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8768] The checkempty_symmetric_difference test is never called

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83386. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8757] Race condition when checking for set in set

2010-07-31 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8735] optparse: parse_args(values=...) does not set up default values

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report, I added a note in the docs in r83387. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker __

<    1   2   3