[issue31646] bug in time.mktime

2017-09-30 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31655] SimpleNamespace accepts non-string keyword names

2017-10-01 Thread R. David Murray
R. David Murray added the comment: Well, it would be an "unenhancement" (reducing functionality :). What I think it would be classed as is an API bug fix, and those generally can be made only in feature releases. I can imagine code depending on this ability, since we have had c

[issue31655] SimpleNamespace accepts non-string keyword names

2017-10-01 Thread R. David Murray
Change by R. David Murray : -- nosy: +eric.snow ___ Python tracker <https://bugs.python.org/issue31655> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31655] SimpleNamespace accepts non-string keyword names

2017-10-01 Thread R. David Murray
R. David Murray added the comment: Sorry, not broken, it just raises a type error, which is appropriate :) -- ___ Python tracker <https://bugs.python.org/issue31

[issue31656] Bitwise operations for bytes-type

2017-10-01 Thread R. David Murray
R. David Murray added the comment: What happens when you apply a bitwise operation to two bytes objects of unequal length? Since the answer to that question is not obvious, we simply don't support the operation. If you want to make a proposal for this the python-ideas mailing list wou

[issue31660] sys.executable different in os.execv'd python3.6 virtualenv session in python2 vs python3

2017-10-02 Thread R. David Murray
R. David Murray added the comment: virtualenv is not part of the standard library. What happens if you use venv instead? -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31670] Associate .wasm with application/wasm

2017-10-03 Thread R. David Murray
R. David Murray added the comment: We generally wait for something a bit stronger than "tentatively" before adding a mime type (ie: an actual submission to the relevant standards channel). -- nosy: +r.david.murray ___ Python track

[issue31583] 2to3 call for file in current directory yields error

2017-10-03 Thread R. David Murray
R. David Murray added the comment: 3.5 is in security-fix-only mode, and we use versions to indicate which versions we plan to fix the bug in. -- nosy: +r.david.murray versions: -Python 3.5 ___ Python tracker <https://bugs.python.org/issue31

[issue31583] 2to3 call for file in current directory yields error

2017-10-03 Thread R. David Murray
R. David Murray added the comment: Yes, redistributors sometimes backport non-security fixes if they consider them important enough. Note that I haven't evaluated the merits of this issue, and there is a related issue about how 2to3 finds its fixers that this may overlap

[issue31670] Associate .wasm with application/wasm

2017-10-03 Thread R. David Murray
R. David Murray added the comment: Yes, if/when it goes in it will go in to all currently maintained versions. I've adjusted 'versions' accordingly. -- versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <https

[issue31688] scope error

2017-10-04 Thread R. David Murray
R. David Murray added the comment: Yes, this conforms to Python's namespace/scoping rules: nested scopes are allowed to reference (but not assign to) variables from the global scope even without a 'global' declaration. -- nosy: +r.david.murray resolution: -&g

[issue27645] Supporting native backup facility of SQLite

2017-10-05 Thread R. David Murray
R. David Murray added the comment: If you are talking about Gerhard, if he was still around you'd probably get a similar response, but he hasn't been around much. So this is somewhat of an orphaned module currently and it takes longer for an issue to get traction. One of the dr

[issue31712] subprocess with stderr=subprocess.STDOUT hang

2017-10-06 Thread R. David Murray
R. David Murray added the comment: Given the title, are you saying that it works if you omit the stderr=subprocess.STDOUT? At the beginning you say you are using an authorized key and mux so you don't need to enter a password, and at the end you say it works fine if the MUX is created

[issue31717] Socket documentation threading misstep?

2017-10-06 Thread R. David Murray
R. David Murray added the comment: Based on the paragraph following the example, I don't think client_thread is a threading.Thread, and 'run' is meant to be a generic representation of a possible API. Since Threads do have a 'run' method, this is certainly potenti

[issue31717] Socket documentation threading misstep?

2017-10-06 Thread R. David Murray
R. David Murray added the comment: Or maybe instead of client_handler/run, it should be something like handle_client_asynchronously(clientsocket). -- ___ Python tracker <https://bugs.python.org/issue31

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: This is fixed in python3. Do you have a use case for 2.7 or are you just noticing? -- nosy: +r.david.murray versions: -Python 3.4 ___ Python tracker <https://bugs.python.org/issue31

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: 3.4 and 3.5 are in security maintenance mode only, and this is not a security bug. This was fixed in master (3.7) as a result of issue 25324. The decision there was made to not backport it because no one had complained about the problem previously. Now

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-09 Thread R. David Murray
R. David Murray added the comment: Which example? (It might be easiest to just generate a PR with your suggested improvement.) -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-09 Thread R. David Murray
R. David Murray added the comment: Where did you get your installer? I don't find any references to 'backports' in our repo, other than a couple of places in the docs where the word appears. I also don't understand the relationship between your MyPackages and a backpo

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-09 Thread R. David Murray
R. David Murray added the comment: What is "the backports module"? I still don't understand what a backports directory, that I don't think our installer creates, has to do with your MyLibraries directory. I'm sorry that I'm having trouble following your expla

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread R. David Murray
R. David Murray added the comment: I think there needs to be an easy way to turn off the warnings while running tests, as well. I don't want to be bothered by those messages when testing parts of my package that are consciously using the provisional features. But really, I agree with

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread R. David Murray
R. David Murray added the comment: That's why I said set on by default by the test harnesses. The opt in would be done by the standard testing tools, not directly by the programmer. That's how deprecation warnings work now. -- ___ Pyth

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread R. David Murray
R. David Murray added the comment: I imagine we could make it controlled by the same setting that controls deprecation warnings, with some way to differentiate them if you really need to. I forget exactly how that warning control works, so maybe that would be awkward, but I wouldn'

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-10 Thread R. David Murray
R. David Murray added the comment: Nick says: "Neither of those situations can be encountered simply by running an existing *application* on a newer version of Python". I fail to see the operational difference between running an application on a newer version of Python and d

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-11 Thread R. David Murray
R. David Murray added the comment: Ah, so backports is a package on pypi. You should report this problem wherever they do their bug tracking. It is *possible* there is some problem in 2.7 on windows, but it is much more likely to be a bug in backports on windows. In sort, python does not

[issue31762] Issue in login

2017-10-11 Thread R. David Murray
R. David Murray added the comment: This tracker is for reporting bugs in python. If you want to report a problem with the tracker, please use the 'report tracker problem' link in the left column. (That said, I thought the error message you show in the screenshot was fixed by

[issue31763] Add NOTICE level to the logging module

2017-10-11 Thread R. David Murray
R. David Murray added the comment: I fixed the title for you, otherwise this looks like a duplicate of issue 31732. -- nosy: +r.david.murray title: Add TRACE level to the logging module -> Add NOTICE level to the logging module ___ Python trac

[issue31765] BUG: System deadlocks performing big loop operations in python 3.5.4, windows 10

2017-10-11 Thread R. David Murray
R. David Murray added the comment: Most likely an error in your program logic, I'm afraid. This isn't a forum for getting help, you should try the python-list mailing list. (If you do find a bug, you can then open an issue with details.) -- nosy: +r.da

[issue31732] Add TRACE level to the logging module

2017-10-14 Thread R. David Murray
R. David Murray added the comment: I'm not arguing against the rejection, but I want to mention a point in relation to Raymond's statement "five levels have sufficed for a long and that the need for finer distinctions almost never arises in practice". In thinking abou

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread R. David Murray
R. David Murray added the comment: I think in the echo examples the 'with conn' block should be indented and a 'with s:' added around it. The network sniffer should probably use a with statement with the created socket. The CAN example ends only on ctrl-C, and could go i

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread R. David Murray
R. David Murray added the comment: Heh, of course the socket server also only ends with ctl-C. And I misread the CAN example, it won't spin because the read isn't wrapped in a try/except. So yes, that should use a with on the socket as well, since the with will close the socket

[issue31778] ast.literal_eval supports non-literals in Python 3

2017-10-18 Thread R. David Murray
R. David Murray added the comment: "Safely evaluate an expression node or a string containing a Python expression." The behavior you are citing matches that documentation, as far as I can see. 1+1 is an expression involving supported literals. -- nosy: +r.da

[issue31831] EmailMessage.add_attachment(filename="long or spécial") crashes or produces invalid output

2017-10-20 Thread R. David Murray
R. David Murray added the comment: Does the patch in gh-3488 fix this? I think it should, or if it doesn't that's a bug in the PR patch. -- ___ Python tracker <https://bugs.python.o

[issue31831] EmailMessage.add_attachment(filename="long or spécial") crashes or produces invalid output

2017-10-21 Thread R. David Murray
R. David Murray added the comment: You are correct, that is a bug. Presumably I forgot to check for non-ascii when the parameter value doesn't need to be folded. I'm not sure when I'll have time to look at this, unfortunately :(. If you can see how to fix it, you could subm

[issue31831] EmailMessage.add_attachment(filename="long or spécial") crashes or produces invalid output

2017-10-22 Thread R. David Murray
R. David Murray added the comment: Great, thank you for that research. And yes, that's exactly why __str__ uses utf8=True, the "picture" of the message is much more readable. I will commit that PR soon. -- ___ Python

[issue31864] datetime violates Postel's law

2017-10-24 Thread R. David Murray
R. David Murray added the comment: The python standard library does not parse files, nor does it have a _parse_rfc message. You say you reported the problem you are having to "the program's maintainer", and that is appropriate. There does not appear to be anything in this re

[issue31864] datetime violates Postel's law

2017-10-24 Thread R. David Murray
R. David Murray added the comment: I meant the python standard library datetime package doesn't parse files, of course :) Other parts of the stdlib certainly do parse files. -- ___ Python tracker <https://bugs.python.org/is

[issue31873] Inconsistent capitalization of proper noun - Unicode.

2017-10-26 Thread R. David Murray
R. David Murray added the comment: It may be a proper noun, but it is conventionally spelled with a lowercase letter when referring to the type/object. It would be spelled with an upper case letter when referring to the *standard*. -- ___ Python

[issue31873] Inconsistent capitalization of proper noun - Unicode.

2017-10-26 Thread R. David Murray
R. David Murray added the comment: In this case I think the cost of editing for consistency may be higher than the value, especially since as you say there are ambiguous cases. -- ___ Python tracker <https://bugs.python.org/issue31

[issue23990] Callable builtin doesn't respect descriptors

2017-10-26 Thread R. David Murray
R. David Murray added the comment: Ionel please give commenters the benefit of the doubt. In this case, Raymond is merely articulating our policy: if something is in pre-PEP stage we don't generally keep issues open in the tracker. We open issues for PEPs when they get t

[issue31881] subprocess.returncode not set depending on arguments to subprocess.run

2017-10-26 Thread R. David Murray
R. David Murray added the comment: If you run mpirun -np 4 myexe.x moreargs; echo $? in /bin/sh, what do you see? You also might try to make sure it is the same mpirun and the same myexe.x that is being called in both cases (it is the mpirun return code you are seeing). -- nosy

[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread R. David Murray
R. David Murray added the comment: The patch looks good to me if someone wants to make a PR out of it. If you wouldn't mind digitally signing the CLA, Peter, that would make PSF legal happy, though I doubt a one sentence doc patch is really an

[issue31905] IPv4Networkcontains raises exception on None

2017-10-30 Thread R. David Murray
R. David Murray added the comment: It is not obvious that this is a bug. Why should None be a valid value for 'in network'? -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.o

[issue31941] ImportError: DLL Load Failure: The specified module cannot be found

2017-11-03 Thread R. David Murray
R. David Murray added the comment: Duplicate of #25655. Any concrete proposals for how to make this better are welcome. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Python errors related to failures loadin

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread R. David Murray
R. David Murray added the comment: I believe we currently have a policy that the python standard library will not include type annotations, that those are provided by typeshed. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.

[issue31968] exec(): method's default arguments from dict-inherited globals

2017-11-07 Thread R. David Murray
R. David Murray added the comment: Yes, that's the way it works (and is intended to work, for performance reasons). The documentation on this could be improved...while it does say globals must be a dict and that locals can be any mapping object, it does it in a sentence that is

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-08 Thread R. David Murray
R. David Murray added the comment: >From the linked email: > That way ad hoc scripts and the REPL will get warnings by default, > while zipapps and packages can avoid warnings by keeping their > __main__.py simple, and importing a CLI helper function from another > module. Entr

[issue31904] Python should support VxWorks RTOS

2017-11-08 Thread R. David Murray
R. David Murray added the comment: I'm not sure what licensing issues you are talking about, but setting up a buildbot shouldn't normally run into any. As long as you have a license to the run the OS, the fact that you are using it to receive jobs from our build master an

[issue31984] startswith and endswith leak implementation details

2017-11-08 Thread R. David Murray
R. David Murray added the comment: Can you please give examples of what you think the problem is? -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue31

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-08 Thread R. David Murray
R. David Murray added the comment: It was never about putting the interests of the app developers first, it was about putting the interests of the users first: not being pestered by seeing deprecation warnings they can't do anything about. So yeah, maybe a PEP explaining the logic wou

[issue31989] setattr on a property gives a very unhelpful exception

2017-11-09 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #27794. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> setattr a read-only property; the AttributeError should show the attribute that failed versions:

[issue31992] Make iteration over dict_items yield namedtuples

2017-11-10 Thread R. David Murray
R. David Murray added the comment: This is not something it is worth complicating the dict API or collections for. If you want the feature in your code, implement your subclass in your own utility library. If you disagree with this decision, please bring it up on the python-ideas mailing

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-11 Thread R. David Murray
R. David Murray added the comment: > Why would mypy, flake8 or pip emit DeprecationWarnings? Because they use python features that get deprecated, and the python the user is using to run them gets upgraded. Now, those particular tools probably will get updated quickly, but other tools w

[issue31975] Add a default filter for DeprecationWarning in __main__

2017-11-12 Thread R. David Murray
R. David Murray added the comment: My *personal* memory (as in, the reason I gave a sigh of relief when we made this change) was other tools, regardless of what core's rationale was :) (If I remember correctly it was some sysadmin-type tool I was using just about every

[issue32018] inspect.signature does not respect PEP 8

2017-11-13 Thread R. David Murray
R. David Murray added the comment: FWIW, I find the version without the spaces to be more readable (but I don't find annotations to be readable in general, so my opinion may not be worth much :) -- nosy: +r.david.murray ___ Python tracker &

[issue32018] inspect.signature does not respect PEP 8

2017-11-13 Thread R. David Murray
R. David Murray added the comment: Agreed. -- ___ Python tracker <https://bugs.python.org/issue32018> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32021] Brotli encoding is not recognized by mimetypes

2017-11-14 Thread R. David Murray
R. David Murray added the comment: It looks like Brotli is a de-facto standard (RFC 7932 is an informational RFC), and it says the IANA registry has been updated. However, this appears to be http-only, with no corresponding program used for compression of files, and thus no "file exte

[issue32021] Brotli encoding is not recognized by mimetypes

2017-11-14 Thread R. David Murray
R. David Murray added the comment: OK, so there are "real" filenames that have .br on the end? That wasn't clear from the RFC and discussions I found. Based on the documentation, br is for use in the Content-Encoding header. What does aiohttp do when it gets a brotli enco

[issue32021] Brotli encoding is not recognized by mimetypes

2017-11-14 Thread R. David Murray
R. David Murray added the comment: Note, I'm not saying we shouldn't do this, I'd just like to get good documentation of why linked to this issue. -- ___ Python tracker <https://bugs.pyt

[issue32021] Brotli encoding is not recognized by mimetypes

2017-11-14 Thread R. David Murray
R. David Murray added the comment: Hmm. OK, the docs do say that value should be usable as a content-encoding header. However, absent any sort of program that actually does brotli encoding/decoding to and from files, this would be essentially useless based on the aiohttp's algorithm (o

[issue32036] error mixing positional and non-positional arguments with `argparse`

2017-11-15 Thread R. David Murray
R. David Murray added the comment: Can you reproduce this without your PosArgsParser? -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue32

[issue32021] Brotli encoding is not recognized by mimetypes

2017-11-15 Thread R. David Murray
R. David Murray added the comment: OK, bouncing around from those URL I finally found this: https://github.com/google/ngx_brotli/issues/28 That indicates unambiguously that someone does expect files to be pre-compressed on the server and that the main brotli package provides a cli tool (I

[issue32036] error mixing positional and non-positional arguments with `argparse`

2017-11-15 Thread R. David Murray
R. David Murray added the comment: Ah, yes, I'd managed to forget about that issue, even though I was the one that finally committed the fix. So, the alternate parser will be in 3.7. In the meantime you can grab the code from the commit and put it in a local file, I think. You'll

[issue32042] Option for comparing values instead of reprs in doctest

2017-11-15 Thread R. David Murray
R. David Murray added the comment: I think it is an interesting idea. Let see what other people think. -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue32

[issue32040] Sorting pahtlib.Paths does give the same order as sorting the (string) filenames of that pathlib.Paths

2017-11-16 Thread R. David Murray
R. David Murray added the comment: It is "obvious by inspection". Paths are paths instead of strings because they are formed out of discrete path components instead of strings. If you sorted each directory in the paths from the top down, and then sorted the subdirectories, and t

[issue32040] Sorting pahtlib.Paths does give the same order as sorting the (string) filenames of that pathlib.Paths

2017-11-16 Thread R. David Murray
R. David Murray added the comment: To put it another way, think about sorting a list of tuples. Same behavior. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32058] Faulty behaviour in email.utils.parseaddr if square brackets in subject

2017-11-17 Thread R. David Murray
R. David Murray added the comment: parseaddr is for parsing the contents of an address header, not for parsing any additional text. So the correct way to call it is parseaddress('someone '). In any case, please look in to the new email policies, which provide a much more conv

[issue32060] Should an ABC fail if no abstract methods are defined?

2017-11-17 Thread R. David Murray
R. David Murray added the comment: No, you could create an ABC whose only purpose was to be a target of register calls. As with the issue you reference, this is something better implemented in a linter. I'll leave this open for at least one other dev to concur and close, t

[issue32058] Faulty behaviour in email.utils.parseaddr if square brackets in subject

2017-11-17 Thread R. David Murray
R. David Murray added the comment: Unfortunately the imap module in the stdlib doesn't provide a whole lot in the way of tools for parsing the imap data, just for sending it back and forth to the server. -- ___ Python tracker &

[issue32060] Should an ABC fail if no abstract methods are defined?

2017-11-17 Thread R. David Murray
R. David Murray added the comment: The docs start out with "as outlined in PEP 3119; see the PEP for why this was added to Python". I think it would be a good doc enhancement request to extract the motivation and other description out of that pep and put it in the main docs in

[issue32065] range_iterator doesn't have length, leads to surprised result

2017-11-17 Thread R. David Murray
R. David Murray added the comment: By design, iterators do not have a length (see msg248496). -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32108] configparser bug: section is emptied if you assign a section to itself

2017-11-21 Thread R. David Murray
Change by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue32108> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32109] Separated square brackets will generate a tuple instead of a list.

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Yes, the markup (and therefore how the code is displayed in the docs) clearly indicates that the , between the lists is not part of the python syntax being discussed. -- nosy: +r.david.murray ___ Python tracker

[issue32114] The get_event_loop change in bpo28613 did not update the documentation

2017-11-22 Thread R. David Murray
New submission from R. David Murray : No changes were made to the documentation of get_event_loop when its behavior was modified to return the loop running the future/coroutine when called from that context. The documentation still says it gets the loop associated with the thread

[issue32116] CSV import and export simplified

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Thanks for the suggestion, but I'm -0.5. I don't think these are compelling enough to be worth adding to the module API. The number of times I've done this kind of operation is far smaller than the number of times I've had other code i

[issue32116] CSV import and export simplified

2017-11-22 Thread R. David Murray
R. David Murray added the comment: Um. If they aren't expected to understand how to write this code, why isn't it being provided to them as a canned function as part of the test environment? To succeed in getting something like this added, I suspect you will need to show that i

[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

2017-11-23 Thread R. David Murray
R. David Murray added the comment: The surprising thing is the behavior of NaN, which is *not equal* to itself. The statement about orderability says "...are ordered the same as their first unequal elements". This is explicit and unambiguous, there is no difference in this conte

[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

2017-11-27 Thread R. David Murray
R. David Murray added the comment: Your are reading the documentation wrong. For linesep, it says "The string to be used to terminate lines in serialized output." The key word there is "output". email operates in "universal newline mode" when parsing messa

[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

2017-11-28 Thread R. David Murray
R. David Murray added the comment: OK, I should have used the term the docs actually use: "serialization". get_content() is, I hope, clearly not serialization, while as_string() is. Does that make it make more sense? Do you see a way to improve the docs in t

[issue32159] Remove tools for CVS and Subversion

2017-11-29 Thread R. David Murray
R. David Murray added the comment: I think Serhiy's point is that it doesn't matter whether or not it is used by a tool, it is useful for humans. I don't know if it is used by the tracker; Ezio worked on that code, I think. -- ___

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-30 Thread R. David Murray
R. David Murray added the comment: I would suggested following the statement "To create a heap, use a list initialized to [], or you can transform a populated list into a heap via function heapify()." with "Any mutation of the list thereafter must maintain the heap invariant i

[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

2017-11-30 Thread R. David Murray
R. David Murray added the comment: A note would be too heavy handed. And get_content is a different function from get_payload, so there is no change in behavior, there is a new API with a more consistent behavior. Basically, Python programs in general use \n line endings internally, and

[issue32182] Infinite recursion in email.message.as_string()

2017-11-30 Thread R. David Murray
R. David Murray added the comment: This is almost certainly either a duplicate or will be fixed by a PR I have pending, that I don't have time to look for right now, that rewrites the folder. I'll try to get to merging that PR soonish, but it might not happen before th

[issue32182] Infinite recursion in email.message.as_string()

2017-12-01 Thread R. David Murray
R. David Murray added the comment: It is gh-3488 if you want to try it out. Feedback welcome. -- ___ Python tracker <https://bugs.python.org/issue32182> ___ ___

[issue32168] Mutable instance variables don't get new references with args.

2017-12-02 Thread R. David Murray
R. David Murray added the comment: For the record: https://docs.python.org/3/faq/programming.html#id13 -- nosy: +r.david.murray ___ Python tracker <https://bugs.python.org/issue32

[issue32172] Add length counter for iterables

2017-12-02 Thread R. David Murray
R. David Murray added the comment: Guido specifically rejected __len__ for iterators when the iteration protocol was designed. This has become a FREQ in recent times (Frequently Rejected Enhancement Request :) The rationale, as I understand it, is that an iterator object should always

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2017-12-02 Thread R. David Murray
R. David Murray added the comment: The doc source files do not contain smart quotes, and as far as I know, sphinx does produce correct utf-8. Recently there was a bug where incorrect smart quotes were leaking out of the internationalization of the docs, so this might be a problem that is

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

2017-12-03 Thread R. David Murray
R. David Murray added the comment: New changeset 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6 by R. David Murray in branch 'master': bpo-27240 Rewrite the email header folding algorithm. (#3488) https://github.com/python/cpython/commit/85d5c18c9d83a1d54eecc4c2ad4dce

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

2017-12-03 Thread R. David Murray
R. David Murray added the comment: New changeset a87ba60fe56ae2ebe80ab9ada6d280a6a1f3d552 by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693) https://github.com/python/cpyt

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

2017-12-03 Thread R. David Murray
R. David Murray added the comment: The PR has been committed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker <https://bugs.python.or

[issue31831] EmailMessage.add_attachment(filename="long or spécial") crashes or produces invalid output

2017-12-03 Thread R. David Murray
R. David Murray added the comment: The PR has been committed. -- resolution: -> fixed stage: -> resolved status: open -> closed type: crash -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python

[issue32182] Infinite recursion in email.message.as_string()

2017-12-03 Thread R. David Murray
R. David Murray added the comment: I checked, and your example works correctly with the patch applied. I've committed the PR. Let me know if you find any other issues (there are several open issues with exactly how headers are wrapped, but I don't think there are any

[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread R. David Murray
R. David Murray added the comment: I don't understand what the bug is that you are reporting here. Can you clarify? mypy isn't part of the stdlib, so an explanation in terms of what's in the stdlib would be helpful. -- nosy:

[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread R. David Murray
R. David Murray added the comment: Ah. I'm guessing Vinay will probably want to fix the docs, then, since that's less disruptive backward compatibility wise. -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.o

[issue32212] few discrepancy between source and docs in logging

2017-12-04 Thread R. David Murray
Change by R. David Murray : -- stage: -> needs patch versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker <https://bugs.python.org/issu

[issue32213] assertRaises and subTest context managers cannot be nested

2017-12-04 Thread R. David Murray
R. David Murray added the comment: To be pedantic, are not macros, they are context managers :) Your first case is not something I would have thought of coding. In the to_raise=True case, the subTest is failing because an exception is raised inside its scope. In the to_raise=False case

[issue32213] assertRaises and subTest context managers cannot be nested

2017-12-04 Thread R. David Murray
R. David Murray added the comment: Yes, that's an easy mistake to make. I avoided it by only running one of the tests cases at a time, and I'll admit I had to think about it for a while to understand what was going on in your

[issue32213] assertRaises and subTest context managers cannot be nested

2017-12-04 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue32213> ___ ___ Python-bugs-list mailing list Un

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2017-12-04 Thread R. David Murray
R. David Murray added the comment: I can confirm that there is a difference on linux as well, using the sqlite version for both 2.7 and 3.7: rdmurray@pydev:~/python/p27[2.7]>./python sqlite3_27_36_performance_bug.py First step: 3.22849011421 Second step: 3.2167429924 rdmurray@pydev:~/pyt

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2017-12-04 Thread R. David Murray
R. David Murray added the comment: ...using the *same* sqlite version... -- ___ Python tracker <https://bugs.python.org/issue32215> ___ ___ Python-bugs-list m

<    52   53   54   55   56   57   58   59   60   61   >