[issue13824] argparse.FileType opens a file and never closes it

2019-05-07 Thread Mitar


Mitar  added the comment:

>  So it's already possible to do what you describe, simply by doing:

I think there is an edge case here if a stdin/stdout is opened? It would get 
closed at exist from the context, no?

So I suggest that a slight extension of what open otherwise returns is returned 
which make sure context manager applies only to non-stdin/stdout handles.

--

___
Python tracker 

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



[issue36807] IDLE doesn't call os.fsync()

2019-05-07 Thread Dan Halbert


Dan Halbert  added the comment:

>Dan, slightly OT, but I am curious whether one can access USB ports (in a 
>system-dependent manner) directly from python code via os.system and ctypes?

Do you mean from CircuitPython? The USB impplementation provides HID keyboard, 
mouse, and gamepad devices, CDC (serial), MIDI, and MSC (CIRCUITPY). We don't 
provide ctypes (though MicroPython does), but there are native modules that 
provide access to these devices. We will are planning to add user-defined USB 
descriptors.

Also, we provide some enhancements in a CircuitPython-specific module to peek 
for input on CDC, so you can know when to call `input()`, without using the 
usual OS-dependent Python tricks for this.

Right now REPL input/output is mixed with user input, as you mention, but we're 
considering adding a second serial CDC port so you'll be able to have a second 
serial channel and avoid colliding with the REPL.

I'd be happy to discuss this kind of stuff with you further, by email or 
whatever other mechanism you have in mind, like some appropriate python mailing 
list or our own chat servers, etc.

--

___
Python tracker 

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



[issue36807] IDLE doesn't call os.fsync()

2019-05-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I watched the talk by Nina Zakharenko at 
https://www.youtube.com/watch?v=35mXD40SvXM.  Since I love being able to save, 
compile, and run a file with one keystroke, I appreciate people wanting to do 
the equivalent with CircuitExpress and Adafruit.  In IDLE, print() output would 
appear in IDLE's Shell unless sys.stdout were replaced.

Dan's note suggests that flush/fsynch would be more generally useful than for 
the board.  I am inclined to add try: except: around the calls, and perhaps 
display a message "File was not saved" + traceback.

Dan, slightly OT, but I am curious whether one can access USB ports (in a 
system-dependent manner) directly from python code via os.system and ctypes?

--

___
Python tracker 

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

___
Python tracker 

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-07 Thread Chih-Hsuan Yen


Change by Chih-Hsuan Yen :


--
nosy: +yan12125

___
Python tracker 

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



[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Jayesh


Change by Jayesh :


--
resolution:  -> third party
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



[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. schedule and mysql-connector are not part of standard 
library distributed with CPython. This tracker deals with issues in CPython. I 
would propose closing it as third party unless you can reproduce the segfault 
without third party code.

--
nosy: +xtreak

___
Python tracker 

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



[issue36847] Segmentation fault (core dumped) Found when we import "schedule" and "mysql.connector" togather.

2019-05-07 Thread Jayesh


New submission from Jayesh :

When we import following two library, then coredump found. 

import sys
#!/usr/bin/python

import schedule
import mysql.connector


Python 2.7.12
Ubuntu 16.04 x64

PackageVersion
-- ---
adium-theme-ubuntu 0.3.4
configparser   3.7.4
mysql-connector-python 8.0.16
MySQL-python   1.2.5
pip19.1.1
protobuf   3.7.1
py-mysql   1.0
schedule   0.6.0
selenium   3.141.0
setuptools 20.7.0
six1.12.0
unity-lens-photos  1.0
urllib31.25.2
wheel  0.29.0

--
components: Library (Lib)
files: poc.py
messages: 341848
nosy: jay.net.in
priority: normal
severity: normal
status: open
title: Segmentation fault (core dumped) Found when we import "schedule" and 
"mysql.connector" togather.
versions: Python 2.7
Added file: https://bugs.python.org/file48312/poc.py

___
Python tracker 

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



[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2019-05-07 Thread yjq


yjq  added the comment:

updated: I tried the test.py and it didn't show this error. So I think what I 
got is not the same problem as issue33350 although it shows the same traceback 
message.

--

___
Python tracker 

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



[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2019-05-07 Thread Windson Yang

Windson Yang  added the comment:

Hello, @Rémi, are you still working on this issue?

--
nosy: +Windson Yang

___
Python tracker 

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



[issue36846] range_iterator does not use __index__

2019-05-07 Thread Dan Snider


New submission from Dan Snider :

I wouldn't even know where to begin to try and find a palatable solution for 
this that wouldn't be summarily dismissed. 

Perhaps it isn't unreasonable to suggest PyNumber_Index shouldn't use the less 
stringent PyLong_Check as the entry to the fast path. That is what happens 
right now and it can prevent the __index__ method defined for an int subtype 
being called in certain situation such as this one. 

Here's a silly but valid demonstration of what happens when there is more than 
1 way to skin a... index. Apologies if it is unreadable but I wanted it to be a 
'single' repl statement and cmd was being uncooperative without it being 
squished like this.


if not not not not not not True:  
class Duper(super):
def __call__(self, attr, *args):
func = super.__getattribute__(self, attr)
this = super.__self__.__get__(self)
print(f'{this!r}.{func.__name__}(%s)'%', '.join(map(repr, args)))
return super.__self_class__.__get__(self)(func(*args))
@classmethod
class unbound(classmethod):
def __set_name__(self, owner, name):
setattr(owner, name, self.__func__(owner))
class Hex(int):
__slots__ = ()
__call__ = __self__ = Duper.unbound()
def __neg__(self): return self('__neg__')
def __abs__(self): return self('__abs__')
def __add__(a, b): return a('__add__', b)
def __sub__(a, b): return a('__sub__', b)
def __mul__(a, b): return a('__mul__', b)
def __radd__(a, b): return a('__radd__', b)
def __rsub__(a, b): return a('__rsub__', b)
def __rmul__(a, b): return a('__rmul__', b)
def __floordiv__(a, b): return a('__floordiv__', b)
def __rfloordiv__(a, b): return a('__rfloordiv__', b)   
 
def __repr__(self): return f'({self.__self__.__pos__():#02x})'
a, b, c, i = (Hex(i) for i in (0, 10, 2, 2))
print(f'creating range({a}, {b}, {c})...') 
r = range(a, b, c)
print('', '-'*78)
print(f'accessing the element at r[{i!r}]...')
v = r[i]
print('', '-'*78)
print('iterating over the range...')
for i in r:
pass
print('are we there yet?...\n')

--
messages: 341845
nosy: bup
priority: normal
severity: normal
status: open
title: range_iterator does not use __index__
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



[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-07 Thread Ryan Govostes

Ryan Govostes  added the comment:

Just don’t run the last line which is just an echoing of the output of
parser.parse_args() repeated. The Namespace type would need to be imported
if you really wanted to but there’s no point.

On Tuesday, May 7, 2019, Michael Blahay  wrote:

>
> Michael Blahay  added the comment:
>
> Ryan, what are the exact steps to reproduce the problem? This is what I
> get when I run the code you included:
>
> >>> import argparse
> >>> parser = argparse.ArgumentParser()
> >>> parser.add_argument('things', nargs=argparse.REMAINDER,
> default=['nothing'])
> _StoreAction(option_strings=[], dest='things', nargs='...', const=None,
> default=['nothing'], type=None, choices=None, help=None, metavar=None)
> >>> parser.parse_args([])
> Namespace(things=[])
> >>> Namespace(things=[])
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'Namespace' is not defined
>
> --
> nosy: +mblahay
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Updated cert+key committed to pythontestdotnet.  reassigning to EWDurbin to see 
that they're deployed.

https://github.com/python/pythontestdotnet/commit/2d121419796dad6d4285bf5aefd464aff0f47a91

--
assignee: gregory.p.smith -> EWDurbin
resolution:  -> remind
stage: patch review -> commit review

___
Python tracker 

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



[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile


Anthony Sottile  added the comment:

seems intentional => closing

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



[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread STINNER Victor


STINNER Victor  added the comment:

Depending on your libc implementation and your libc version, you may get more 
or less info about what gone wrong.

The initial issue was not a bug but a mistake in the file mode. I close the 
issue.

--
nosy: +vstinner
resolution:  -> not a bug
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



[issue36812] posix_spawnp returns error when used with file_actions

2019-05-07 Thread Toshio Kuratomi


Toshio Kuratomi  added the comment:

Ah okay, I'll see what information posix_spawnp() (the C function) returns on 
error for that case.

--

___
Python tracker 

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



[issue36845] ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will accept out of valid range prefixlen

2019-05-07 Thread Nicolai Moore


New submission from Nicolai Moore :

When using the tuple-form of constructing IPv4Network and IPv6Network will 
accept prefixlen outside of the normal allowed ranges.

Example:
>>> import ipaddress
>>> ipaddress.IPv4Network(('172.21.1.0', 400))
IPv4Network('172.21.1.0/400')

If given a negative number, it will error but not with a particularly useful 
error:
>>> x = ipaddress.IPv4Network(('172.21.1.0', -1))
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib64/python3.7/ipaddress.py", line 1532, in __init__
self.netmask, self._prefixlen = self._make_netmask(mask)
  File "/usr/lib64/python3.7/ipaddress.py", line 1112, in _make_netmask
netmask = IPv4Address(cls._ip_int_from_prefix(prefixlen))
  File "/usr/lib64/python3.7/ipaddress.py", line 444, in _ip_int_from_prefix
return cls._ALL_ONES ^ (cls._ALL_ONES >> prefixlen)
ValueError: negative shift count

Looking at the code, I think all that is needed is a range check within the 
respective _make_netmask methods in _BaseV4 and _BaseV6 classes

--
components: Library (Lib)
messages: 341839
nosy: niconorsk
priority: normal
severity: normal
status: open
title: ipaddres.IPv4Network and ipaddress.IPv6Network tuple construction will 
accept out of valid range prefixlen
type: behavior
versions: Python 3.5, Python 3.6, 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



[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-05-07 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Julien for taking care of the documentation :-) It is good to have
you aboard.

--

___
Python tracker 

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



[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile


Anthony Sottile  added the comment:

+vstinner

Hmmm, actually the relevant commit appears to be 
6c44fde3e03079e0c69f823dafbe04af50b5bd0d and intentional

(I ran a git bisect to find this!)

https://github.com/python/cpython/pull/12931

Does PEP 3149 require an update with this change, it still mentions 
--with-pymalloc and the `m` abi flag: https://www.python.org/dev/peps/pep-3149/

--
nosy: +vstinner

___
Python tracker 

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



[issue36707] The "m" ABI flag of SOABI for pymalloc is no longer needed

2019-05-07 Thread Miro Hrončok

Miro Hrončok  added the comment:

> But the impact of the change should probably also be discussed with at least 
> some of the large distributors.

Adapting the Fedora package. Will try to mass rebuild our packages to see what 
breaks.

--
nosy: +hroncok

___
Python tracker 

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



[issue36840] Add stream.abort() async method

2019-05-07 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

The reason is: until connection_lost() is called the transport is in the active 
state. Destruction of closing-but-not-closed-yet trasport raises a 
ResourceWarning.


Plain TCP socket calls connection_lost() on the next loop iteration after  
.abort() call.
SSL transport seems to do the same but in general it can require a few extra 
loop iterations.

Better to make `stream.abort()` async function to avoid problems in the future.
Otherwise, you always have to write

stream.abort()
await stream.wait_closed()

which I consider a bad API

--

___
Python tracker 

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13097

___
Python tracker 

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



[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 93aa57ac6594d1cc30d147720fc8a7a4e1ca2d3e by Miss Islington (bot) 
in branch '3.7':
bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport 
(GH-13098)
https://github.com/python/cpython/commit/93aa57ac6594d1cc30d147720fc8a7a4e1ca2d3e


--

___
Python tracker 

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset b1c3167c232c36ed3543ca351ff10c613639b5f5 by Mark Shannon (Michael 
Blahay) in branch 'master':
bpo-27639: Correct return type for UserList slicing operation (#13169)
https://github.com/python/cpython/commit/b1c3167c232c36ed3543ca351ff10c613639b5f5


--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue36015] streamhandler cannot represent streams with an integer as name

2019-05-07 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset ca87eebb22d202c33f3317cbf85059cadc64fa9f by Vinay Sajip (Riccardo 
Magliocchetti) in branch 'master':
bpo-36015: Handle StreamHandler representaton of stream with an integer name 
(GH-11908)
https://github.com/python/cpython/commit/ca87eebb22d202c33f3317cbf85059cadc64fa9f


--

___
Python tracker 

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



[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach


Change by Lisa Roach :


--
pull_requests:  -13094

___
Python tracker 

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach


Change by Lisa Roach :


--
pull_requests: +13096

___
Python tracker 

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



[issue33948] doc truncated lines in PDF

2019-05-07 Thread Julien Palard


Julien Palard  added the comment:

We recentrly upgraded our PDF build toolchain and I don't see it happen again.

Don't hesitate to reopen if you find another occurence of it.

Thanks for reporting!

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



[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland


Change by Dino Viehland :


--
nosy: +eric.snow

___
Python tracker 

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread STINNER Victor


STINNER Victor  added the comment:

Try to compress config.log to attach it. Or at least attach the output of 
"./configure" as a file.

I'm looking for HAVE_GETRANDOM, HAVE_GETRANDOM_SYSCALL, HAVE_GETENTROPY defines 
that you can find in pyconfig.h.

About /dev/urandom: does this device exist? Is your user allowed to read from 
it? For example, run "dd if=/dev/urandom of=random bs=1 count=1" command: does 
it fail?

--
nosy: +vstinner

___
Python tracker 

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



[issue32393] nav menu jitter in old documentation

2019-05-07 Thread Julien Palard


Julien Palard  added the comment:

I'm closing this as a duplicate of https://bugs.python.org/issue24712, for 
which I opened a pull request.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

___
Python tracker 

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



[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.

2019-05-07 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +13095
stage: needs patch -> patch review

___
Python tracker 

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Christian Heimes


Christian Heimes  added the comment:

Could you please use a debugger and step through _Py_HashRandomization_Init and 
pyurandom to see, where the initialization of the RNG is failing?

--
nosy: +christian.heimes

___
Python tracker 

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



[issue35723] Add "time zone index" cache to datetime objects

2019-05-07 Thread Ivan Pozdeev


Ivan Pozdeev  added the comment:

> which unfortunately use `is` to determine whether two datetimes are in the 
> same zone or not

This sounds like a bug. Whether a tzinfo is a constant from a predefined set or 
something with a smart comparison semantic is none of datetime's business.

--
nosy: +Ivan.Pozdeev

___
Python tracker 

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Jason Madden


Change by Jason Madden :


--
nosy: +jmadden

___
Python tracker 

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne


Robert Boehne  added the comment:

robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ gmake
xlc_r -c   -DNDEBUG -O -q64 -qlanglvl=extc99 -IObjects -IInclude -IPython 
-I. -I../../Python-3.7.3/Include 
-I/raid/checkouts-raid/robb/Python-2.7.15/Modules/zlib   -DPy_BUILD_CORE -o 
Modules/_math.o ../../Python-3.7.3/Modules/_math.c
LIBPATH=/raid/checkouts-raid/robb/nepal/build-py37 CC='xlc_r' 
LDSHARED='Modules/ld_so_aix xlc_r -bI:Modules/python.exp 
-L/raid/checkouts-raid/robb/zlib-dl/Release/rs6000aix_64/lib  
-Wl,-blibpath:/opt/IBM/xlmass/8.1.3/lib/aix61:/opt/IBM/xlc/13.1.3/lib:/usr/lib:/lib:/opt/Python-3.7/lib
 -q64   ' OPT='-DNDEBUG -O' _TCLTK_INCLUDES='' _TCLTK_LIBS=''   
./python -E ../../Python-3.7.3/setup.py  build
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to 
initialize Python

Makefile:626: recipe for target 'sharedmods' failed
gmake: *** [sharedmods] Error 1

--

___
Python tracker 

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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 3918ad6b45da31e05265de5a455102276717c659 by Gregory P. Smith in 
branch 'master':
bpo-36838: Suggest 'make venv' when missing Doc/ tools. (GH-13173)
https://github.com/python/cpython/commit/3918ad6b45da31e05265de5a455102276717c659


--

___
Python tracker 

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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-05-07 Thread Lisa Roach


Change by Lisa Roach :


--
keywords: +patch
pull_requests: +13094
stage: test needed -> patch review

___
Python tracker 

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



[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile


New submission from Anthony Sottile :

This appears to be a regression between 3.8a3 and 3.8a4 -- though it may be 
intentional and I'm missing something?

I noticed this while packaging 3.8 for deadsnakes 
https://github.com/deadsnakes/python3.8

I've created a minimal reproduction:


$ git checkout v3.8.0a4 && git clean -fxfd && ./configure --enable-shared && 
make -j4 && ls *.so build/lib*/*sysconfigdata*

...

build/lib.linux-x86_64-3.8/_sysconfigdata__linux_x86_64-linux-gnu.py
libpython3.8.so
libpython3.so


$ git checkout v3.8.0a3 && git clean -fxfd && ./configure --enable-shared && 
make -j4 && ls *.so build/lib*/*sysconfigdata*

...


build/lib.linux-x86_64-3.8/_sysconfigdata_m_linux_x86_64-linux-gnu.py
libpython3.8m.so
libpython3.so


Notice how the abiflag in sysconfigdata in 3.8a3 is 'm' but in 3.8a4 it is ''

My WAG at the relevant patch is 8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b

--
components: Build
messages: 341827
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: abiflag `m` is no longer showing when compiled with --enable-shared
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



[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2019-05-07 Thread Michael Blahay


Michael Blahay  added the comment:

Ryan, what are the exact steps to reproduce the problem? This is what I get 
when I run the code you included:

>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('things', nargs=argparse.REMAINDER, default=['nothing'])
_StoreAction(option_strings=[], dest='things', nargs='...', const=None, 
default=['nothing'], type=None, choices=None, help=None, metavar=None)
>>> parser.parse_args([])
Namespace(things=[])
>>> Namespace(things=[])
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'Namespace' is not defined

--
nosy: +mblahay

___
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-07 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Matthias, please use GH-13148 for pointing on github pull requests.
# is for links to this tracker issues.

--
stage: patch review -> 

___
Python tracker 

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne


New submission from Robert Boehne :

build fails with:
./python -E ../../Python-3.7.3/setup.py  build
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to 
initialize Python

--
components: Build
messages: 341821
nosy: Robert Boehne
priority: normal
severity: normal
status: open
title: AIX build fails with failure to get random numbers
type: compile error
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



[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland


Change by Dino Viehland :


--
keywords: +patch
pull_requests: +13093
stage: needs patch -> patch review

___
Python tracker 

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



[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13092

___
Python tracker 

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



[issue36801] Wait for connection_lost in StreamWriter.drain

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3 by Miss Islington (bot) 
(Andrew Svetlov) in branch 'master':
bpo-36801: Fix waiting in StreamWriter.drain for closing SSL transport 
(GH-13098)
https://github.com/python/cpython/commit/1cc0ee7d9f6a2817918fafd24c18d8bb093a85d3


--
nosy: +miss-islington

___
Python tracker 

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



[issue36842] Implement PEP 578

2019-05-07 Thread Steve Dower


New submission from Steve Dower :

Implement PEP 578

--
assignee: steve.dower
messages: 341819
nosy: christian.heimes, steve.dower
priority: normal
pull_requests: 13091
severity: normal
stage: patch review
status: open
title: Implement PEP 578
type: enhancement
versions: 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



[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2019-05-07 Thread Julien Palard

Julien Palard  added the comment:

Closing this issue, it has been fixed a year ago, thanks Jan-Philip for 
reporting, Stéphane for fixing, and everybody! \o/ \o/

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



[issue36841] Supporting customization of float encoding in JSON

2019-05-07 Thread SilentGhost


Change by SilentGhost :


--
nosy: +ezio.melotti, rhettinger
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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I noted this at the mentored sprints this year when I suggested my mentee "cd 
Doc ; make html" to show them how to build the docs, check that they build and 
see what they look like.

Once upon a time we used to auto-fetch and install sphinx (long ago?), this 
appears to have changed to make venv.  This PR at least tells people what to 
do.  Having the build file auto create the venv is... not quite desired.  The 
way the Makefile is setup, it'll all still work if people have a late enough 
blurb and sphinx-build on their PATH.  if we auto install the venv, those 
installed tools will override _both_ of those so if someone _wanted_ the 
version on their PATH for some reason it would override that (... i really 
don't recommend it but i'm not gonna break this for blurb or sphinx developers 
who may like this).

--

___
Python tracker 

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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 3b4b28efbde63502709bede7c5f9403ec6f37428 by Gregory P. Smith in 
branch '3.7':
[3.7] bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) (GH-13170)
https://github.com/python/cpython/commit/3b4b28efbde63502709bede7c5f9403ec6f37428


--

___
Python tracker 

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



[issue36841] Supporting customization of float encoding in JSON

2019-05-07 Thread Mitar


New submission from Mitar :

Currently, there is only one argument which allows customization how float 
numbers are encoded in JSON: allow_nan. But this does not allow one to hook 
into the encoding of floating points really. The JSONEncoder is not called for 
float numbers.

The motivation here is that we would like to encode NaN and Infinity values 
differently, instead of non-standard approach and instead of raising an 
exception.

The "load" counterpart has "parse_float" which one can use to hook into parsing 
floats. I would suggest something similar, maybe "encode_float" which if 
provided would be used instead of the default.

--
components: Library (Lib)
messages: 341817
nosy: mitar
priority: normal
severity: normal
status: open
title: Supporting customization of float encoding in JSON

___
Python tracker 

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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

The regression should be fixed.  It'd be helpful if owners of applications that 
were running into this could test their applications with this specific change.

--
resolution:  -> fixed
stage: patch review -> commit review
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



[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-07 Thread Zackery Spytz


Change by Zackery Spytz :


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

___
Python tracker 

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



[issue32275] SSL socket methods don't retry on EINTR?

2019-05-07 Thread Julien Palard


Change by Julien Palard :


--
nosy:  -mdk

___
Python tracker 

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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue36840] Add stream.abort() async method

2019-05-07 Thread Yury Selivanov


Yury Selivanov  added the comment:

If we're just calling socket.close(), then what's the point of waiting for 
connection_lost?  (I remember us discussing this, but I don't quite remember 
the details).

Usually .abort() is a synchronous method, which kind of signals that "i want to 
close this immediately and I don't care what happens to it".

--

___
Python tracker 

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



[issue36830] Typo in collections.deque

2019-05-07 Thread Julien Palard


Julien Palard  added the comment:

I reopened the issue on the ja tracker: 
https://github.com/python/python-docs-ja/issues/20 and I'm closing it here.

Thanks a lot keroru for reporting!

--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue36824] Refactor str tests to reflect that str and unicode are merged in Python 3

2019-05-07 Thread Daniel Fortunov


Change by Daniel Fortunov :


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

___
Python tracker 

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



[issue36840] Add stream.abort() async method

2019-05-07 Thread Andrew Svetlov


New submission from Andrew Svetlov :

It should call underlying `transport.abort()`, then wait for closing event 
(`await self.wait_closed()`)

--
components: asyncio
messages: 341811
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Add stream.abort() async method
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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
assignee:  -> gregory.p.smith

___
Python tracker 

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



[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2019-05-07 Thread Julien Palard


Julien Palard  added the comment:

The download links are now working, EWDurbin upgraded the servers and it solved 
a few issues, also now when a build fail we do no longer erase the old PDF, so 
the links should always work.

Thanks for reporting and don't hesistate to open a new issue if problem happen 
again (but maybe on the https://github.com/python/docsbuild-scripts/ issue 
tracker).

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



[issue36824] Refactor str tests to reflect that str and unicode are merged in Python 3

2019-05-07 Thread Daniel Fortunov


Daniel Fortunov  added the comment:

PS opened here: https://github.com/python/cpython/pull/13172
I've tried to break down the changes into individual steps, with justification 
in commit messages. Happy to collapse these down into fewer commits before 
merge if preferred.

I haven't done the "Promote tests from the current `UnicodeTest` class to 
`CommonTest`" portion yet, but I'm running out of sprint time so I wanted to 
submit what I have.

I believe these changes are suitable for merge to master, but keen to hear 
feedback :-)

--

___
Python tracker 

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



[issue36839] Support the buffer protocol in code objects

2019-05-07 Thread Dino Viehland


New submission from Dino Viehland :

Many Python deployments involve large code based that are used in scenarios 
where processes are fork-and-exec'd.  When running in these environments code 
objects can end up occupying a lot of memory.  Because the code objects are on 
random pages and are ref counted the ref counts can cause all of the code to 
not be shared across processes.

If code objects supported the buffer protocol it would be possible to load code 
from a memory mapped file which is shared across all of the processes.

--
assignee: dino.viehland
components: Interpreter Core
messages: 341808
nosy: dino.viehland
priority: normal
severity: normal
stage: needs patch
status: open
title: Support the buffer protocol in code objects
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



[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 299f69c24c5f0fcfea0b7385b0da661cda78df19 by Miss Islington (bot) 
in branch '3.7':
bpo-35125: remove inner callback on outer cancellation in asyncio shield 
(GH-10340)
https://github.com/python/cpython/commit/299f69c24c5f0fcfea0b7385b0da661cda78df19


--

___
Python tracker 

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



[issue36838] running 'make html' from the Doc tree emits an unwelcoming error message

2019-05-07 Thread Gregory P. Smith


New submission from Gregory P. Smith :

Running make in the Doc directory does not install all necessary tooling on its 
own.  This is a hurdle to getting beginners up to speed on making documentation 
changes (often their very first changes in the CPython project).

```
:~/oss/cpython/throwaway:master$ make -C Doc html
make: Entering directory '/.../oss/cpython/throwaway/Doc'
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
/bin/sh: line 5: blurb: command not found
Makefile:44: recipe for target 'build' failed
make: *** [build] Error 127
make: Leaving directory '/.../oss/cpython/throwaway/Doc'
```

Doc builders need to run `make -C Doc venv` first.  Just updating the logic to 
print that as an error message when the venv or any of the necessary tools 
within it are missing would be more welcoming.

--
components: Build
messages: 341806
nosy: gregory.p.smith
priority: normal
severity: normal
status: open
title: running 'make html' from the Doc tree emits an unwelcoming error message
type: compile error
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



[issue36813] QueueListener not calling task_done upon termination

2019-05-07 Thread Bar Harel


Bar Harel  added the comment:

Alright. Regression tests added, all tests pass. Patch ready for upload!

--
nosy: +vinay.sajip

___
Python tracker 

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



[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan


Change by Brian Quinlan :


--
pull_requests: +13087
stage:  -> patch review

___
Python tracker 

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



[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan


Brian Quinlan  added the comment:

I think that ProcessPoolExecutor might have a similar race condition - but not 
in exactly this code path since it would only be with the queue management 
thread (which is only started once).

--

___
Python tracker 

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



[issue36823] shutil.copytree copies directories and files but fails with that same directory with '[Errno 1] Operation not permitted')

2019-05-07 Thread Ryan Avery


Ryan Avery  added the comment:

I'm actually not sure what the expected behavior would be, because I can
use the os module to copy, rename, and remove files and folders in this
mounted File Share. Before encountering this error, I would expect shutil
to do the same. But since this error comes up it would make more sense for
shutil to not copy anything.

Here are the permissions for the mounted directory, which is "."
drwxrwxrwx 2 root root0 May  3 17:44 .
drwxr-xr-x 4 root root 4096 May  3 17:57 ..
drwxrwxrwx 2 root root0 Apr  8 22:07 external
drwxrwxrwx 2 root root0 May  7 00:16 landsat-1024-cp
drwxrwxrwx 2 root root0 Apr  8 23:02 regional_annotation_projects
drwxrwxrwx 2 root root0 May  3 21:08 results
drwxrwxrwx 2 root root0 May  3 03:53 western_nebraska_landsat_scenes

On Tue, May 7, 2019 at 2:01 AM Windson Yang  wrote:

>
> Windson Yang  added the comment:
>
> Just to make sure, the expected behavior would be the items should not be
> copied because of the permission and the error messages above, right?
>
> --
> nosy: +Windson Yang
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
pull_requests: +13086

___
Python tracker 

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



[issue35924] curses segfault resizing window

2019-05-07 Thread Toshio Kuratomi


Toshio Kuratomi  added the comment:

I'm still debugging this but it may be an off-by-one error in ncurses, 
wresize.c.  I've found that if I modify the following section in ncurses, our 
problem goes away:

/*
   * Dispose of unwanted memory.
   */
  if (!(win->_flags & _SUBWIN)) { 
  if (ToCols == size_x) { 
  for (row = ToLines + 1; row <= size_y; row++) { 
   free(win->_line[row].text);
  } 
  } else { 
  for (row = 0; row <= size_y; row++) { 
   free(win->_line[row].text);
  } 
  }
  } 
  
  free(win->_line);
  win->_line = new_lines;

Replacing:
  for (row = ToLines + 1; row <= size_y; row++) { 
with:
  for (row = ToLines + 2; row <= size_y; row++) { 

fixes this error.  ToLines is a parameter passed in to wresize.  wresize will 
reuse ToLines number of rows from the old structure in the new structure.  Due 
to that, I think that the chances are good that it is ncurses which is at fault 
here.  I will try to rewrite the test case into a C program and then submit a 
bug report to ncurses upstream.  I'm not sure that there's a way we can work 
around this until that's fixed.

--
nosy: +a.badger

___
Python tracker 

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +13085

___
Python tracker 

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



[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

The issue does not seem to be on 3.7 and master branch, so I'm closing the bug 
as well as the pull request.

--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.5, Python 3.6 -Python 3.8

___
Python tracker 

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



[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi,

I have discussed with @CuriousLearner and now he is aware that 3.5 and 3.6 are 
in security mode and not in bugfix mode.

I remove 3.5 from the list, he is checking if there is an issue on 3.7 and 
master.

--
nosy: +matrixise
versions: +Python 3.8 -Python 3.5

___
Python tracker 

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



[issue31200] address sanitizer build fails

2019-05-07 Thread Julien Palard


Julien Palard  added the comment:

Tried to reproduce it again, on master, but this does no longer segfault nor 
report leakages (as long as I use __INSURE__ using make -j18 profile-opt 
CFLAGS='-D__INSURE__') nor fail at build time.

There's still a few memory warnings while running tests (subinterpreters and 
things).

So I'm closing this (no build issue), thanks for reporting.

--
resolution:  -> works for me
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



[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset b35acc5b3a0148c5fd4462968b310fb436726d5a by Miss Islington (bot) 
(Romain Picard) in branch 'master':
bpo-35125: remove inner callback on outer cancellation in asyncio shield 
(GH-10340)
https://github.com/python/cpython/commit/b35acc5b3a0148c5fd4462968b310fb436726d5a


--
nosy: +miss-islington

___
Python tracker 

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



[issue35125] asyncio shield: remove inner callback on outer cancellation

2019-05-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13084

___
Python tracker 

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



[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-05-07 Thread Brian McCutchon


Brian McCutchon  added the comment:

No, I do not have such an example, as most of my tests try to fake the 
executors.

--

___
Python tracker 

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



[issue35723] Add "time zone index" cache to datetime objects

2019-05-07 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +fdrake

___
Python tracker 

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2019-05-07 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

I've created PR13165 to address this bug. It's 99% test updates; the actual 
code changes to argparse.py are trivial and should be equally trivial to review.

The only functional change beyond Moritz's proposal is that I added support for 
having accepting '-' when the mode string uses 'a' or 'x' instead of 'w'; for 
sys.stdout, they're all effectively equivalent ('x' is trying to prevent 
stomping an existing file, which borrowing sys.stdout won't do, and sys.stdout 
is already more closely equivalent to mode 'a' in any event). No working code 
should break as a result of that change (passing 'a' or 'x' previously just 
caused FileType to exit immediately with a ValueError, which in turn caused 
parse_args to kill the program, which I'm assuming isn't considered a valuable 
"feature").

In addition to testing binary mode with argument '-' properly, I also added 
complete test cases for mode 'x' and 'xb' (for all arguments, both file names 
and '-') since we had no such tests, and ensuring exclusive creation mode 
behaves correctly is fairly important.

--
keywords: +needs review

___
Python tracker 

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



[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana


Change by Sanyam Khurana :


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

___
Python tracker 

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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


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



[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-05-07 Thread Brian Quinlan

Brian Quinlan  added the comment:

Great report Steven!

I was able to reproduce this with the attached patch (just adds some sleeps and 
prints) and this script:

from threading import current_thread
from concurrent.futures import ThreadPoolExecutor
from time import sleep

pool = ThreadPoolExecutor(100)

def f():
print("I'm running in: ", current_thread().name)

def g():
print("I'm running in: ", current_thread().name)
for _ in range(100):
pool.submit(f)
sleep(0.1)

pool.submit(g)
sleep(1.5)

The output for me was:

 Creating new thread:  ThreadPoolExecutor-0_0
I'm running in:  ThreadPoolExecutor-0_0
Setting _shutdown
 Killing 1 workers 
 Creating new thread:  ThreadPoolExecutor-0_1
I'm running in:  ThreadPoolExecutor-0_1

So another thread was created *after* shutdown.

It seems like the most obvious way to fix this is by adding a lock for the 
global _shutdown variable.

--
keywords: +patch
Added file: https://bugs.python.org/file48311/find-race.diff

___
Python tracker 

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



[issue36836] Test Suite not working on 3.4, 3.5 on MacOS Mojave

2019-05-07 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

I had to clean-up my build a bit, and it seems like it's not really happening 
on 3.6, but it is still an issue with 3.4, 3.5, etc.

I've added a PR for 3.5 to resolve the issue.

--
assignee:  -> CuriousLearner
title: Test Suite not working on 3.4, 3.5, 3.6, 3.7 on MacOS Mojave -> Test 
Suite not working on 3.4, 3.5 on MacOS Mojave
versions:  -Python 3.6

___
Python tracker 

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2019-05-07 Thread Josh Rosenberg


Change by Josh Rosenberg :


--
pull_requests: +13082

___
Python tracker 

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



[issue27497] csv module: Add return value to DictWriter.writeheader

2019-05-07 Thread Skip Montanaro


Skip Montanaro  added the comment:

I think this is ready to go. I added a comment to PR12306. As I am no longer a 
committer, I'm not sure what the next step is.

--

___
Python tracker 

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



[issue27432] Support unittest assertion truncation of repr in error messages

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
title: Unittest truncating of error message not works -> Support unittest 
assertion truncation of repr in error messages

___
Python tracker 

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



[issue27432] Unittest truncating of error message not works

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

safe_repr() as used internally by unittest wasn't intended to truncate by 
default as part of its "safety".  The "safe" part is that it catches Exception 
and provides an alternate repr if the __repr__ raised.

unittest.util.safe_repr() is a public API, just not documented.  Lets take this 
issue to enhance it a bit and document it.  Additionally as r.david.murray 
suggested, a way for unittest.TestCase to configure itself to enable safe_repr 
truncation by default would be nice.

I'm currently thinking a feature similar to the class variable maxDiff. 
maxReprLength perhaps.

--

___
Python tracker 

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



[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 19ca5b500af4b66e1082a03d8fbf448e1f56af30 by Miss Islington (bot) 
in branch '3.7':
bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423)
https://github.com/python/cpython/commit/19ca5b500af4b66e1082a03d8fbf448e1f56af30


--

___
Python tracker 

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



[issue27432] Unittest truncating of error message not works

2019-05-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
assignee: Mariatta -> gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker 

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



[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-07 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

Thanks again!  I will have some more tests for you to try tomorrow as I am out 
of time for today.

I'm currently of the belief that there is something Python is going to have to 
do to work around an issue within the CRT, but more testing will prove that 
theory.

--

___
Python tracker 

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



[issue11001] Various obvious errors in cookies documentation

2019-05-07 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Thanks Julia!

--
nosy: +gregory.p.smith
resolution:  -> fixed
stage: patch review -> commit review
status: open -> closed

___
Python tracker 

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



[issue11001] Various obvious errors in cookies documentation

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 1fe722cf14db0f786d6df1ff4392f44d37a9f867 by Miss Islington (bot) 
in branch '3.7':
[3.7] bpo-11001: updated cookie docs (GH-13086) (GH-13161)
https://github.com/python/cpython/commit/1fe722cf14db0f786d6df1ff4392f44d37a9f867


--

___
Python tracker 

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



[issue36827] Overriding __new__ method with itself changes behaviour of the class

2019-05-07 Thread Alexey Muranov


Alexey Muranov  added the comment:

Here is an example of code where i got surprised by the current behaviour and 
had to apply some (ugly) workaround:

https://gist.github.com/alexeymuranov/04e2807eb5679ac7e36da4454a58fa7e

--

___
Python tracker 

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



[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington


miss-islington  added the comment:


New changeset 63deaa5b70108ef441c57728322da6b4321db4fc by Miss Islington (bot) 
(Vincent Michel) in branch 'master':
bpo-31922: Do not connect UDP sockets when broadcast is allowed (GH-423)
https://github.com/python/cpython/commit/63deaa5b70108ef441c57728322da6b4321db4fc


--
nosy: +miss-islington

___
Python tracker 

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



[issue36828] Cannot install et-xmlfile

2019-05-07 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I am not sure. Searching on PyPI gives me https://pypi.org/project/et_xmlfile/ 
and the homepage links to bitbucket repo that seems to be active. I am closing 
this issue as third party.

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type: crash -> behavior

___
Python tracker 

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



[issue31922] Can't receive replies from multicast UDP with asyncio

2019-05-07 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



  1   2   3   >