[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and the PR, @hawkowl! Merged for 3.7.0rc1. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Ned Deily
Ned Deily added the comment: New changeset 5195039bb5529f1b18d30e8bfcabdee739912d76 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33497: Add NEWS and ACKS entries. (GH-6838) (GH-6840) https://github.com/python/cpython/commit/5195039bb5529f1b18d30e8bfcabdee739912d76

[issue33508] [logging] allow %p code to put PID into log filename

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > Python logging is not multi-process safe. Covered in https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes You can certainly arrange to have the pid in the filename without a change to

Re: object types, mutable or not?

2018-05-14 Thread Ben Finney
Steven D'Aprano writes: > Five years ago, the President Of the United States of America, or POTUS > for short, referred to Barrack Obama. Today, it refers to Donald Trump. > This didn't happen by mutating a single person (an object) from a > youngish

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-14 Thread Python
On Mon, May 14, 2018 at 12:02:47PM -0600, Ian Kelly wrote: > On Mon, May 14, 2018 at 9:38 AM, Python wrote: > > Absolutely correct. If you're not doing THOROUGH code reviews, and > > not thoroughly testing your code, your job is only half done. You > > should be your own

[issue16865] ctypes arrays >=2GB in length causes exception

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 735abadd5bd91db4a9e6f4311969b0afacca0a1a by Serhiy Storchaka (Segev Finer) in branch 'master': bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)

[issue33479] Document tkinter and threads

2018-05-14 Thread Mark Roseman
Mark Roseman added the comment: This seems very complicated. The official line on threads for Tk has always been to make all Tk calls from one thread, which is at least predictable and comprehensible. Is there any reason for Tkinter to suggest anything different? This

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8e633a4035bcff458c45fa095f4b8eab2f158466 by Gregory P. Smith (Pablo Galindo) in branch '3.7': bpo-20104: Remove posix_spawn from 3.7 (GH-6794) https://github.com/python/cpython/commit/8e633a4035bcff458c45fa095f4b8eab2f158466

[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-05-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, For the wording, I have no suggestions but seems to be fine. For the rest, I think you have modified the documentation and it's fine and we don't talk about the code. We could merge the PR for the documentation and maybe you could

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Library (Lib) ___ Python tracker ___ ___

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: release blocker -> normal versions: -Python 3.7 ___ Python tracker ___

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-05-14 Thread Guido van Rossum
Guido van Rossum added the comment: Is there any problem that is solved by allowing this example? The asymmetry with using [...async for...] in the same position (which is not allowed) worries me. Do you have a real use case where it's clearer to write an async generator

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > The logging library has a small set of predefined filename templates and no > way is provided to override them. What about https://docs.python.org/3/library/logging.handlers.html#logging.handlers.BaseRotatingHandler.namer which

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Ned Deily
Change by Ned Deily : -- priority: release blocker -> versions: -Python 3.7 ___ Python tracker ___

Re: pylint/pyreverse with Python3

2018-05-14 Thread summerrae78
I'm having the same issue; can you give an example command line for python2 and python3 specific installation? Thanks! On Sunday, May 13, 2018 at 7:12:29 PM UTC-7, Terry Reedy wrote: > On 5/13/2018 1:01 PM, Rich Shepard wrote: > >   Installed here is pylint-1.7.1 and python-3.6.5. When I try

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Ned Deily
Ned Deily added the comment: New changeset 545c955be997efd6b3827b981024e6b9945d82d1 by Ned Deily (Amber Brown) in branch 'master': bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804)

[issue33421] Missing documentation for typing.AsyncContextManager

2018-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +6522 ___ Python tracker ___

[issue20104] expose posix_spawn(p)

2018-05-14 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also this reading may be relevant/interesting: https://about.gitlab.com/2018/01/23/how-a-fix-in-go-19-sped-up-our-gitaly-service-by-30x/ -- ___ Python tracker

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is 'replace' the good default value? 'strict' is the default value for most encoding/decoding operations. 'surrogateescape' is used if the failure and the loss of information are not desirable (like in filenames decoding).

Re: Python-list Digest, Vol 176, Issue 16

2018-05-14 Thread Paul Moore
On 14 May 2018 at 20:02, Paul wrote: > 1) I understand the added cost of verifying the sequence. However, this > appears to be a one-time cost. E.G., if I submit this, > > random.choices(lm,cum_weights=[25,26,36,46,136],k=400 > > then the code will do an O(n log n) operation

[issue33502] dataclasses: repr of _DataclassParams objects should use repr of each member

2018-05-14 Thread miss-islington
miss-islington added the comment: New changeset b57aeac82ce6ee3d64cef3b6f7e9f9f2d7813f70 by Miss Islington (bot) in branch '3.7': bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)

[issue16865] ctypes arrays >=2GB in length causes exception

2018-05-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +6524 ___ Python tracker ___

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-14 Thread Chris Angelico
On Tue, May 15, 2018 at 9:20 AM, Python wrote: > I'm well acquainted with that pheonomenon, though I daresay that if > you proofread your own product you will often find your mistakes. You > just won't always. But, I never said review it right after you wrote > it, and

[issue33499] Environment variable to set alternate location for pycache tree

2018-05-14 Thread Carl Meyer
Carl Meyer added the comment: Per vstinner Python prefers to not have underscores in environment variable names, for historical reasons. So I'm using `PYTHONBYTECODEPATH` as the env var. Other open questions: 1) Does there need to be a corresponding CLI flag, or is

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-05-14 Thread Yury Selivanov
Yury Selivanov added the comment: > Did you mean {} for the outer brackets intead of []? Yes, my bad. > All of these should only be allowed inside 'async def' though, right? Yep, except async generator expressions which are allowed to appear in synchronous contexts,

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6516 stage: -> patch review ___ Python tracker ___

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This bug was before commit d4f8480dfe89447587550a85b61d4e9faf827e98. -- nosy: +serhiy.storchaka ___ Python tracker

[issue33499] Environment variable to set alternate location for pycache tree

2018-05-14 Thread Carl Meyer
Change by Carl Meyer : -- keywords: +patch pull_requests: +6517 stage: -> patch review ___ Python tracker ___

Re: f-string anomaly

2018-05-14 Thread Lele Gaifax
Ken Kundert writes: > Lele, > I am using Python3.6. d has to be an object of mydict. My bad, sorry, I completely missed the premise :-|. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Steve R. Hastings
New submission from Steve R. Hastings : Many logging aggregation and indexing systems require that log data must be written in an easy-to-parse format such as JSON. A "batteries included" JSON log formatter would be a useful enhancement. I have written code

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-14 Thread Ned Deily
Ned Deily added the comment: New changeset e8f968dcde520160bea7c98d298e58128f9abaa4 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33497: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (GH-6804) (GH-6837)

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > A "batteries included" JSON log formatter would be a useful enhancement. See https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging I don't propose to implement your suggestion. You've now logged three

ANN: DIPY 0.14.0

2018-05-14 Thread Eleftherios Garyfallidis
Hello all! We are excited to announce a new *major release* of Diffusion Imaging in Python (DIPY). *DIPY 0.14 (Tuesday, 1rst May 2018)* This release received contributions from *24 developers*. A warm thank you to each one of you for your contribution. The complete release notes are available

[issue16865] ctypes arrays >=2GB in length causes exception

2018-05-14 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +6523 stage: needs patch -> patch review ___ Python tracker

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: > What about [ BaseRotatingHandler.namer ] which allows you to specify your own > naming scheme? I confess that I overlooked that; it was added later than the version of Python in which I wrote my original code. The current

[issue33491] mistype of method's name

2018-05-14 Thread bbayles
bbayles added the comment: I think you'll find that your link points to the exception class `SkipTest`, which does start with a capital level. This is distinct from the `skipTest` method of `unittest.TestCase` objects, which starts with a lowercase letter. The

Extract

2018-05-14 Thread mahesh d
Hii I have a directory. In that folder .msg files . How can I extract those files. Thanks & regards Mahesh -- https://mail.python.org/mailman/listinfo/python-list

[issue33512] use more standard approach for detecting long double in configure

2018-05-14 Thread Eitan Adler
Change by Eitan Adler : -- keywords: +patch pull_requests: +6527 stage: -> patch review ___ Python tracker ___

[issue33512] use more standard approach for detecting long double in configure

2018-05-14 Thread Eitan Adler
New submission from Eitan Adler : autotools has a standard macro for defining HAVE_LONG_DOUBLE. Lets use it rather than using our own. -- components: Build messages: 316615 nosy: eitan.adler priority: normal severity: normal status: open title: use more standard

[issue33479] Document tkinter and threads

2018-05-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > This seems very complicated. The official line on threads for Tk has always > been to make all Tk calls from one thread, which is at least predictable and > comprehensible. Is there any reason for Tkinter to suggest anything different?

[issue33511] update.config.sub

2018-05-14 Thread Eitan Adler
Change by Eitan Adler : -- keywords: +patch pull_requests: +6525 stage: -> patch review ___ Python tracker ___

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 6846 adds the htest line to all versions (no news). When merged, I will augment the keyword list and add a news blurb for 3.6. -- stage: patch review -> needs patch versions: -Python 3.7 ___

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: The solution recommended in the logging cookbook does not do the same thing as I have proposed. I have proposed a logging handler that emits JSON suitable for ingestion by a log collection system. With the JSON formatter,

[issue33474] Support immutability per-field in dataclasses

2018-05-14 Thread Daniel Lindeman
Daniel Lindeman added the comment: A possible use case would be a field that represents an auto-incrementing database ID. Since the field is auto-incrementing in the database, it would be desirable to keep this field frozen, and others mutable once an instance of a data

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-14 Thread Steven D'Aprano
On Mon, 14 May 2018 18:20:13 -0500, Python wrote: > I am hardly perfect. Have you tried just wanting to be perfect more? Look, we get it: it is possible to improve the quality of your code by paying attention to what you do, by proof-reading, testing, code reviews, warnings, linters, etc.

[issue26264] keyword module missing async and await keywords

2018-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is out-of-date for 3.5 and almost so for 3.6 and not an issue for 3.7. The PR has been closed. And I agree with Raymond that keywords.py should not anticipate the future. All this is aside from the auto-generation issue. --

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: I just reviewed the Python 3.6 logging code. Unless I am mistaken, it still has the limitation that when a logging file is active for writing log events, that file always has the same filename (self.baseFilename). Did I

[issue32769] Add 'annotations' to the glossary

2018-05-14 Thread Łukasz Langa
Łukasz Langa added the comment: Guido, do you really want to stress at this point for Python 3.8 that annotations do not have an intended purpose? That is clearly not true. 1. PEP 526 was created purely with types in mind and was inspired by PEP 484's lack of this

[issue33502] dataclasses: repr of _DataclassParams objects should use repr of each member

2018-05-14 Thread Eric V. Smith
Change by Eric V. Smith : -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: pylint/pyreverse with Python3

2018-05-14 Thread Rich Shepard
On Mon, 14 May 2018, summerra...@gmail.com wrote: I'm having the same issue; can you give an example command line for python2 and python3 specific installation? Summerrae, All my development is now strictly Python3. The installation depends on your OS and distribution. For a basic

[issue33479] Document tkinter and threads

2018-05-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The official line is the claim in the docs that tkinter *is* threadsafe, repeated by Martin on at least one issue. See the first paragraph above. Therein lies the problem. A reason to not just reverse the claim is that it is, at least for

[issue33511] update.config.sub

2018-05-14 Thread Eitan Adler
New submission from Eitan Adler : confg.sub has been updated upstream. lets pull it in. -- components: Build messages: 316612 nosy: eitan.adler priority: normal severity: normal status: open title: update.config.sub type: enhancement

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +6526 stage: test needed -> patch review ___ Python tracker ___

[issue33483] build system requires explicit compiler, but should discover it

2018-05-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 98929b545e86e7c7296c912d8f34e8e8d3fd6439 by Benjamin Peterson (Eitan Adler) in branch 'master': bpo-33483: more correctly handle finding the C compiler (GH-6780)

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Many thanks David! But sorry, your table confused me. I can't read it. Could you please reformat it? -- ___ Python tracker

Re: spurious BadDrawable error when running test_tk

2018-05-14 Thread dieter
Matthias Kievernagel writes: > I changed some detail in the tkinter library, > so I'm running the tk test like this: > > ./python -m test -u gui -v test_tk > > Approximately every 2 or 3 runs I get a BadDrawable error > from the X server, most of the time at the end after

[issue16865] ctypes arrays >=2GB in length causes exception

2018-05-14 Thread miss-islington
miss-islington added the comment: New changeset 726894addc02effaa369fded3caaba94875c1f3d by Miss Islington (bot) in branch '3.6': bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)

[issue33486] regen autotools related files

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If these changes are autogenerated, I would prefer that a trusted core developer create a PR. Is it safe to bump the minimal required version of autotools to 2.69? This can prevent building Python on conservative systems.

[issue33511] Update config.sub

2018-05-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: update.config.sub -> Update config.sub ___ Python tracker ___

Re: Extract

2018-05-14 Thread Cameron Simpson
On 15May2018 07:26, mahesh d wrote: I have a directory. In that folder .msg files . How can I extract those files. You can get the filenames from the directory with the os.listdir function or with the glob.glob function. If you mean "extract the contents of those

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread Łukasz Langa
Łukasz Langa added the comment: I am +1 to changing it to dict for Python 3.8. This use case is different from `namedtuple._asdict`. The type of the dictionary is for the purpose of internal storage of the parser. Unlike `namedtuple._asdict`, it is not exposed to the user.

[issue33463] Can namedtuple._asdict return a regular dict instead of OrderedDict?

2018-05-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: DeprecationWarning is for things that will be removed. This is a sign: don't use this feature, rewrite you code so that doesn't use it, otherwise it will be broken in future versions. FutureVersion is for things that work now

[issue16865] ctypes arrays >=2GB in length causes exception

2018-05-14 Thread miss-islington
miss-islington added the comment: New changeset 2ce72e243fbc0e4f07f1191b20be548bfa5cbe11 by Miss Islington (bot) in branch '3.7': bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)

<    1   2   3