[issue28833] cross compilation of third-party extension modules

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue36361] generate correct pyconfig.h when cross-compiling

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue36351] the ipv6type variable in configure.ac may be set incorrectly when cross-compiling

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue36214] AC_RUN_IFELSE macros not used as arguments of AC_CACHE_VAL et al

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


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



[issue36125] Cannot cross-compile to more featureful but same tune

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue27640] add the '--disable-test-suite' option to configure

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue36145] android arm cross compilation fails, config issue

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue35997] ImportError: dlopen failed: cannot locate symbol "PyBool_Type"

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue31046] ensurepip does not honour the value of $(prefix)

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue26852] add the '--enable-sourceless-distribution' option to configure

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue35953] crosscompilation fails with clang on android

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue13886] readline-related test_builtin failure

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue26855] android: add platform.android_ver()

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue32203] [ctypes] test_struct_by_value fails on android-24-arm64

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue32202] [ctypes] all long double tests fail on android-24-x86_64

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue32461] the first build after a change to Makefile.pre.in uses the old Makefile

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
resolution:  -> not a bug
stage: needs patch -> 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



[issue29267] Cannot override some flags in CFLAGS from the command-line

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue28542] document cross compilation

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue20211] setup.py: do not add system header locations when cross compiling

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue28207] Use pkg-config to find dependencies

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue28125] identify cross builds by a more generic environment setting.

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue22724] byte-compile fails for cross-builds

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue39004] test_largefile: TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x

2019-12-10 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


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

___
Python tracker 

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



[issue39004] test_largefile: TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x

2019-12-10 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

I suspect it's a timing problem (client disconnects, threaded server fails to 
detect that in time). Let's see what happens by incrementing the timeout when 
waiting for the thread to be join()ed (PR-17552).

--

___
Python tracker 

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



[issue37535] Client SSLSocket with select.select() always returns readable with OpenSSL 1.1.1

2019-12-10 Thread Wator Sead


Wator Sead  added the comment:

So, that means there are some additional optional operations after 
do_handshake(), the data is needed. Thanks for explanation!

--

___
Python tracker 

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



[issue39004] test_largefile: TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x

2019-12-10 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:


New changeset 82374979ec7e01e23385dca1d02b2aa3de16fea5 by Giampaolo Rodola in 
branch 'master':
bpo-39004: increment large sendfile() test timeout (GH-17552)
https://github.com/python/cpython/commit/82374979ec7e01e23385dca1d02b2aa3de16fea5


--

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov


New submission from Artem Tepanov :

Why I can't execute this code:

while False:
if False:
break
print('WTF?')
When I use repl.it or PyCharm on my work (Python 3.7) all works fine, yes I 
know this code looks silly, but it is a legal expression.

About CPython Interpreter:
C:\WINDOWS\system32>python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

--
messages: 358175
nosy: Artem Tepanov
priority: normal
severity: normal
status: open
title: SyntaxError: 'break' outside loop for legal Expression
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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

I don't know, why *can't* you execute that code? It works fine for me. Although 
I'm not using the exact same version of 3.8 that you are using.

Could you copy and paste (not a screen shot or photo!) the text of your 
interactive session, including the error that you get, please?

--
nosy: +steven.daprano

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov


Artem Tepanov  added the comment:

Using cmd:
C:\Users\ATepanov>python -V
Python 3.8.0

C:\Users\ATepanov>python C:\Users\ATepanov\Desktop\Outside_The_Loop.py
  File "C:\Users\ATepanov\Desktop\Outside_The_Loop.py", line 3
break
^
SyntaxError: 'break' outside loop


In Interactive:
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> while False:
... break
...
  File "", line 2
SyntaxError: 'break' outside loop
>>>

--

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov


Artem Tepanov  added the comment:

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> while False:
... if False:
... break
...
  File "", line 3
SyntaxError: 'break' outside loop

--

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This seems to be same as issue38640 . Can you please try 3.8.1RC1 to see if 
it's fixed?

https://www.python.org/downloads/release/python-381rc1/

--
nosy: +xtreak

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> while False: break => SyntaxError: 'break' outside loop

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Artem Tepanov


Artem Tepanov  added the comment:

Thx, after upgrade to:
Python 3.8.1rc1 (tags/v3.8.1rc1:b00a2b5, Dec 10 2019, 01:13:53) [MSC v.1916 64 
bit (AMD64)] on win32
All works fine,
...but Could you "pushing the person" which responsible for Web-Site please?, 
because I got Interpreter from there: 
https://www.python.org/downloads/release/python-380/

Without any Warnings or Recommendation for using 3.8.1rc1

Is it normal?

--

___
Python tracker 

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



[issue39011] ElementTree attributes replace "\r" with "\n"

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See https://www.w3.org/TR/REC-xml/#sec-line-ends.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue35827] C API dictionary views type checkers are not documented

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

They were added in a22e8bdfd92cd4f1bc3d60e91df6410c4efde6a0. Additional types 
like PyDictRevIterKey_Type were added later. I am not sure that all these types 
should be exposed in the public C API.

--
nosy: +christian.heimes, serhiy.storchaka
versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6

___
Python tracker 

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



[issue30386] Add a build infrastructure for Android

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


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



[issue31114] 'make install' fails when the configure 'prefix' is '/' and DESTDIR is used

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

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



[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the confirmation. The issue was found after 3.8.0 release. The fix 
is in 3.8.1RC1 and will be made as 3.8.1 in couple of weeks. Normally 
regressions are not listed at downloads page but are tagged as regression in 
the tracker like the one linked. You can wait for sometime to use 3.8.1 which 
should fix the issue.

--

___
Python tracker 

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



[issue39004] test_largefile: TestSocketSendfile.test_it() failed on AMD64 Fedora Stable Refleaks 3.x

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:

Let's say that it's enough to hide the race condition :-) I close the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2019-12-10 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +17027
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/17553

___
Python tracker 

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



[issue39014] test_concurrent_futures: test_crash() timed out on AMD64 Fedora Rawhide Refleaks 3.x

2019-12-10 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 Fedora Rawhide Refleaks 3.x:
https://buildbot.python.org/all/#/builders/82/builds/12

0:15:30 load avg: 12.25 [308/420/1] test_concurrent_futures failed (15 min 26 
sec) -- running: test_largefile (11 min 22 sec), test_io (2 min 9 sec), 
test_mailbox (12 min 37 sec), test_faulthandler (53.4 sec), test_shelve (13 min 
39 sec)
beginning 6 repetitions
123456

Traceback:
 Thread 0x7fae68fb6700 (most recent call first):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 303 in wait
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/multiprocessing/queues.py",
 line 227 in _feed
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 882 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 944 in _bootstrap_inner
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 902 in _bootstrap

Thread 0x7fae637fe700 (most recent call first):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/selectors.py",
 line 415 in select
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/multiprocessing/connection.py",
 line 930 in wait
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/concurrent/futures/process.py",
 line 362 in _queue_management_worker
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 882 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 944 in _bootstrap_inner
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/threading.py",
 line 902 in _bootstrap

Current thread 0x7fae77c14740 (most recent call first):
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/test_concurrent_futures.py",
 line 946 in _fail_on_deadlock
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/test_concurrent_futures.py",
 line 1007 in test_crash
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/case.py",
 line 616 in _callTestMethod
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/case.py",
 line 659 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/case.py",
 line 719 in __call__
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/support/testresult.py",
 line 162 in run
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/support/__init__.py",
 line 2079 in _run_suite
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/support/__init__.py",
 line 2201 in run_unittest
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest.py",
 line 209 in _test_module
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/refleak.py",
 line 87 in dash_R
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest.py",
 line 232 in _runtest_inner2
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest.py",
 line 270 in _runtest_inner
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest.py",
 line 153 in _runtest
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest.py",
 line 193 in runtest
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/runtest_mp.py",
 line 80 in run_tests_worker
  File 
"/home/buildbot/buildarea/3.x.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/libregrtest/main.py",
 line 654 in _main
  File

[issue38999] Python launcher on Windows does not detect active venv

2019-12-10 Thread Eryk Sun


Eryk Sun  added the comment:

I don't think the "/usr/bin/env" case needs to limit qualified names like 
"python3[.x]" to registered installations. This is a choice made to simplify 
the implementation. If it finds a generic "python.exe" executable in PATH, for 
3.5+ it is possible to query version information directly from it. Older 
versions lack this metadata, but it's also possible to inspect the PE import 
table (i.e. IMAGE_DIRECTORY_ENTRY_IMPORT) for a dependency on "python2x.dll" or 
"python3x.dll".

--
nosy: +eryksun

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17028
pull_request: https://github.com/python/cpython/pull/17554

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread Julien Danjou


Julien Danjou  added the comment:

This is actually true and it's quite easy to produce a bug that triggers a 
segmentation fault when iterating over a large list of threads create 
dynamically.

That makes PyThreadState_Next barely usable for any program that has a few 
threads. The head mutex needs to be locked to be able to iterate safely over 
the list of thread.

--
nosy: +jd
title: PyThreadState_Next not thread safe? -> PyThreadState_Next not thread safe
versions: +Python 2.7, 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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:

> This is actually true and it's quite easy to produce a bug that triggers a 
> segmentation fault when iterating over a large list of threads create 
> dynamically.

This issue is closed. Would you be able to write a reproducer script? If yes, 
maybe open a new issue, or I can reopen this one.

--
nosy: +vstinner

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread Julien Danjou


Julien Danjou  added the comment:

It'd be great if you could reopen it. I'm interested in fixing it properly.

It's impossible to "solve" in Python 2 since the head mutex is not accessible 
(it's static in pystate.c) but this is doable with Python 3 (yay).

We'd simply need to provide a new API to lock/unlock the interpreter's mutex.

How hard to you need the script to reproduce? I can try to spend some time to 
extract some of my code to have one if that's really needed (I'm using Cython 
to generate some of the C code).

--

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:

I reopened the issue and changed the version to 3.9.

--
resolution: out of date -> 
status: closed -> open
versions:  -Python 2.7, Python 3.5, Python 3.6, 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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +eric.snow, pitrou, serhiy.storchaka

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:

> We'd simply need to provide a new API to lock/unlock the interpreter's mutex.

Are you talking about this lock?

#define HEAD_LOCK(runtime) \
PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK)
#define HEAD_UNLOCK(runtime) \
PyThread_release_lock((runtime)->interpreters.mutex)

--

___
Python tracker 

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



[issue1021318] PyThreadState_Next not thread safe

2019-12-10 Thread Julien Danjou

Julien Danjou  added the comment:

Yes, that's the one 👍

--

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2019-12-10 Thread Jurjen N.E. Bos


Jurjen N.E. Bos  added the comment:

I tried to make a pull request, but it fails on the format of news file name.
At least the tests all pass.

--

___
Python tracker 

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



[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Make sure the standard library doesn't emit those warnings itself.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue39015] DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library

2019-12-10 Thread Łukasz Langa

New submission from Łukasz Langa :

The original issue was bpo-36048. Some call sites were not updated and now 
3.8.0 and 3.8.1rc1 are emitting a lot of warnings like:

:219: DeprecationWarning: an integer is 
required (got type float).  Implicit conversion to integers using __int__ is 
deprecated, and may be removed in a future version of Python.

Adding authors of GH-11952 as nosy.

--
components: Library (Lib)
keywords: 3.8regression
messages: 358195
nosy: lukasz.langa, serhiy.storchaka, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: DeprecationWarnings of implicitly truncations by __int__ appearing in 
the standard library
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

I meant to comment on a different issue, the trigger is stuff like 
https://bugs.python.org/issue39015 (new deprecationwarnings being generated 
without cleaning up the standard library first).

--

___
Python tracker 

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



[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

2019-12-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2019-12-10 Thread PCManticore


Change by PCManticore :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue39015] DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

How did you get warnings?

--

___
Python tracker 

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



[issue39015] DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library

2019-12-10 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Christian Tismer


Change by Christian Tismer :


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

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Christian Tismer


New submission from Christian Tismer :

By the new Py_TPFLAGS_METHOD_DESCRIPTOR flag, a new code path is
activated, and when extension types like PySide create a new
class, we observe negative refcounts.

The reason is that the code in typeobject.c fkt. type_mro_modified
calls lookup_maybe_method which returns a _borrowed_ reference.
This happens in the "if (custom) {" branch.

Removing all Py_XDECREF calls from the function fixes that.

--
components: Extension Modules
messages: 358198
nosy: Christian.Tismer
priority: critical
severity: normal
status: open
title: Negative Refcount in Python 3.8
type: crash
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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-10 Thread Jonathan Slenders


Jonathan Slenders  added the comment:

Thanks Victor for the reply.

It looks like it's the self-socket in the BaseProactorEventLoop that gets 
closed. It's exactly this FD for which the exception is raised.

We don't close the event loop anywhere. I also don't see `_close_self_pipe` 
being called anywhere.

Debug logs don't provide any help. I'm looking into a reproducer.

--

___
Python tracker 

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



[issue39017] Infinite loop in the tarfile module

2019-12-10 Thread jvoisin


New submission from jvoisin :

While playing with fuzzing and Python, I stumbled upon an infinite loop in 
Python's tarfile module: just open the attached file with 
`tarfile.open('timeout-a52710a313fdb35fb428c3399277cb640fe2f686')`, and Python 
will be endlessly stuck in the `_proc_pax` function in tarfile.py, likely due 
to a missing check of `length` being strictly superior to zero.

--
files: timeout-a52710a313fdb35fb428c3399277cb640fe2f686
messages: 358200
nosy: ethan.furman, jvoisin
priority: normal
severity: normal
status: open
title: Infinite loop in the tarfile module
type: security
versions: Python 3.7
Added file: 
https://bugs.python.org/file48768/timeout-a52710a313fdb35fb428c3399277cb640fe2f686

___
Python tracker 

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



[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-12-10 Thread Matej Cepl


Change by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

>From the PR:

Christian, can you open the PR against master instead? We will backport the 
change to 3.8 after is merged.

--
nosy: +pablogsal

___
Python tracker 

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



[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread jvoisin


New submission from jvoisin :

The attached file raises an `IndexError: tuple index out of range` exception 
when trying to open it with 
`zipfile.Zipfile('crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38')`, with the 
following stacktrace:

```
$ cat test_zip.py
import zipfile
import sys

with zipfile.ZipFile(sys.argv[1]) as f:
  pass
$ python3 ./test_zip.py ./crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38
Traceback (most recent call last):
  File "./test_zip.py", line 4, in 
with zipfile.ZipFile(sys.argv[1]) as f:
  File "/usr/lib/python3.7/zipfile.py", line 1225, in __init__
self._RealGetContents()
  File "/usr/lib/python3.7/zipfile.py", line 1348, in _RealGetContents
x._decodeExtra()
  File "/usr/lib/python3.7/zipfile.py", line 480, in _decodeExtra
self.file_size = counts[idx]
IndexError: tuple index out of range
$

```

The zipfile documentation doesn't mention that IndexError is a possible 
exception for this method.

--
components: Library (Lib)
files: crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38
messages: 358202
nosy: jvoisin
priority: normal
severity: normal
status: open
title: IndexError exception on corrupted zip file
type: behavior
versions: Python 3.7
Added file: 
https://bugs.python.org/file48769/crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38

___
Python tracker 

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



[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

master produces the below error while 3.8.0 produces IndexError. I guess it's 
fixed by one of the reports.

./python ../backups/bpo39018.py 
../crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38
Traceback (most recent call last):
  File "/home/xtreak/stuff/python/cpython/../backups/bpo39018.py", line 4, in 

with zipfile.ZipFile(sys.argv[1]) as f:
  File "/home/xtreak/stuff/python/cpython/Lib/zipfile.py", line 1256, in 
__init__
self._RealGetContents()
  File "/home/xtreak/stuff/python/cpython/Lib/zipfile.py", line 1379, in 
_RealGetContents
x._decodeExtra()
  File "/home/xtreak/stuff/python/cpython/Lib/zipfile.py", line 483, in 
_decodeExtra
raise BadZipFile(f"Corrupt zip64 extra field. "
zipfile.BadZipFile: Corrupt zip64 extra field. File size not found.

--
nosy: +xtreak

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Christian Tismer


Christian Tismer  added the comment:

No, this appears to be impossible.

The function "type_mro_modified" exists as well, but there is no
"if (custom) {" branch at all!

On 10.12.19 17:21, Pablo Galindo Salgado wrote:
> 
> Pablo Galindo Salgado  added the comment:
> 
>>From the PR:
> 
> Christian, can you open the PR against master instead? We will backport the 
> change to 3.8 after is merged.
> 
> --
> nosy: +pablogsal
> 
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> No, this appears to be impossible.

Oh, I see. Apologies then for the misunderstunding.

--

___
Python tracker 

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



[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Bisecting gives me the commit as da6ce58dd5ac109485af45878fca6bfd265b43e9 where 
exception message is improved with issue36993

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue39016] Negative Refcount in Python 3.8

2019-12-10 Thread Christian Tismer


Christian Tismer  added the comment:

On 10.12.19 17:57, Pablo Galindo Salgado wrote:
> 
> Pablo Galindo Salgado  added the comment:
> 
>> No, this appears to be impossible.
> 
> Oh, I see. Apologies then for the misunderstunding.

Well, but I think that is weird, too!
Why should that custom clause be in 3.8 but not in master?

--

___
Python tracker 

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



[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue39017] Infinite loop in the tarfile module

2019-12-10 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +lars.gustaebel, serhiy.storchaka

___
Python tracker 

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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-10 Thread Jonathan Slenders


Jonathan Slenders  added the comment:

It looks like the following code will reproduce the issue:

```
import asyncio
import threading

loop = asyncio.get_event_loop()

while True:
def test():
loop.call_soon_threadsafe(loop.stop)

threading.Thread(target=test).start()
loop.run_forever()

```

Leave it running on Windows, in Python 3.8 for a few seconds, then it starts 
spawning `ConnectionResetError`s.

--

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


New submission from Batuhan :

After working on issue 38994 and issue 38978, I decided to write a simple AST 
analyzer to find class getitem syntax usage in typeshed. It discovered a few 
classes (I am not sure if there are more). As @brett.cannon suggested in PR 
17498 I'll prepare individual pull requests.  

typeshed/stdlib/3/subprocess.pyi:868  => Popen
typeshed/stdlib/3/subprocess.pyi:82   => CompletedProcess
typeshed/stdlib/3/tempfile.pyi:98 => SpooledTemporaryFile
typeshed/stdlib/3/os/__init__.pyi:463 => DirEntry
typeshed/stdlib/3/http/cookies.pyi:5  => Morsel

--
messages: 358209
nosy: BTaskaya, brett.cannon
priority: normal
severity: normal
status: open
title: Missing class getitems in standard library classes

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


Change by Batuhan :


--
components: +Library (Lib)
nosy: +levkivskyi
versions: +Python 3.9

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


Change by Batuhan :


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

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


Change by Batuhan :


--
pull_requests: +17032
pull_request: https://github.com/python/cpython/pull/17560

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17031
pull_request: https://github.com/python/cpython/pull/17559

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


Change by Batuhan :


--
pull_requests: +17033
pull_request: https://github.com/python/cpython/pull/17561

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17034
pull_request: https://github.com/python/cpython/pull/17562

___
Python tracker 

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



[issue39019] Missing class getitems in standard library classes

2019-12-10 Thread Batuhan


Change by Batuhan :


--
pull_requests: +17035
pull_request: https://github.com/python/cpython/pull/17563

___
Python tracker 

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



[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt


New submission from Michael Felt :

Did not notice this earlier - as the buildbot does not report it: issue38312 
introduced a regression with regard to AIX.

Not sure how to classify component (as Build, C API, or Library, so left blank)

Failed to build these modules:
_curses

commit b32cb97bce472dad337c6b2f071883f6234e21d8
Author: Anthony Sottile 
Date:   Thu Oct 31 02:13:48 2019 -0700

bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize. 
(GH-16938)

Background: ncurses is not part of AIX; curses. ncurses packages provided by 
other parties are not stable enough for, among other things, allow the buildbot 
to pass.

Prior to this commit AIX passed all tests related to _curses.

--
messages: 358210
nosy: Michael.Felt
priority: normal
severity: normal
status: open
title: [AIX] module _ctypes fails to build since ESCDELAY has been added
type: compile error
versions: Python 3.9

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Sergii Tkachenko


Sergii Tkachenko  added the comment:

Confirming this to be a thing on Python 3.7.5 / OS X 10.15.1.

In [31]: f = tempfile.NamedTemporaryFile()
In [32]: isinstance(f, io.IOBase)
Out[32]: False

--
nosy: +sergiitk
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Sergii Tkachenko


Sergii Tkachenko  added the comment:

Affected as well:
Python 3.8.0 (default, Nov  3 2019, 10:55:54)
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin

--
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt


Change by Michael Felt :


--
components: +Extension Modules

___
Python tracker 

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



[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt


Michael Felt  added the comment:

I am thinking along two lines:

a) tell setup.py to not build _curses, just as _curses_panel

b) figure out how to use configure tests, to establish that ESCDELAY is not 
available AND then tell _cursesmodule.* that these routines are not available 
(and add that to the new docs for these routines).

--

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Even if make TemporaryFile a subclass of IOBase (I am not sure we should do 
this) you could only use this in Python 3.9 and newer. I think it is better to 
fix this issue on the aiohttp side. aiohttp already registers payload types for 
a bunch of file-like types. You can also register it yourself:

aiohttp.payload.PAYLOAD_REGISTRY.register(aiohttp.payload.IOBasePayload, 
tempfile.TemporaryFile)

Seems IOBasePayload needs only read() and close() methods.

--
nosy: +asvetlov, serhiy.storchaka

___
Python tracker 

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



[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2019-12-10 Thread Zachary Ware


Change by Zachary Ware :


--
components: +Build
title: [AIX] module _ctypes fails to build since ESCDELAY has been added -> 
[AIX] module _curses fails to build since ESCDELAY has been added

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.7, Python 3.9

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 07871b256c76ca561554d1f82b430fc64a5c7ee0 by Victor Stinner in 
branch 'master':
bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)
https://github.com/python/cpython/commit/07871b256c76ca561554d1f82b430fc64a5c7ee0


--

___
Python tracker 

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



[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I prefer option (b). We can also just use

#if !defined(_AIX) || defined(NCURSES_VERSION)

Interesting, a comment in curses.h:

 * Notes:
 *  a. ESCDELAY was an undocumented feature under AIX curses.
 * It gives the ESC expire time in milliseconds.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bbc8b7965bb9f46763c96878326966f4231c7d39 by Victor Stinner in 
branch 'master':
bpo-38614: Use default join_thread() timeout in tests (GH-17559)
https://github.com/python/cpython/commit/bbc8b7965bb9f46763c96878326966f4231c7d39


--

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Agree, aiohttp can be fixed easily.

If somebody wants to make a pull request -- you are welcome!
https://github.com/aio-libs/aiohttp/issues/4432

--

___
Python tracker 

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



[issue39011] ElementTree attributes replace "\r" with "\n"

2019-12-10 Thread mefistotelis


mefistotelis  added the comment:

Disclaimer: I'm not at all an expert in XML specs.

The linked spec chapter, "End-of-Line Handling", says all line endings should 
behave like they were converted to "\n" _before_ parsing.

This means:

1. This part of spec does not apply to the behavior described in the issue , 
because line endings are converted before the file is saved. The spec describes 
loading process, not saving.

2. Before parsing, the line endings within attributes are replaced by idioms - 
so they are no longer line endings in the meaning assigned by the spec. The 
chapter starts with clear indication that it only applies to line endings which 
are used to give structure to physical file. The affected line endings are 
narrowed by stating: "files [...], for editing convenience, are organized into 
lines.". Since line endings in attributes are idiomized, they don't take part 
of organizing file into lines.


Then again, I'm not an expert. From the various specs I worked with, I know 
that the affected industry always comes out with unified interpretation of 
specs. If it was widely accepted to apply this chapter to values of attributes, 
I'd understand.

--

___
Python tracker 

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



[issue33762] temp file isn't IOBase

2019-12-10 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Actually things are more complex. TemporaryFile is not a class, it is a 
function, so it does not make sense to use it with isinstance(). And if add 
support for TemporaryFile, NamedTemporaryFile and SpooledTemporaryFile should 
be supported too.

It may be easier to use a virtual subclassing: register IOBasePayload with a 
class which has an __instancecheck__() method which checks the existence of 
attributes "read" and "close".

--

___
Python tracker 

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



[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-12-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c98b0199a984430312833ef403d265be314f7244 by Victor Stinner in 
branch 'master':
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
https://github.com/python/cpython/commit/c98b0199a984430312833ef403d265be314f7244


--

___
Python tracker 

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



  1   2   >