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

2018-05-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3055c947f98a078bd10d6a8cc352048a1b771d60 by Benjamin Peterson (Eitan Adler) in branch 'master': closes bpo-33512: use standard for detecting long double (GH-6847)

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-15 Thread Paul Goins
Paul Goins added the comment: If we consider this to be the new normal... What about increasing the timeout to accomodate? From what I could gather, builds were running around 13 minutes or so before the changes, so the timeout wasn't much above actual exec time to

[issue33473] build system incorrectly handles CC, CFLAGS, LDFLAGS, and related.

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

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Berker Peksag
Berker Peksag added the comment: Adding Łukasz since he is the release manager of Python 3.8. -- components: +Library (Lib) nosy: +lukasz.langa type: -> enhancement versions: +Python 3.8 ___ Python tracker

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___

[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset c73268aad7645a146b3e0e088c198a1fb74d57ff by Miss Islington (bot) in branch '3.7': bpo-33453: Handle string type annotations in dataclasses. (GH-6768)

[issue33403] asyncio.tasks.wait does not allow to set custom exception when return_when=FIRST_EXCEPTION

2018-05-15 Thread pyneda
New submission from pyneda : A possible use case (that at least I couldn't find how to solve) is the possibility to cancel a bunch of futures/coroutine objects which are being awaited using asyncio.tasks.wait() by one of the running coroutines when a task succeded or

[issue21145] Add the @cached_property decorator

2018-05-15 Thread Carl Meyer
Carl Meyer added the comment: > a way to invalidate or clear the cache This is already supported by the simple implementation in the patch, it's spelled `del obj.the_cached_property`. > mock patching the underlying function for testing This is easy to do with the current

Re: Extract data from multiple text files

2018-05-15 Thread Cameron Simpson
On 15May2018 18:18, MRAB wrote: On 2018-05-15 13:12, mahesh d wrote: import glob,os [...] files = glob.glob(path) You've got a list of filenames here - they would work, _if_ you had passed in a glob pattern, instead of just the directory path. Try this again,

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

2018-05-15 Thread Carl Meyer
Carl Meyer added the comment: > a system-wide environment variable Environment variables aren't system-wide, they are per-process (though they can be inherited by child processes). -- ___ Python tracker

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

2018-05-15 Thread Carl Meyer
Carl Meyer added the comment: Environment variable seems to make a bit more sense for this, since it's not per-invocation; there's no point writing bytecode cache to a particular location unless the next invocation reads the cache from there. Our use case includes a

[issue33530] Implement Happy Eyeball in asyncio

2018-05-15 Thread twisteroid ambassador
New submission from twisteroid ambassador : Add a Happy Eyeballs implementation to asyncio, based on work in https://github.com/twisteroidambassador/async_stagger . Current plans: - Add 2 keyword arguments to loop.create_connection and asyncio.open_connection.

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread devala
devala added the comment: Resolved in 3.7. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6562 ___ Python tracker ___

[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling

2018-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 2a7bacbd913cf2bf568b3c0f85a758946d3cf4e9 by Eric V. Smith in branch 'master': bpo-33453: Handle string type annotations in dataclasses. (GH-6768)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +6561 ___ Python tracker ___ ___

[issue19124] os.execv executes in background on Windows

2018-05-15 Thread Eryk Sun
Change by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue19124] os.execv executes in background on Windows

2018-05-15 Thread Eryk Sun
Eryk Sun added the comment: The exec functions provided by the Windows C runtime really are practically useless, due to creating an orphaned process, disrupting synchronous operation, and returning the wrong status code. It might be more useful for Python 3.7.x to

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: object types, mutable or not?

2018-05-15 Thread Ben Finney
Steven D'Aprano writes: > On Tue, 15 May 2018 07:29:39 -0700, Mike McClain wrote: > > > I had gotten the impression that everything in OOP is an object but > > you're all saying that variables are not objects. > > Perhaps it is better to say every VALUE in

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 47793dec38b9485601a1b2fae90d5f19c3442434 by Miss Islington (bot) in branch '3.6': bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Andrés Delfino
Andrés Delfino added the comment: I'm sorry, because of your comment, I believe you haven't read the last update on the PR. Could you take a look at it? https://github.com/python/cpython/pull/6829 -- ___ Python tracker

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Guido van Rossum
Guido van Rossum added the comment: (1) The word "stores" in this paragraph: A metadata value associated with a global variable, a class attribute or a function or method parameter or return value, that stores a type hint. (2) The description of how annotations are stored in

stock quotes off the web, py style

2018-05-15 Thread Mike McClain
Initially I got my quotes from a broker daily to plug into a spreadsheet, Then I found Yahoo and wrote a perl script to grab them. When Yahoo quit supplying quotes I found AlphaVantage.co and rewrote the perl script. AlphaVantage.co has been down since last week and I found iextrading.com

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 3d484435d261ef6e3204902f50778b545428dd7e by Miss Islington (bot) in branch '3.7': bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (GH-6873)

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

2018-05-15 Thread bartc
On 16/05/2018 01:04, Steven D'Aprano wrote: I'm not a C coder, but I think that specific example would be immune to the bug we are discussing, since (I think) you can't chain assignments in C. Am I right? Assignments can be chained in C (with right-to-left precedence) as can augmented

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

2018-05-15 Thread bartc
On 15/05/2018 21:21, Peter J. Holzer wrote: I have been programming in C since the mid-80's and in Perl since the mid-90's (both languages allow assignment expressions). I accumulated my fair share of bugs in that time, but AFAIR I made this particular error very rarely (I cannot confidently

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Makes sense. I can provide a patch to the docs. -- ___ Python tracker ___

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

2018-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I've had issues with environment variables in that they affect every version of Python running on a system and seem to defy isolation. So, if one application needs the environment variable set, it will affect every

[issue33529] Infinite loop on folding email if headers has no spaces

2018-05-15 Thread radical164
New submission from radical164 : I just reported a bug about email folding at issue 33524, but this issue is more fatal in some languages like Chinese or Japanese, which does not insert spaces between each words. Python 3.6.5 has this issue, while 3.6.4 does not. Create an

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1b0d65fa102fae087254009f6d9903b1d4257d78 by Terry Jan Reedy in branch '3.6': [3.6] bpo-29706: IDLE now colors async and await as keywords in 3.6. (#6879)

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

2018-05-15 Thread Steven D'Aprano
On Tue, 15 May 2018 22:21:15 +0200, Peter J. Holzer wrote: > On 2018-05-15 00:52:42 +, Steven D'Aprano wrote: [...] >> By 1991 there had already been *decades* of experience with C > > About one and a half decades. That would still be plural decades. C's first release was 1972, so more

Re: syntax oddities

2018-05-15 Thread Steven D'Aprano
On Tue, 15 May 2018 12:10:07 -0700, Tobiah wrote: > Why is it len(object) instead of object.len? Because we're not serfs in the Kingdom of Nouns: https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html -- Steve -- https://mail.python.org/mailman/listinfo/python-list

[issue21145] Add the @cached_property decorator

2018-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, over the past decade, I've used variants of CachedProperty a number of times and have often had issues that later required messing with its internals (needing a way to invalidate or clear the cache, mock patching the

Re: object types, mutable or not?

2018-05-15 Thread Steven D'Aprano
On Tue, 15 May 2018 07:29:39 -0700, Mike McClain wrote: > I had gotten the impression that everything in OOP is an object but > you're all saying that variables are not objects. Perhaps it is better to say every VALUE in Python is an object. Keywords aren't values. Operators aren't values.

[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-05-15 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +6560 stage: needs patch -> patch review ___ Python tracker ___

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Should we add .copy() to the ABC or remove the promise that all mutable > sequences implement .copy()? The second option would be best. Let's just clarify that copy() isn't part of the MutableSequence API. The first option

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Chris Angelico
On Wed, May 16, 2018 at 9:02 AM, Skip Montanaro wrote: >> Personally, I never use the str(..., encoding="...") notation; I prefer > to use the >> .decode() method of the bytes object. > > Thanks. And thanks for the other responses. I obviously didn't have my > thinking

Re: Extract data from multiple text files

2018-05-15 Thread Albert-Jan Roskam
On May 15, 2018 14:12, mahesh d wrote: import glob,os import errno path = 'C:/Users/A-7993\Desktop/task11/sample emails/' files = glob.glob(path) '''for name in files: print(str(name)) if name.endswith(".txt"): print(name)''' for file in

Re: What's the rationale for b"..." in this example?

2018-05-15 Thread Skip Montanaro
> Personally, I never use the str(..., encoding="...") notation; I prefer to use the > .decode() method of the bytes object. Thanks. And thanks for the other responses. I obviously didn't have my thinking cap on this morning. (It was too late in the morning to plead lack of coffee.) Skip --

[issue33451] Start pyc file lock the file

2018-05-15 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +brett.cannon, eric.snow, ncoghlan, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue33503] use pypi.org instead of pypi.python.org

2018-05-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +6559 ___ Python tracker ___ ___

[issue21475] Support the Sitemap extension in robotparser

2018-05-15 Thread Lady Red
Lady Red added the comment: Sorry, wrong PR number. it is 6883, and attached to this ticket -- ___ Python tracker ___

[issue33454] Mismatched C function signature in _xxsubinterpreters.channel_close()

2018-05-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d8dcd57edb88ce57063e5c2b85fe0ee1abb1ce8b by Serhiy Storchaka in branch 'master': bpo-33454: Fix arguments parsing in _xxsubinterpreters.channel_close(). (GH-6747)

[issue33528] os.getentropy support

2018-05-15 Thread David Carlier
Change by David Carlier : -- components: Library (Lib) nosy: David Carlier priority: normal pull_requests: 6558 severity: normal status: open title: os.getentropy support versions: Python 3.8 ___ Python tracker

[issue21475] Support the Sitemap extension in robotparser

2018-05-15 Thread Lady Red
Lady Red added the comment: I wrote a test for this as it seems to have been abandoned, and opened a PR. https://github.com/python/cpython/pull/6878 -- nosy: +mcsc...@gmail.com ___ Python tracker

[issue21475] Support the Sitemap extension in robotparser

2018-05-15 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +6556 ___ Python tracker ___

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Andrés Delfino
Andrés Delfino added the comment: Guido, could you point out what parts make it sound that way to you so I can change them? -- ___ Python tracker

[issue33526] hashlib leak on import

2018-05-15 Thread Alexander Mohr
Alexander Mohr added the comment: closing as I'm not quite sure this is right -- stage: -> resolved status: open -> closed ___ Python tracker

[issue33526] hashlib leak on import

2018-05-15 Thread Christian Heimes
Christian Heimes added the comment: Thanks for notifying us. There isn't much we can do here. Python doesn't support unloading of C extension modules. The state will persist until the process ends. It doesn't make much sense to call EVP_cleanup() on shutdown, too. It will

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

2018-05-15 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.8 ___ Python tracker ___ ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6555 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6554 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt for 3.7.0

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 038b21f2caaed0f02fee524277cc61e2c6ae0e9a by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt to 2018-05-14. (#6873) https://github.com/python/cpython/commit/038b21f2caaed0f02fee524277cc61e2c6ae0e9a

[issue33526] hashlib leak on import

2018-05-15 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +petr.viktorin ___ Python tracker ___ ___

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-05-15 Thread Eric Snow
Eric Snow added the comment: +1 on using ":" as the separator. -- ___ Python tracker ___

[issue33454] Mismatched C function signature in _xxsubinterpreters.channel_close()

2018-05-15 Thread Eric Snow
Eric Snow added the comment: Thanks for catching this, Serhiy! I've approved the PR. -- ___ Python tracker ___

[issue33526] hashlib leak on import

2018-05-15 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-15 Thread John Reese
Change by John Reese : -- keywords: +patch pull_requests: +6553 stage: -> patch review ___ Python tracker ___

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-05-15 Thread Eitan Adler
Eitan Adler added the comment: copying and adapting my comments on the PR: Strict Prototypes is correct and helpful for C. That said, the way it is currently implemented, by checking for the compiler in CC is sub-optimal at best. CC ought to always be a C compiler, and

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you explain what Visual Studio Team Services is? -- nosy: +pitrou ___ Python tracker ___

[issue32551] Zipfile & directory execution in 3.5.4 also adds the parent directory to sys.path

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue9031] distutils uses invalid "-Wstrict-prototypes" flag when compiling C++ extension module

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___

[issue1222585] C++ compilation support for distutils

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- nosy: +eitan.adler ___ Python tracker ___ ___

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 2cdb70ac5df30db021417ab71a327d9b4322de13 by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-33465: Use an unlikely to be built-in C extension in a test (GH-6797) (#6869)

[issue33527] Invalid child function scope

2018-05-15 Thread R. David Murray
R. David Murray added the comment: Please post an example, and not a zip file. Given your description (which indeed is not enough to understand what you think the problem is by itself), I think you should be able to post a few lines of python code into the issue in

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33521] Add 1.32x faster C implementation of asyncio.isfuture().

2018-05-15 Thread Jimmy Lai
Change by Jimmy Lai : -- keywords: +patch pull_requests: +6552 stage: -> patch review ___ Python tracker ___

[issue33494] random.choices ought to check that cumulative weights are in ascending order

2018-05-15 Thread Paul Czyzewski
Paul Czyzewski added the comment: or, for a minimal doc change, change this sentence: "For example, the relative weights [10, 5, 30, 5] are equivalent to the cumulative weights [10, 15, 45, 50]," to: "For example, the relative call 'weights[10, 5, 30, 5]' is equivalent to

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +6551 ___ Python tracker ___ ___

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2018-05-15 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +6550 ___ Python tracker ___

[issue33494] random.choices ought to check that cumulative weights are in ascending order

2018-05-15 Thread Paul Czyzewski
Paul Czyzewski added the comment: oops, if "k=400" -- ___ Python tracker ___ ___

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

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 820219f7867f2bbfe0ac4d4f0d1ea1fdef7795a9 by Miss Islington (bot) in branch '3.7': bpo-33509: Fix _warnings for module_globals=None (GH-6833)

[issue33428] pathlib.Path.glob does not follow symlinks

2018-05-15 Thread John Reese
John Reese added the comment: This looks like an issue specific to Windows? I can't replicate on Mac, and given Windows' method of implementing "symlinks" as junctions. -- nosy: +jreese ___ Python tracker

[issue33494] random.choices ought to check that cumulative weights are in ascending order

2018-05-15 Thread Paul Czyzewski
Paul Czyzewski added the comment: btw, this was my suggestion. Steven opened the issue on my behalf (I'm new). 1) Documentation change. I would suggest that, to this paragraph: "If neither weights nor cum_weights are specified, selections are made with equal probability.

[issue33527] Invalid child function scope

2018-05-15 Thread gasokiw
New submission from gasokiw : When you try to reassign variable with same name as one of parameters/arguments of parent function to local scope in child function, even if it doesn't actually get ran, the argument/parameter is not passed to child function anymore. In

[issue33526] hashlib leak on import

2018-05-15 Thread Alexander Mohr
New submission from Alexander Mohr : I'm seeing a lot of leaks via valgrind against the hashlib module. It appears that it's calling OpenSSL_add_all_digests(); on init, and never calling the corresponding EVP_Cleanup on free:

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Anthony Sottile
Anthony Sottile added the comment: According to the other bugs, the change in 3.3 was an inadvertent regression. The fact that it didn't get fixed for so long is mostly due to the unmaintained state of argparse in the stdlib. The change in behaviour here is the _fix_ of

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 7c59a33491b0bde639a9382ef1de2423207a8cc7 by Miss Islington (bot) in branch '3.6': bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: If the behavior was consistent from 3.3 through 3.6, that is the behavior we should keep going forward in 3.7+ without a deprecation period. (and this does not seem worth deprecating, lets just keep the behavior the same as it was in

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
John Reese added the comment: Looks like this is already changed for 3.7: see commit a22a127458 -- ___ Python tracker ___

Re: syntax oddities

2018-05-15 Thread Ian Kelly
On Tue, May 15, 2018 at 1:10 PM, Tobiah wrote: > Why is it len(object) instead of object.len? > > Why is it getattr(object, item) rather then object.getattr(item)?

[issue32257] Support Disabling Renegotiation for SSLContext

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6549 ___ Python tracker ___

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-05-15 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 2.7, Python 3.6 -Python 3.7, Python 3.8 ___ Python tracker ___

[issue32257] Support Disabling Renegotiation for SSLContext

2018-05-15 Thread Ned Deily
Ned Deily added the comment: New changeset 67c48016638aac9a15afe6fd6754d53d2bdd6b76 by Ned Deily (Christian Heimes) in branch 'master': bpo-32257: Add ssl.OP_NO_RENEGOTIATION (GH-5904) https://github.com/python/cpython/commit/67c48016638aac9a15afe6fd6754d53d2bdd6b76

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

2018-05-15 Thread Peter J. Holzer
On 2018-05-15 00:52:42 +, Steven D'Aprano wrote: > Now remember that in 1991 when Guido made the decision to ban = as an > expression, those concepts didn't even exist. There were no Python > linters, and no reason to imagine that there ever would be. Guido didn't > know that Python would

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-15 Thread Ned Deily
Ned Deily added the comment: As agreed upon at the PyCon dev sprints, 6bd0c476c58ca0046969f70dc2a4e4dfb3268062 removes _xxsubinterpreters from the 3.7 branch and 3.7.0 and retargets for 3.8. Since it was intended for internal use, no user documentation or APIs should be

[issue33515] subprocess.Popen on a Windows batch file always acts as if shell=True

2018-05-15 Thread Eryk Sun
Eryk Sun added the comment: There's no simple workaround for this behavior. All we can reasonably do is document that running a batch script directly has the same security risks as using shell=True. CMD doesn't support a file argument. It only supports running a /c or /k

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread R. David Murray
R. David Murray added the comment: Oh, and the empty tuple is a specific syntactic construct that really is the empty parenthesis, so that's consistent with the language definition. -- ___ Python tracker

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Guido van Rossum
Guido van Rossum added the comment: Your phrasing still makes it sound like an annotation is a runtime concept -- I think of it as a syntactic construct. (Otherwise fine.) -- ___ Python tracker

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread R. David Murray
Change by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread R. David Murray
R. David Murray added the comment: No, the parenthesis are never part of the tuple itself, even if you can't write syntactically correct code without them. They just syntactically group the expression list to isolate it from the surrounding context. It's the same

[issue33521] Add 1.32x faster C implementation of asyncio.isfuture().

2018-05-15 Thread Jimmy Lai
Jimmy Lai added the comment: $./python.exe isfuture_benchmark.py -o isfuture_optimized.json $ ./python.exe -m perf compare_to isfuture_original.json isfuture_optimized.json Mean +- std dev: [isfuture_original] 7.16 ms +- 0.23 ms -> [isfuture_optimized] 5.41 ms +- 0.25 ms:

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 8717cfeb6b8bebdfe13df0e9268ddd252ab5ecad by Miss Islington (bot) in branch '3.7': bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846)

[issue19950] Document that unittest.TestCase.__init__ is called once per test

2018-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +6548 stage: needs patch -> patch review ___ Python tracker ___

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Isaiah Peng
Isaiah Peng added the comment: > It's true that the parenthesis is required to construct a tuple Sorry, I mean the parenthesis is *not* required. -- ___ Python tracker

[issue33015] Fix function cast warning in thread_pthread.h

2018-05-15 Thread Steve Dower
Steve Dower added the comment: Ah okay, fair enough. Knowing that, I'll take another look at the PR. I'd really like to simplify this as much as possible to avoid risk of regression. -- ___ Python tracker

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Isaiah Peng
Isaiah Peng added the comment: Thanks for the reply, that's quite reasonable, especially take the generator expression case into consideration. However I found this is not consistent with empty tuple: >>> a = "()"

  1   2   3   >