[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-16 Thread R. David Murray
R. David Murray added the comment: Um. I'm inclined to think that #13637 was a mistake. Functions that accept bytes and return bytes and also accept string and return string seem uncontroversial. However, accepting bytes or string and returning bytes is not an obviously good idea, an

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-16 Thread R. David Murray
R. David Murray added the comment: OK, I skimmed the thread I was remembering, and while it was discussing str->str and bytes->bytes primarily, the only pronouncement I could find was that functions should not accept a *mix* of bytes and string. So I guess I withdraw my objection, al

[issue14036] urlparse insufficient port property validation

2012-02-16 Thread R. David Murray
R. David Murray added the comment: Did you upload urlparse.py to the issue by accident? Can you please provide some examples of where you think the current code is producing incorrect results? -- nosy: +r.david.murray ___ Python tracker <h

[issue14036] urlparse insufficient port property validation

2012-02-16 Thread R. David Murray
R. David Murray added the comment: It's not a patch if it is the whole file. A diff would be much more useful, since then we could see the changes easily. This kind of change would require a bit of discussion. I'm doubtful that it would be applied as a bug fix, and we might eve

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-19 Thread R. David Murray
R. David Murray added the comment: OK' I'm back to being 100% on the side of rejecting both of these changes. ASCII is not unocode, it is bytes. You can decode it to unicode but it is not unicode. Those transformations operate bytes to bytes, not bytes to unicode. We made

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray added the comment: Non-ascii binary data should not be being rejected unless validate is true. So what are you going to do with non-ascii-range unicode in that case? Ignore it as well? That can't be right. I believe this should be discussed on pytho

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray added the comment: I disagree with this commit. Reopening pending discussion on python-dev. -- status: closed -> open ___ Python tracker <http://bugs.python.org/issu

[issue13637] binascii.a2b_* functions could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray added the comment: I disagree with this feature. Reopening pending discussion on python-dev. -- nosy: +r.david.murray status: closed -> open ___ Python tracker <http://bugs.python.org/issu

[issue13637] binascii.a2b_* functions could accept unicode strings

2012-02-25 Thread R. David Murray
R. David Murray added the comment: Discussion resolved in favor of patch. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-25 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue13641> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-02-26 Thread R. David Murray
R. David Murray added the comment: Is it totally insane to think about using a float subclass with an additional attribute instead of a tuple? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue14

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-27 Thread R. David Murray
R. David Murray added the comment: You'll have to give more details about what you are doing, but I suspect you are in fact calling it incorrectly. In addition, there are pretty much no circumstances in which you want to use string.rfind in 2.7. Just use ''.rfind.

[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'

2012-02-27 Thread R. David Murray
R. David Murray added the comment: Ah, perhaps you *meant* you are calling rfind on a string, rather than calling rfind on the 'string' module as I imagined. So, we definitely need more details about how you are producing this failure and what the traceback looks like. 

[issue14158] test_mailbox fails if file or dir named by support.TESTFN exists

2012-02-29 Thread R. David Murray
R. David Murray added the comment: Why not just call the helper in setUp? Otherwise, it looks good to me. This is a bug fix and should be backported, I believe. -- versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.

[issue14176] Fix unicode literals (for PEP 414)

2012-03-02 Thread R. David Murray
R. David Murray added the comment: Unless I'm misunderstanding, this is a duplicate of issue 1602. You will note that the problem is *not* with Python (or open source software in general), the problem is that Microsoft treats the command line as a second (or third, or fourth) class ci

[issue14176] Fix unicode literals (for PEP 414)

2012-03-02 Thread R. David Murray
R. David Murray added the comment: OK, so I still don't understand what problem it is you are reporting. What do you mean by "can't craete non-valid strings"? Of course you can't. (I don't see how you could do that programatically, either, although that depen

[issue14176] Fix unicode literals

2012-03-02 Thread R. David Murray
R. David Murray added the comment: I'm changing the title since PEP 414 has no bearing here. -- title: Fix unicode literals (for PEP 414) -> Fix unicode literals ___ Python tracker <http://bugs.python.org

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2012-03-06 Thread R. David Murray
R. David Murray added the comment: Since this bug is about adding a new feature, it is unlikely to be the correct bug for this to be against. Given that you've identified a regression, I suggest you open a new bug with a reproducer, and we'll set it to relea

[issue14223] curses addch broken on Python3.3a1

2012-03-07 Thread R. David Murray
R. David Murray added the comment: Marking as release blocker since this is a regression. Added people from the other curses issue as being likely to be interested in this one. -- nosy: +cben, gpolo, haypo, inigoserna, jcea, phep, pitrou, python-dev, r.david.murray, schodet, zeha

[issue14233] argparse: "append" action fails to override default values

2012-03-09 Thread R. David Murray
R. David Murray added the comment: I agree with Eric. I've run in to this error, and immediatly figured out what I'd done wrong based on the existing error message. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread R. David Murray
R. David Murray added the comment: To answer Glenn's procedural question: no this is not a bug whose fix can be backported. API changes are not allowed in maintenance releases. Doc improvements can be backported, though, so I'm leaving versios alone (alternatively someone could

[issue14250] regex.flags is never equal to 0

2012-03-10 Thread R. David Murray
R. David Murray added the comment: 32 is re.U, which is always ored with the passed in flags, unless re.A is set in the passed in flags. The flag docs should certinaly be updated to reflect this. -- nosy: +r.david.murray stage: -> needs patch versions: +Python

[issue8739] Update to smtpd.py to RFC 5321

2012-03-11 Thread R. David Murray
R. David Murray added the comment: Yes, cleanups would be better as a separate issue. -- ___ Python tracker <http://bugs.python.org/issue8739> ___ ___ Python-bug

[issue8739] Update to smtpd.py to RFC 5321

2012-03-11 Thread R. David Murray
R. David Murray added the comment: Juhana: thanks for the patch. I see an issue with it, though. What if the email address is something like john.si...@example.com? My thought is that there are two ways to handle this. Either we do a full RFC address parse in __getaddr and have it return

[issue1648923] HP-UX: -lcurses missing for readline.so

2012-03-12 Thread R. David Murray
R. David Murray added the comment: OK, reopening. I've added 3.2 and 3.3 as I imagine the same problem will exist there. Now we need someone to propose a patch to fix it. -- resolution: out of date -> stage: test needed -> needs patch status: closed -> open version

[issue14265] Fully qualified test name in failure output

2012-03-12 Thread R. David Murray
R. David Murray added the comment: +10 :) -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue14265> ___ ___ Python-bugs-list mailin

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread R. David Murray
R. David Murray added the comment: I think it should use the same default as open, but frankly I couldn't remember the right way to achieve that. Suggestions welcome :) -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/i

[issue8942] __path__ attribute of modules loaded by zipimporter is untested

2012-03-12 Thread R. David Murray
R. David Murray added the comment: I committed Tatiana's patch because it looks reasonable to me, but I'm not familiar enough with zipimport to know if additional tests are needed. If you think there are additional tests that should be added, please reopen the issue. -

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread R. David Murray
R. David Murray added the comment: Duh. I should have remembered that the io module used None to represent the default encoding. Thanks, Éric. -- ___ Python tracker <http://bugs.python.org/issue5

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread R. David Murray
R. David Murray added the comment: Heh. Good point. Documenting this is a clear way may be non-trivial. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread R. David Murray
R. David Murray added the comment: It doesn't look like it. Is that the right issue number? -- ___ Python tracker <http://bugs.python.org/issue14250> ___ ___

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray added the comment: For 3.2 could we use the same fix, but without exposing the ability to *change* the encoding? That is, we use TextIOWrapper but always with the default None for encoding. It also occurs to me that this really exposes a weakness in the design. What if the

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray added the comment: It also occurs to me that this fix makes the charset hook look rather odd. We could render it redundant by passing charset to open in the non-openhook case, and mark it deprecated. There is also a bug in the hook_encoding docs. It says the file is opened

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-13 Thread R. David Murray
New submission from R. David Murray : In Python2, this works: >>> from email.mime.text import MIMEText >>> m = MIMEText('abc') >>> str(m) 'From nobody Tue Mar 13 15:44:59 2012\nContent-Type: text/plain; charset="us-ascii"\n

[issue14062] UTF-8 Email Subject problem

2012-03-13 Thread R. David Murray
R. David Murray added the comment: It makes no sense that changing how Subject is generated would affect the later formatting of the mime header. There is no coupling that I'm aware of in the code. I notice that your handcrafted version uses uppercase for the charset and CTE code. Ca

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-13 Thread R. David Murray
R. David Murray added the comment: Thanks, Brian. (For the record, this is a bug in email6 code that hasn't been checked into trunk yet.) -- ___ Python tracker <http://bugs.python.org/is

[issue8315] ./python -m unittest test.test_importlib doesn't work

2012-03-13 Thread R. David Murray
R. David Murray added the comment: I fixed this for test_email by adding automatic unit test discovery to test_email.__init__. I believe it should be possible for a similar thing to do be done for test_importlib. -- nosy: +r.david.murray

[issue14297] Custom string formatter doesn't work like builtin str.format

2012-03-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +eric.smith versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue14297> ___ ___ Python-bug

[issue4199] add shorthand global and nonlocal statements

2012-03-13 Thread R. David Murray
R. David Murray added the comment: We could also just decide we don't need it :) If we do (I haven't read the PEP) does a statement with an assignment make the variable global in that scope, or does it only affect the global variable for the duration of the assignment, and oth

[issue14291] Regression in Python3 of email handling of unicode strings in headers

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Fix committed. Thanks Ali. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14062] UTF-8 Email Subject problem

2012-03-14 Thread R. David Murray
R. David Murray added the comment: I think the next thing to do would be to replace the call to send_message with code that calls BytesGenerator to write the message out to disk, and diff the output of the two versions (normal subject and hand-encoded subject). Maybe that will give us a

[issue14265] Fully qualified test name in failure output

2012-03-14 Thread R. David Murray
R. David Murray added the comment: I'm pretty sure Michael is talking about unittest. Doing the same for regrtest would be interesting but not as important. (When I run individual tests from the Python test suite I generally use -m unittest to

[issue14062] UTF-8 Email Subject problem

2012-03-14 Thread R. David Murray
R. David Murray added the comment: OK, got it. When I created BytesParser I turned the 'NL' constant into a class attribute, but in the line that handles Header objects in BytesParser I failed to change NL to self._NL. So when send_message calls flatten with linesep='\r\

[issue14062] UTF-8 Email Subject problem

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Thanks for the bug report. I thought we had tests for processing Header objects when serializing a message using BytesParser, but clearly we didn't. And thanks Tatiana and Martin for issue review and testing. -- resolution: -> fixed stat

[issue12818] email.utils.formataddr incorrectly quotes parens inside quoted strings

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: By the way, Alberto, if you haven't already submitted a contributor agreement, could you do so please? We have one from Dan from the sprints. Michele, you aren't marked in the tracker as having submitted an agreement but you've been activ

[issue14308] '_DummyThread' object has no attribute '_Thread__block'

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- stage: -> test needed title: Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in ignored -> '_DummyThread' object has no attribute '_Thread__b

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: OK, I've gone through Dan's update (thanks very much for the tests!). I'm uploading a revised patch. The major differences are: I've refactored the parsing. Now it is a three step process: peel off the extra keyword (FROM:, TO:) i

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file24855/issue8739.patch ___ Python tracker <http://bugs.python.org/issue8739> ___ ___ Python-bugs-list m

[issue14314] logging smtp handler (and test) timeout issue

2012-03-14 Thread R. David Murray
New submission from R. David Murray : I'm working on a patch that updates smtpd, and when I ran the full test suite I got a hang in test_logging. This means there's a bug in my update, but there is also a bug in the logging test. But see below for another issue I noticed while inv

[issue11959] smtpd cannot be used without affecting global state

2012-03-14 Thread R. David Murray
R. David Murray added the comment: The test failure in #14314 isn't a bug in my code, it is due to the fact that you copied the __init__ method of SMTPChannel in your logging tests, and the __init__ is changed by my patch. Clearly it would be good to resolve this issue one way or an

[issue8739] Update to smtpd.py to RFC 5321

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Note that this patch causes test_logging to fail/hang. I've opened issue 14314 that mentions the hang (the issue is really about the lack of a timeout in logging's smtp handler) and updated issue 11959 about the issues involved in test_logging u

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray resolution: -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker <http://bugs.python

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-14 Thread R. David Murray
R. David Murray added the comment: Fixed in the email6 feature branch. Thanks Brian. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue12758] time.time() returns local time instead of UTC

2012-03-15 Thread R. David Murray
R. David Murray added the comment: Thanks, Dylan. -- nosy: +r.david.murray resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue14261] Cleanup in smtpd module

2012-03-16 Thread R. David Murray
Changes by R. David Murray : -- dependencies: +Update to smtpd.py to RFC 5321 stage: -> needs patch ___ Python tracker <http://bugs.python.org/issu

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. I think this is fine. An alternate approach would be to introduce the concept of a state (like imaplib has), have a list of which commands are allowed in which state, and implement the check in the command processing function, but

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Oh, by the way the mention of EHLO in that message depends on issue 8739 going in. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-16 Thread R. David Murray
R. David Murray added the comment: When do patches get applied? The general answer is "when someone gets around to it" :) In this particular case the issue 8739 patch is waiting on the resolution of its dependency (logging uses smtpd in its tests, and the 8739 patch breaks the lo

[issue12788] test_email fails with -R

2012-03-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11780] email.encoders are broken

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Nope, those errors are correct. The encodings functions do not apply to Multipart messages. I've updated the docs to reflect that. -- components: +Documentation -Library (Lib) resolution: -> fixed stage: -> committed/rejected s

[issue11780] email.encoders are broken

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks, fixed. -- ___ Python tracker <http://bugs.python.org/issue11780> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11686] Update of some email/ __all__ lists

2012-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch, Steffen. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-03-17 Thread R. David Murray
R. David Murray added the comment: To answer your question about wrapping, it is best not to introduce noise into the patch. The person who commits it can rewrap (although even then it is nice to do the rewrapping in a separate changeset). -- nosy: +r.david.murray

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: That doesn't produce an evalable repr, though. The repr should actually be Policy(linesep='\\r\\n', max_line_length=None) I'm not immediately seeing how to get that to happen. -- ___ P

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Ach, I screwed up my testing at the interactive interpreter. Yes, it does work, and I will commit the fix. Thanks for the report. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14344] repr of email policies is wrong

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Committed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: The patch was actually by Brian Curtin, before he got commit privs :). Attached is a fix. I don't know what t.py has to do with the issue, though. I'm experimenting to see if I can trigger the bug before I apply the fix. -- keywor

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue12757> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: OK, ./python -OO -m test test_json will trigger it. Updated fix attached. I'm not completely happy with it, though, since it prints the 'skipping test from module XXX' twice, and I don't know why (some unittest thing I'm not

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Oh, in case anyone is wondering, the fix for -OO test runs was originally made because the unladen swallow folks ran the test suite that way. (I think someone else wanted it too, but I don't remember who). It's broken again, so I doubt anyone i

[issue14351] Script error in 3.2.3rc1 Windows doc

2012-03-17 Thread R. David Murray
R. David Murray added the comment: I believe this was already found by someone (Georg, Martin?) and fixed by Ezio. -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti, r.david.murray ___ Python tracker <http://bugs.python.org/issu

[issue14333] queue unittest errors

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Not only do I think we should support calling our tests via unittest, I think we should move in the direction of having regrtest be implemented via standard unittest hooks rather than the monster it currently is. That will take quite a bit of effort

[issue14353] Proper gettext support in locale module

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue14353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14348] Whitespace - Lib/base64.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Yes, our preferred approach is to make such cleanups when we touch that section of code for some other reason. Like Éric said, your willingness to contribute is very much appreciated and we hope you'll find another bug to work on. -- s

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
R. David Murray added the comment: @Ramchandra: I think you referring to the traceback format (which is indeed less useful than a normal Python traceback in the context of this tracker). The OP, however, is referring to the exception itself: TypeError: object.__new__(listiterator) is not

[issue14350] Strange Exception from copying an iterable

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue14350> ___ ___ Python-bugs-list mailin

[issue13922] argparse handling multiple "--" in args improperly

2012-03-18 Thread R. David Murray
R. David Murray added the comment: I think it is unlikely that anyone depends on argparse consuming multiple -- strings. If you are worried about it we could restrict the change to 3.3. But personally I think this would be OK for a bug fix. -- nosy: +r.david.murray versions

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread R. David Murray
R. David Murray added the comment: It does look like there's anomalous behavior here of some sort, but I'd expect --test=-- to result in test="--", myself, rather than an error. My intuition is that '--' would need to be preceded by a space to function a

[issue14115] 2.7.3rc and 3.2.3rc hang on test_asynchat and test_asyncore on 32-bit Windows

2012-03-18 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue14115> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13922] argparse handling multiple "--" in args improperly

2012-03-18 Thread R. David Murray
R. David Murray added the comment: No, it is definitely a bug. It prevents implementing parsers that pass strings on to another sub-parser or command. Imagine, for example, implementing a script that takes some arguments, but takes the entire rest of the command string and passes it to

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Interesting. I would have said that an open source project ought to have a link for reporting bugs on the front page, but I just checked perl.org and apache.org, and they both put the bug tracker links on the 'get involved' page. The devgui

[issue14361] No link to issue tracker on Python home page

2012-03-18 Thread R. David Murray
R. David Murray added the comment: That is indeed better than the current devguide for introducing people to the community. I think the current devguide is better at explaining the development process in detail, but that's not what is needed for a 'getting invo

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Interesting. Apparently we have no tests for the encode_ functions, nor do we use them inside the email package itself (except for encode_7or8bit). Do you have any interest in writing a patch with tests? -- assignee: -> r.david.murray n

[issue14355] imp module docs should omit references to init_frozen

2012-03-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Eric. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-19 Thread R. David Murray
R. David Murray added the comment: If one could distinguish that python had ended because of a sigint from the error code, then it would be possible for the caller to throw away stderr in that case. I agree with the OP that that having to deal with the traceback when you know what you want

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-19 Thread R. David Murray
R. David Murray added the comment: I applied both patches, and I get 16 test failures in test_smtpd. I haven't looked at the errors, but probably most of them are lack of a HELO in the test. -- ___ Python tracker <http://bugs.py

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: Hmm. I'm certain that QUIT shouldn't require HELO, and I wouldn't expect that NOOP would either. I just checked the RFC. The *only* command that requires HELO/EHLO is MAIL (and by implication RCPT, since it in turn requires MA

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: If you mean "either way in the test", that's true. But what we need to test is that the smtpd server we are providing matches the spec, which means that we need to confirm that it does *accept* QUIT, NOOP, etc without a previous HELO. Also

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: I think we're close. You new test 'test_HELO_RSET_syntax' should be named just 'test_HELO_RSET'. And could you please add tests for RCPT and DATA generating the 'no HELO' error? Thanks. -- ___

[issue14375] Add socketserver running property

2012-03-20 Thread R. David Murray
Changes by R. David Murray : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue14375> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: I tweaked a couple more of your test method names, but otherwise used your patch as is. Welcome to the ACKS file :) If you haven't already submitted a contributor agreement it would be great if you did. I'm hoping you'll want to

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-20 Thread R. David Murray
R. David Murray added the comment: Contributor agreement is here: http://python.org/psf/contrib/contrib-form-python/ ACKS file ships in every Python source tarball (not sure if goes out in the binary ones). Here it is in the repository: http://hg.python.org/cpython/file/default

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Well, a patch won't get committed if it lacks tests, so commit would have to wait until I have time to write some, then. The encode_ methods (from email.encoders) take *message* objects as their arguments. MIMEText internally converts a byte string

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Oh, you are right. I even noted that bug in my PyCon talk, but immediately forgot about it :( I do intend to fix it. You can get it to work by explicitly passing the charset: >>> x = MIMEText('йцукен', _charset='utf8') &

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-21 Thread R. David Murray
New submission from R. David Murray : The MIMEText class of the email package in Python3 requires that a character set be specified in order for the resulting email to be valid. If no character set is specified, it currently assumes ascii but puts a unicode payload in the message. Because

[issue12757] undefined name in doctest.py

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Since nobody really cares about this issue :), I went ahead and applied the patch that at least avoids the tracebacks. Someone can open a new bug about the duplicated message if they really care. -- resolution: -> fixed stage: test nee

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: PendingDeprecationWarning would mean that we are going to remove it "someday". If you actually want to remove them in a reasonable time, you should use "DeprecationWarning" in 3.3, and then remove them in 3.4. But is there a need to

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Also, posting a patch for review before committing is a good idea. If you don't get a review in a reasonable time period, then as a committer you can of course go ahead and commit, based on your judg

[issue14384] Add "default" kw argument to operator.itemgetter and operator.attrgetter

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion. It is an interesting idea, but there are some issues. attrgetter and itemgetter can take more than one key. It would probably make more sense to have the returned function be the one that takes the default, but in that case

<    20   21   22   23   24   25   26   27   28   29   >