[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell


Thomas Caswell  added the comment:

This change also causes failures in the cython test suite (see attached).

--
Added file: https://bugs.python.org/file48422/cython_test_log.txt

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I reran the code in msg312188.  Ints as before, string deletion +- linear up to 
100 million, much better than before.

millions   old stringsnew strings
of items  create delete  create delete
   4   1.55.36 1.7.38
   8   3.18.76 3.6.78
  16   6.48   1.80 7.3   1.71
  32  13.65.5614.8   3.8
  64  28 19   30 8.4
 100  56 80   5014.3

--

___
Python tracker 

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



[issue28708] Low FD_SETSIZE limit on Windows

2019-06-14 Thread Andrei Zene


Andrei Zene  added the comment:

That's actually a great explanation Nathaniel. Thanks for putting that all 
together.

--

___
Python tracker 

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



[issue37289] regression in cython due to peephole optomization

2019-06-14 Thread Thomas Caswell


New submission from Thomas Caswell :

The fix for 
https://bugs.python.org/issue37213 in 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5 
(https://github.com/python/cpython/pull/13969) seems to break building numpy 
(master) with cython (master) due to a pickle failure.

The traceback (which is mostly in the cython source) is in an attachment.

I bisected it back to this commit and tested that reverting this commit fixes 
the numpy build.

--
files: np_fail.txt
messages: 345655
nosy: pablogsal, scoder, serhiy.storchaka, tcaswell, vstinner
priority: normal
severity: normal
status: open
title: regression in cython due to peephole optomization
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48421/np_fail.txt

___
Python tracker 

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



[issue26543] [EASY] imaplib noop Debug: bytes vs Unicode bug in debug mode

2019-06-14 Thread Abhilash Raj


Change by Abhilash Raj :


--
nosy: +maxking

___
Python tracker 

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



[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2019-06-14 Thread Abhilash Raj


Change by Abhilash Raj :


--
nosy: +maxking

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters


Tim Peters  added the comment:

Raymond, please read my very recent comment one above yours.  A (overall) 
quadratic-time algorithm (O(A**2) where A is the number of arenas) in 
obmalloc.c is (to my eyes) probably the _primary_ cause of the sloth here.  
That's been fixed for 3.8, but I don't have enough RAM even to run Terry's test 
code to confirm it.

I can confirm that there's no quadratic-time behavior anymore deleting large 
sets of strings, but only until I run out of RAM.  Neither is the behavior 
linear, but it's much closer to linear than quadratic now.

If someone with more RAM can confirm this for larger sets, then fine by me if 
this is closed again.

--

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Can we close this now?  ISTM the issue has less to do with sets and more to do 
with memory allocation quirks and that on modern CPUs random memory accesses 
are slower than sequential memory accesses.  It is not a bug that sets are 
unordered collections that iterate over elements in a difference order than 
they were inserted.

--

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters


Change by Tim Peters :


--
stage: resolved -> commit review

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Tim Peters


Tim Peters  added the comment:

Looks likely that the _major_ cause of the quadratic-time delete behavior was 
due to that obmalloc used a linear-time method to keep its linked list of 
usable arenas sorted in order of number of free pools.  When a pool became 
unused, its arena's count of free pools increased by one, and then order was 
restored by moving the arena "to the right" in the linked list, one slot at a 
time.

When there were only a few hundred arenas, nobody noticed.  But programs with 
thousands of arenas could suffer very noticeable sloth, and programs with 
hundreds of thousands could appear to hang (could require days to complete 
deleting).

This was fixed in issue #37029, using a constant-time method to restore sorted 
order, scheduled for release in Python 3.8.

--
stage:  -> resolved
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



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

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset 3fde750cc4e4057076650a92946ec1d492464799 by Miss Islington (bot) 
in branch '3.8':
bpo-36707: Document "m" removal from sys.abiflags (GH-14090)
https://github.com/python/cpython/commit/3fde750cc4e4057076650a92946ec1d492464799


--
nosy: +miss-islington

___
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-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13953
pull_request: https://github.com/python/cpython/pull/14097

___
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-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7efc526e5cfb929a79c192ac2dcf7eb78d3a4401 by Victor Stinner in 
branch 'master':
bpo-36707: Document "m" removal from sys.abiflags (GH-14090)
https://github.com/python/cpython/commit/7efc526e5cfb929a79c192ac2dcf7eb78d3a4401


--

___
Python tracker 

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



[issue32846] Deletion of large sets of strings is extra slow

2019-06-14 Thread Inada Naoki


Change by Inada Naoki :


--
resolution: wont fix -> 
stage: resolved -> 
status: closed -> open
versions: +Python 3.9 -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



[issue31200] address sanitizer build fails

2019-06-14 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +13952
pull_request: https://github.com/python/cpython/pull/13168

___
Python tracker 

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



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-14 Thread Paul Monson


Change by Paul Monson :


--
keywords: +patch
pull_requests: +13951
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14096

___
Python tracker 

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



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-14 Thread Paul Monson


Paul Monson  added the comment:

Change title: Fix Windows build when --no-tkinter is specified
I noticed this because the Windows arm32 buildbot build was broken.

--
title: Windows arm32 buildbot build is broken -> Fix Windows build when 
--no-tkinter is specified

___
Python tracker 

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



[issue37288] Windows arm32 buildbot build is broken

2019-06-14 Thread Paul Monson


New submission from Paul Monson :

https://github.com/python/cpython/pull/14065 breaks building with --no-tkinter. 
Which breaks the Windows arm32 buildbot

`C:\Users\buildbot\buildarea\3.x.monson-win-arm32.nondebug\build\PCbuild\python.vcxproj(158,9):
 error MSB4184: The expression 
"[System.IO.File]::ReadAllText(C:\Users\buildbot\buildarea\3.x.monson-win-arm32.nondebug\build\externals\tcltk-8.6.9.0\arm32\tcllicense.terms)"
 cannot be evaluated. Could not find a part of the path 
'C:\Users\buildbot\buildarea\3.x.monson-win-arm32.nondebug\build\externals\tcltk-8.6.9.0\arm32\tcllicense.terms'.`

--
components: Build, Windows
messages: 345648
nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows arm32 buildbot build is broken
type: compile error
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



[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-14 Thread Brian Quinlan


Change by Brian Quinlan :


--
resolution:  -> duplicate
superseder:  -> picke cannot dump Exception subclasses with different super() 
args

___
Python tracker 

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



[issue37287] picke cannot dump Exception subclasses with different super() args

2019-06-14 Thread Brian Quinlan


Change by Brian Quinlan :


--
title: picke cannot dump exceptions subclasses with different super() args -> 
picke cannot dump Exception subclasses with different super() args

___
Python tracker 

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



[issue37287] picke cannot dump exceptions subclasses with different super() args

2019-06-14 Thread Brian Quinlan


New submission from Brian Quinlan :

$ ./python.exe nopickle.py
TypeError: __init__() missing 1 required positional argument: 'num'

The issue is that the arguments passed to Exception.__init__ (via `super()`) 
are collected into `args` and then serialized by pickle e.g.

>>> PickleBreaker(5).args
()
>>> PickleBreaker(5).__reduce_ex__(3)
(, (), {'num': 5})
>>> # The 1st index is the `args` tuple

Then, during load, the `args` tuple is used to initialize the Exception i.e. 
PickleBreaker(), which results in the `TypeError`

See https://github.com/python/cpython/blob/master/Modules/_pickle.c#L6769

--
components: Library (Lib)
files: nopickle.py
messages: 345647
nosy: bquinlan
priority: normal
severity: normal
status: open
title: picke cannot dump exceptions subclasses with different super() args
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48420/nopickle.py

___
Python tracker 

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



[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Inada Naoki

Inada Naoki  added the comment:

On Sat, Jun 15, 2019 at 2:43 AM Eryk Sun  wrote:
>
> Eryk Sun  added the comment:
>
> > # Power Shell 6 (use cp65001 by default)
> > PS C:¥> python3 -c "print('おはよう')" > ps.txt
>
> PowerShell standard I/O redirection is different from any shell I've ever 
> used. In this case, it runs Python with StandardOutput set to a handle for a 
> pipe instead of a handle for the file. It decodes Python's output using 
> whatever encoding is configured for input and re-encodes it with whatever 
> encoding is configured for output.

I'm sorry,  I mixed my assumption.  I checked `os.device_encoding()` in cmd,
but forgot to check it on Power Shell.  All I said about Power Shell was just
my assumption and it was wrong.  And thank you for clarifying.

I confirmed writing UTF-8 to pipe cause mojibake, because Power Shell decodes
it using cp932.

```
PS C:\Users\inada-n> python3 -Xutf8 -c "import os,sys;
print(os.device_encoding(1), sys.stdout.encoding, file=sys.stderr);
print('こんにちは')" >x
None utf-8
PS C:\Users\inada-n> type x
```

Hmm, how can I teach to Power Shell about python3 is using
UTF-8 for stdout?
It seems cmd.exe with chcp 65001 and PYTHONUTF8=1 is better
than PowerShell when I want to use UTF-8 on Windows.

Anyway, nothing is wrong about python.  I just didn't understand
PowerShell at all.

--

___
Python tracker 

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



[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Inada Naoki


Change by Inada Naoki :


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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

x86 Windows7 3.7:
https://buildbot.python.org/all/#/builders/111/builds/1123

test_start_tls_server_1 (test.test_asyncio.test_sslproto.SelectorStartTLSTests) 
... Exception in thread test-client:
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\functional.py",
 line 198, in run
self._prog(TestSocketWrapper(self._sock))
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\test_sslproto.py",
 line 565, in 
with self.tcp_client(lambda sock: client(sock, addr),
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\test_sslproto.py",
 line 510, in client
answer = sock.recv_all(len(ANSWER))
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\functional.py",
 line 138, in recv_all
data = self.recv(n - len(buf))
  File "D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\ssl.py", 
line 1045, in recv
return self.read(buflen)
  File "D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\ssl.py", 
line 920, in read
return self._sslobj.read(len)
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2488)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\threading.py", line 
926, in _bootstrap_inner
self.run()
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\functional.py",
 line 200, in run
self._test._abort_socket_test(ex)
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\test\test_asyncio\functional.py",
 line 122, in _abort_socket_test
self.fail(ex)
  File 
"D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\unittest\case.py", 
line 693, in fail
raise self.failureException(msg)
AssertionError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2488)

D:\cygwin\home\db3l\buildarea\3.7.bolen-windows7\build\lib\threading.py:960: 
ResourceWarning: unclosed 
  del exc_type, exc_value, exc_tb
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ERROR

--

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

Sadly, the fix is not perfect, the test failed on the very "x86 Windows7 3.x" 
buildbot:
https://buildbot.python.org/all/#/builders/58/builds/2627

ERROR: test_start_tls_server_1 
(test.test_asyncio.test_sslproto.SelectorStartTLSTests)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_asyncio\test_sslproto.py",
 line 578, in test_start_tls_server_1
self.loop.run_until_complete(run_main())
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\asyncio\base_events.py",
 line 606, in run_until_complete
raise RuntimeError('Event loop stopped before Future completed.')
RuntimeError: Event loop stopped before Future completed.

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue37155] test_asyncio: test_stdin_broken_pipe() failed on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

x86 Windows7 3.x:
https://buildbot.python.org/all/#/builders/58/builds/2627

FAIL: test_stdin_broken_pipe 
(test.test_asyncio.test_subprocess.SubprocessProactorTests)
--
Traceback (most recent call last):
  File 
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_asyncio\test_subprocess.py",
 line 243, in test_stdin_broken_pipe
self.assertRaises((BrokenPipeError, ConnectionResetError),
AssertionError: (, ) not 
raised by run_until_complete

--

___
Python tracker 

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



[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-14 Thread Brian Quinlan


Brian Quinlan  added the comment:

That's a super interesting bug! It looks like this issue is that your exception 
can't be round-tripped using pickle i.e.

>>> class PoolBreaker(Exception):
... def __init__(self, num):
... super().__init__()
... self.num = num
... 
>>> import pickle
>>> pickle.loads(pickle.dumps(PoolBreaker(5)))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: __init__() missing 1 required positional argument: 'num'

--
assignee:  -> bquinlan

___
Python tracker 

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



[issue23892] Introduce sys.implementation.opt_levels

2019-06-14 Thread Eric Snow


Eric Snow  added the comment:

There are (solvable) problems with my original recommendation:

1. sys.implementation is by definition not suitable for third-party import 
hooks to modify
  + it is set during the Python implementation during runtime init
  + it is effectively read-only after that
2. "opt_levels" is too specific to the CPython status quo
  + there are other ways to encode the optimizations of a bytecode file [1]
  + "optimizations" would probably be more correct
  + that opens a whole can of worms (e.g. what does sys.flags.optimize mean)

So we may want to think this over a bit before going any further.  I'm going to 
collect my thoughts on this and write more later. :)


[1] In PEP 488 it says:

It is expected that beyond Python's own two optimization levels,
third-party code will use a hash of optimization names to specify
the optimization level, e.g. hashlib.sha256(','.join(['no dead code',
'const folding'])).hexdigest().

--

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

> I have had to fix it much earlier :(

That's fine. If this bug was more annoying, I would have it fixed myself
earlier. But I had other more critical bugs to fix before that one. The
important part is that it is fixed now.

--

___
Python tracker 

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



[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-14 Thread Aaron Meurer


Aaron Meurer  added the comment:

I agree. Please someone else do that. I don't know what already has issues and 
I unfortunately don't have time right now to help out with any of this. 

I simply mentioned all these things as arguments why Python should not (yet) 
make these warnings errors, which is the point of this issue. 

Also, for the pyparsing example, you would have gotten lucky because it also 
contained \w, which is not a valid escape. If it didn't, you wouldn't be 
warned. So clearly this will help things, but it will also be good to have 
linting tools that, for example, warn about any escape sequences inside 
docstrings.

--

___
Python tracker 

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



[issue37271] Make multiple passes of the peephole optimizer until bytecode cannot be optimized further

2019-06-14 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

FWIW, when the peephole optimizer was originally accepted, it was partly on the 
condition that we kept it simple and fast.  Perhaps, the sentiment has changed, 
perhaps not.

--
nosy: +rhettinger

___
Python tracker 

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



[issue37286] Pasting emoji crashes IDLE

2019-06-14 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In the absence of evidence otherwise (the string that you pasted and the full 
traceback), I assume that you pasted a non-BMP codepoint, making this a 
duplicate of #13153.  If you think otherwise, please supply more info.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE 3.x on Windows crashes when pasting non-BMP unicode

___
Python tracker 

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



[issue37285] Python 2.7 setup.py incorrectly double-joins SDKROOT

2019-06-14 Thread Ned Deily


Change by Ned Deily :


--
assignee:  -> ned.deily
nosy: +ned.deily

___
Python tracker 

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



[issue23892] Introduce sys.implementation.opt_levels

2019-06-14 Thread Eric Snow


Eric Snow  added the comment:

(Sorry for taking so long!)

Thanks for doing this, Cheryl!  I'm leaving a review on your PR. :)

Also, in PEP 421 it says that you need a PEP for this. [1]  "Such a PEP need 
not be long, just long enough."  (I just realized that the requirement isn't 
obvious so I've opened issue #37284.)


[1] https://www.python.org/dev/peps/pep-0421/#adding-new-required-attributes

--
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue12857] Expose called function on frame object

2019-06-14 Thread Zachary Ware


Change by Zachary Ware :


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

___
Python tracker 

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



[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2019-06-14 Thread Brian Quinlan


Brian Quinlan  added the comment:

Joshua, I'm closing this since I haven't heard from you in a month. Please 
re-open if you use case isn't handled by `initializer` and `initargs`.

--
assignee:  -> bquinlan
resolution:  -> out of date
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



[issue37286] Pasting emoji crashes IDLE

2019-06-14 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Can you please add a traceback if any? See also 
https://bugs.python.org/issue13153

--
nosy: +xtreak

___
Python tracker 

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



[issue29412] IndexError thrown on email.message.Message.get

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

Nevermind, I was wrong, I was able to reproduce it:

>>> msg = email.message_from_string('To: (Recipient list suppressed)', 
>>> policy=email.policy.default))
  File "", line 1
SyntaxError: unmatched ')'
>>> msg = email.message_from_string('To: (Recipient list suppressed)', 
>>> policy=email.policy.default)
>>> msg.get('to')
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/maxking/Documents/cpython/Lib/email/message.py", line 471, in get
return self.policy.header_fetch_parse(k, v)
  File "/home/maxking/Documents/cpython/Lib/email/policy.py", line 163, in 
header_fetch_parse
return self.header_factory(name, value)
  File "/home/maxking/Documents/cpython/Lib/email/headerregistry.py", line 589, 
in __call__
return self[name](name, value)
  File "/home/maxking/Documents/cpython/Lib/email/headerregistry.py", line 197, 
in __new__
cls.parse(value, kwds)
  File "/home/maxking/Documents/cpython/Lib/email/headerregistry.py", line 340, 
in parse
kwds['parse_tree'] = address_list = cls.value_parser(value)
  File "/home/maxking/Documents/cpython/Lib/email/headerregistry.py", line 331, 
in value_parser
address_list, value = parser.get_address_list(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1951, in get_address_list
token, value = get_address(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1928, in get_address
token, value = get_group(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1884, in get_group
token, value = get_display_name(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1710, in get_display_name
token, value = get_phrase(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1385, in get_phrase
token, value = get_word(value)
  File "/home/maxking/Documents/cpython/Lib/email/_header_value_parser.py", 
line 1360, in get_word
if value[0]=='"':
IndexError: string index out of range

--

___
Python tracker 

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



[issue29412] IndexError thrown on email.message.Message.get

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

For the record, this is how I tested using the master branch:

>>> msg = email.message_from_string('  To: (Recipient list suppressed)')
>>> msg['To']
>>> import email.policy
>>> msg = email.message_from_string('  To: (Recipient list suppressed)', 
>>> policy=email.policy.default)
>>> msg

>>> msg['To']
>>> msg.get('to')

--

___
Python tracker 

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



[issue29412] IndexError thrown on email.message.Message.get

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

I can't reproduce this problem with the latest master branch, it was perhaps 
fixed with some other PR. 

This is also a dupe of bpo-31445.

@barry, @david: I think this issue can be closed.

--
nosy: +maxking

___
Python tracker 

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



[issue37286] Pasting emoji crashes IDLE

2019-06-14 Thread Miłosz

New submission from Miłosz :

On Windows 10

--
assignee: terry.reedy
components: IDLE
messages: 345630
nosy: md37, terry.reedy
priority: normal
severity: normal
status: open
title: Pasting emoji crashes IDLE
type: crash
versions: Python 3.7

___
Python tracker 

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



[issue31445] Index out of range in get of message.EmailMessage.get()

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

I can't reproduce this issue on the latest master branch. This seems to be 
fixed as a part of a different PR I suppose.

>>> import email
>>> msg = email.message_from_string("From: Bonifac Karaka : 
boni...@gmail.com")
>>> msg['From']
'Bonifac Karaka : boni...@gmail.com'

This is very similar to bpo-32178, which also is now fixed.

@david, @barry, I think we can close this issue.

--
nosy: +maxking

___
Python tracker 

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



[issue32179] Empty email address in headers triggers an IndexError

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

I wasn't able to reproduce this on the latest master. Probably fixed as a part 
of some other PR.

>>> msg = email.message_from_string('ReplyTo: ""')
>>> msg

>>> msg['ReplyTo']
'""'

I think this issue can be closed.

--
nosy: +maxking

___
Python tracker 

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



[issue32178] Some invalid email address groups cause an IndexError instead of a HeaderParseError

2019-06-14 Thread Abhilash Raj


Abhilash Raj  added the comment:

I don't think this is an issue anymore, I guess this was fixed as a part of 
some other PR.

I tested this out on a recent branch:

   >>> import email
   >>> msg = email.message_from_string('From: Abhilash  
')
   >>> msg['From'] 
   'Abhilash  '

@david, @barry: I think we can close this issue.

--
nosy: +maxking

___
Python tracker 

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



[issue37285] Python 2.7 setup.py incorrectly double-joins SDKROOT

2019-06-14 Thread Misty De Méo

Change by Misty De Méo :


--
keywords: +patch
pull_requests: +13949
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14095

___
Python tracker 

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



[issue37285] Python 2.7 setup.py incorrectly double-joins SDKROOT

2019-06-14 Thread Misty De Méo

New submission from Misty De Méo :

Python 2.7's setup.py has incorrect behaviour when adding the SDKROOT to the 
beginning of the include path while searching.

When searching paths, find_file first checks is_macosx_sdk_path  to see if it 
needs to add the sdk_root: 
https://github.com/python/cpython/blob/2.7/setup.py#L87-L88

This is mostly correct, except one of the path prefixes it checks is /Library: 
https://github.com/python/cpython/blob/2.7/setup.py#L64

The Xcode CLT path is located in /Library, so this check passes. That means the 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk portion of the path 
gets repeated, leading to an invalid path.

I recognize Python 2.7 isn't in active development, but I have a minimal patch 
to fix this that I will be submitting.

--
components: Build
messages: 345626
nosy: mistydemeo
priority: normal
severity: normal
status: open
title: Python 2.7 setup.py incorrectly double-joins SDKROOT
type: compile error
versions: Python 2.7

___
Python tracker 

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



[issue36785] Implement PEP 574

2019-06-14 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

Now complete, closing :-)

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



[issue37271] Make multiple passes of the peephole optimizer until bytecode cannot be optimized further

2019-06-14 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



[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-06-14 Thread Eric Snow


New submission from Eric Snow :

PEP 421 added sys.implementation for Python implementors to provide values 
required by stdlib code (e.g. importlib).  That PEP indicates that any new 
required attributes must go through the PEP process. [1]  That requirement 
isn't obvious.

To fix that we should add a brief note to the sys.implementation docs [2] 
identifying the requirement.


[1] https://www.python.org/dev/peps/pep-0421/#adding-new-required-attributes
[2] https://docs.python.org/3/library/sys.html#sys.implementation

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 345624
nosy: cheryl.sabella, docs@python, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Not obvious that new required attrs of sys.implementation must have a 
PEP.
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the review, Victor!
I have had to fix it much earlier :(

--

___
Python tracker 

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



[issue35537] use os.posix_spawn in subprocess

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset e696b15a62dd0c85fe6ed3c9698b5f889c0bb1b3 by Miss Islington (bot) 
in branch '3.8':
bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)
https://github.com/python/cpython/commit/e696b15a62dd0c85fe6ed3c9698b5f889c0bb1b3


--
nosy: +miss-islington

___
Python tracker 

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



[issue35876] test_start_new_session for posix_spawnp fails

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset e696b15a62dd0c85fe6ed3c9698b5f889c0bb1b3 by Miss Islington (bot) 
in branch '3.8':
bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)
https://github.com/python/cpython/commit/e696b15a62dd0c85fe6ed3c9698b5f889c0bb1b3


--
nosy: +miss-islington

___
Python tracker 

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



[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Eryk Sun

Eryk Sun  added the comment:

> # Power Shell 6 (use cp65001 by default)
> PS C:¥> python3 -c "print('おはよう')" > ps.txt

PowerShell standard I/O redirection is different from any shell I've ever used. 
In this case, it runs Python with StandardOutput set to a handle for a pipe 
instead of a handle for the file. It decodes Python's output using whatever 
encoding is configured for input and re-encodes it with whatever encoding is 
configured for output. 

To see what Python is actually writing, try using Start-Process with 
StandardOutput redirected to the file. For example:

Start-Process -FilePath python3.exe -ArgumentList "-c `"print('おはよう')`"" 
-NoNewWindow -Wait -RedirectStandardOutput ps.txt

> # cmd.exe
> C:¥> chcp 65001
> C:¥> python3 -c "print('おはよう')" > cmd.txt

CMD uses simple redirection, like every other shell I've ever used. It runs 
python3.exe with a handle for the file as its StandardOutput. So "cmd.txt" 
contains exactly what Python writes.

> * TextIOWrapper tries `os.device_encoding(1)`
> * `os.device_encoding(1)` use GetConsoleOutputCP() without checking stdout is 
> console

No, _Py_device_encoding returns None if the isatty(fd) is false, i.e. for a 
pipe or disk file. In this case, TextIOWrapper defaults to the encoding from 
locale.getpreferredencoding().

The current preferred encoding is the system ANSI codepage from GetACP(). 
Changing the default to UTF-8 would be disruptive. You can use UTF-8 mode (i.e. 
-X utf8). Or, to override just stdin, stdout, and stderr, set the environment 
variable "PYTHONIOENCODING=utf-8".

> In the example above, a console is attached when python is called from 
> Power Shell 6, but it is not attached when python is called from 
> cmd.exe.

In both cases the Python process inherits the console of the parent shell. The 
only way to run python.exe without a console is to use the CreateProcess 
creation flag DETACHED_PROCESS.

> There is a relating issue: UTF-8 mode doesn't override 
> stdin,stdout,stderr encoding when console is attached.

It works for me. For example, testing with stdout redirected to a pipe:

C:\>python -c "import sys;print(sys.stdout.encoding)" | more
cp1252

C:\>python -X utf8 -c "import sys;print(sys.stdout.encoding)" | more
utf-8

--

___
Python tracker 

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



[issue35876] test_start_new_session for posix_spawnp fails

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

I rewrote and reenabled the test. It should now be fixed in master, and the 3.8 
backport is coming soon.

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



[issue35537] use os.posix_spawn in subprocess

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13947
pull_request: https://github.com/python/cpython/pull/14093

___
Python tracker 

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



[issue35876] test_start_new_session for posix_spawnp fails

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13948
pull_request: https://github.com/python/cpython/pull/14093

___
Python tracker 

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



[issue35537] use os.posix_spawn in subprocess

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5884043252473ac733aba1d3251d4debe72511e5 by Victor Stinner in 
branch 'master':
bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)
https://github.com/python/cpython/commit/5884043252473ac733aba1d3251d4debe72511e5


--

___
Python tracker 

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



[issue35876] test_start_new_session for posix_spawnp fails

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5884043252473ac733aba1d3251d4debe72511e5 by Victor Stinner in 
branch 'master':
bpo-35537: Rewrite setsid test for os.posix_spawn (GH-11721)
https://github.com/python/cpython/commit/5884043252473ac733aba1d3251d4debe72511e5


--

___
Python tracker 

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



[issue32280] Expose `_PyRuntime` through a section name

2019-06-14 Thread Eric Snow


Eric Snow  added the comment:

(Sorry for the delay!)

Is the need for a named section due to the fact that _PyRuntime is part of the 
"internal" C-API (hidden behind the Py_BUILD_CORE macro)?  I.E. would it help 
to build with Py_BUILD_CORE?


Regarding the GIL:

The plan for 3.9 is to have one GIL per interpreter, so the relevant struct 
would be PyInterpreterState (a part of the public C-API).  That would be 
accessible at runtime via the fields of _PyRuntime.interpreters.


Regarding what I said before about multiple runtimes per process:

Honestly, I've yet to see any use case that would justify providing 
multi-runtime support.  However, there are code-health benefits to keeping 
*all* runtime state out of static globals.  So eliminating the _PyRuntime 
static variable is still a realistic possibility (for 3.9 or maybe later).

If that happens then there would have to be a new embedding C-API oriented 
around (opaque) PyRuntimestate pointers.  See PEP 432 and 587 for ongoing work 
to improve the embedding experience (for runtime initialization), including 
what the successors to Py_Initialize() look like.

--
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue37283] Unexpected behavior when running installer a second time with the same arguments or unattend.xml

2019-06-14 Thread Steve Dower


Steve Dower  added the comment:

Hmm... interesting.

Thanks for the heads-up, I think I know what this may be (there's a conditional 
planning stage in the bootstrapper that is probably being skipped on Modify). 
I'll take a look when I get a chance.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue37261] test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset 3b976d19c8c09e83eec63a5b62daf4d55bfd6aeb by Miss Islington (bot) 
in branch '3.8':
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)
https://github.com/python/cpython/commit/3b976d19c8c09e83eec63a5b62daf4d55bfd6aeb


--

___
Python tracker 

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



[issue37266] Daemon threads must be forbidden in subinterpreters

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

Daemon threads must die. That's a first step towards their death!

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



[issue37266] Daemon threads must be forbidden in subinterpreters

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 066e5b1a917ec2134e8997d2cadd815724314252 by Victor Stinner in 
branch 'master':
bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)
https://github.com/python/cpython/commit/066e5b1a917ec2134e8997d2cadd815724314252


--

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread STINNER Victor

STINNER Victor  added the comment:

Thanks Zackery Spytz for the fix. Thanks Gergely Erdélyi for the bug report! 
Sorry for the long delay.

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



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

2019-06-14 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13946
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/14090

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset b0f6fa8d7d4c6d8263094124df9ef9cf816bbed6 by Miss Islington (bot) 
in branch '3.8':
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows 
(GH-14081)
https://github.com/python/cpython/commit/b0f6fa8d7d4c6d8263094124df9ef9cf816bbed6


--

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset 0b592d513b073cd3a4ba7632907c25b8282f15ce by Miss Islington (bot) 
in branch '3.7':
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows 
(GH-14081)
https://github.com/python/cpython/commit/0b592d513b073cd3a4ba7632907c25b8282f15ce


--
nosy: +miss-islington

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 33feb2e1a391cde91aefcb8d9cf5144b5fbc5d87 by Victor Stinner in 
branch '3.7':
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() 
(GH-14080) (GH-14086)
https://github.com/python/cpython/commit/33feb2e1a391cde91aefcb8d9cf5144b5fbc5d87


--

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread miss-islington


miss-islington  added the comment:


New changeset 0c2eb6d21013d77e1160250d3cf69ca80215d064 by Miss Islington (bot) 
in branch '3.8':
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() 
(GH-14080)
https://github.com/python/cpython/commit/0c2eb6d21013d77e1160250d3cf69ca80215d064


--
nosy: +miss-islington

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

> Finally fixed

Thank you very much! I looked at this issue 2 or 3 times but I failed to fix 
it. This bug was super annoying: it failed multiple times per week on Fedora 
buildbots.

--

___
Python tracker 

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



[issue34651] Disallow fork in a subinterpreter.

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-37266: "Daemon threads must be forbidden in subinterpreters".

--

___
Python tracker 

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



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2019-06-14 Thread Wei Li


Wei Li  added the comment:

I got the same problem when uing the ThreadingTCPServer.

I think adding 
"self._threads = list(filter(lambda x: x.is_alive(), self._threads))"
at the last line in process_request method is a potential way to fix the bug

--
nosy: +Wei Li

___
Python tracker 

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



[issue37261] test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 212646cae6b7c4ddc8d98c8b9b6d39a5f259e864 by Victor Stinner in 
branch 'master':
bpo-37261: Document sys.unraisablehook corner cases (GH-14059)
https://github.com/python/cpython/commit/212646cae6b7c4ddc8d98c8b9b6d39a5f259e864


--

___
Python tracker 

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



[issue37261] test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13945
pull_request: https://github.com/python/cpython/pull/14089

___
Python tracker 

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



[issue37275] GetConsole(Output)CP is used even when stdin/stdout is redirected

2019-06-14 Thread Steve Dower


Steve Dower  added the comment:

Isn't the point that device_encoding(FD) gets the encoding of the specified 
file? In this case stdout?

It seems odd that chcp doesn't actually update the console code page here, as 
that is its entire purpose. Perhaps TextIOWrapper is actually getting ACP 
rather than the console encoding through some other path?

--

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13944
pull_request: https://github.com/python/cpython/pull/14088

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13943
pull_request: https://github.com/python/cpython/pull/14087

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9765efcb39fc03d5b1abec3924388974470a8bd5 by Victor Stinner 
(Zackery Spytz) in branch 'master':
bpo-19865: ctypes.create_unicode_buffer() supports non-BMP strings on Windows 
(GH-14081)
https://github.com/python/cpython/commit/9765efcb39fc03d5b1abec3924388974470a8bd5


--

___
Python tracker 

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



[issue37274] Scripts folder is empty in python 3.7.3 for windows.

2019-06-14 Thread Steve Dower


Steve Dower  added the comment:

You should have a set of log files in %TEMP%. Can you zip those up and attach 
them here?

Pip may be failing to install for some reason, and while this ought to be 
reported, it is not supposed to cause the entire installation to fail.

--

___
Python tracker 

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



[issue34651] Disallow fork in a subinterpreter.

2019-06-14 Thread Eric Snow


Eric Snow  added the comment:

FYI, I plan on looking into this either today or next Friday.

--

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Finally fixed

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13942
pull_request: https://github.com/python/cpython/pull/14086

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13941
pull_request: https://github.com/python/cpython/pull/14084

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f0749da9a535375f05a2015e8960e8ae54877349 by Victor Stinner 
(Andrew Svetlov) in branch 'master':
bpo-35998: Avoid TimeoutError in test_asyncio: test_start_tls_server_1() 
(GH-14080)
https://github.com/python/cpython/commit/f0749da9a535375f05a2015e8960e8ae54877349


--

___
Python tracker 

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



[issue12857] Expose called function on frame object

2019-06-14 Thread Eric Snow


Change by Eric Snow :


Removed file: https://bugs.python.org/file48418/122.pdf

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread Zackery Spytz


Zackery Spytz  added the comment:

I have created a pull request for this issue. Please take a look.

--
nosy: +ZackerySpytz
versions: +Python 3.9 -Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2019-06-14 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +13940
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14081

___
Python tracker 

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



[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-06-14 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +13939
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14080

___
Python tracker 

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



[issue26145] [WIP] PEP 511: Add sys.set_code_transformers()

2019-06-14 Thread STINNER Victor


Change by STINNER Victor :


Removed file: https://bugs.python.org/file48419/123.pdf

___
Python tracker 

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



[issue37081] Test with OpenSSL 1.1.1c

2019-06-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Duplicate of #35998

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 
29

___
Python tracker 

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



[issue37202] Future.cancelled is not set to true immediately after calling Future.cancel

2019-06-14 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue37278] test_asyncio: ProactorLoopCtrlC leaks one reference

2019-06-14 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Welcome!
Thanks for the fix!

--

___
Python tracker 

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



[issue37283] Unexpected behavior when running installer a second time with the same arguments or unattend.xml

2019-06-14 Thread SilentGhost


Change by SilentGhost :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue37273] from pickle import rick

2019-06-14 Thread Luiz Amaral

Luiz Amaral  added the comment:

It seemed a good idea when I made the PR, now I feel bad for wasting your time 
 sorry guys.

--

___
Python tracker 

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



[issue26145] [WIP] PEP 511: Add sys.set_code_transformers()

2019-06-14 Thread kev levrone


Change by kev levrone :


Added file: https://bugs.python.org/file48419/123.pdf

___
Python tracker 

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



[issue12857] Expose called function on frame object

2019-06-14 Thread kev levrone


kev levrone  added the comment:

def enable_ki_protection(func):
func._trio_keyboard_interrupt_protection_enabled = True
return func

--
nosy: +kevlevrone
Added file: https://bugs.python.org/file48418/122.pdf

___
Python tracker 

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



[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-14 Thread Stefan Behnel


Stefan Behnel  added the comment:

I agree with Steve that broadly redefining a global name in a widely used 
header file is not a good idea. You never know what names users have in their 
code. Yes, you can work around it by undef-ing it again, but honestly, in that 
case, both sides are hacks.

--

___
Python tracker 

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



[issue37278] test_asyncio: ProactorLoopCtrlC leaks one reference

2019-06-14 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks for the review Andrew.

--

___
Python tracker 

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



[issue37278] test_asyncio: ProactorLoopCtrlC leaks one reference

2019-06-14 Thread STINNER Victor


Change by STINNER Victor :


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



[issue37283] Unexpected behavior when running installer a second time with the same arguments or unattend.xml

2019-06-14 Thread Jörn Jacobi

New submission from Jörn Jacobi :

When executing the installer with arguments or using the unattend.xml to run it 
without UI as documented in 
https://python.readthedocs.io/en/stable/using/windows.html#installing-without-ui
 the installer ignores the arguments or unattend.xml when it's executed again.

The second time, the installer (running i modify mode) uses the default values 
(hereby removing the Prepenpath if set the first time)

(testet with version 3.6.6-amd64 to 3.7.3-amd64 of the executable installer)

To recreate, run the following : 

step 1 :
python-3.6.6-amd64.exe /passive InstallAllUsers=1 PrependPath=1 Include_doc=0 
Include_dev=0 Include_tcltk=0 Include_test=0 SimpleInstall=1 

now python is install as expected.

step 2 : 
python-3.6.6-amd64.exe /passive InstallAllUsers=1 PrependPath=1 Include_doc=0 
Include_dev=0 Include_tcltk=0 Include_test=0 SimpleInstall=1

even though the options are exactly the same, the installer now removes python 
from path and installs tcltk, documentation, test and dev.

step 3 : 
python-3.6.6-amd64.exe /passive InstallAllUsers=1 PrependPath=1 Include_doc=0 
Include_dev=0 Include_tcltk=0 Include_test=0 SimpleInstall=1

now the installer only makes a quick check, what i would have expected in step 
2, but hare only the default values are used.

--
components: Installation
messages: 345589
nosy: Jörn Jacobi
priority: normal
severity: normal
status: open
title: Unexpected behavior when running installer a second time with the same 
arguments or unattend.xml
type: behavior
versions: Python 3.6, Python 3.7

___
Python tracker 

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



  1   2   >