[issue33223] test_posix fails ERRNO 0

2018-04-04 Thread Nitish

Change by Nitish :


--
nosy: +nitishch

___
Python tracker 

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



[issue33208] Lib2to3 grammar.txt error

2018-04-04 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

If it's the same problem, we don't need another issue open.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Can't use lib2to3 with embeddable zip file.

___
Python tracker 

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



[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-04 Thread Ned Deily

Ned Deily  added the comment:

Lisa, thanks for the offer but there's nothing much to be done.  It's just a 
reminder to Steve Dower for the Windows installer and to me for the macOS 
installer to update the respective installer build automation prior to the next 
releases.

--

___
Python tracker 

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



[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-04 Thread Lisa Roach

Lisa Roach  added the comment:

I'd like to help out with this, I see Christian is already providing a lot of 
compatibility for the latest versions of OpenSSL. What needs to be done for the 
update?

--
nosy: +lisroach

___
Python tracker 

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



[issue33226] In some envrionment using unicode, formatwarning shows ascii error

2018-04-04 Thread Seyeong Kim

Change by Seyeong Kim :


--
resolution:  -> wont fix
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



[issue32873] Pickling of typing types

2018-04-04 Thread miss-islington

miss-islington  added the comment:


New changeset 04eac02088f60192c7e54c7364bcaa892d7c05cf by Miss Islington (bot) 
in branch '3.7':
bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376)
https://github.com/python/cpython/commit/04eac02088f60192c7e54c7364bcaa892d7c05cf


--

___
Python tracker 

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



[issue32873] Pickling of typing types

2018-04-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6090

___
Python tracker 

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



[issue32873] Pickling of typing types

2018-04-04 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:


New changeset 2a363d2930e29ec6d8a774973ed5a4965f881f5f by Ivan Levkivskyi in 
branch 'master':
bpo-32873: Remove a name hack for generic aliases in typing module (GH-6376)
https://github.com/python/cpython/commit/2a363d2930e29ec6d8a774973ed5a4965f881f5f


--

___
Python tracker 

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



[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-04-04 Thread Martin Panter

Martin Panter  added the comment:

Sorry, I realize there is a problem remaining with the pointer types for 
"Noddy_name" (Noddy vs PyObject pointers), so you can't remove the cast there. 
But my suggestion should still apply to other places, for instance the 
"error_out" method in Doc/howto/cporting.rst.

--

___
Python tracker 

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



[issue33226] In some envrionment using unicode, formatwarning shows ascii error

2018-04-04 Thread Ned Deily

Change by Ned Deily :


--
nosy: +serhiy.storchaka
type: crash -> 

___
Python tracker 

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



[issue33226] In some envrionment using unicode, formatwarning shows ascii error

2018-04-04 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +6089
stage:  -> patch review

___
Python tracker 

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



[issue33226] In some envrionment using unicode, formatwarning shows ascii error

2018-04-04 Thread Seyeong Kim

New submission from Seyeong Kim :

In some circumstances using unicode, formatwarning show me ascii error

so I should prefix on below line to remove this crash
s =  "%s: %s: %s\n" % (lineno, category.__name__, message)
to
s =  u"%s: %s: %s\n" % (lineno, category.__name__, message)

below are logs

Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault return resp(environ, start_response)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault resp = self.call_func(req, *args, 
**self.kwargs)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault return self.func(req, *args, 
**kwargs)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 1061, in 
__call__
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault content_type, body, accept)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 1123, in 
_process_stack
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault action_result = self.dispatch(meth, 
request, action_args)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/cinder/api/openstack/wsgi.py", line 1221, in 
dispatch
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault return method(req=request, 
**action_args)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/cinder/api/v2/volumes.py", line 405, in create
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault **kwargs)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/cinder/volume/api.py", line 327, in create
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault flow_engine.run()
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py", 
line 230, in run
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault for _state in 
self.run_iter(timeout=timeout):
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py", 
line 308, in run_iter
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault failure.Failure.reraise_if_any(fails)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/taskflow/types/failure.py", line 336, in 
reraise_if_any
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault failures[0].reraise()
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/taskflow/types/failure.py", line 343, in 
reraise
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault six.reraise(*self._exc_info)
Apr  4 22:22:44 juju-7a19d0-0-lxd-0 cinder-api[5302]: 2018-04-04 22:22:44.441 
5316 ERROR cinder.api.middleware.fault   File 
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py", 
line 82, in _execute_task
Apr  4 22:22:44 

[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-04 Thread Cyker Way

Cyker Way  added the comment:

Update test program.

--
Added file: https://bugs.python.org/file47519/test.py

___
Python tracker 

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



[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-04 Thread Cyker Way

Change by Cyker Way :


Removed file: https://bugs.python.org/file47516/test.py

___
Python tracker 

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



[issue33219] x in IntFlag() should test int x's inclusion in IntFlag

2018-04-04 Thread Ethan Furman

Ethan Furman  added the comment:

Nitish, Flag can check if the current Flag class has a mixin, and if so if the 
object being checked for is of that same type.

Dutcho, my apologies.  Looks like I did not fully understand how __contains__ 
is supposed to work and a TypeError is completely appropriate.

Looking into deprecation cycles now to get the change scheduled.

--

___
Python tracker 

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



[issue33217] x in enum.Flag member is True when x is not a Flag

2018-04-04 Thread Ethan Furman

Ethan Furman  added the comment:

Stepping back slightly, it is more general to say that str, and in certain 
other cases dict and set (and possibly others) will raise instead of return 
False when it is impossible for the target type to ever hold the checked-for 
type.  A couple examples of what will raise:

1 in 'hello'   # integers will never be in a string
list() in dict()   # dict keys must be hashable (and lists are not)

So, yes, at least for pure Enums and Flags, raising TypeError when a 
non-Enum/Flag is checked for would be appropriate.

Since there may be code currently relying on always getting True/False, though, 
a deprecation period is called for.  I'll see if I can get that into 3.7.

--
title: x in enum.Flag() is True when x is no Flag -> x in enum.Flag member is 
True when x is not a Flag

___
Python tracker 

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



[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-04 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

The patch looks fine.  Once a news blurb is added, it can go forward.

--

___
Python tracker 

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



[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-04 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
Removed message: https://bugs.python.org/msg314956

___
Python tracker 

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



[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

2018-04-04 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I think this can go forward as-is.

--

___
Python tracker 

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



[issue32873] Pickling of typing types

2018-04-04 Thread Ivan Levkivskyi

Change by Ivan Levkivskyi :


--
pull_requests: +6088

___
Python tracker 

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



[issue32873] Pickling of typing types

2018-04-04 Thread Ivan Levkivskyi

Ivan Levkivskyi  added the comment:

Apparently there is another type with a similar problem -- DefaultDict.

Will fix this now.

--

___
Python tracker 

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



[issue31033] Add argument to .cancel() of Task and Future

2018-04-04 Thread Yury Selivanov

Yury Selivanov  added the comment:

> I like the idea of having an argument to construct the CancelledError with, 
> but I like even more the ability to tell the exception that will be raised to 
> have the traceback of the point where the task was originally cancelled.

Why don't we make CancelledErrors having proper traceback a default behaviour?

--

___
Python tracker 

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



[issue31033] Add argument to .cancel() of Task and Future

2018-04-04 Thread Alexander Mohr

Alexander Mohr  added the comment:

I was about to open a new bug, but I think my idea overlaps with this one.  
From what I understand there are two ways to cancel tasks:

1) calling task.cancel()
2) explicitly raising a CancelledError

with #2 you can get a traceback by catching the exception which yields why the 
task was cancelled (per callstack, and you create the CancelledError with a 
custom message).

#1 I think is what this is talking about.

The most useful information IMHO is the callstack, and via #1 this callstack is 
completely lost.

I like the idea of having an argument to construct the CancelledError with, but 
I like even more the ability to tell the exception that will be raised to have 
the traceback of the point where the task was originally cancelled.

Right now I have to use forbidden fruit to override the Task.cancel method and 
store the callstack in a custom attribute.

I was talking with asvetlov and and he thought perhaps there could be an 
environment variable to enable this by default and then when the cancellation 
error is raised it can have the caller's callstack...I think ideally this would 
be the default if it could be done cheaply (given if a regular exception throw 
contains the callstack, then a cancellation exception should always as well.

Ideally I think when a task is cancelled it instantiates the exception with the 
callstack at that point, and then does something like a "with e" to raise the 
exception from the future so you get it when it's raised.

--
nosy: +thehesiod

___
Python tracker 

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



[issue32873] Pickling of typing types

2018-04-04 Thread Will T

Will T  added the comment:

I believe I hit a bug with this fix (just pulled the code a few min ago):

In [10]: pickle.loads(pickle.dumps(typing.List))
Out[10]: typing.List

In [11]: pickle.loads(pickle.dumps(typing.FrozenSet))
---
PicklingError Traceback (most recent call last)
 in ()
> 1 pickle.loads(pickle.dumps(typing.FrozenSet))

PicklingError: Can't pickle typing.Frozenset: attribute lookup Frozenset on 
typing failed

The cause is in _GenericAlias.__init__

name = orig_name[0].title() + orig_name[1:]

Maybe just pass the name explicitly?

For context I originally hit this trying to explicitly getattr(typing, 
alias_name) not by pickling but I'm pleased to see that's at least apparently 
intended to be valid use (I need to get the underlying special's parameter 
variance which is lost when you give it args).

--
nosy: +wrmsr

___
Python tracker 

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



[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2018-04-04 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +6087
stage:  -> patch review

___
Python tracker 

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



[issue33219] x in IntFlag() should test int x's inclusion in IntFlag

2018-04-04 Thread Dutcho

Dutcho  added the comment:

@Nitish
The easiest way would probably be to change __contains__ in Flag to:

def __contains__(self, other):
try:
return other & self == other # leave selection of _value_ attribute 
(if other is Flag) or conversion (if other is int mixin of IntFlag) to __and__
except TypeError:
return False

Although this would be somewhat convoluted (the generic delegation to __and__ 
isn't clear at first sight and therefore less maintainable) and may lead to 
confusing error messages

--

___
Python tracker 

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



[issue33208] Lib2to3 grammar.txt error

2018-04-04 Thread Lukasz

Lukasz  added the comment:

In fact  I dont  know what should I do.

Can I install any module via pip to solve this problem ?

On android version of python I dont have access to directory like: 

Lib/lib2to3/pgen2/driver.py

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-04 Thread Guido van Rossum

Guido van Rossum  added the comment:

If there are overspecified tests we can debate them of course.

On Wed, Apr 4, 2018, 11:55 Brett Cannon  wrote:

>
> Brett Cannon  added the comment:
>
> And mostly for completeness, I know Thomas has maligned the fact that
> zipimport has tests for some crazy things in its semantics which made it
> difficult for him to improve the module.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-04 Thread Brett Cannon

Brett Cannon  added the comment:

And mostly for completeness, I know Thomas has maligned the fact that zipimport 
has tests for some crazy things in its semantics which made it difficult for 
him to improve the module.

--

___
Python tracker 

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



[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-04 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



[issue29673] Some gdb macros are broken in 3.6

2018-04-04 Thread Ned Deily

Ned Deily  added the comment:

Thanks for the PR and the ping.  I've sent an email to the python-dev list 
requesting review help for gdb issues including this one.

--
nosy: +ned.deily
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



[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2018-04-04 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests:  -6086

___
Python tracker 

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



[issue28393] Update encoding lookup docs wrt #27938

2018-04-04 Thread Ville Skyttä

Change by Ville Skyttä :


--
pull_requests: +6085

___
Python tracker 

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



[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2018-04-04 Thread Ville Skyttä

Change by Ville Skyttä :


--
pull_requests: +6086

___
Python tracker 

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



[issue33208] Lib2to3 grammar.txt error

2018-04-04 Thread Lukasz

Lukasz  added the comment:

I think this is the same problem but I want to use the script from the phone 
(mobile version of python) so I do not know how to solve it.

--

___
Python tracker 

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



[issue33225] imaplib module IMAP4.append() unexpected response BAD Command Error

2018-04-04 Thread Yang Yu

New submission from Yang Yu :

part of bytestring in message in .append() includes 'text-align: 

[issue29922] error message when __aexit__ is not async

2018-04-04 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Since BEFORE_ASYNC_WITH always is followed by GET_AWAITABLE, in future they can 
be merged into a single instruction (like GET_ANEXT or GET_YIELD_FROM_ITER).

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



[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-04 Thread Ned Deily

Ned Deily  added the comment:

Thanks for doing this!  Let's close it.  If comments arise prior to its release 
in 370b4, we can reopen, otherwise please open a new issue.

--
priority: deferred blocker -> 
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue33208] Lib2to3 grammar.txt error

2018-04-04 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Why do you believe this is any different than #24960?

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue1294959] Problems with /usr/lib64 builds.

2018-04-04 Thread Bob Vincent

Change by Bob Vincent :


--
nosy: +pillarsdotnet

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

miss-islington  added the comment:


New changeset 1487cd14bb1e04de5b98fffc5ec41c6cf6b5d5f1 by Miss Islington (bot) 
in branch '3.6':
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
https://github.com/python/cpython/commit/1487cd14bb1e04de5b98fffc5ec41c6cf6b5d5f1


--

___
Python tracker 

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



[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-04 Thread Ivan Levkivskyi

Change by Ivan Levkivskyi :


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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6084

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

miss-islington  added the comment:


New changeset 785f36c876721c12f653371e9893527a25140624 by Miss Islington (bot) 
in branch '3.7':
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
https://github.com/python/cpython/commit/785f36c876721c12f653371e9893527a25140624


--

___
Python tracker 

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



[issue33207] typing.Generic does not correctly call super().__init_subclass__

2018-04-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6083

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +6082

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 2eeac269dd1e04a2a179384576986c3e47895ee0 by Serhiy Storchaka in 
branch 'master':
bpo-29922: Add more tests for error messages in 'async with'. (GH-6370)
https://github.com/python/cpython/commit/2eeac269dd1e04a2a179384576986c3e47895ee0


--

___
Python tracker 

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



[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-04 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

As far as I know macOS does not support different salt types at all. The 
manpage does mention an "extended crypt", but according to the documentation 
that just controls the number of DES rounds used.

In particular:

The salt is a 9-character array consisting of an underscore, followed by 
4 bytes of iteration count and 4 bytes of salt.  These are encoded as
printable characters, 6 bits per character, least significant character
first.  The values 0 to 63 are encoded as ``./0-9A-Za-z''.  This allows 
24 bits for both count and salt.


If anything needs to change it would have to be a macOS specific patch to the 
_crypt extension that rejects any attempt of using algorithm selection (but 
that's technically a backward incompatible change as)

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue33223] test_posix fails ERRNO 0

2018-04-04 Thread Ioannis Valasakis

Ioannis Valasakis  added the comment:

Note: I get the same error with the version of python installed via homebrew:

(Python 3.6.4 (default, Jan  6 2018, 11:51:59)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin

Here is also the output of the id command, if that is helpful:

(box3) λ /Volumes/pythontesting/cpython/ master id
uid=501(wizofe) gid=20(staff) 
groups=20(staff),1(daemon),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),204(_developer),450(_xcs),701(1),33(_appstore),100(_lpoperator),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)

I am also attaching a dtrace log of the two liner that causes the bug.

--

___
Python tracker 

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



[issue33224] "RuntimeError: generator raised StopIteration" in difflib.mdiff

2018-04-04 Thread Jeff Kaufman

New submission from Jeff Kaufman :

With python built at HEAD (c51d8c9b) and at 3.7b3 (fcd4e03e08) the code:

import difflib
for fromdata, todata, flag in difflib._mdiff(
["2"], ["3"], 1):
  pass

produces:

Traceback (most recent call last):
  File "/home/jefftk/cpython/Lib/difflib.py", line 1638, in _mdiff
from_line, to_line, found_diff = next(line_pair_iterator)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jefftk/icdiff/repro.py", line 3, in 
["2"], ["3"], 1):
RuntimeError: generator raised StopIteration

In python 3.5 and 3.6 I don't get an error.

This is probably due to https://bugs.python.org/issue32670 which implements PEP 
479, but I this this isn't supposed to happen in library code?

--
components: Library (Lib)
messages: 314936
nosy: Jeff.Kaufman
priority: normal
severity: normal
status: open
title: "RuntimeError: generator raised StopIteration" in difflib.mdiff
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



[issue29673] Some gdb macros are broken in 3.6

2018-04-04 Thread Charalampos Stratakis

Charalampos Stratakis  added the comment:

A PR has been filed, could someone take a look?

--

___
Python tracker 

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



[issue29673] Some gdb macros are broken in 3.6

2018-04-04 Thread Charalampos Stratakis

Change by Charalampos Stratakis :


--
nosy: +cstratak

___
Python tracker 

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



[issue33223] test_posix fails ERRNO 0

2018-04-04 Thread Ioannis Valasakis

New submission from Ioannis Valasakis :

I am on mac OSX high Sierra 10.13.4. I am using the Apple LLVM version 9.1.0 
(clang-902.0.37.1) from the XCode toolchain. 

My tests fail on posix and if run the interpreter I get

--- pylog ---
./python.exe
Python 3.8.0a0 (heads/master:da58533ac6, Apr  3 2018, 16:54:53)
[Clang 9.1.0 (clang-902.0.37.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getgrouplist('wizofe', 20)
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 0] Error
--- pylog ---

My system is defined as case-sensitive in the setup.

--
components: Tests, ctypes, macOS
messages: 314934
nosy: ned.deily, ronaldoussoren, wizofe
priority: normal
severity: normal
status: open
title: test_posix fails ERRNO 0
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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

miss-islington  added the comment:


New changeset 4fd6c27dc8ba7ca97aa70e1ab98729f2207bbe19 by Miss Islington (bot) 
in branch '3.6':
bpo-29922: Improve error messages in 'async with' (GH-6352)
https://github.com/python/cpython/commit/4fd6c27dc8ba7ca97aa70e1ab98729f2207bbe19


--

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread miss-islington

miss-islington  added the comment:


New changeset fcd4e03e08a2d4ec1cde17beb66e2b22a052500f by Miss Islington (bot) 
in branch '3.7':
bpo-29922: Improve error messages in 'async with' (GH-6352)
https://github.com/python/cpython/commit/fcd4e03e08a2d4ec1cde17beb66e2b22a052500f


--
nosy: +miss-islington

___
Python tracker 

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



[issue29922] error message when __aexit__ is not async

2018-04-04 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests: +6081

___
Python tracker 

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



[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2018-04-04 Thread Jeroen Demeyer

New submission from Jeroen Demeyer :

Setting PYTHONUSERBASE=/tmp/x/.. causes the Python test suite to fail:

==
FAIL: test_user_similar (test.test_sysconfig.TestSysConfig)
--
Traceback (most recent call last):
  File 
"/usr/local/src/sage-config/local/src/cpython/Lib/test/test_sysconfig.py", line 
276, in test_user_similar
self.assertEqual(user_path, global_path.replace(base, user, 1))
AssertionError: '/tmp/lib/python3.8' != '/tmp/x/../lib/python3.8'
- /tmp/lib/python3.8
+ /tmp/x/../lib/python3.8
? +

==
FAIL: test_get_path (test.test_site.HelperFunctionsTests)
--
Traceback (most recent call last):
  File "/usr/local/src/sage-config/local/src/cpython/Lib/test/test_site.py", 
line 192, in test_get_path
sysconfig.get_path('purelib', scheme))
AssertionError: '/tmp/x/../lib/python3.8/site-packages' != 
'/tmp/lib/python3.8/site-packages'
- /tmp/x/../lib/python3.8/site-packages
? -
+ /tmp/lib/python3.8/site-packages


==
FAIL: test_s_option (test.test_site.HelperFunctionsTests)
--
Traceback (most recent call last):
  File "/usr/local/src/sage-config/local/src/cpython/Lib/test/test_site.py", 
line 199, in test_s_option
self.assertIn(usersite, sys.path)
AssertionError: '/tmp/x/../lib/python3.8/site-packages' not found in 
['/usr/local/src/sage-config/local/src/cpython', 
'/usr/local/src/sage-config/local/lib/python38.zip', 
'/usr/local/src/sage-config/local/src/cpython/Lib', 
'/usr/local/src/sage-config/local/src/cpython/build/lib.linux-x86_64-3.8', 
'/usr/local/src/sage-config/local/lib/python3.8/site-packages']

--
components: Tests
messages: 314931
nosy: jdemeyer
priority: normal
severity: normal
status: open
title: Various test failures if PYTHONUSERBASE is not canonicalized
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



[issue30071] Duck-typing inspect.isfunction()

2018-04-04 Thread Jeroen Demeyer

Jeroen Demeyer  added the comment:

Superseded by https://www.python.org/dev/peps/pep-0575/

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



[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-04-04 Thread INADA Naoki

INADA Naoki  added the comment:

Any other known issue?  May I close this issue?

--

___
Python tracker 

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



[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-04-04 Thread INADA Naoki

Change by INADA Naoki :


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



[issue33195] PyArg_Parse* should deprecate 'u' and 'z' family.

2018-04-04 Thread INADA Naoki

Change by INADA Naoki :


--
resolution:  -> fixed

___
Python tracker 

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



[issue31814] subprocess_fork_exec more stable with vfork

2018-04-04 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith
resolution:  -> rejected
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



[issue31814] subprocess_fork_exec more stable with vfork

2018-04-04 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

A raw os.posix_spawn() API has been added to 3.7.

vfork() would likely all sorts of other problems.  It is extremely complicated 
and implementations have bugs.  CERT says never to use it.
  https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152373

When forking or threading is involved, you are already always at the mercy of 
all other code running in your process.  This is not new.

That some C/C++ libraries misuse pthread_atfork() is not a surprise.  But the 
bug is theirs.

We should not try to paper over others C and system call mistakes.  Their code 
needs fixing.

--

___
Python tracker 

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



[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-04 Thread Ned Deily

Change by Ned Deily :


--
nosy: +brett.cannon, eric.snow, ncoghlan

___
Python tracker 

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



[issue23403] Use pickle protocol 4 by default?

2018-04-04 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c51d8c9ba6211d77db639487501f89aa9b4bcbb1 by Łukasz Langa in 
branch 'master':
bpo-23403: Bump pickle.DEFAULT_PROTOCOL to 4 (#6355)
https://github.com/python/cpython/commit/c51d8c9ba6211d77db639487501f89aa9b4bcbb1


--

___
Python tracker 

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



[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2018-04-04 Thread Ned Deily

Ned Deily  added the comment:

$ ./bin/python3
Python 3.8.0a0 (heads/master:55966f3a0d, Apr  2 2018, 18:16:13)
[Clang 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import crypt
>>> crypt.methods
[]

--
nosy: +ned.deily
versions: +Python 3.7, Python 3.8

___
Python tracker 

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