[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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'

sets L to ['a'] and rest to ['b', 'c', 'd', 'e', 'f']. Consistent implementing 
of your idea would set L to ['a', 'b', 'c'] and rest to ['d', 'e', 'f'] 
(because len(L[:]) == 3 before assignment).

What is your use case? Why do you need such syntax?

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 cells?

On Wed, May 1, 2019, 12:17 PM Inada Naoki  wrote:

>
> 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.
>
> --
> nosy: +inada.naoki
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 object is implementation detail of CPython core.
While other Python implementations will not have it, it is long lived in 
CPython and it is stable.

On the other hand, _abc_data is implementation detail of extension module, not 
interpreter.

For example, _json.Encoder is not exposed in types module.
If it is really needed, type of _abc_data can be exposed via _abc module.
But I prefer keep internal data opaque unless there are reasonable reason.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_expression is wrong or at least not what it meant to 
be and very vague. I was wondering if there's any reason for using `"*" 
or_expr`.

--
assignee: docs@python
components: Documentation
messages: 341186
nosy: Kasra Vand, docs@python
priority: normal
severity: normal
status: open
title: Invalid grammar for f_expression
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_expression is wrong or at least not what it meant to 
be and very vague. I was wondering if there's any reason for using `"*" 
or_expr` instead of let's say just `expr` which I think is what the `or_expr` 
identifier is intended to be.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 module and _abc_data 
is totally irrelevant with this. I dont think users want that.

> On the other hand, _abc_data is implementation detail of extension module, 
> not interpreter.
Abstract base classes can be called a core part of python too and when someone 
needs to obtain type of the struct that holds state of ABCs it shouldnt be 
hard, types module should expose it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 irrelevant with this. I dont think users want that.

It doesn't make sense to me.  Could you elaborate?


> Abstract base classes can be called a core part of python too

abc is core part.  But note that _py_abc can be used instead of _abc.
_abc_data is used only when _abc is used as backend of abc.
At least, your pull request doesn't work correctly when _py_abc is used.


>  and when someone needs to obtain type of the struct that holds state of ABCs 
> it shouldnt be hard, types module should expose it.

I think it is bad idea and we don't support such usage officially at all.
Such code doesn't work when _py_abc is used.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/2fc936ed24cf04ed32f6015a8aa78c8ea40da66b


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tagging the issue for PyCon US dev sprints. Please don't make a 
PR for this if you have already contributed a PR.

# Docs folder

Cotnent -> Content-Transfer-Encoding (Doc/library/email.generator.rst)
attibute -> attribute (Doc/library/pyclbr.rst)
milleseconds -> milliseconds (Doc/library/idle.rst)

# Code comments

actuall -> actual (Lib/test/test_dataclasses.py)
actully -> actually (Lib/contextlib.py)
agains -> against (Lib/pathlib.py)
Amerian -> American (Lib/test/test_random.py)
Conflic -> Conflict (Lib/idlelib/idle_test/test_config.py)
Depedent -> Dependent (Lib/test/datetimetester.py)
Diffent -> Different (Lib/test/support/__init__.py)
Diplay -> Display (Objects/object.c)
Doens't -> Doesn't (Lib/test/test_ssl.py)
Dono't -> Don't (Lib/test/test_importlib/test_lazy.py)
intermitted -> intermittent (Lib/test/pickletester.py)
invokation -> Invocation (Lib/platform.py)
occuring -> occurring (Lib/test/test_tools/test_i18n.py)
permuations -> permutations (Lib/tokenize.py)
resouce -> resource (Lib/multiprocessing/resource_sharer.py)
statists -> statistics (Lib/pstats.py)

# Docstring

Dafault -> Default (Lib/turtle.py)
Diplay -> Display (Lib/idlelib/help.py)
Intput -> Input (Lib/lib2to3/pgen2/tokenize.py)
milleseconds -> milliseconds (Lib/idlelib/configdialog.py, 
Lib/idlelib/help.html)

--
assignee: Mariatta
components: Documentation
messages: 341194
nosy: Mariatta, cheryl.sabella, xtreak
priority: normal
severity: normal
status: open
title: Typos in docs and code comments
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m
 
-L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
 -lpython3.7m test.c -o run`
when I ran it `./run`, segmentation fault: 11 kicks in
However, if I go with python2, it worked fine:
`clang -I 
/usr/local/Cellar/python\@2/2.7.16/Frameworks/Python.framework/Versions/2.7/include/python2.7
 -L 
/usr/local/opt/python\@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/
 -lpython2.7 test.c -o run`

I was wondering if it is the problem with macOS? I tried build python from 
source, but didn't work, keeps crashing

--
components: macOS
messages: 341196
nosy: Senhui Guo, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Segmentation fault when running c extension on macOS
type: crash
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

pip install --prefix=/home/charles/python foobar

within an MSYS2 terminal automagically converts the path to 
C:/Users/charles/python for some reason or another, but it's not exactly 
uncommon for users to use forward slashes on Windows regardless

I'm not entirely sure what the correct fix would be here, or even if it should 
be fixed at a higher level - in setuptools or pip

--
components: Distutils
messages: 341197
nosy: LordAro, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils.util.convert_path mangles windows paths with forward slashes
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 should be 
documented.

--
assignee: docs@python
components: Documentation
messages: 341198
nosy: adelfino, docs@python
priority: normal
severity: normal
status: open
title: doc Document that fnmatch.filter supports any kind of iterable not just 
lists
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 message, so fixing the use of inserts is a better 
option than simply going back to the unformatted message.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: patch
messages: 341201
nosy: giampaolo.rodola, owenchia, tarek
priority: normal
severity: normal
status: open
title: stdlib - shutil.make_archive - add support for different ZIP compression 
method
type: enhancement
versions: Python 3.8
Added file: https://bugs.python.org/file48293/shutil.make_archive.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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.

Maybe in the long run the builtin REPL should get async support "out of the 
box", but that's much less clear, and anyway we should split that off into a 
separate issue if we want to discuss it.

async-input isn't even useful for ipython, is it? you use prompt-toolkit :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 your message, I was surprised because this target
already exists since 2010. It's true we can run the makefile with 

my current workflow is 

make -C Doc/ venv && make -C Doc/ html serve and open my browser at
http://localhost:8000

but with your suggestion, I think it's better for us and also for the
contributors, just make -C Doc/ venv htmlview. This target will open the
browser with the result of the html build.

So, I have discussed with @Julien Palard and he told me that he did not
use the 'serve' target and he discovered the target via my issue.

But there will be an other issue, in the devguide, there is also a
'serve' target in the Makefile with a copy of tools/serve.py.

But there is no htmlview target. 

For the moment, we have a common solution for the two project if we want
to show the result to the user, make serve.

We could:

* remove 'make serve' from CPython and Devguide
* remove tools/serve.py from CPython and Devguide
* add htmlview to the DevGuide
* update the documentation 

+1 for removing the serve.py script and use htmlview.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 issues with it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 conflicts and is straightforward.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

Exactly.  FWIW I'm +1 to have this in 3.8.  Do you have a patch for this?  If 
not I can take a look at this myself tomorrow or the day after.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the DirEntry objects already exist -- I assume it'd 
be a pretty easy change.  At the moment, if I want to be efficient and use 
os.scandir() myself, I've got to basically reimplement os.walk(), which seems 
silly since os.walk is already calling scandir itself.

--
components: Library (Lib)
messages: 341210
nosy: apocalyptech
priority: normal
severity: normal
status: open
title: Feature Request: An option to os.walk() to return os.DirEntry lists 
instead of just filenames/dirnames
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the two, functionalitywise.
2) Also wasn't sure what to do about unit tests, though I'll ponder that some 
more once I've got some time later.
3) The actual implementation is pretty trivial, but could perhaps be handled 
differently.

The systems's still processing my CLA signature, as well, so there's that too.  
:)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 surprising, we were thinking that uuid.UUID 
could be used as a validator

I understand the risk of breaking existing code with a fix that enforce a 
strict form.

Maybe a line should be added in the documentation to prevent people using this 
as a validator without more check?

But ok, you can close the bug if you prefer ... I think there no perfect 
solution :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/3d37ea25dc97e4cb024045581979570835deb13c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/47ffc1a9f6fab1c17cdcc325d4af066317369ed7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 myself 
> tomorrow or the day after.

No, I do not have a patch. I can provide a few test case 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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?

--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (feel free to ping me via a Twitter 
DM).  I'm also leaving on Sunday.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 arbitrary system error code returned 
from an API and use FORMAT_MESSAGE_FROM_SYSTEM without 
FORMAT_MESSAGE_IGNORE_INSERTS". We don't control the content of system error 
messages. If we get the number and type of arguments wrong for the message 
inserts, then FormatMessageW may fail with an invalid parameter error, as it 
does in the examples I showed, or return nonsense, or even crash the process 
due to an unhandled access violation. 

Also, nothing was implemented in _overlapped.FormatMessage or 
_ctypes.FormatError to special case an `Arguments` array for particular error 
codes, or even to expose this capability to Python code. I think omitting the 
flag was just a mistake.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 get that without specifying the 
optional boolean, but perhaps not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 first
> instead of _py_abc and this type targets c implementation.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/43851a202cabce1e6be699e7177735c778b6697e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 should just return a coroutine and it's the -programmer 
job to check wether there is an event loop or not and do the right thing. 

Also for info all the top level async-await PR and issues on IPython can be 
found here: 
https://github.com/ipython/ipython/issues?q=label%3Aasync%2Fawait+is%3Aclosed

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/dde3eebdaa8d2c51971ca704d53af7cbcda8bb34


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 with `await 
exec(code)`.

Actual coroutine executor can be asyncio/trio/twisted/whatever, it depends on 
what code calls this `await`.

Did I miss something?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 get that resolved I think this can finally be done and I can try to 
help out on a different PR and do a better job in the future. 


Thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 about it.

--
nosy: +Windson Yang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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(maxsize=256)
def f(x):
...

--
components: Library (Lib)
messages: 341239
nosy: eric.smith, rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Let lru_cache be used as a decorator with no arguments
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
all (L[::1], L[::]), this expression will work. But I'm not sure that is what 
you expected.

--
nosy: +Windson Yang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >