[issue31264] Import Package/Module through HTTP/S repository

2017-08-23 Thread R. David Murray
R. David Murray added the comment: This kind of proposal should start with a discussion on the python-ideas mailing list. You can reopen the issue if there is a consensus for moving forward...but I wouldn't be surprised if this was considered to be a PEP level proposal. --

[issue31263] Assigning to subscript/slice of literal is permitted

2017-08-23 Thread R. David Murray
R. David Murray added the comment: If you would disallow "a = [0]; [5, a][1][:] = [3]", then your proposal will not be accepted, for backward compatibility reasons if nothing else. -- versions: +Python 3.7 -Python 3.5, Python 3.6 ___ Pyth

[issue31263] Assigning to subscript/slice of literal is permitted

2017-08-23 Thread R. David Murray
R. David Murray added the comment: Sometimes it does, sometimes we make the change in a feature release, often after a deprecation period. But in this case there is doubt that the behavior is incorrect in the first place. This discussion should move to the python-ideas mailing list. I&#

[issue31264] Import Package/Module through HTTP/S repository

2017-08-23 Thread R. David Murray
R. David Murray added the comment: Indeed, I personally can't imagine a circumstance in which I'd want to use this feature. Even inside an org. It also has security implications, which would also make it a harder sell. -- ___ Pyth

[issue31268] Inconsistent socket timeout exception

2017-08-24 Thread R. David Murray
R. David Murray added the comment: Have you tried the equivalent C program? I'm guessing this is happening at the OS layer and Python is just reporting it. On my system a timeout of 5 will always report the OS error. -- nosy: +r.david.m

[issue31269] bug in islink() and is_symlink()

2017-08-24 Thread R. David Murray
R. David Murray added the comment: The docs say, eg: "Return True if the path points to a symbolic link". The path points to a file system object, and it is the object that is being checked, not each component of the path used to get to that object. -- nosy: +r.da

[issue31269] bug in islink() and is_symlink()

2017-08-24 Thread R. David Murray
R. David Murray added the comment: I would phrase that as "check if any of the components of the path are links", at which point one "obvious"[*] answer is "any(x.is_symlink() for x in [*mypath.parents, mypath])". If the path is absolute, you could use &qu

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to improve the documentation. Raymond will address this definitively, but unless I'm mistaken part of the purpose of the examples is to show how the various itertools can be used. If that is true, then in the context of the ov

[issue31268] Inconsistent socket timeout exception

2017-08-24 Thread R. David Murray
R. David Murray added the comment: I'm not a networking expert at this level, but I believe what is happening here is that the network stack does an arp, and has a timeout waiting for the arp response that is longer than your socket timeout. So at some point its arp timeout expires whil

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: shadowadler, the documentation assumes *throughout* that you have not created any variable that shadows any standard Python entities. There is no other rational way to write the documentation. To change that policy would, as has been pointed out, require

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: I see I didn't specifically address your counter argument ("that would obviously be absurd"). Having thought it it some more, your are right, there *is* a difference between the examples you think it would be absurd to disclaim and your ex

[issue31283] Inconsistent behaviours with explicit and implicit inheritance from object

2017-08-26 Thread R. David Murray
R. David Murray added the comment: OK, agreed. The general principle is: if you reference the name, it is looked up in the the builtins namespace at runtime (effectively an indirect reference). If the syntax doesn't explicitly mention the name, then it is going to be (the equivalent

[issue31295] typo in __hash__ docs

2017-08-28 Thread R. David Murray
R. David Murray added the comment: No, it is correct as worded. It is talking about the default methods. With the default methods, x == y implies that x is y. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -&g

[issue31300] Traceback prints different code than the running module

2017-08-29 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 8087, which contains quite a bit of discussion of the subtleties of the issue. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unupdated so

[issue31303] xml.etree.ElementTree fails to parse a document (regression)

2017-08-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue31303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-08-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <http://bugs.python.org/issue31307> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31312] Build differences caused by the time stamps

2017-08-31 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 29708. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> support reproducible Python builds type: security -> behavior ___

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-02 Thread R. David Murray
R. David Murray added the comment: If that is the intended definition of "whitespace" in this context (I have no opinion on that so far), then the docs need amplification, because in general "whitespace" includes newlines. On the other hand, this might be considered a bug

[issue16988] argparse: PARSER option for nargs not documented

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I don't think this use case is enough to justify documenting it, since this is not an intuitive meaning of the word PARSER. I think if we wanted to expose this for this kind of use case, we'd want to rename the constant (with an alias fo

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3327 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned this into a PR. The example was already changed in a previous checkin. I reworded the optparse porting addition to match the existing style of the list. -- nosy: +r.david.murray ___ Python tr

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue15

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3345 ___ Python tracker <http://bugs.python.org/issue14191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14191] argparse doesn't allow optionals within positionals

2017-09-04 Thread R. David Murray
R. David Murray added the comment: I've turned intermixed.patch into a PR. I tweaked the documentation so that it does not refer to the details of the implementation. I tweaked the implementation to have the 'try' start before the code that modifies the state, and did the l

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3348 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15427] Describe use of args parameter of argparse.ArgumentParser.parse_args

2017-09-04 Thread R. David Murray
Changes by R. David Murray : -- pull_requests: +3350 ___ Python tracker <http://bugs.python.org/issue15427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14191] argparse doesn't allow optionals within positionals

2017-09-05 Thread R. David Murray
R. David Murray added the comment: I got an offline agreement from Zach Ware, and nobody here at the sprint has objected (though I don't know if anyone else looked), so I'll go ahead and finish the PR. -- ___ Python tracker <http://bu

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-06 Thread R. David Murray
R. David Murray added the comment: I started rewriting the header folder in response to this bug, because the root problem is a bit deeper than just _fold_as_ew being missing. I will probably work on it some more this week, but if I don't think I'm going to get it finished I&

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-06 Thread R. David Murray
R. David Murray added the comment: You did not follow the request I made on the PR to explain in this issue you opened what is failing and why. Unless you convince us that this is actually a bug in python, we will close the issue and PR

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread R. David Murray
R. David Murray added the comment: I think RegexFlag is an implementation detail, but it is true that it isn't prefixed with a _ so putting it in __all__ is not obviously wrong. However, if we do that we should also document it (currently it is mentioned only in a versionchanged line,

[issue30824] Add mimetype for extension .json

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset 47e5f791223773dd46273153e9fa5b48f848f0c9 by R. David Murray (Miss Islington (bot)) in branch '2.7': [2.7] bpo-30824: Add mimetype for .json (GH-3048) (#3394) https://github.com/python/cpython/commit/47e5f791223773dd46273153e9fa5b

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread R. David Murray
R. David Murray added the comment: Well, I consider that they really should be named constants and not an enum, which is why I consider it an implementation detail :) -- ___ Python tracker <http://bugs.python.org/issue31

[issue30824] Add mimetype for extension .json

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset e29ab7e75138e198b51c8bd04afa16d9d2c976a5 by R. David Murray (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401) https://github.com/python/cpython/commit/e29ab7e75138e198b51c8bd04afa16

[issue14191] argparse doesn't allow optionals within positionals

2017-09-06 Thread R. David Murray
R. David Murray added the comment: New changeset 0f6b9d230674da784ca79a0cf1a03d2af5a8b6a8 by R. David Murray in branch 'master': bpo-14191 Add parse_intermixed_args. (#3319) https://github.com/python/cpython/commit/0f6b9d230674da784ca79a0cf1a03d

[issue14191] argparse doesn't allow optionals within positionals

2017-09-06 Thread R. David Murray
R. David Murray added the comment: Thanks Paul. By the way, if you want your "real name" in What's New, just let me know what it is and I'll make the change. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread R. David Murray
R. David Murray added the comment: It seems likely that this is related to the problems discussed (and hopefully solved) in issue 30024. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 397c467c49385023de36411194d381ac993bae1a by R. David Murray (Elena Oat) in branch 'master': bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (#3272) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: Thanks, Elena. -- resolution: -> fixed stage: -> backport needed ___ Python tracker <https://bugs.python.org/i

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset 82cae7c5be4175e2173e4d342825b5315a9d612a by R. David Murray (Miss Islington (bot)) in branch '2.7': [2.7] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3428) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
R. David Murray added the comment: New changeset e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4 by R. David Murray (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines. (GH-3272) (GH-3429) https://github.com/python/cpyt

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-07 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue31330> ___ ___ Pyth

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Can you figure out what the input to feedparser is in those cases? If pip or whatever is feeding in a None object, then that's not a bug in feedparser. However, if the input is a string (or bytes via the bytes interface) and this is heppening, then th

[issue31397] does not work import in Python 3.6.2

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Presumably the book didn't tell you everything you need to know to make this work, or you missed something in the instructions, since this certainly does work if the module is in a directory on sys.path. (The 'python module1.py' will o

[issue31398] TypeError: gdbm key must be string, not unicode

2017-09-09 Thread R. David Murray
R. David Murray added the comment: In python3, u"a" and "a" are the same thing. The equivalent in python3 would bee b"a" vs "a", but I have no idea if we even support bytes keys in python3 gdbm. In 2.7 does has_key(u"x") work if x

[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Could you please post the examples instead of a zip file? Zip files are hard to read on a mobile browser :) -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Users on linux can and do screw this up too. I believe we also had a case where a distro screwed up the defaults for, I think, the reverse resolve? Not sure which test that was, and the test may since been fixed to not depend on that. The point is this

[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-09 Thread R. David Murray
R. David Murray added the comment: This is indeed not a bug, it it a consequence of the scoping rules. What surprises me is that it works without passing in an explicit scope in in 3.7. I'm not sure what we changed that makes that

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-09 Thread R. David Murray
R. David Murray added the comment: I managed to finish the rewrite, and it does fix this issue. I'll probably post the PR tomorrow. -- ___ Python tracker <https://bugs.python.org/is

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-09-09 Thread R. David Murray
R. David Murray added the comment: Thanks for the PR, but I've managd to finish my rewrite of the folder so that it not only doesn't traceback on this, but correctly folds it. I'll probably post the PR tomorrow. -- ___ Python

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-09-10 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch pull_requests: +3479 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue30788> ___ ___ Py

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-10 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch pull_requests: +3478 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to improve Python, but we don't usually accept refactoring requests like this. We "fix" such issues when the code is touched for other reasons. We'll see what other developers think, though. -- n

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Anyone who uses stdlib code as examples of best practice doesn't understand the history of stdlib code. Generally, we consider the danger of introducing bugs to be more significant than the benefit of the "cleanup" changes. The fact that you

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Seems like it ought to be possible to use the same hooks that venv uses to make this work, but I haven't looked at the details of how those work. -- nosy: +r.david.murray ___ Python tracker &

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Mark: Yeah, I think my comment was directed more to haypo than you :) -- ___ Python tracker <https://bugs.python.org/issue31

[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-12 Thread R. David Murray
R. David Murray added the comment: Hmm. I must have made a mistake when I ran (jpc's) test on 3.7. It is failing with the NameError for me when I try it again. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: compile err

[issue31370] Remove support for threads-less builds

2017-09-12 Thread R. David Murray
R. David Murray added the comment: dummy_threading should definitely not have been removed, and like all the other APIs should not be removed until 2.7 is dead. Deprecating it is of course fine :) -- nosy: +r.david.murray ___ Python tracker

[issue31370] Remove support for threads-less builds

2017-09-12 Thread R. David Murray
R. David Murray added the comment: And actually, I wouldn't be surprised if eventlet depended on the *functionality* in _dummy_threading, so you probably need to restore that, too. -- ___ Python tracker <https://bugs.python.org/is

[issue31435] Addition giving incorrect result in certain circumstances

2017-09-12 Thread R. David Murray
R. David Murray added the comment: https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-12 Thread R. David Murray
R. David Murray added the comment: Have you followed the instructions on this page?: https://www.python.org/download/mac/tcltk/ -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31441] Descriptor example in documentation is confusing, possibly wrong

2017-09-13 Thread R. David Murray
R. David Murray added the comment: Here is a not-much-more-complicated version that solves the problem. It is probably worth changing as the revised example makes clear the difference between self and obj, which is an important distinction. class RevealAccess(object

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2017-09-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31447> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31449] Potential DoS Attack when Parsing Email with Huge Number of MIME Parts

2017-09-13 Thread R. David Murray
R. David Murray added the comment: 10 million mime parts? That sounds like the kind of thing rfc 1870 was designed to address in a more general fashion (ie: the SMTP server should be enforcing maximum message size if you are worried about DOS attacks). 1 million = 3 seconds, 10 million

[issue31454] Include "import as" in documentation

2017-09-13 Thread R. David Murray
R. David Murray added the comment: Where do you find that it is not documented that you would expect it to be? Because 'import' 'as' is certainly documented. -- nosy: +r.david.murray ___ Python tracker <https://bug

[issue31353] Implement PEP 553 - built-in debug()

2017-09-13 Thread R. David Murray
R. David Murray added the comment: It is a new feature, so no it would not be backported. -- nosy: +r.david.murray type: -> enhancement ___ Python tracker <https://bugs.python.org/issu

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread R. David Murray
R. David Murray added the comment: It sounds like docker is just broken (I would expect unix tools to work in a docker container). That however is beside the point. I believe this is a duplicate of issue 10496, but I don't know why it hasn't been fixed. -- nosy: +r.da

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> Python startup should not require passwd entry ___ Python tracker <https://bugs.python.org/issue31469> ___ _

[issue10496] Python startup should not require passwd entry

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Unless I'm mistaken, this has come up again in issue 31469. -- nosy: +cinerar, r.david.murray ___ Python tracker <https://bugs.python.org/is

[issue31454] Include "import as" in tutorial

2017-09-14 Thread R. David Murray
R. David Murray added the comment: I agree that it would seem reasonable to add this to section 6.1 of the tutorial, since it mentions both import statement variants and the modules "global symbol table", which are the two concepts involved in import as. Would you like to pr

[issue31454] Include "import as" in tutorial

2017-09-14 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue31454> ___ ___ Python-bugs-list mailin

[issue31475] Bug in argparse - not supporting utf8

2017-09-14 Thread R. David Murray
R. David Murray added the comment: As I requested in the PR, please provide a way to reproduce the bug you are reporting. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31475] Bug in argparse - not supporting utf8

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Note that as far as I know without a reproducer, it is confusing to me to talk about argparse supporting or not supporting utf8. It deals only with text strings, which are unicode. Or is this a 2.7 only bug report? (Although even there it would be a

[issue31454] Include "import as" in tutorial

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Well, this is all volunteer work. Maybe someone else will feel like doing it :) -- ___ Python tracker <https://bugs.python.org/issue31

[issue10496] Python startup should not require passwd entry

2017-09-16 Thread R. David Murray
R. David Murray added the comment: Dmitriy: you will note from the discussion on this issue that your "simple patch" was not considered sufficient. There were additional concerns voiced about haypo's patch, which is why I guess it didn't get applied. However, can you rev

[issue31503] Enhance dir(module) to be informed by __all__ by updating module.__dir__

2017-09-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31503> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31021] Clarify programming faq.

2017-09-18 Thread R. David Murray
R. David Murray added the comment: I think there is nothing to do here unless Mark likes my suggestion and/or someone comes up with an even better improvement. -- ___ Python tracker <https://bugs.python.org/issue31

[issue31504] Documentation for return value for string.rindex is missing when search string is empty

2017-09-18 Thread R. David Murray
R. David Murray added the comment: You have to remember that the most useful way to think about python slice indexes is that they point between characters. Consider, for example, that you have a starting index of something, and you are looking backward in the string for a trailing delimiter

[issue31507] email.utils.parseaddr has no docstring

2017-09-18 Thread R. David Murray
R. David Murray added the comment: Mark: re your training course...if you aren't trying to stay compatible with python2, note that python3 has a much more sophisticated address parser now, that gets called automatically if you use the new policies. -- components: +email nosy: +

[issue31498] Default values for zero in time.strftime()

2017-09-18 Thread R. David Murray
R. David Murray added the comment: Generally we're just reporting whatever the platform strftime does. Is that what happens in this case? -- nosy: +belopolsky, r.david.murray ___ Python tracker <https://bugs.python.org/is

[issue31513] Document structure of memo dictionary to enable more advanced __deepcopy__ uses

2017-09-18 Thread R. David Murray
R. David Murray added the comment: Unless I'm mistaken (and someone will correct me and reopen the issue if I am :) it is intentionally undocumented. A proposal for a documented protocol of some sort is certainly a possibility, but is something that should start with a discussion o

[issue24243] behavior for finding an empty string is inconsistent with documentation

2017-09-18 Thread R. David Murray
R. David Murray added the comment: I'm not Raymond, but he is correct. This is an example of "taking advantage of the corner cases", and is something Python does a lot of, especially around strings and slices. The current behavior was carefully considered and has us

[issue31498] Default values for zero in time.strftime()

2017-09-19 Thread R. David Murray
R. David Murray added the comment: Well, the first question that needs to be answered is: if you call the C strftime with the same arguments, what result do you get? Because if it is the C strftime doing this, then it is not a bug in Python, whether it is correct behavior or not

[issue31519] Negative number raised to even power is negative (-1 ** even = negative)

2017-09-19 Thread R. David Murray
R. David Murray added the comment: You are being tripped up by operator precedence: >>> -1**2 -1 >>> (-1)**2 1 -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracke

[issue31519] Negative number raised to even power is negative (-1 ** even = negative)

2017-09-19 Thread R. David Murray
R. David Murray added the comment: It's a FAQ, but it was faster for me to just cut and paste than it was to look up the FAQ link :) -- ___ Python tracker <https://bugs.python.org/is

[issue31498] Default values for zero in time.strftime()

2017-09-19 Thread R. David Murray
R. David Murray added the comment: Yes, I think we can "fix" some things. I don't know if this falls into the class of things we should fix. I'll leave that decision to people with more experience with time stuff. -- ___ Py

[issue31507] email.utils.parseaddr has no docstring

2017-09-19 Thread R. David Murray
R. David Murray added the comment: New changeset 9e7b9b21fe45f7d93eaf9382fedfa18247d0d2b2 by R. David Murray (Rohit Balasubramanian) in branch 'master': bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (gh-3647) https://github.com/python/cpyt

[issue31524] mailbox._mboxMMDF.get_message throws away From envelope

2017-09-19 Thread R. David Murray
R. David Murray added the comment: It looks like it is saving it (the set_from line). Do you have a test that proves otherwise? -- ___ Python tracker <https://bugs.python.org/issue31

[issue31524] mailbox._mboxMMDF.get_message throws away From envelope

2017-09-19 Thread R. David Murray
R. David Murray added the comment: It just needs to call set_unixfrom as well as set_from. I don't know why the MMDFMessage tracks it separately, but I'm sure the author had a reason that seemed good at the time :) -- ___ Python track

[issue31443] Possibly out of date C extension documentation

2017-09-20 Thread R. David Murray
R. David Murray added the comment: We do not currently officially support cygwin. There are people working on getting it working again (and having a buildbot) so we can support it, so cygwin support is a goal, but not currently a requirement. I've nosied Erik Brey, who is one of the

[issue31539] asyncio.sleep may sleep less time then it should

2017-09-21 Thread R. David Murray
R. David Murray added the comment: I can't reproduce this on a linux VM with 3.7 tip. I don't currently have a windows instance to test against. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.o

[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2018-11-26 Thread R. David Murray
R. David Murray added the comment: Without looking at doctest.py, yes. I believe the doctests in that file should be already plugged in to the unittest framework, so adding new testcase containing a non-doctest unit test should work fine

[issue35342] email "default" policy raises exception iterating over unparseable date headers

2018-11-28 Thread R. David Murray
R. David Murray added the comment: This is effectively a duplicate of #30681, which has a solution, although it is not yet in final form per the last couple of comments on the issue and the PR. -- resolution: -> duplicate stage: -> resolved supe

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2018-11-28 Thread R. David Murray
R. David Murray added the comment: Reported again in issue #35342. The existing PR is close to complete, but needs adjusted for the fact that we want (and want to document) that the utility raises errors (ie: catch the error in the header parser rather than having the utility return None

[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread R. David Murray
R. David Murray added the comment: We have generally made an exception to the "new feature" rule for mimetypes. That is, we don't really consider a mimetype addition to be a new feature in the sense that our backward compatibility rules mean. It is true that an applicatio

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2018-12-05 Thread R. David Murray
R. David Murray added the comment: The problem comes from thinking you can parse an arbitrary email message if it is in unicode form. *YOU CANNOT DO THAT* in the general case (ie: non-ascii attachments). That said, the new email package API is designed to facilitate "off label"

[issue35403] support application/wasm in mimetypes and http.server

2018-12-10 Thread R. David Murray
R. David Murray added the comment: We don't generally add a mime type until it is a de-jure or de-facto standard. If it is still in testing it is probably too soon to add it. For testing, you can always add it yourself in your code via the api that mimetypes pro

[issue35547] email.parser / email.policy does not correctly handle multiple RFC2047 encoded-word tokens across RFC5322 folded headers

2018-12-22 Thread R. David Murray
R. David Murray added the comment: Here's a patch that makes the example work correctly. This is not a fix, a real fix will be more complicated. This just demonstrates the kind of thing that needs fixing and where. The existing parser produces a sub-optimal parse tree as its result.

[issue35625] Comprehension doc doesn't mention buggy class scope behavior

2019-01-06 Thread R. David Murray
Change by R. David Murray : -- components: -email nosy: -barry, r.david.murray type: security -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue35625] Comprehension doc doesn't mention buggy class scope behavior

2019-01-06 Thread R. David Murray
Change by R. David Murray : Removed file: https://bugs.python.org/file48026/keyfile.png ___ Python tracker <https://bugs.python.org/issue35625> ___ ___ Python-bugs-list m

[issue4696] email module does not unfold headers

2019-01-06 Thread R. David Murray
R. David Murray added the comment: The new email API is no longer provisional. It isn't the *default* yet, but it isn't provisional. So yes, this is resolved. Cheryl, if you see places in the current docs that still say provisional, please open an issue to re

<    25   26   27   28   29   30   31   32   33   34   >