[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread R. David Murray
R. David Murray added the comment: I don't think that's true, though. "file like" pretty much means "has the file attributes that I actually use". That is, it is context dependent (duck typing). I'm also not sure I see the point in the change. It is inher

[issue14534] Add method to mark unittest.TestCases as "do not run".

2014-06-15 Thread R. David Murray
R. David Murray added the comment: It's Michael's solution that is under consideration, and I guess no one has felt strongly enough about having it to write a patch. So this issue stays in limbo until someone does. -- ___ Python trac

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-15 Thread R. David Murray
R. David Murray added the comment: Thanks Caelyn. This patch also needs a doc patch and a whatsnew entry in order to be complete. It's not obvious to me where the relevant documentation is, though, so perhaps we instead have missing documentation that should be addressed in a separate

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Since there is no guarantee anyone is going to tackle the job of reviewing all the changes for whatsnew entries, I prefer that we get in the habit of creating the entries as we go along. As for the versionchanged...if you can find where include is documented

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Yes, I think that is appropriate. Note that you also get RFC822 parsing for datetime via email.util.parsedate_to_datetime. (I'm not sure why the OP thought that using the email utilities to parse email-standard dates was "not [a] ver

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: test needed -> resolved ___ Python tracker <http://bugs.python.org/issue5207> ___ ___ Pyth

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-16 Thread R. David Murray
R. David Murray added the comment: +1 from me (after verification), which should probably go without saying since I'm the one that started this ball rolling by making regrtest work with unittest discovery :) I think the potential disruption to existing patches and any forward porting i

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Supporting ISO 8601 is quite different from supporting RFC2822 dates, as far as I can see, and the latter clearly belongs in the email library (especially considering that RFC2822 parsing must follow Postel's Law and accept "dirty" data).

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: The statement is poorly worded. The id() is the *input* to the hash function used to compute the default __hash__. This is a CPython implementation detail, though, so perhaps all mention of it should indeed be dropped. -- nosy: +r.david.murray

[issue21782] hashable documentation error: shouldn't mention id

2014-06-16 Thread R. David Murray
R. David Murray added the comment: Yes, I should have been clearer. By "poorly worded" I meant "id is involved, but the sentence does not correctly describe *how* id is involved". That is, the sentence is wrong as written. The implementation is the same in both Python2

[issue21763] Clarify requirements for file-like objects

2014-06-17 Thread R. David Murray
R. David Murray added the comment: Nikolaus: while I agree that Raymond's comments were a bit strongly worded, it doesn't read to me as if the thread you link to is on point for this issue. The thread was focused on a *specific* question, that of calling close twice. The questi

[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread R. David Murray
R. David Murray added the comment: It doesn't matter that it can't happen in CPython. The idea is that IronPython should be able to copy as much of the stdlib as possible without having to change it. That said, I'm not going to object if people decide this is in some sense a

[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread R. David Murray
R. David Murray added the comment: It doesn't use logging because (I think) logging didn't exist when it was implemented. Whether or not we want to change that is a more complicated question, I think. Probably we don't, for backward compat

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

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

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-06-17 Thread R. David Murray
R. David Murray added the comment: Review comments added. -- ___ Python tracker <http://bugs.python.org/issue21725> ___ ___ Python-bugs-list mailing list Unsub

[issue21793] httplib client/server status refactor

2014-06-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +barry, eli.bendersky, ethan.furman, orsenthil ___ Python tracker <http://bugs.python.org/issue21793> ___ ___ Python-bug

[issue21763] Clarify requirements for file-like objects

2014-06-17 Thread R. David Murray
R. David Murray added the comment: Well, but we think it's pretty clear. The glossary entry says file object interfaces are defined by the classes in the io module. As do the io module docs. Perhaps the first sentence of the io docs could be modified to strengthen that (but it already

[issue21763] Clarify requirements for file-like objects

2014-06-17 Thread R. David Murray
R. David Murray added the comment: Re-reading my last paragraph, I see that I'm pretty much agreeing with you. So the contention is more that we don't think your suggested patch is necessary. Especially since, unlike your patch wording says, in fact most of the methods *are* impl

[issue21763] Clarify requirements for file-like objects

2014-06-17 Thread R. David Murray
R. David Murray added the comment: I believe Antoine was suggesting that you suggest wording that would make it clear (rather than implied) that close was idempotent, but "This method has no effect if the file is already closed" seems pretty unambiguous to me, so I don't real

[issue21798] Allow adding Path or str to Path

2014-06-17 Thread R. David Murray
R. David Murray added the comment: I would expect addition to return PosixPath('/tmp/some_base/_name.dat'), (ie: path.join). -- nosy: +pitrou, r.david.murray ___ Python tracker <http://bugs.python.o

[issue14534] Add method to mark unittest.TestCases as "do not run".

2014-06-18 Thread R. David Murray
R. David Murray added the comment: Issue 19645 is an alternative way to solve the problem of calling methods on the mixin that "don't exist", and has other benefits. -- ___ Python tracker <http://bugs.pyt

[issue1576313] os.execvp[e] on win32 fails for current directory

2014-06-18 Thread R. David Murray
R. David Murray added the comment: os.execlp *wraps* the interface of the same name in the platform C library. On Windows, that is execlp in the msvcrt[*]. On Linux, it is usually the execlp in glibc. [*] 'crt' stands for

[issue1410680] Add 'surgical editing' to ConfigParser

2014-06-18 Thread R. David Murray
R. David Murray added the comment: According to a review done at the PyCon 2014 sprints, comment and blank line preservation has not yet been implemented. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue1410

[issue21805] Argparse Revert config_file defaults

2014-06-19 Thread R. David Murray
R. David Murray added the comment: I don't understand your use case. As a user I would expect a switch to either set the value to true or to false, not to toggle it based on some default that might be changed in a configuration file. But, your method of accomplishing your goal looks fi

[issue21807] SysLogHandler closes TCP connection after first message

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

[issue21808] 65001 code page not supported

2014-06-19 Thread R. David Murray
R. David Murray added the comment: I agree with Haypo, because if he isn't interested in doing it, it is unlikely anyone else will find the problem tractable :) Certainly not anyone else on the core team. But, the danger of breaking things in 2.7 is the clincher. --

[issue21809] Building Python3 on VMS - External repository

2014-06-19 Thread R. David Murray
R. David Murray added the comment: Is the purpose of this issue just informational, then? It would be better to have a listing of active platform forks somewhere in the docs, I think, assuming we don't already. -- nosy: +r.david.murray ___ P

[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-06-19 Thread R. David Murray
R. David Murray added the comment: If it really wasn't a bug, we couldn't backport it. However, we generally treat RFC non-compliance issues as bugs unless fixing them is disruptive (and this one isn't because I took care to maintain backward compatibility in the original patc

[issue18703] To change the doc of html/faq/gui.html

2014-06-19 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue3425] posixmodule.c always using res = utime(path, NULL)

2014-06-19 Thread R. David Murray
R. David Murray added the comment: This is no longer an issue in Python3; there utimes is used if it is available (if utimensat is not). Since this doesn't affect the platforms actually supported by python2.7, I'm closing this as out of date. -- nosy: +r.david.murray

[issue16374] ConfigParser: Passing a semicolon as a value

2012-10-31 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue16374> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: It seems to me that if as Terry suggests both the English and the translation are output then most of Ezio's concerns would be addressed. Maybe we could even start a new trend in error message internationalization :) An important question that needs

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: I didn't look at the patch...I assumed we were only talking about the message. There seems little point in translating any other part of the traceback, other than maybe the boilerplate between traceback sections. My thought was that the translation

[issue16344] Traceback Internationalization Proposal

2012-10-31 Thread R. David Murray
R. David Murray added the comment: Ezio: ah. I guess I don't read the Description column of attachments, only the filename :) -- ___ Python tracker <http://bugs.python.org/is

[issue15795] Zipfile.extractall does not preserve file permissions

2012-10-31 Thread R. David Murray
R. David Murray added the comment: OK, so this is an enhancement to specifically allow preservation of "unsafe" permissions? Adding the nosy list from issue 3394. -- nosy: +cbrannon, pitrou, swarren type: behavior -> enhancement versions:

[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread R. David Murray
R. David Murray added the comment: Can you post the error, please? -- nosy: +r.david.murray type: crash -> behavior ___ Python tracker <http://bugs.python.org/issu

[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-01 Thread R. David Murray
R. David Murray added the comment: Is it possible you installed 3.3 differently? For example 3.2 and 2.7 installed for all users and 3.3 for just you, or vice versa? >From the looks of the traceback there really is a permission problem with the >file, since it is failing on a norma

[issue16145] Abort in _csv module

2012-11-01 Thread R. David Murray
Changes by R. David Murray : ___ Python tracker <http://bugs.python.org/issue16145> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue16145] Abort in _csv module

2012-11-01 Thread R. David Murray
R. David Murray added the comment: I don't know. I was able to remove him. (I have javascript turned off, don't know if that makes any difference). -- ___ Python tracker <http://bugs.python.o

[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread R. David Murray
R. David Murray added the comment: Doesn't look like it. -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread R. David Murray
R. David Murray added the comment: The reason for our "no new features" policy is that if a program works with version x.y, it should work for all x versions (modulo failing on an earlier version because of a bug...and conversely if it works on x.y, it should work on all later ver

[issue16385] evaluating literal dict with repeated keys gives no warnings/errors

2012-11-02 Thread R. David Murray
R. David Murray added the comment: It is a nice suggestion, but it is also probably a non-trivial change to the parser. If you want to try coming up with a patch we would consider it, but I suspect there is a limit to how much complexity we'd be willing to add to the parser code for

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread R. David Murray
R. David Murray added the comment: Ah. Well, we prefer to err on the side of strictness for backward compatibility, so I think we should treat this as an enhancement, then. -- ___ Python tracker <http://bugs.python.org/issue1207

[issue16388] Urllib screws up capitalization in "User-Agent" HTTP Header

2012-11-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> urllib/httplib header capitalization ___ Python tracker <http://bugs.python

[issue16383] Python 3.3 Permission Error with User Library on Windows

2012-11-02 Thread R. David Murray
R. David Murray added the comment: Well, I run linux, not Windows. I haven't even looked at your code, frankly, since it is a zip file and includes third party stuff. Maybe a windows dev will find time to look at it. -- ___ Python tracker

[issue16353] add function to os module for getting path to default shell

2012-11-02 Thread R. David Murray
R. David Murray added the comment: The "system default shell" (which should always be a /bin/sh workalike, I think) should always be the default. Any other shell should be something that has to be specified explicitly. At least, that's the way most posix programs work, I t

[issue16353] add function to os module for getting path to default shell

2012-11-03 Thread R. David Murray
R. David Murray added the comment: I think it would not be ok to import shutil in os, so I'm glad there is an alternative. -- ___ Python tracker <http://bugs.python.org/is

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

2012-11-03 Thread R. David Murray
R. David Murray added the comment: It doesn't matter whether it is a bug or not (though it is not in the situation I described). The point is that a working program would stop working. That is the kind of breakage our backward compatibility policy is designed to protect ag

[issue16399] argparse: append action with default list adds to list instead of overriding

2012-11-03 Thread R. David Murray
R. David Murray added the comment: This behavior is inherited from optparse. I think it is more-or-less intentional, and in any case it is of long enough standing that I don't think we can change it. We documented it for optparse in another issue, but I don't think we made the cor

[issue10030] Patch for zip decryption speedup

2012-11-04 Thread R. David Murray
R. David Murray added the comment: We aren't particularly interested in helping people make their files slightly harder to reverse engineer, either, so I don't think that is a good enough reason for accepting this. There might be other reasons that are good enough, but I don'

[issue10030] Patch for zip decryption speedup

2012-11-04 Thread R. David Murray
R. David Murray added the comment: > If the encryption is so horrible why is there any support (with bad > performance) at all in Python? I would say it there so that people can use python to "decrypt" an "encrypted" zip archive they have been sent that was genera

[issue16413] Non cross-platform behavior of os.path.split

2012-11-05 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue16413> ___ ___ Pyth

[issue16415] eventlet.monkey_patch() breaks subprocess.Popen on Windows

2012-11-05 Thread R. David Murray
R. David Murray added the comment: eventlet is not a part of the Python standard library. Please report this bug to the project's bug tracker. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: ope

[issue16417] Integer converted in tuple without request

2012-11-05 Thread R. David Murray
R. David Murray added the comment: You did request a tuple: r = a - q * b, That is equivalent to r = (a - q * b,) which is a single element tuple. I had to put in some print statements in your loop to find that, it wasn't obvious. This is perhaps a disadvantage of Python&#x

[issue16418] argparse with many choices can generate absurdly long usage message

2012-11-05 Thread R. David Murray
R. David Murray added the comment: I don't think choices is a good choice there (pardon the pun). You really want a custom type. I'm inclined to think that that applies to any 'choices' value that is 'too large' for the help display. Part of the point of choice

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-06 Thread R. David Murray
R. David Murray added the comment: There is an example in the test suite somewhere. Probably in the distutils tests. Search for xxmodule...but you'll need to create your own source. I'd see if you can write it out from the test rather than checking in another data file, but a da

[issue16421] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object

2012-11-06 Thread R. David Murray
R. David Murray added the comment: Sorry, didn't mean to change the component back. -- components: +Interpreter Core -Extension Modules type: behavior -> enhancement versions: +Python 3.4 -Python 3.5 ___ Python tracker <http://bugs

[issue2275] urllib/httplib header capitalization

2012-11-06 Thread R. David Murray
R. David Murray added the comment: It looks like there is a patch, so a patch review would be the next step (as indicated by the stage, not that we always remember to update that...) Reading the issue carefully and making sure that all the concerns are addressed is also required. A comitter

[issue9584] Allow curly brace expansion

2012-11-08 Thread R. David Murray
R. David Murray added the comment: Given the backward compatibility concerns, and the fact that brace expansion and wildcard expansion are conceptually separate operations, perhaps what we should have a is a glob.expand_braces (or some such name) function? (Note: I haven't looked at wh

[issue16448] 'module' object has no attribute 'font' when "import tkinter" only.

2012-11-10 Thread R. David Murray
R. David Murray added the comment: This is a question more suited to be asked on python-list or python-tutor, rather than a bug report. I'll give you a clue while I'm closing the issue: in the font snippt you reference the font attribute when your module is imported. In the

[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems

2012-11-10 Thread R. David Murray
R. David Murray added the comment: I agree with Antoine. It seems to me that it is very important to the semantics of rollover that the rename be atomic, even if we ignore the issue of existing other readers. If it were not atomic, you might end up with lost log messages. So I don't

[issue1065986] Fix pydoc crashing on unicode strings

2012-11-10 Thread R. David Murray
R. David Murray added the comment: It is not so much that it isn't a priority, as that no one has suggested a working fix that is suitable for 2.7. Do you have a suggestion? -- resolution: fixed -> ___ Python tracker <http://bugs

[issue16457] Allow operator 'getter' methods to take a list and return a tuple

2012-11-11 Thread R. David Murray
New submission from R. David Murray: Consider this code snippet, simplified from a real application: def display(self, *columns) getter = attrgetter(*columns) toprint = [[str(x) for x in getter(row)] for row in self._rows] This works great...as long as there are two or more columns to

[issue16462] smtpd should return greeting

2012-11-12 Thread R. David Murray
R. David Murray added the comment: Are you asking to have seen_greeting passed in the server.process_message call? That is reasonable. -- components: +email nosy: +barry, r.david.murray versions: +Python 2.6 -Python 2.7, Python 3.1, Python 3.2, Python 3.3

[issue16462] smtpd should return greeting

2012-11-12 Thread R. David Murray
R. David Murray added the comment: On the other hand, it would also be backward incompatible. Can anyone think of a backward compatible way to provide this info? Maybe we could use the new signature object support. -- ___ Python tracker <h

[issue16462] smtpd should return greeting

2012-11-12 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.4 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue16462> ___ ___ Python-bugs-list mailin

[issue16457] Allow operator 'getter' methods to take a list and return a tuple

2012-11-13 Thread R. David Murray
R. David Murray added the comment: Given Nick's point about itemgetter, I agree this isn't worth doing. I wouldn't want the signatures of attrgetter and itemgetter to no longer be parallel. Min isn't a problem, by the way, since it accepts an iterator a

[issue16467] frozen importlib required for extending Python interpreter not public

2012-11-13 Thread R. David Murray
R. David Murray added the comment: The file certainly exists, since Python requires it to run. It sounds like cx_Freeze just doesn't support Python3.3 yet. I don't see that this is a Python bug. -- nosy: +r.david.murray ___ Python trac

[issue16418] argparse with many choices can generate absurdly long usage message

2012-11-14 Thread R. David Murray
R. David Murray added the comment: I agree with Chris that using the repr in the general case would be a regression in usability for the end user (and certainly not suitable for a maintenance release). Here is some brainstorming: We could "special case" this via duck typing. If

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread R. David Murray
R. David Murray added the comment: I think I can answer your last question. There are two quopri algorithms, one where spaces are allowed (message body) and one where they aren't (email headers). For the rest, I'd have to take a closer look than I have time for

[issue16489] importlib find_loader returns a loader for a non existent module

2012-11-16 Thread R. David Murray
R. David Murray added the comment: Not necessarily. The fact that there is nothing to load doesn't mean it isn't the right loader if there *was* something to load. But I'll leave it to the import experts to say what the expected behavior is. I'll admit that I can

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread R. David Murray
R. David Murray added the comment: Any chance you could reduce this to a simpler test case? It may be a while before anyone gets around to analyzing your complete example. -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.

[issue16498] Unwanted link between volatile and shelve storage

2012-11-18 Thread R. David Murray
R. David Murray added the comment: If it "got it" from dBasis[163] via item assignment (say gList1[i1][1] = dBasis[163]), then yes, Python remembers that. Names just hold pointers to objects, so after that assignment gList1[i1][1] points to the same object as dBasis[163] does

[issue16510] Using appropriate checks in tests

2012-11-19 Thread R. David Murray
R. David Murray added the comment: Thanks for the work, but we don't generally make bulk changes like this. It generates churn in the codebase, and has the risk of inadvertently changing the meaning of the tests, to little actual benefit. Instead we modernize tests when we touch the

[issue16517] address merge conflicts in devguide null-merge instructions

2012-11-21 Thread R. David Murray
R. David Murray added the comment: Yes, so I suppose you could add a footnote that says "using a three way merge tool generally makes this step unnecessary". Is there a bug report for this on the mercurial tracker? If so we could link to the

[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread R. David Murray
New submission from R. David Murray: When debugging using tests or doing test driven development, I find it very useful to have the test run exit immediately on the first failure. Doctest currently has a feature to suppress all output after the first failure, but not to exit on the first

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-21 Thread R. David Murray
New submission from R. David Murray: It looks like the use of the 'args' formal parameter was cut and pasted from the methodcaller docs, when it is not appropriate for itemgetter and attrgetter. http://docs.python.org/3/library/operator.html#operator.attrgetter -- assi

[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread R. David Murray
R. David Murray added the comment: Looks great, I didn't think any changes were needed. Thanks a bunch, Daniel. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http:

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-21 Thread R. David Murray
R. David Murray added the comment: This is intentional. Only 2.7, 3.3, and 3.4 auto-update now that 3.3 is out. There will be a final rebuild of the 3.2 docs when 3.2 final is released. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status

[issue16528] 3.2 docs not updating on docs.python.org

2012-11-22 Thread R. David Murray
R. David Murray added the comment: I don't know. If it is would be in wherever "documenting Python" is these days. The policy is that only the versions in active maintenance are automatically rebuilt. 3.2 is technically no longer in maintenance, it's just that there are

[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

2012-11-26 Thread R. David Murray
R. David Murray added the comment: Agree with the rejection. os.system is intended to be a minimal wrapper around the system call, as are most things in the os module, and as such mirroring the behavior of the system call (by returning -1) is less surprising than raising an exception, even

[issue16558] multiprocessing fails to raise exception with parameters

2012-11-26 Thread R. David Murray
R. David Murray added the comment: This is probably related to #1692335. It looks like that fix was not backported. Can you test if your example works now in 3.3? -- nosy: +r.david.murray, sbt ___ Python tracker <http://bugs.python.org/issue16

[issue16564] email.generator.BytesGenerator fails with bytes payload

2012-11-27 Thread R. David Murray
R. David Murray added the comment: Yes, the way BytesGenerator works is basically a hack to get the email package itself working. Use cases outside the email package were not really considered in the (short) timeframe during which it was implemented. The longer term plan calls for redoing

[issue16564] email.generator.BytesGenerator fails with bytes payload

2012-11-27 Thread R. David Murray
R. David Murray added the comment: Hmm. Let me rephrase that. *Internally* it doesn't support bytes payloads, it "encodes" bytes payloads as surrogateescaped ascii, as you have oserved. Which is why this is on the borderline, and could possibly be considered a bug fix,

[issue16333] Trailing whitespace in json dump when using indent

2012-11-28 Thread R. David Murray
R. David Murray added the comment: "Code smell" and "Easily fixable on their side" are not an arguments that apply here. We have a strong backward compatibility policy that strives not to break working code in bug fix releases. And yes, this means that there are sometime

[issue16333] Trailing whitespace in json dump when using indent

2012-11-28 Thread R. David Murray
R. David Murray added the comment: Yes, I think the risk of breaking doctests (and breaking them in a very mysterious way...trailing spaces) is high enough that we shouldn't backport the fix, unfortunately. -- ___ Python tracker

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-11-28 Thread R. David Murray
R. David Murray added the comment: Since it looks like that is your buildbot, can you do some command line testing to see what is going wrong with the gdb invocation? I'm wondering if perhaps this feature was backported as a security patch, so that the gdb version check is an insuffi

[issue16601] Restarting iteration over tarfile continues from where it left off.

2012-12-03 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. Could you either include a test or post code that demonstrates the problem, please? -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue16

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: Is your error report the fact that the name 'tuple' appears in the error message instead of 'c'? That does seem sub-optimal. It may not be easy to improve, though. -- nosy: +r.david.murray priority: normal -> low ti

[issue16609] random.random() / float() loses precision when passed to str()

2012-12-04 Thread R. David Murray
R. David Murray added the comment: In fact it has been changed. In Python3 you get: >>> x = 0.88022393777095409 >>> x 0.8802239377709541 >>> str(x) '0.8802239377709541' Even in 2.7 you would get the above repr, not the one you showed. This is becau

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: I have no idea what you are referring to by 'constructing str' :( I thought at first it was your incorrect tuple call in the init that was the issue, but that didn't look right, and after reproducing it and playing with it for a bit I figured

[issue16610] Silent StopIteration exc when raised from generator inside of another generator

2012-12-04 Thread R. David Murray
R. David Murray added the comment: I don't see the bug here. Your for loop calls wrap. Wrap calls emptygen. Emptygen raises a StopIteration exception. That exception is of course propagated upward (it isn't caught by wrap), and the loop stops. -- nosy: +r.david.murray

[issue16609] float loses precision when passed to str()

2012-12-04 Thread R. David Murray
R. David Murray added the comment: That's why I suggested a glossary entry. The relevant function description *does* contain the phrase "floating point", so a glossary link there would be reasonably natural. -- ___ Python

[issue16608] immutable subclass constructor call error does not show subclass name

2012-12-04 Thread R. David Murray
R. David Murray added the comment: I followed the link, but it took me to a login/signup form, so it wasn't very informative. -- ___ Python tracker <http://bugs.python.org/is

[issue16610] Silent StopIteration exc when raised from generator inside of another generator

2012-12-04 Thread R. David Murray
R. David Murray added the comment: The only way I was able to replicate that result was by removing the entire try/except block, including the yield. In that case, wrap is no longer a generator, so the exception is raised before you enter the for loop

[issue16614] argparse should have an option to require un-abbreviated option names

2012-12-05 Thread R. David Murray
R. David Murray added the comment: It is both documented (http://docs.python.org/dev/library/argparse.html#argument-abbreviations) and an important feature. I thought there was an enhancement request in this tracker for making the behavior optional, but I couldn't find it when I looke

[issue14910] argparse: disable abbreviation

2012-12-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: +Michael.Edwards ___ Python tracker <http://bugs.python.org/issue14910> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16614] argparse should have an option to require un-abbreviated option names

2012-12-05 Thread R. David Murray
R. David Murray added the comment: It is indeed. And it even has a patch. Don't know how I missed it. -- resolution: -> duplicate stage: needs patch -> committed/rejected superseder: -> argparse: disable abbreviation ___ Python

[issue16631] tarfile.extractall() doesn't extract everything if .next() was used

2012-12-07 Thread R. David Murray
R. David Murray added the comment: I wonder if both bugs are symptoms of an underlying bug: if you call 'iter' twice on a tarfile, are the iterators independent? Is that even a sensible thing to be able to do? -- nosy: +r.david.murray

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-07 Thread R. David Murray
R. David Murray added the comment: I will note that on unix the user is also free to update the machine's mime types registry (that's more than half the point of the mimetypes module). Usually this is only done by installed software...as I believe is the case on Windows as well.

<    48   49   50   51   52   53   54   55   56   57   >