[issue37384] Compiling Python 3.7.3 from source and getting all sorts of errors on Debian?

2019-06-24 Thread Eryk


Eryk  added the comment:

root@Debza:/home/anubis/Python-3.7.3# ./configure --enable-optimizations
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.7... python3.7
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking for --with-cxx-main=... no
checking for g++... no
configure:

  By default, distutils will build C++ extension modules with "g++".
  If this is not intended, then set CXX on the configure command line.
  
checking for the platform triplet based on compiler characteristics... 
x86_64-linux-gnu
checking for -Wl,--no-as-needed... yes
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for the Android API level... not Android
checking for --with-suffix... 
checking for case-insensitive build directory... no
checking LIBRARY... libpython$(VERSION)$(ABIFLAGS).a
checking LINKCC... $(PURIFY) $(MAINCC)
checking for GNU ld... yes
checking for --enable-shared... no
checking for --enable-profiling... no
checking LDLIBRARY... libpython$(VERSION)$(ABIFLAGS).a
checking for ar... ar
checking for readelf... readelf
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for --with-pydebug... no
checking for --with-assertions... no
checking for --enable-optimizations... yes
checking for --with-lto... no
checking for -llvm-profdata... no
checking for -Wextra... yes
checking whether gcc accepts and needs -fno-strict-aliasing... no
checking if we can turn off gcc unused result warning... yes
checking if we can turn off gcc unused parameter warning... yes
checking if we can turn off gcc missing field initializers warning... yes
checking if we can turn off gcc invalid function cast warning... no
checking if we can turn on gcc mixed sign comparison warning... yes
checking if we can turn on gcc unreachable code warning... no
checking if we can turn on gcc strict-prototypes warning... no
checking if we can make implicit function declaration an error in gcc... yes
checking whether pthreads are available without options... no
checking whether gcc accepts -Kpthread... no
checking whether gcc accepts -Kthread... no
checking whether gcc accepts -pthread... yes
checking whether g++ also accepts flags for thread support... yes
checking for ANSI C header files... (cached) yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking shadow.h usability... yes
checking shadow.h 

[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests: +14182
pull_request: https://github.com/python/cpython/pull/14365

___
Python tracker 

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



[issue37384] Compiling Python 3.7.3 from source and getting all sorts of errors on Debian?

2019-06-24 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

As Ned and Christian hinted, the issue might be related to 
--enable-optimizations. Have you tried compiling without that flag?

--
nosy: +Jelle Zijlstra

___
Python tracker 

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



[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-24 Thread Carol Willing


Carol Willing  added the comment:

Hi George,

What language and encoding are you using on your system? Are you using UTF-16?

I haven't been able to reproduce this on my Mac Mojave with an Anaconda Python 
3.7.3 install.

--
nosy: +willingc

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-06-24 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 210358b25cf6425c81a341a074be6cd897c2d43d by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.8':
bpo-36546: Mark first argument as position only (GH-14363) (GH-14364)
https://github.com/python/cpython/commit/210358b25cf6425c81a341a074be6cd897c2d43d


--

___
Python tracker 

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



[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

For future reference: an exception is not a crash.  A crash is a core dump or 
the Mac equivalent.

Anyway, I also cannot reproduce with Python.org python on my Macbook.
  python 3.7.3(v3.7.3:ef4e...) Mar 25, 2019 16:52:21
  Clang 6.0 (...) on Darwin
Where did you get your Python installer?  Did it include tck/tk?  If not, 
perhaps python3.exe and the tcl/tk being used do not match.

Does IDLE work at all?  Can you click Help and About IDLE?  If so, what is the 
tk version? 

I used the pad to move the cursor over the scrollbar slider, held my left 
finger down on the left side of the pad, and moved the slider and file display 
with my right finger.  Is this what you did?

>From the traceback it appears that the exception occurred in the C code of  
>_tkinter or more likely, the C code of tcl/tk, before any of IDLE's 
>python-coded event handlers are called.  Hence, Ned's comment.

--
assignee: terry.reedy -> 
components: +Tkinter -IDLE
type: crash -> behavior

___
Python tracker 

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



[issue37397] Trap in Python 3.5 under Apache 2.2 when Django database returns 'None'.

2019-06-24 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This tracker deals with CPython development and this doesn't seem like am issue 
in CPython but rather an error in your program. I assume you might be passing 
None somewhere in the django ORM query that is expecting a number. Also please 
don't post open web server endpoints with debug mode on. The debug server is 
not meant to be exposed to the internet. This question could find better answer 
from stackoverflow.

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

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-06-24 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 1791128677e71f3b93cae4bbed66ac3c6e4b5110 by Raymond Hettinger in 
branch 'master':
 bpo-36546: Mark first argument as position only (GH-14363)
https://github.com/python/cpython/commit/1791128677e71f3b93cae4bbed66ac3c6e4b5110


--

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14181
pull_request: https://github.com/python/cpython/pull/14364

___
Python tracker 

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



[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-24 Thread Zachary Ware


Zachary Ware  added the comment:

How can you tell that $(PyDebugExt) is not set?  Note that the "Killing any 
running python.exe instances..." line is hard-coded, it does not currently 
include $(PyDebugExt) (though it probably should).  Adding that to the message 
would be a good first step; backporting GH-9901 to 2.7 would probably also be 
good even though it was solving a different issue.

--

___
Python tracker 

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



[issue37397] Trap in Python 3.5 under Apache 2.2 when Django database returns 'None'.

2019-06-24 Thread JOMO WILLACY


New submission from JOMO WILLACY :

I am using Python 3.5 with Django and the Python web server and Apache 2.2 web 
server.
I am querying the database for a "drug_name" and an "insurer" - # and minimum 
"price".

Here is what works and what does not work

Valid Drug Name   Valid Insurer WorksPython web Server  Apache

Epipen   2   YesYes   Yes

Lisenopril   2   YesYes   Yes

Naftin   7   YesYes   Yes



Invalid Drug NameInsurer  Works Python Server   Apache

LicenoprilYesYes  Yes

Licenopril 2 Yes  No


In the last case up above it traps and the server logs at 
/var/www/logs/error.log say "Unhandled Exception".

This is where it traps ans what it says :

 Cannot convert str to float  :  'None'

File 
"/usr/local/lib64/python3.5/site-packages/django/db/models/fields/__init__.py"  
line 1747, in get_prep_value

   return float( output_value )


I then went into the file where the trap occurred and I added a try catch like 
the function after line 1747 and the problem went away.

The trap only happens under Apache.

If you wish to reproduce this problem then go to these links and try the input 
listed above :

Python Web Server :

   http://34.200.216.166:8000/health_insurer2/minimum_price_for_drug/


Apache Web Server :

   http://34.200.216.166/health_insurer2/minimum_price_for_drug/


As an aid I have left debug=on in django so you will be able to trace the trap 
in the browser

The file that I am running is views.py
I am running Amazon AMI Linux in the cloud.


Sincerely Yours,


Jomo Willacy

--
messages: 346476
nosy: jomo_will...@hotmail.com
priority: normal
severity: normal
status: open
title: Trap in Python 3.5 under Apache 2.2 when Django database returns 'None'.
type: crash
versions: Python 3.5

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-06-24 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +14180
pull_request: https://github.com/python/cpython/pull/14363

___
Python tracker 

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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 5bf3b89dfb57e705733851ec31131c985feeca62 by Miss Islington (bot) 
in branch '3.8':
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
https://github.com/python/cpython/commit/5bf3b89dfb57e705733851ec31131c985feeca62


--
nosy: +miss-islington

___
Python tracker 

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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3f5b9088b0ed08e1442cca37df78f609d5cd8c3c by Pablo Galindo in 
branch 'master':
bpo-37394: Fix pure Python implementation of the queue module (GH-14351)
https://github.com/python/cpython/commit/3f5b9088b0ed08e1442cca37df78f609d5cd8c3c


--

___
Python tracker 

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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14179
pull_request: https://github.com/python/cpython/pull/14362

___
Python tracker 

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



[issue35224] PEP 572: Assignment Expressions

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset ced9e11931a7a1c5cf4eef08d0dd4a4886723b43 by Miss Islington (bot) 
in branch '3.8':
bpo-35224: Add What's new entry for evaluation order in dict comprehensions 
(GH-14319)
https://github.com/python/cpython/commit/ced9e11931a7a1c5cf4eef08d0dd4a4886723b43


--

___
Python tracker 

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



[issue35224] PEP 572: Assignment Expressions

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14178
pull_request: https://github.com/python/cpython/pull/14361

___
Python tracker 

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



[issue35224] PEP 572: Assignment Expressions

2019-06-24 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset b51b7137faa22e12c570c70fe0462c662ccd935e by Pablo Galindo in 
branch 'master':
bpo-35224: Add What's new entry for evaluation order in dict comprehensions 
(GH-14319)
https://github.com/python/cpython/commit/b51b7137faa22e12c570c70fe0462c662ccd935e


--

___
Python tracker 

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



[issue37396] [2.7] PCbuild/pythoncore.vcxproj kills the wrong program

2019-06-24 Thread STINNER Victor


New submission from STINNER Victor :

x86 Windows XP 2.7:
https://buildbot.python.org/all/#/builders/45/builds/429

Killing any running python.exe instances...
...
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets(74,5): 
warning : Access to the path 
'd:\cygwin\home\db3l\buildarea\2.7.bolen-windows\build\PCBuild\python_d.exe' is 
denied. 
[d:\cygwin\home\db3l\buildarea\2.7.bolen-windows\build\PCbuild\python.vcxproj]

It's a debug build: it should kill python_d.exe, not python.exe.

--

PCbuild/pythoncore.vcxproj uses:

  
ClCompile
true
  

which comes from PCbuild/pyproject.vcxproj:

  


  

Problem: it seems like $(PyDebugExt) is not set to "_d" in 
PCbuild/pyproject.vcxproj.

Should PCbuild/pyproject.vcxproj explicitly import python.props which defines 
it?


_d

Note: this issue is about Python 2.7.

--
components: Build
messages: 346471
nosy: steve.dower, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: [2.7] PCbuild/pythoncore.vcxproj kills the wrong program
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



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-24 Thread Ruslan Kuprieiev


Ruslan Kuprieiev  added the comment:

Thanks for pointing that out! I've submitted a tiny patch to skip 
``_collect()`` and ``__del__``. Please find it in the Github PR attached. 
Looking forward to your feedback!

--

___
Python tracker 

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



[issue37395] Core interpreter should be linked with libgcc_s.so on Linux

2019-06-24 Thread Zack Weinberg


New submission from Zack Weinberg :

There are several existing issues (e.g. #18748 and #35866) where at least part 
of the problem is that GNU libc tried to dlopen() `libgcc_s.so` at a moment 
when that's not safe, e.g. during thread or process shutdown.  This converts a 
recoverable error into a deadlock or crash.

This is arguably a bug in glibc, but Python can easily work around it by 
linking the core interpreter (the `python` executable and/or `libpython.so`) 
with libgcc_s at build time (`-lgcc_s`) on Linux.  It will then be loaded 
already if and when it's needed, and glibc won't try to load it on demand.

In order for this to be 100% reliable, it needs to be at least theoretically 
possible for code within the interpreter to call a function defined in 
libgcc_s.so. `_Unwind_Backtrace` is probably the most practical option.  (See 
https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib--unwind-backtrace.html
 .)

--
components: Interpreter Core
messages: 346468
nosy: zwol
priority: normal
severity: normal
status: open
title: Core interpreter should be linked with libgcc_s.so on Linux
type: crash

___
Python tracker 

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



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-24 Thread Ruslan Kuprieiev


Change by Ruslan Kuprieiev :


--
pull_requests: +14176
pull_request: https://github.com/python/cpython/pull/14360

___
Python tracker 

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



[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

> To check - do we definitely want to just skip the test if the below OSError 
> is thrown?

Note: I don't propose to ignore any OSError, only if exc.errno == errno.ENOSPC.

> Could we attempt to clean wherever the test is writing to before the test is 
> run/figure out what is using all the space?

Maybe some tests can be enhanced, but that's not directly related to this issue.

In general, Python tests don't leak any resource: memory, files, etc. If there 
is a leak, it must be fixed.

The test creates a file which can take up to 2 GiB on the disk. It's a big 
file. I don't think that other tests leak such huge file.

--

___
Python tracker 

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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue37394] Fix pure Python implementation of queue

2019-06-24 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

The test for the queue module are not testing correctly both the C and the 
Python implementation of the queue. A consequence is that some errors are being 
overseed (like the fact that an AttributeError is used instead of an 
ImportError to catch when importing _queue fails).

--
components: Extension Modules, Interpreter Core, Tests
messages: 346466
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Fix pure Python implementation of queue
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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

I prefer to remove deprecated functions early in the 3.9 dev cycle, so we have 
more time for feedback. If something goes wrong, we can discuss reverting this 
removal before 3.9.0 final release.

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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5 by Victor Stinner in 
branch 'master':
bpo-37392: Remove sys.setcheckinterval() (GH-14355)
https://github.com/python/cpython/commit/36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5


--

___
Python tracker 

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



[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2019-06-24 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue37335] Add 646 ASCII alias to locale coercion tests.

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

test_c_locale_coerce should use "codecs.lookup(encoding).name" to get the 
normalized name of an encoding, rather than fragile:

data = data.replace(b"ANSI_X3.4-1968", b"ascii")
data = data.replace(b"US-ASCII", b"ascii")

the proposed pattern is even more dangerous:

 data = data.replace(b"646", b"ascii")

I'm not sure where encodings should be normalized. Maybe around 
_check_child_encoding_details().

For the PR, please write it for the master branch.

--
nosy: +vstinner

___
Python tracker 

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



[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-24 Thread Ned Deily


Ned Deily  added the comment:

FWIW, I can't reproduce the failure using either Python 3.7.3 from either the 
python.org binary installer or a current MacPorts 3.7.3.  But that's not 
surprising as the issue is most likely in Tk rather than IDLE or Python itself. 
 Can you supply the output from the following commands in a terminal session, 
assuming python3 is the same interpreter used to run IDLE?

python3 -m test.pythoninfo
otool -L $(python3 -c 'import _tkinter;print(_tkinter.__file__)')

--
nosy: +ned.deily

___
Python tracker 

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



[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

> 2) ignore EBADF(OSError: [WinError 6] The handle is invalid) in terminate() 
> and probably some other methods

That sounds like a bad idea. We should avoid using a handle if it can become 
invalid out of our control. A handle might be recycled, no?

--
nosy: +vstinner

___
Python tracker 

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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

These functions were deprecated by this change:

commit 074e5ed974be65fbcfe75a4c0529dbc53f13446f
Author: Antoine Pitrou 
Date:   Tue Nov 10 19:50:40 2009 +

Merge in the new GIL.

--

___
Python tracker 

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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

Attached PR 14355 removes these functions.

--

___
Python tracker 

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



[issue37393] Deprecation warnings in test_ntpath

2019-06-24 Thread Zackery Spytz


Change by Zackery Spytz :


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

___
Python tracker 

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



[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-24 Thread Giovanni Cappellotto


Change by Giovanni Cappellotto :


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

___
Python tracker 

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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue37393] Deprecation warnings in test_ntpath

2019-06-24 Thread Zackery Spytz


New submission from Zackery Spytz :

C:\CPython\cpython>python.bat -Werror -m test test_ntpath
Running Debug|x64 interpreter...
Run tests sequentially
0:00:00 load avg: 0.00 [1/1] test_ntpath
test test_ntpath failed -- Traceback (most recent call last):
  File "C:\CPython\cpython\\lib\ntpath.py", line 518, in abspath
return normpath(_getfullpathname(path))
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\CPython\cpython\lib\test\test_ntpath.py", line 285, in test_abspath
tester('ntpath.abspath("")', cwd_dir)
  File "C:\CPython\cpython\lib\test\test_ntpath.py", line 41, in tester
gotResult = eval(fn)
  File "", line 1, in 
  File "C:\CPython\cpython\\lib\ntpath.py", line 520, in abspath
return _abspath_fallback(path)
  File "C:\CPython\cpython\\lib\ntpath.py", line 501, in _abspath_fallback
cwd = os.getcwdb()
DeprecationWarning: The Windows bytes API has been deprecated, use Unicode 
filenames
instead

test_ntpath failed

== Tests result: FAILURE ==

1 test failed:
test_ntpath

Total duration: 1 sec 297 ms
Tests result: FAILURE


It seems that eval() is called an extra time without a warning filter in the 
tester() function.

--
components: Tests, Windows
messages: 346458
nosy: ZackerySpytz, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Deprecation warnings in test_ntpath
type: behavior
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



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

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

Sorry for the delays!

I've merged into master. The backports (3.7, 3.8) are going to need some help, 
so I'll take a look at them soon unless someone else gets there first.

--
stage: needs patch -> backport needed
versions: +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



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

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:


New changeset 9fc720e5e4f772598013ea48a3f0d22b2b6b04fa by Steve Dower (David K. 
Hess) in branch 'master':
bpo-4963: Fix for initialization and non-deterministic behavior issues in 
mimetypes (GH-3062)
https://github.com/python/cpython/commit/9fc720e5e4f772598013ea48a3f0d22b2b6b04fa


--
nosy: +steve.dower

___
Python tracker 

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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread Steve Dower


Change by Steve Dower :


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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset dad8f79cfd83b824decb15eac4c0d5723edd4bf1 by Miss Islington (bot) 
in branch '3.8':
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
https://github.com/python/cpython/commit/dad8f79cfd83b824decb15eac4c0d5723edd4bf1


--

___
Python tracker 

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



[issue37392] Remove sys.setcheckinterval()

2019-06-24 Thread STINNER Victor


New submission from STINNER Victor :

sys.getcheckinterval() and sys.setcheckinterval() are deprecated since Python 
3.2, it's now time to remove them!

--
components: Interpreter Core
messages: 346454
nosy: vstinner
priority: normal
severity: normal
status: open
title: Remove sys.setcheckinterval()
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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 14c179f97dbb7047cb30e4a610b5d5b531a4f6f7 by Miss Islington (bot) 
in branch '3.7':
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
https://github.com/python/cpython/commit/14c179f97dbb7047cb30e4a610b5d5b531a4f6f7


--

___
Python tracker 

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



[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:


New changeset 8bd2872adbbc7ed5dd0a7593193c52431ae34c8d by Steve Dower 
(animalize) in branch 'master':
bpo-25361: Enable SSE2 instructions for Windows 32-bit build (GH-12438)
https://github.com/python/cpython/commit/8bd2872adbbc7ed5dd0a7593193c52431ae34c8d


--

___
Python tracker 

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



[issue37140] ctypes change made clang fail to build

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

> According to serge_sans_paille: if ``self->b_ptr`` contains pointer, the 
> ``memcpy`` creates sharing, and this is dangerous: if a ``__del__`` happens 
> to free the original pointer, we end up with a dangling reference in 
> ``new_ptr``. As far as I can tell, this is what happens in the clang bindings 
> code.

We probably need a second parg->obj to keep self alive for as long as 
copied_self. Or pack it into a tuple.

Having a repro test for this would be ideal, especially if we can make it 
happen (even crash) on all platforms. The double-free issue would seem to be 
real, and I don't want it to crash on Windows either.

--

___
Python tracker 

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



[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-24 Thread Ali McMaster


Ali McMaster  added the comment:

To check - do we definitely want to just skip the test if the below OSError is 
thrown? Could we attempt to clean wherever the test is writing to before the 
test is run/figure out what is using all the space?

--
nosy: +Ali McMaster

___
Python tracker 

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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:


New changeset 0fc14b373398767b4323a7bc2c2310b6218c5b74 by Steve Dower 
(animalize) in branch '2.7':
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14182)
https://github.com/python/cpython/commit/0fc14b373398767b4323a7bc2c2310b6218c5b74


--

___
Python tracker 

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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14171
pull_request: https://github.com/python/cpython/pull/14354

___
Python tracker 

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



[issue33408] AF_UNIX is now supported in Windows

2019-06-24 Thread STINNER Victor


Change by STINNER Victor :


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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14170
pull_request: https://github.com/python/cpython/pull/14353

___
Python tracker 

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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:


New changeset 7fd2ba354ec2304743ffd9ba620e07d113532264 by Steve Dower 
(animalize) in branch 'master':
bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
https://github.com/python/cpython/commit/7fd2ba354ec2304743ffd9ba620e07d113532264


--

___
Python tracker 

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



[issue35360] Update SQLite to 3.28 in Windows and macOS installer builds

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14169
pull_request: https://github.com/python/cpython/pull/14352

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

I took your code and made some improvements:

https://github.com/python/cpython/compare/master...zooba:bpo37390

In particular, I added the backlinks from the table (but unfortunately they all 
go to the line of text we generate for the ..audit-event directive, and not the 
top of the section :( ) and debugged some of the weirdness of generating tables 
in docutils.

Feel free to pull my changes and take back over if there's more you want to do!

--

___
Python tracker 

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



[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-24 Thread George Pantazes


George Pantazes  added the comment:

Also happens when I plug in a conventional mouse and use the mouse scrollwheel 
(so it's not just the touchpad scrolling!).

--

___
Python tracker 

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



[issue37391] MacOS Touchpad scrolling crashes IDLE

2019-06-24 Thread George Pantazes


New submission from George Pantazes :

IDLE crashes if the user scrolls with the Mac mousepad (using two fingers, 
either up or down).

```$ python -m idlelib # Then I use the mousepad to scroll in the IDLE window
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py",
 line 193, in _run_module_as_main
"__main__", mod_spec)
  File 
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py",
 line 85, in _run_code
exec(code, run_globals)
  File 
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/idlelib/__main__.py",
 line 7, in 
idlelib.pyshell.main()
  File 
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/idlelib/pyshell.py",
 line 1572, in main
root.mainloop()
  File 
"/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py",
 line 1283, in mainloop
self.tk.mainloop(n)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid 
start byte
```

System Info: MacOS Mojave 10.14.5 (18F132)

Python:
3.7.3 (default, Mar 27 2019, 09:23:15) 
[Clang 10.0.1 (clang-1001.0.46.3)]
sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)

--
assignee: terry.reedy
components: IDLE
messages: 346445
nosy: George Pantazes, terry.reedy
priority: normal
severity: normal
status: open
title: MacOS Touchpad scrolling 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



[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-24 Thread aeros167


aeros167  added the comment:

Created a PR for moving and renaming "test_pkimport". An initial approval was 
made, now it is awaiting core review 
(https://github.com/python/cpython/pull/14303).

--

___
Python tracker 

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



[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-24 Thread Giovanni Cappellotto


Giovanni Cappellotto  added the comment:

Hi,

I'd like to claim this task if nobody else already started working on it.

--
nosy: +potomak

___
Python tracker 

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



[issue34556] Add --upgrade-deps to venv module

2019-06-24 Thread Cooper Lees


Change by Cooper Lees :


--
title: Add --upgrade to venv module -> Add --upgrade-deps to venv module

___
Python tracker 

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



[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

Oh I see, this specific buildbot uses a different buildbot configuration that I 
forgot to patch. It should now be fixed as well:
https://github.com/python/buildmaster-config/commit/f546fa0cfa0bf1ac77970c2eaa001923d8df7cbf

New build which should use this configuration:
https://buildbot.python.org/all/#/builders/103/builds/2702

--

___
Python tracker 

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



[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

> The issue strikes back:
> https://buildbot.python.org/all/#/builders/103/builds/2698

Not good. This build was run after I deployed the new buildbot configuraiton, 
with the new "cleantest" step, but it has no "cleantest" step. Maybe this job 
was scheduled before the new configuration was deployed?

I rebuilt this build to see if it gets "cleantest" step:
https://buildbot.python.org/all/#/builders/103/builds/2701

Note: I'm not surprised that the issue strikes back. It happens all the time 
with buildbots...

--

___
Python tracker 

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



[issue33408] AF_UNIX is now supported in Windows

2019-06-24 Thread Paul Monson


Change by Paul Monson :


--
nosy: +Paul Monson

___
Python tracker 

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



[issue37370] AF_UNIX should be supported on Windows

2019-06-24 Thread Paul Monson


Paul Monson  added the comment:

Thanks Zackery.  Closing as duplicate

--
resolution:  -> duplicate
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



[issue37250] C files generated by Cython set tp_print to 0: PyTypeObject.tp_print removed

2019-06-24 Thread Carol Willing


Carol Willing  added the comment:

Thank you Petr. Looking at your response, the full discussion here, and the 
fact that we don't have an easy way to put a number on who would be impacted, I 
agree that merging the PR seems the best course of action.


Thanks Stefan for additional follow up with Cython too.

--

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

2019-06-24 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think my approach suffers from the drawback where duplicate items cannot be 
separated correctly as you have mentioned. Example as below where 
socket.connect and socket.connect_ex emit same event and I am not able to 
retrieve the function at which the audit event block is present thus generating 
the same entry twice in the table. Maybe I need to store some more metadata.

1153:.. method:: socket.connect(address)
1165:   .. audit-event:: socket.connect "self address"
1174:.. method:: socket.connect_ex(address)
1183:   .. audit-event:: socket.connect "self address"

> * include links back to the section where they came from

Sphinx doesn't seem to support hyperlinking to line numbers. One approach would 
be to just link to the functions that emit the events that could solve the 
above problem too.

I did this as a PoC and kind of stuck with moving the file to a separate to a 
different table of content. I also seemed to have hit a sphinx bug that I 
couldn't get out of and my skills are limited too in Sphinx. I will give it 
another try over this week to see if I can come up with something mergeable :)

--

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

Awesome! I was just making a start on this too, and it looks like we were doing 
nearly identical work. Happy to let you keep going on it!

Some things that I thought would be worth doing:
* combine equivalent events (warn if names match but arguments are different)
* include links back to the section where they came from
* include a "CPython implementation detail" message, and maybe mention that the 
table is generated from the docs

I think for the formatting, we'll have to rearrange how the *args* variable is 
created initially (so that we store the original names, not the `` marked ones) 
and then use nodes.literal() when adding them later. But this is pushing the 
boundaries of my Sphinx/docutils skills as well :)

--

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-24 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Sure, I think I missed it somehow though you mentioned it's around combining 
StreamReader and StreamWriter and to have appropriate signatures for the 
methods. I will try to raise a PR this week. I also realize there are no 
docstrings for the new functions like connect, connect_read_pipe, 
connect_write_pipe etc. Is it worthy enough of adding them too in the PR?

--

___
Python tracker 

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



[issue37384] Compiling Python 3.7.3 from source and getting all sorts of errors on Debian?

2019-06-24 Thread Eryk


Eryk  added the comment:

yeah i managed to fix the uuid already and used:
./configure --enable-optimizations
followed by
make -j 4
and then using
sudo make altinstall

but the issue comes up during the make -j 4 process, strange thing is before 
using thee 'uuid' fix i mentioned and found on here I didn't have the curses 
issue and now I do, how could I fix this so it compiles without errors? Thanks 
a lot for replying guys :)

--
resolution: duplicate -> 
status: closed -> open

___
Python tracker 

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



[issue37347] Reference-counting problem in sqlite

2019-06-24 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

The _sqlite3 module clearly is not free of bugs in this area. Binding the 
Python function to the exact lifetime of the sqlite function seems less likely 
to be buggy than replicating sqlite's function reference management 
independently. sqlite3_create_function_v2 was added in 2010; I think we can 
depend on it. Also, won't the callback pretty much be Py_DECREF(something)?

--

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-24 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks, Karthikeyan!

The only thing that needs to be documented is Stream class itself.
Would you finish this job, please?

--

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 7268fd0d212e870103ae052697b32ba54d3f6299 by Miss Islington (bot) 
in branch '3.8':
bpo-36889: Document asyncio Stream and StreamServer (GH-14203)
https://github.com/python/cpython/commit/7268fd0d212e870103ae052697b32ba54d3f6299


--

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

2019-06-24 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I just tried an initial attempt at this and a screenshot as attached. I 
followed the approach similar to the one at 
https://www.sphinx-doc.org/en/master/development/tutorials/todo.html to gather 
all todos. The approach was to append all the audit event directives to a list 
as they are collected. I then created an AuditEventListDirective for post 
processing once rst files were read and created an empty page with only the 
audit-event-list-table directive. I rendered the audit items in the list into a 
table and then replaced the audit-event-list-table directive in the page with 
the table content. Unfortunately, I couldn't proceed further due to some odd 
sphinx error during builds on moving this to a new index and limited sphinx 
skills. 

+1 to the idea. It would be helpful to have all the audit events under one page 
for reference.

https://github.com/python/cpython/compare/master...tirkarthi:bpo37390

--
Added file: https://bugs.python.org/file48436/Screen Shot 2019-06-24 at 
11.54.58 pm.png

___
Python tracker 

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread Ned Deily


Ned Deily  added the comment:

Thanks, @adam, for the analysis and thanks, zihengCat, for the PR.

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 76b72f6ea26de4280279a01863f30fccd2dde8f3 by Miss Islington (bot) 
in branch '3.8':
bpo-32627: Fix compile error when conflicting `_uuid` headers included 
(GH-11751)
https://github.com/python/cpython/commit/76b72f6ea26de4280279a01863f30fccd2dde8f3


--

___
Python tracker 

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



[issue37221] PyCode_New API change breaks backwards compatibility policy

2019-06-24 Thread Stefan Behnel


Stefan Behnel  added the comment:

I'm really only waiting for bpo-37250 to be resolved, then I can prepare a new 
point release of Cython, preferably this week.

--

___
Python tracker 

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 742b16edd692f58a06e0d55bedfffb77a112b205 by Miss Islington (bot) 
in branch '3.7':
bpo-32627: Fix compile error when conflicting `_uuid` headers included 
(GH-11751)
https://github.com/python/cpython/commit/742b16edd692f58a06e0d55bedfffb77a112b205


--
nosy: +miss-islington

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14168
pull_request: https://github.com/python/cpython/pull/14349

___
Python tracker 

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



[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-06-24 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 6793cce155f8875b10efd746cb0b34cb72263af7 by Andrew Svetlov 
(Xtreak) in branch 'master':
bpo-36889: Document asyncio Stream and StreamServer (GH-14203)
https://github.com/python/cpython/commit/6793cce155f8875b10efd746cb0b34cb72263af7


--

___
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 0: PyTypeObject.tp_print removed

2019-06-24 Thread Stefan Behnel


Stefan Behnel  added the comment:

Thank you, Petr, for bringing this discussion back on a solid basis, actually 
twice already.

And sorry for causing this problem in the first place. The "tp_print = 0" was 
necessary to fix misbehaviour in Py2, and we should have restricted it to Py2 
back then (that line has been there since late 2013).

I think keeping some kind of a "tp_print" named field in PyTypeObject for now 
is the best we can do. I like Jeroen's PR (thanks for taking care of so many 
things at a time, Jeroen!), and I think we should just go with it.

I'm happy to release a new point release for Cython, as soon as it's clear what 
CPython will do, and how Cython can detect the change to adapt to it.

--

___
Python tracker 

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14167
pull_request: https://github.com/python/cpython/pull/14348

___
Python tracker 

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14166
pull_request: https://github.com/python/cpython/pull/14347

___
Python tracker 

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



[issue32627] Header dependent _uuid build failure on Fedora 27

2019-06-24 Thread Ned Deily


Ned Deily  added the comment:


New changeset 6ffd9b05dfade9e3a101fe039157856eb855f82e by Ned Deily (ziheng) in 
branch 'master':
bpo-32627: Fix compile error when conflicting `_uuid` headers included 
(GH-11751)
https://github.com/python/cpython/commit/6ffd9b05dfade9e3a101fe039157856eb855f82e


--
nosy: +ned.deily

___
Python tracker 

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



[issue37384] Compiling Python 3.7.3 from source and getting all sorts of errors on Debian?

2019-06-24 Thread Ned Deily


Ned Deily  added the comment:

The uuid issue is described in Issue32627 and there is a PR fix for it awaiting 
review (PR 11751).  As Christian notes, the curses issues seems to be related 
to some configure option.  If you haven't already, suggest you start with the 
simplest configure options, so something like:

./configure && make -j2

or 

./configure --prefix=/path/to/installed/location && make -j2 && make install

and, once that is working, then try adding other options.  Please feel free to 
reopen this issue if you find a failing issue and please include all relevant 
details, in particular the exact configure command used and platform details.

--
nosy: +ned.deily
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Header dependent _uuid build failure on Fedora 27

___
Python tracker 

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



[issue37351] Drop libpython38.a from Windows release

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

Fixing --compiler=mingw32 is left for another bug, if anyone is so motivated.

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



[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-24 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The issue strikes back:

https://buildbot.python.org/all/#/builders/103/builds/2698

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



[issue37363] Additional PEP578 hooks

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

FWIW, I tried looking into how we can prevent or detect monkeypatching of 
"sys.audit", and the answer seems to be that we need to define a custom type 
for the sys module and for sys.__dict__.

I'm not prepared to do that yet, and IMHO there are enough way to detect 
someone patching it to nothing (all your logs disappear) or patching it more 
cleverly (someone ran some pretty complex code to redefine it) and events from 
native code can't be suppressed either, so I think it's fine. 

But I won't refuse a contribution if someone thinks this is a critical scenario 
(though I will push hard to make sure the implementation is solid, as I think 
this is pretty hard to get right).

--

___
Python tracker 

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



[issue37363] Additional PEP578 hooks

2019-06-24 Thread miss-islington


miss-islington  added the comment:


New changeset 8763d43a9558b345af6a3a298afa18e7d3b42fd0 by Miss Islington (bot) 
in branch '3.8':
bpo-37363: Add audit events for a range of modules (GH-14301)
https://github.com/python/cpython/commit/8763d43a9558b345af6a3a298afa18e7d3b42fd0


--
nosy: +miss-islington

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

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



[issue37387] test_compileall fails randomly on Windows when tests are run in parallel

2019-06-24 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

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



[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device

2019-06-24 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

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



[issue37390] Generate table of audit events for docs

2019-06-24 Thread Steve Dower


New submission from Steve Dower :

All audit events are marked in the docs with the ".. audit-event::  
" syntax.

We should automatically collate these into a single table and generate a new 
doc page as part of docs build.

--
assignee: docs@python
components: Documentation
messages: 346417
nosy: christian.heimes, docs@python, steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: Generate table of audit events for docs
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue37363] Additional PEP578 hooks

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:


New changeset 60419a7e96577cf783b3b45bf3984f9fb0d7ddff by Steve Dower in branch 
'master':
bpo-37363: Add audit events for a range of modules (GH-14301)
https://github.com/python/cpython/commit/60419a7e96577cf783b3b45bf3984f9fb0d7ddff


--

___
Python tracker 

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



[issue37363] Additional PEP578 hooks

2019-06-24 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14165
pull_request: https://github.com/python/cpython/pull/14345

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-24 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +14164
pull_request: https://github.com/python/cpython/pull/14344

___
Python tracker 

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



[issue37378] FatalError: initfsencoding python couldn't find codec Module not found: Encodings

2019-06-24 Thread Steve Dower


Steve Dower  added the comment:

> Also, just one question: how could python -m pip work but not pip? What are 
> the differences in them?

To answer this, "pip" on its own is essentially like writing the full path to a 
specific python.exe and passing "-m pip". If that Python install has been 
removed or (more likely in this case) is broken, then you'll get the error 
you're seeing.

Fixing your PATH as suggested should do it.

--

___
Python tracker 

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



[issue37388] unknown error handlers should be reported early

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

bench.py: microbenchmark to measure the overhead of PR 14341.

--
Added file: https://bugs.python.org/file48435/bench.py

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


STINNER Victor  added the comment:

I marked bpo-37389 as a duplicate of this issue:

"""
msg346410 - (view)  Author: Daniel W Forsyth (d...@dataforge.on.ca) 
Date: 2019-06-24 14:53

After putting a basic ThreadingUDPServer under load (500 messages per/second)  
I noticed that after a night it was consuming a lot of RAM given it does 
nothing with the data.

On inception, I noticed the _thread count inside the server was growing forever 
even though the sub-threads are done.

Setup a basic ThreadingUDPSever with handler that does nothing and check the 
request_queue_size, it seems to grow without limit.

msg346411 - (view)  Author: Daniel W Forsyth (d...@dataforge.on.ca) 
Date: 2019-06-24 14:59

The only way I could figure out to control it was to do this in a thread;

for thread in server._threads:  # type: Thread
if not thread.is_alive():
server._threads.remove(thread)

Shouldn't the server process do this when the thread is done?
"""

--

___
Python tracker 

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



[issue37389] Memory Leak - ThreadingUDPServer

2019-06-24 Thread Daniel W Forsyth


Daniel W Forsyth  added the comment:

The only way I could figure out to control it was to do this in a thread;

for thread in server._threads:  # type: Thread
if not thread.is_alive():
server._threads.remove(thread)

Shouldn't the server process do this when the thread is done?

--

___
Python tracker 

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



[issue37389] Memory Leak - ThreadingUDPServer

2019-06-24 Thread STINNER Victor


STINNER Victor  added the comment:

This issue is a duplicate of bpo-37193.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Memory leak while running TCP/UDPServer with 
socketserver.ThreadingMixIn

___
Python tracker 

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



[issue37389] Memory Leak - ThreadingUDPServer

2019-06-24 Thread Daniel W Forsyth


New submission from Daniel W Forsyth :

After putting a basic ThreadingUDPServer under load (500 messages per/second)  
I noticed that after a night it was consuming a lot of RAM given it does 
nothing with the data.

On inception, I noticed the _thread count inside the server was growing forever 
even though the sub-threads are done.

Setup a basic ThreadingUDPSever with handler that does nothing and check the 
request_queue_size, it seems to grow without limit.

--
components: Library (Lib)
messages: 346410
nosy: d...@dataforge.on.ca
priority: normal
severity: normal
status: open
title: Memory Leak - ThreadingUDPServer
type: performance
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



  1   2   >