[issue36761] Extended slice assignment + iterable unpacking

2019-05-01 Thread SilentGhost
Change by SilentGhost : -- nosy: +georg.brandl, gvanrossum versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
New submission from Batuhan : Types module doesn't have a type for _abc_data -- messages: 341180 nosy: isidentical priority: normal severity: normal status: open title: Types module doesn't have a type for _abc_data ___ Python tracker

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: I confirmed this fragmentation is caused by memo in Unpickler. Pickler memos "reduce"-ed tuples while it is just a temporary object. I am not sure that this behavior is good. -- ___ Python tracker

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12954 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) nosy: +yselivanov type: -> enhancement versions: +Python 3.8 ___ Python tracker ___ _

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: It's implementation detail of abc. I don't want expose it in public. (Note that we maintain pure Python version of abc module too.) Why you need it in types module? I don't think all types exposed via types module. Only useful types should be exposed. ---

[issue36761] Extended slice assignment + iterable unpacking

2019-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For the second case, you can use a, *L[::2] = "abc" For the first case this does not work, because an assignment can have only one starred expression. Making the first case to work as you expected is breaking change. Currently L[:], *rest = 'abcdef' set

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: I'm working on a project that is a custom byte code interpreter for some extended types. I needed ABCData there and i thought types module already has that, but i was wrong so i added. Isn't types module exposing some types that are implementation detail such as cell

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm working on a project that is a custom byte code interpreter for some extended types. I needed ABCData there I still don't understand why you need _abc_data. > Isn't types module exposing some types that are implementation detail such as > cells? cell o

[issue36765] Invalid grammar for f_expression

2019-05-01 Thread Kasra Vand
New submission from Kasra Vand : Due to the discussion in following SO question https://stackoverflow.com/questions/55933956/what-does-a-star-asterisk-do-in-f-string/55934472#55933956 and the inconsistency of the source behaviour with the documentation I think using `"*" or_expr` for f_expres

[issue36765] Invalid grammar for f_expression

2019-05-01 Thread Kasra Vand
Kasra Vand added the comment: Due to the discussion in following SO question https://stackoverflow.com/questions/55933956/what-does-a-star-asterisk-do-in-f-string/55934472#55933956 and the inconsistency of the source behaviour with the documentation I think using `"*" or_expr` for f_expressi

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: > I still don't understand why you need _abc_data. I'm using it both for comparisons which needed to build an abstract base class and typing. Currently there are 2 ways, i need to create a dummy abc and put type() calls everywhere or i need to set a constant to my m

[issue36765] Invalid grammar for f_expression

2019-05-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: > I'm using it both for comparisons which needed to build an abstract base > class and typing. Currently there are 2 ways, i need to create a dummy abc > and put type() calls everywhere or i need to set a constant to my module and > _abc_data is totally irrelev

[issue36765] Invalid grammar for f_expression

2019-05-01 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think this is a problem. There are plenty of things allowed by Python's grammar that are converted to errors in subsequent passes. For example: >>> *[1] File "", line 1 SyntaxError: can't use starred expression here >>> *[1],*[2] (1, 2) --

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: It is based on default behavior of cpython. It tries to import _abc first instead of _py_abc and this type targets c implementation. -- ___ Python tracker

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-01 Thread miss-islington
miss-islington added the comment: New changeset 2fc936ed24cf04ed32f6015a8aa78c8ea40da66b by Miss Islington (bot) (Xtreak) in branch 'master': bpo-30458: Disable https related urllib tests on a build without ssl (GH-13032) https://github.com/python/cpython/commit/2fc936ed24cf04ed32f6015a8aa78c

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-01 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12955 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12956 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36694] Excessive memory use or memory fragmentation when unpickling many small objects

2019-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 13036 makes the C implementation no longer memoizing temporary objects. This decreases memory fragmentation and peak memory consumption on pickling and unpickling. -- ___ Python tracker

[issue36766] Typos in docs and code comments

2019-05-01 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I ran aspell through the files and found below to be typos while manually filtering the aspell output. I have classified it into sections since I am not sure if code comments are worth fixing and added relevant files where they are present. I am

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12957 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1a9f0d8efded4bf37c864ed572beff28c43c7c77 by Victor Stinner in branch 'master': bpo-36763: Add _PyCoreConfig_SetString() (GH-13035) https://github.com/python/cpython/commit/1a9f0d8efded4bf37c864ed572beff28c43c7c77 -- __

[issue36767] Segmentation fault when running c extension on macOS

2019-05-01 Thread Senhui Guo
New submission from Senhui Guo : I was trying to build a c extension with cpython while it keeps crashing when I get it running, the code is quite simple: ```cpp #include "Python.h" int main () { PyObject *p; p = PySet_New(NULL); } ``` I build with command `clang -I/usr/local/Cellar/

[issue36768] distutils.util.convert_path mangles windows paths with forward slashes

2019-05-01 Thread Charles P
New submission from Charles P : https://github.com/python/cpython/blob/master/Lib/distutils/util.py#L106-L131 Due to the split('/') and os.path.join(), this function converts an absolute path of the form "C:/foobar" into a relative "C:foobar", which is likely to be entirely different Usecase

[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2019-05-01 Thread Andrés Delfino
New submission from Andrés Delfino : Documentation on fnmatch.filter says: Return the subset of the list of names that match pattern. It is the same as [n for n in names if fnmatch(n, pattern)], but implemented more efficiently. But the function actual accepts any kind of iterable. I think it

[issue36769] doc Document that fnmatch.filter supports any kind of iterable not just lists

2019-05-01 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +12958 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue26493] Bad formatting in WinError 193 when using subprocess.check_call

2019-05-01 Thread Steve Dower
Steve Dower added the comment: > I suggested creating a new issue to fix the calls that omit this flag. Right, that's a separate issue that is easily fixed (and backported, IMHO). Though I suspect that we've not used the flags in those ones because we think we *can* properly format the messa

[issue34616] implement "Async exec"

2019-05-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34616] implement "Async exec"

2019-05-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36767] Segmentation fault when running c extension on macOS

2019-05-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The program you include in your report will crash because the interpreter is never initialised. See the embedding documentation for more information: https://docs.python.org/3/extending/embedding.html -- resolution: -> not a bug status: open -> pe

[issue36770] stdlib - shutil.make_archive - add support for different ZIP compression method

2019-05-01 Thread Owen Chia
New submission from Owen Chia : if you just want to use different zip compression method, no need to rewrite entire _make_zipfile function. e.g. >>> shutil.make_archive('archive', 'zip_lzma', '/path/to/whatever') -- components: Library (Lib) files: shutil.make_archive.patch keywords:

[issue29512] regrtest refleak: implement bisection feature

2019-05-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +12959 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34616] implement "Async exec"

2019-05-01 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Slides and demo (videos) during PyCon2019 Language Summit: https://github.com/Carreau/talks/tree/master/2019-05-01-Language-Summit One question was how to handle non-asyncio in Core Python, REPL. My response was to not take care of that in the first tim

[issue34616] implement "Async exec"

2019-05-01 Thread Nathaniel Smith
Nathaniel Smith added the comment: > My response was to not take care of that in the first time, but provide the > building blocks for alternative REPL, in a second time provide an > async-input, and a way to register runner for alternative async libraries. Yeah, I think this is pretty simpl

[issue36329] use the right python "make -C Doc/ serve"

2019-05-01 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: >Personally, I'd prefer removing the 'serve' target completely. make -C >Doc htmlview should already cover most of its use cases. There is no >deprecation period needed and there is already a replacement (and IMO >better) for it. Hi Berker, When I have read y

[issue13611] Integrate ElementC14N module into xml.etree package

2019-05-01 Thread Stefan Behnel
Stefan Behnel added the comment: > I personally think it's ready to go into the last alpha release Since I didn't get any negative comments or requests for deferral, I'll merge this today to get the feature into the last (still unreleased) alpha. We still have the beta phase to resolve issue

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-05-01 Thread Steve Dower
Steve Dower added the comment: New changeset 98a4dcefbbc3bce5ab07e7c0830a183157250259 by Steve Dower in branch '2.7': bpo-36742: Fixes handling of pre-normalization characters in urlsplit() (GH-13017) https://github.com/python/cpython/commit/98a4dcefbbc3bce5ab07e7c0830a183157250259 ---

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-05-01 Thread Steve Dower
Steve Dower added the comment: I'll leave the 3.6 backport in Ned's hands and close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-05-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I'll leave the 3.6 backport in Ned's hands and close this issue. 3.5 was added as an affected version and seems the original fix was merged to 3.5 too. 3.4 is EoL so is it worthy of backporting to 3.5? I guess the backport would not have merge co

[issue34616] implement "Async exec"

2019-05-01 Thread Yury Selivanov
Yury Selivanov added the comment: > Yeah, I think this is pretty simple: the runtime/stdlib should provide the > primitives to compile top-level async code, get coroutines, etc., and then a > REPL like ipython can take care of handing that off to asyncio or whatever > library they want. Exa

[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

2019-05-01 Thread CJ Kucera
New submission from CJ Kucera : It'd be nice to have an option to os.walk which would return DirEntry objects in its return tuple, as opposed to just the string filenames/dirnames. (Or failing that, an alternate function which does so.) The function already uses os.scandir() internally, so

[issue36329] use the right python "make -C Doc/ serve"

2019-05-01 Thread Berker Peksag
Berker Peksag added the comment: Yeah, we can add htmlview to devguide. I’ve even added it to Django after I discovered it in CPython :) -- --Berker -- ___ Python tracker ___

[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

2019-05-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12960 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-05-01 Thread Steve Dower
Steve Dower added the comment: Yes, you're right. I'll do that port as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-05-01 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +12961 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

2019-05-01 Thread CJ Kucera
CJ Kucera added the comment: I've started up a Github PR for this, btw, though IMO it's not really in a mergeable state yet: 1) I wasn't sure what to do about os.fwalk(), since that *doesn't* already generate DirEntry objects, and this change would introduce a small inconsistency between th

[issue34442] zlib module not built on windows

2019-05-01 Thread Zachary Ware
Zachary Ware added the comment: With no further explanation of what went wrong, I'm closing the issue. -- resolution: -> works for me stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue36757] uuid constructor accept invalid strings (extra dash)

2019-05-01 Thread Cédric Cabessa
Cédric Cabessa added the comment: > Is there are reason your validator doesn't use uuid.UUID to normalize the > value? That is, whatever the customer provides, why not use the result of > stringifying the resulting UUID Yes, this is exactly what we do now However this behaviour is a bit surp

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-05-01 Thread Berker Peksag
Berker Peksag added the comment: New changeset 3d37ea25dc97e4cb024045581979570835deb13c by Berker Peksag (Petter Strandmark) in branch 'master': bpo-27682: Handle client connection terminations in wsgiref (GH-9713) https://github.com/python/cpython/commit/3d37ea25dc97e4cb024045581979570835deb

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12963 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13611] Integrate ElementC14N module into xml.etree package

2019-05-01 Thread Zackery Spytz
Zackery Spytz added the comment: The PR has reference leaks. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mai

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-05-01 Thread Berker Peksag
Berker Peksag added the comment: New changeset 47ffc1a9f6fab1c17cdcc325d4af066317369ed7 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-27682: Handle client connection terminations in wsgiref (GH-9713) https://github.com/python/cpython/commit/47ffc1a9f6fab1c17cdcc325d4af066317369

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-05-01 Thread Berker Peksag
Berker Peksag added the comment: Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker _

[issue13611] Integrate ElementC14N module into xml.etree package

2019-05-01 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks for testing, Zackery. I resolved the reference leaks. They were already in the PR for issue 36676. Both PRs updated. -- ___ Python tracker ___

[issue34616] implement "Async exec"

2019-05-01 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > async-input isn't even useful for ipython, is it? you use prompt-toolkit :-) You don't have to use prompt_toolkit (https://github.com/ipython/rlipython), but yes we don't need this. > Do you have a patch for this? If not I can take a look at this m

[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

2019-05-01 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, I think you have to create a new function and not to modify the current os.walk(), just because you change the type of the returned value. We have to avoid the inconsistency for the caller of os.walk(). is it a list of DirEntry or another list? -

[issue34616] implement "Async exec"

2019-05-01 Thread Yury Selivanov
Yury Selivanov added the comment: > No, I do not have a patch. I can provide a few test case That would be helpful! > and I am happy to spend some task to sit-down and discuss what we exactly do > so far in IPython. I'm flying back Sunday morning. Yes, let's do that around Friday/Saturday (

[issue26493] Bad formatting in WinError 193 when using subprocess.check_call

2019-05-01 Thread Eryk Sun
Eryk Sun added the comment: > I suspect that we've not used the flags in those ones because we > think we *can* properly format the message, so fixing the use of > inserts is a better option than simply going back to the > unformatted message. We're advised that it's "unsafe to take an arbi

[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

2019-05-01 Thread CJ Kucera
CJ Kucera added the comment: Yeah, I'd wondered that too (re: a separate function) but it seemed like an awful lot of duplicated code. The PR I'd put through just changes the datatypes within the `filenames` and `dirnames` lists... I'd been thinking that'd be sufficient since you wouldn't

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Batuhan
Batuhan added the comment: We can try to obtain the type of ABCData and if we can't (if py_abc is used) we can set ABCData to NotImplemented. On Wed, May 1, 2019, 2:56 PM Batuhan wrote: > > Batuhan added the comment: > > It is based on default behavior of cpython. It tries to import _abc fi

[issue36673] Comment/PI parsing support for ElementTree

2019-05-01 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 43851a202cabce1e6be699e7177735c778b6697e by Stefan Behnel in branch 'master': bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ElementTree. (#12883) https://github.com/python/cpython/commit/43851a202cabce1e6be699e7177735c77

[issue36762] Teach "import *" to warn when overwriting globals or builtins

2019-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if existing globals are overwritten intentionally? For example, the stat module defines some constant and then use the star import from _stat. Other example is the datetime module. -- nosy: +serhiy.storchaka __

[issue36673] Comment/PI parsing support for ElementTree

2019-05-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34616] implement "Async exec"

2019-05-01 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Extra notes from in-person discussion; We might want a both a Sync-REPL and Async-REPL `compile()` mode depending on wether the REPL support async. One of the other question was wether `exec` should look at wether an eventloop is running, or if it sho

[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-05-01 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset dde3eebdaa8d2c51971ca704d53af7cbcda8bb34 by Stefan Behnel in branch 'master': bpo-36676: Namespace prefix aware parsing support for the ET.XMLParser target (GH-12885) https://github.com/python/cpython/commit/dde3eebdaa8d2c51971ca704d53af7cbcda8b

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-01 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +12964 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34616] implement "Async exec"

2019-05-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: I recall the idea of passing a specific flag to `compile()` for accepting await and family on top level of passed code string. Than compile can return a code object with CO_COROUTINE flag set. Returned code object can be analyzed for this flag and executed w

[issue13611] Integrate ElementC14N module into xml.etree package

2019-05-01 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset e1d5dd645d5f59867cb0ad63179110f310cbca89 by Stefan Behnel in branch 'master': bpo-13611: C14N 2.0 implementation for ElementTree (GH-12966) https://github.com/python/cpython/commit/e1d5dd645d5f59867cb0ad63179110f310cbca89 -- __

[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-05-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue13611] Integrate ElementC14N module into xml.etree package

2019-05-01 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36673] Comment/PI parsing support for ElementTree

2019-05-01 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: -12811 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b7378d77289c911ca6a0c0afaf513879002df7d5 by Gregory P. Smith in branch 'master': bpo-30458: Use InvalidURL instead of ValueError. (GH-13044) https://github.com/python/cpython/commit/b7378d77289c911ca6a0c0afaf513879002df7d5 -- __

[issue34088] [EASY] sndhdr.what() throws exceptions on unknown files

2019-05-01 Thread david awad
david awad added the comment: It's been a while since then but I really think we can get this fix merged in the next two weeks or so. Can someone give this another look? I had a quick question for Serhiy Here: https://github.com/python/cpython/pull/8319#discussion_r273539593 If we could

[issue36759] datetime: astimezone() results in OSError: [Errno 22] Invalid argument

2019-05-01 Thread Windson Yang
Windson Yang added the comment: Thanks, SilentGhost, you are right. I will leave this to a Windows expert instead. -- ___ Python tracker ___ _

[issue35864] Replace OrderedDict with regular dict in namedtuple's _asdict() method.

2019-05-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12965 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36018] Add a Normal Distribution class to the statistics module

2019-05-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +12966 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36762] Teach "import *" to warn when overwriting globals or builtins

2019-05-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: > What if existing globals are overwritten intentionally? That's why it would be a warning instead of an error. Also, with warnings we can suppress specific instances (by module or by message). -- ___ Python t

[issue36757] uuid constructor accept invalid strings (extra dash)

2019-05-01 Thread Windson Yang
Windson Yang added the comment: > Maybe a line should be added in the documentation to prevent people using > this as a validator without more check? I don't expect uuid.UUID could be used as a validator myself, but I agreed we can warn users in the documentation if lots of them confuse abou

[issue36772] Let lru_cache be used as a decorator with no arguments

2019-05-01 Thread Raymond Hettinger
New submission from Raymond Hettinger : Follow the lead of the dataclasses module and allow lru_cache() to be used as a straight decorator rather than as a function that returns a decorator. Both of these would now be supported: @lru_cache def f(x): ... @lru_cache(maxsiz

[issue36772] Let lru_cache be used as a decorator with no arguments

2019-05-01 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12967 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue36018] Add a Normal Distribution class to the statistics module

2019-05-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 671d782f8dc52942dc8c48a513bf24ff8465b112 by Raymond Hettinger in branch 'master': bpo-36018: Update example to show mean and stdev (GH-13047) https://github.com/python/cpython/commit/671d782f8dc52942dc8c48a513bf24ff8465b112 --

[issue36764] Types module doesn't have a type for _abc_data

2019-05-01 Thread Inada Naoki
Inada Naoki added the comment: You didn't explain why people not only you need it. "Could you elaborate?" Unless clear use cases, I'm strong -1 on adding it in typing module. -- ___ Python tracker _

[issue36761] Extended slice assignment + iterable unpacking

2019-05-01 Thread Windson Yang
Windson Yang added the comment: In your first case, *any positive index except 2 will work*, For example: L = [0, 1, 2] L[::1], *rest = "abcdef" # L became ['a'] or L[::3], *rest = "abcdef" # L became ['a', 1, 2] I found iff when you change the length of L to 1(L[::3]) or didn't change L at

[issue36762] Teach "import *" to warn when overwriting globals or builtins

2019-05-01 Thread Windson Yang
Windson Yang added the comment: Another question will be are we going to replace the * in our source code in the future? Since I found lots of our code use 'from xxx import *' pattern. -- nosy: +Windson Yang ___ Python tracker

[issue29512] regrtest refleak: implement bisection feature

2019-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12968 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29512] regrtest refleak: implement bisection feature

2019-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12969 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12970 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset cb9fbd35885a8921b9df99e801df4f82e3ba336b by Victor Stinner in branch 'master': bpo-36763: Make _PyCoreConfig.check_hash_pycs_mode public (GH-13052) https://github.com/python/cpython/commit/cb9fbd35885a8921b9df99e801df4f82e3ba336b -- _

[issue1260171] subprocess: more general (non-buffering) communication

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue1191964] add non-blocking read and write methods to subprocess.Popen

2019-05-01 Thread Josiah Carlson
Josiah Carlson added the comment: Someone else can resurrect this concept and/ore patch if they care about this feature. Best of luck to future readers. -- stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue4277] asynchat's handle_error inconsistency

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiah.carlson, josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue1442493] IDLE shell window gets very slow when displaying long lines

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue6911] Document changes in asynchat

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue13372] handle_close called twice in poll2

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35913] asyncore: allow handling of half closed connections

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue1043134] Add preferred extensions for MIME types

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue13451] sched.py: speedup cancel() method

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiah.carlson, josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue3783] dbm.sqlite proof of concept

2019-05-01 Thread Josiah Carlson
Change by Josiah Carlson : -- nosy: -josiahcarlson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

  1   2   >