[issue12890] cgitb displays tags when executed in text mode

2012-10-27 Thread R. David Murray
R. David Murray added the comment: The tests fail on Widows7 on the buildbots. (They work fine in my XP Windows VM.) -- assignee: eric.araujo -> status: closed -> open ___ Python tracker <http://bugs.python.org/i

[issue12890] cgitb displays tags when executed in text mode

2012-10-27 Thread R. David Murray
R. David Murray added the comment: I put in a skip until we either fix the tests or rewrite them as suggested in issue 15749. -- ___ Python tracker <http://bugs.python.org/issue12

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue16343> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16329] mimetypes does not support webm type

2012-10-28 Thread R. David Murray
R. David Murray added the comment: Interesting. So we have two choices: leave it to the platform mime types file to define because it is not even on track to be an official IANA standard, or include it with a comment that it is a de-facto standard. The question, I guess, is how fluid the

[issue16352] Error call

2012-10-28 Thread R. David Murray
R. David Murray added the comment: It should print 'y'. And it does for me. If you have questions about this, you might want to try the python-tutors list. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> close

[issue16352] Error call

2012-10-28 Thread R. David Murray
Changes by R. David Murray : -- resolution: rejected -> invalid ___ Python tracker <http://bugs.python.org/issue16352> ___ ___ Python-bugs-list mailing list Un

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: That's because inspecting source code requires that there be a source file to inspect. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Hmm. Reopening in case someone wants to see if we can generate an appropriate error message when there is no source file to inspect. -- status: closed -> open versions: +Python 2.7, Python 3.4 ___ Python trac

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Yeah, this should be a doc bug. After I thought about it some more I realized that changing the behavior to raise an error would not be a good idea. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@pyt

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: If similar functions already raise, then changing it for 3.4 would be OK. But to change it for earlier versions would risk breaking working programs. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16358] Enhancement for mmap_read: Consistency with standard file read

2012-10-29 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> mmap.read requires an argument ___ Python tracker <http://bugs.python

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Not a specific package, but a specific use case (assuming getcomments is in use at all :) Consider a program that uses getcomments to look for a pragma-like comment before a function, but one that is not critical to the program's function (perhaps it h

[issue16362] _LegalCharsPatt in cookies.py includes illegal characters

2012-10-30 Thread R. David Murray
R. David Murray added the comment: This is a pragmatic choice. Try searching the tracker for 'cookie comma', and read about the lack of adherence to cookie RFCs by the major browsers. Specifically, I think issue 1210326 is relevant here, and am closing this as a duplicate of that

[issue16363] super cannot invoke descriptors

2012-10-30 Thread R. David Murray
R. David Murray added the comment: I believe this is a duplicate of issue 14965. If you agree please add yourself to nosy there and review the proposed patch and/or make your own proposal. If you think your issue is different you can reopen this one. -- nosy: +r.david.murray

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue16344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12890] cgitb displays tags when executed in text mode

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Thanks everyone. -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue16368] error when logging message

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Do none of those submodules import logging? It is unlikely that this is a Python bug. Somewhere _fmt is getting set to an integer. The way to prove this one way or another is to start deleting things until you find the code that is triggering the issue

[issue16368] error when logging message

2012-10-30 Thread R. David Murray
R. David Murray added the comment: Yep, that would do it. format is supposed to be a format string. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue20910] Make sleep configurable in tests

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Would it be possible for regrtest to do some operations to estimate the speed and choose "good values" for the constants automatically? If you have the right kind of VM setup, you could simulate a slow buildbot by giving the VM a low CPU shar

[issue19247] Describe surrogateescape algorithm in the Library Reference

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Looking at the PEP, I don't think there's anything in there that can just be copied to the docs. I've suggested to one of the new contributors to do the break out of the error handlers into its own section, and then someone with more u

[issue20911] urllib 'headers' is not a well defined data type

2014-03-13 Thread R. David Murray
New submission from R. David Murray: Some places in the code it is an email.message.Message object. Some places it is a simple dictionary. In one place (FTP), it is a string with embedded newlines. I'm not sure what should be done about this situation, but it looks like a bug magnet

[issue20517] Support errors with two filenames for errno exceptions

2014-03-13 Thread R. David Murray
R. David Murray added the comment: In 3.3: >>> x = OSError(2, 'No such file or directory', 'foo', 0, 'bar') >>> str(x) "(2, 'No such file or directory', 'foo', 0, 'bar')" So, I don't see th

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-03-13 Thread R. David Murray
R. David Murray added the comment: I've documented that 'collections.abc' is no longer implicit, which I presume means we are going to keep this behavior. (Unless you tell me to revert that and we fix it as a regression in 3.4.1). As long as an application follows the note

[issue19861] Update What's New for Python 3.4

2014-03-13 Thread R. David Murray
R. David Murray added the comment: I'm done with everything in my edit queue except the final copy-edit/formatting pass. So if you know of anything missing, let me know. -- ___ Python tracker <http://bugs.python.org/is

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
New submission from R. David Murray: It's great that Christian did all the work he did on the SSL module to enhance its security capabilities, and great that Antoine did the work he did before that. Now we need an explanation of how best to use it all :) It is not clear from the exi

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
Changes by R. David Murray : -- assignee: christian.heimes -> components: +Documentation stage: -> needs patch type: -> enhancement versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.or

[issue20517] Support errors with two filenames for errno exceptions

2014-03-13 Thread R. David Murray
R. David Murray added the comment: I was going to wonder if the args thing was a bug, but I see that actually it continues the backward-compatibility tradition already established (python3.3): >>> x = OSError(2, 'No such file or directory', 'abc') >>

[issue20517] Support errors with two filenames for errno exceptions

2014-03-13 Thread R. David Murray
R. David Murray added the comment: (Ether that, or it is a long-standing bug.) -- ___ Python tracker <http://bugs.python.org/issue20517> ___ ___ Python-bugs-list m

[issue20918] LogRecord.__init__ should handle exception if % operation fails

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Logging tries to catch errors during logging and log them. This is an edge case it doesn't handle, because when it tries to log it...it tries to print the arguments, and of course the repr of the argument fails (again). So I think this is

[issue20918] LogRecord.__init__ should handle exception if % operation fails

2014-03-13 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue20918> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17006] Warn users about hashing secrets?

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Please note what I said about wrapping lines to less than 80 characters. Also, my thought was to move the 'see also' entry that is referenced in the existing warning text (the wikipedia link) into the 'security considerations' section, pr

[issue19257] Sub-optimal error message when importing a non-package

2014-03-13 Thread R. David Murray
R. David Murray added the comment: That's only true if you are dealing with files and directories though. The import system can deal with much more than that, in which case the absence __path__ could be an important bit of debugging information. -- nosy: +r.david.m

[issue19257] Sub-optimal error message when importing a non-package

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Actually, it could be important even if you are dealing with files and directories (or I'm confused and __path__ is always about same :), since you could be dealing with an alternate loader. Our policy is not to hide the chained traceback unless *all* o

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
R. David Murray added the comment: Someone else told me it was, I'm afraid I didn't actually check myself :(. That said, it is still not clear to me from reading that whether or not I need to "do something" when using, say, the SMTP_SSL class. And it is the latter kind

[issue20913] Standard Library documentation needs SSL security best practices doc.

2014-03-13 Thread R. David Murray
R. David Murray added the comment: To expand on that point a little: in the past, I could happily use the SMTP_SSL class (say) without thinking about certificates or server hostname verification, or pretty much of anything. This produced no verification, of course, which is the problem we

[issue20918] Logging of logging exceptions can fail in 3.4 if args are unprintable

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Yes on 3.3 fixes, but you are right that it doesn't need fixed there. This appears to be a 3.4 regression. I used exactly the test you suggest to reproduce it on 3.4...there there is a chained traceback and Done does not get printed. So, the ori

[issue17006] Add advice on best practices for hashing secrets

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Good point. There is an existing warning for hash weaknesses...the whole thing could be rephrased as "Please see the security considerations section for important information on the considerations involved in using the various hashing algorithms, and

[issue19257] Sub-optimal error message when importing a non-package

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Antoine: down that path lies Microsoft's "An error has occurred" error messages. The point of the extra information is not to inform the end user, it is to make it possible for an expert to solve the problem, and for it to be findable in a w

[issue20920] Turtle module transparency.

2014-03-14 Thread R. David Murray
R. David Murray added the comment: >From a little researching it isn't clear whether it is just tkinter that >doesn't support alpha, or if TK itself has issues...but I'm hoping it is just >the former (I found discussions of alpha for images, and it sounds like

[issue20921] DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames instead st = os.stat(path)

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Can you clarify what it is you are reporting as a bug, please? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue20

[issue17006] Add advice on best practices for hashing secrets

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Raymond: I'm not talking about *adding* a warning. Is it your opinion that the existing warning should be removed? -- ___ Python tracker <http://bugs.python.org/is

[issue20918] Logging of logging exceptions can fail in 3.4 if args are unprintable

2014-03-14 Thread R. David Murray
R. David Murray added the comment: At this point only things that would make it a "brown bag" release (broken out of the box) would get cherry picked. I agree that this doesn't qualify...having repr raise is a pretty unu

[issue20923] ConfigParser should be greedy when parsing section name

2014-03-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue20923> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20927] Different behaviour on Posix and Windows when using subprocess.Popen(..., cwd=path)

2014-03-14 Thread R. David Murray
R. David Murray added the comment: Your cwd is relative. What happens if you make it absolute? (What I'm thinking is that the non-shell starting cwd may be different on windows than it is on unix...but I don't know windows very well, so this may be irrelevant...) -

[issue20692] Tutorial section 9.4 and FAQ: how to call a method on an int

2014-03-14 Thread R. David Murray
R. David Murray added the comment: I might tweak a couple words for flow, but it looks good. I do wonder about the repetition of the bit about parenthesis or whitespace that now exists. I wonder if the first occurrence of it should now be dropped

[issue20849] add exist_ok to shutil.copytree

2014-03-14 Thread R. David Murray
R. David Murray added the comment: I don't know what "the method already allows for existing files" means. Since the target directory can't exist, there can be no existing files. In unix, this kind of capability is provided by a combination of shell globbing and '

[issue20933] bad test case in test_osx_proxy_bypass (test.test_urllib2.HandlerTests)

2014-03-15 Thread R. David Murray
R. David Murray added the comment: Fix looks good to me, thanks. I changed the name to be a bit more descriptive, and wrapped the line to less than 80 characters. -- nosy: +r.david.murray stage: -> committed/rejected status: open -> closed type: -> behavior versions: +P

[issue20921] DeprecationWarning: The Windows bytes API has been deprecated, use Unicode filenames instead st = os.stat(path)

2014-03-15 Thread R. David Murray
R. David Murray added the comment: Please post on the python-list mailing list asking for help on either understanding your problem or formulating it into a bug report that we can act on. In the meantime I'm going to close the issue as invalid, but you can reopen it if you can explain

[issue20931] Confusing section title "New Expected Features for Python Implementations" in 3.4 What's New doc

2014-03-15 Thread R. David Murray
R. David Murray added the comment: How about "Interpreter Improvements"? The marshall format change isn't exactly a behavior change, but other implementations will need to be able to cope with it. Or should that be moved to

[issue20943] configparser - add 'getDict' function

2014-03-16 Thread R. David Murray
R. David Murray added the comment: How is this different from myconfig['section']? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.o

[issue17846] Building Python on Windows - Supplementary info

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Because some of the third party components for the windows built are still in a subversion repository. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue17

[issue20944] Engineering Process Improvements

2014-03-16 Thread R. David Murray
R. David Murray added the comment: We already have Coverty scan in place, and were in fact featured by them for our code quality. Currently Christian Heimes is the lead on that effort, and is monitoring the Coverty reports. We've been working on Clang stuff as developers have had int

[issue20944] Engineering Process Improvements

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Oh, and if you there there are general issues to be discussed about approach (and I think out use of asserts might be one such), then the appropriate forum is the python-dev mailing list. -- ___ Python tracker

[issue20944] Engineering Process Improvements

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Oh, and if you think there there are general issues to be discussed about approach (and I think our use of asserts might be one such), then the appropriate forum is the python-dev mailing list. -- ___ Python

[issue20944] Engineering Process Improvements

2014-03-16 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg213732 ___ Python tracker <http://bugs.python.org/issue20944> ___ ___ Python-bugs-list m

[issue18854] is_multipart and walk should document their treatment of 'message' parts.

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Well, probably the best thing to do to understand the issue is to look at the implementation of Message.walk and is_multipart, and to notice that "is_multipart()" can return a different answer than "msg.get_content_maintype() == 'multip

[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-16 Thread R. David Murray
R. David Murray added the comment: A little hg sleuthing (which I assume you did but I'll record for the record) reveals that this was introduced by Bill Jansen in changeset 8a281bfc058d. Following the bugs mentioned in the checkin message, it looks like it *might* have been related to

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-16 Thread R. David Murray
R. David Murray added the comment: My intent here was that the rewrite should specify where the data that gets placed into the template when it is used comes from. That would be 'responses' by default, but can be overridden in &

[issue20112] The documentation for http.server error_message_format is inadequate.

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Hmm. Rereading your patch I see that that is what you are trying to do, but I find the order of presentation confusing. I would rather see the text focus on the fact that the string is used by send_error, and that the variables are filled by default from

[issue20898] Missing 507 response description

2014-03-16 Thread R. David Murray
R. David Murray added the comment: Thanks. That patch looks good except that it is missing the corresponding documentation changes, but... I just noticed that this table is a partial duplicate of the table in http.server. I suspect this has historical origins, but I don't see any reaso

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-16 Thread R. David Murray
R. David Murray added the comment: >From python's point of view they are both aliases of iso-8859_8, as discussed >in this issue. Python does not have iso-8859_8-e and i codecs, which you >changes to the alias table implies that it does (the target of the entry in >the ali

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2014-03-16 Thread R. David Murray
R. David Murray added the comment: The tests are in test_encodings.py. It is interesting that the tests pass with your patch applied; that indicates that there is a missing test, since we should be testing that all of the values in the aliases table are the names of existing codecs, and

[issue20952] OpenSSL and RDRAND

2014-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +christian.heimes, pitrou ___ Python tracker <http://bugs.python.org/issue20952> ___ ___ Python-bugs-list mailing list Unsub

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread R. David Murray
R. David Murray added the comment: The fact that you say the method is "_junk(self)" and say the other classes don't override it makes me think you are thinking that methods with the same name are different from a subclasses perspective if they have different signatures. In

[issue20918] Logging of logging exceptions can fail in 3.4 if args are unprintable

2014-03-18 Thread R. David Murray
R. David Murray added the comment: Did you reopen the issue accidentally? The bug has been fixed. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue20897] @abstractmethod does not enforce method signatures

2014-03-18 Thread R. David Murray
R. David Murray added the comment: Or, in 3.4, class META(abc.ABC). OK, since Eric agrees that this is python-ideas material, we'll close this issue for now. If you get consensus for it on python-ideas, the issue can be reopened (or a new one started, whichever turns out to be approp

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread R. David Murray
R. David Murray added the comment: You missed the part where it says "no matter where it is called from". That is, the path is stripped off. The sentence could be changed to emphasize that ("the :ref:`~os.basename` of sys.argv[0]"). The backslash is indeed a bit odd an

[issue19662] smtpd.py should not decode utf-8

2014-03-18 Thread R. David Murray
R. David Murray added the comment: I propose that we add a new keyword argument to SMTP's __init__, 'decode_data'. This would be set to True by default, and would preserve the current behavior of passing utf-8 decoded data to process_message. Setting it to True

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread R. David Murray
R. David Murray added the comment: I didn't mean the basename reference as exposing an implementation detail (I didn't look) but rather as a shorthand for explaining what "regardless of where the program was invoked from" means. -- __

[issue7994] object.__format__ should reject format strings

2014-03-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue7994> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20973] Implement proper comparison operations for in _TotalOrderingMixin in ipaddress module.

2014-03-18 Thread R. David Murray
R. David Murray added the comment: The two that raise are the two that are required on the concrete class in order for the mixin to work. Not having tests is certainly an issue worth correcting. -- nosy: +r.david.murray ___ Python tracker <h

[issue20974] email module docs say not compatible with current python version

2014-03-18 Thread R. David Murray
R. David Murray added the comment: That table is actually correct as it stands. Post 5.1 I pretty much stopped tracking the email version independently of the python version. So most likely the 3.3 python isn't compatible with 3.2, and the same for 3.4 and 3.3. Let's get Barry&#

[issue20951] SSLSocket.send() returns 0 for non-blocking socket

2014-03-18 Thread R. David Murray
Changes by R. David Murray : -- stage: -> patch review type: behavior -> enhancement ___ Python tracker <http://bugs.python.org/issue20951> ___ ___ Pyth

[issue20970] contradictory documentation for prog option of argparse

2014-03-18 Thread R. David Murray
R. David Murray added the comment: I think 'base name' should be defined somehow (perhaps "see :ref:`os.basename`?) And I agree that that second sentence should be made less ambiguous. Perhaps "make the help messages use the same name that was used to invoke the program

[issue20970] contradictory documentation for prog option of argparse

2014-03-19 Thread R. David Murray
R. David Murray added the comment: You are correct, it is os.path.basename. "base name or symlink" are not alternatives. It would be the base name *of* the symlink if a symlink was used to invoke the program. I'm not sure that introducing the concept of the symlink here is he

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2014-03-19 Thread R. David Murray
R. David Murray added the comment: Sounds like we just need someone comfortable with modifying ceval.c to apply this ;) -- nosy: +benjamin.peterson, r.david.murray versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <h

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-19 Thread R. David Murray
R. David Murray added the comment: First step would be to get rid of the warning in the zipfile docs and replace it with the info that the absolute path '/' and any relative path are stripped silently before the file is extracted. It would also be worth adding an enhancement to

[issue20979] Calling getdents()/readdir64() repeatedly while closing descriptors provides unexpected behaviour.

2014-03-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gps ___ Python tracker <http://bugs.python.org/issue20979> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20980] In multiprocessing.pool, ExceptionWithTraceback should derive from Exception

2014-03-19 Thread R. David Murray
R. David Murray added the comment: We must have a missing test case, then. One should be added. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue20

[issue20976] pyflakes: remove unused imports

2014-03-19 Thread R. David Murray
R. David Murray added the comment: I would prefer that _qdecode be left alone. -- ___ Python tracker <http://bugs.python.org/issue20976> ___ ___ Python-bugs-list m

[issue20985] Add new style formatting to logging.config.fileConfig

2014-03-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issue20985> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7994] object.__format__ should reject format strings

2014-03-19 Thread R. David Murray
R. David Murray added the comment: Yes. It is not returning the format specifier, it is filling in the strftime template "s" from the datetime...which equals "s", since it consists of just that constant string. Try {:%Y

[issue7994] object.__format__ should reject format strings

2014-03-19 Thread R. David Murray
R. David Murray added the comment: Which, by the way, has been the behavior all along, it is not something affected by this fix, because datetime *does* have a __format__ method. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7994] object.__format__ should reject format strings

2014-03-19 Thread R. David Murray
R. David Murray added the comment: NoneType is a subclass of object. >>> class Foo(object): ...pass ... >>> f = Foo() >>> f.__format__ ie: the exception is being raised by object.__format__, as provided for by this issue. -- ___

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Note that unix unzip does exactly the same thing as zipfile extractall (except that it does issue warnings), and I believe this is considered "best practice" these days for extraction tools: strip out absolute/relative path components and extr

[issue20989] XML File I/O Misbehavior with open() when the flag is 'r+'

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Your example doesn't seem to have anything to do with XML, nor is it sufficient to reproduce the problem. Can you provide a simple program including sample data that reproduces the behavior you are concerned with? We'll also need to know what pl

[issue20686] Confusing statement about unicode strings in tutorial introduction

2014-03-20 Thread R. David Murray
R. David Murray added the comment: re: file. You forgot the 'u' in front of the string: >>> f.write(u'This is a «test»\n') Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character

[issue20976] pyflakes: remove unused imports

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Well, one reason is I was afraid mailman might be using them. So if you are cool with it, that removes that objection. The other reason was that it seemed they were being used "from" utils on purpose, as a design thing. I did not take the time to

[issue20976] pyflakes: remove unused imports

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Sure. -- ___ Python tracker <http://bugs.python.org/issue20976> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20995] Use Better Default Ciphers for the SSL Module

2014-03-20 Thread R. David Murray
R. David Murray added the comment: create_default_context is about best practices, though, so it seems to me it wouldn't be crazy to do it there. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/is

[issue19861] Update What's New for Python 3.4

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Oh, yeah, it should be. Any further changes should be independent bug reports. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue20999] setlocale, getlocale succession --> ValueError or (None, None)

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Have you tried experimenting with what locale is set to? These look like locale configuration issues rather than platform issues. Specifically, the C locale will produce the (None, None) result on linux. -- nosy: +r.david.murray

[issue11352] Update cgi module doc

2014-03-20 Thread R. David Murray
R. David Murray added the comment: It looks like the non-doc stuff was accidental inclusions and should be ignored. Or better, the patch author could address Berker and Jim's comments and resubmit a clean patch. -- ___ Python tracker

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-03-20 Thread R. David Murray
R. David Murray added the comment: I want no script asking me questions. Post-facto errors for omissions are fine (and if I have to positively say no in the input file, that's fine). tkinter is right out. If you *also* want to make a script that asks questions (or even a tkint

[issue21001] Python 3.4 MSI installer doesn't work

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Your IDE stopping support for the beta2 is rather strange, IMO. The MSI works fine for other people, so I would suggest posting on python-list looking for help with figuring out what is going wrong on your particular system. If you can isolate a bug to

[issue21002] _sre.SRE_Scanner object should have a fullmatch() method

2014-03-20 Thread R. David Murray
R. David Murray added the comment: Scanner isn't a public interface, so the real enhancement here would be to make it one, in which case adding fullmatch would make sense. I don't know if making it public is a good idea or not. -- nosy: +r.david.murray, twouters type

[issue20344] subprocess.check_output() docs misrepresent what shell=True does

2014-03-21 Thread R. David Murray
R. David Murray added the comment: Thanks Tuomas, but we don't have any consensus that that kind of change will be accepted. It's just my opinion that it should be...and if it was, it would have to start with a deprecation, not raising an exception. What we need as a patch for thi

[issue21018] [patch] added missing documentation about escaping characters for configparser

2014-03-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue21018> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread R. David Murray
R. David Murray added the comment: Although I agree that the Unicode Howto needs to provide enough information for someone to reason correctly about python3 unicode, I'd like to note that someone running into the encoding error on windows is *not* going to reach for the unicode howto to

[issue20906] Issues in Unicode HOWTO

2014-03-22 Thread R. David Murray
R. David Murray added the comment: On the other hand, I wonder if such problem/solution pairs should go in the FAQ list rather than the howto, perhaps with a pointer to the howto for those wanting more general information. Specifically the Python on Windows section in this case. I realize

<    44   45   46   47   48   49   50   51   52   53   >