[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9dfc754d61c55a526304e10a328bad448efa9ee9 by Victor Stinner in 
branch 'master':
Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted 
(GH-8450)" (GH-10971)
https://github.com/python/cpython/commit/9dfc754d61c55a526304e10a328bad448efa9ee9


--

___
Python tracker 

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



[issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset af31228650d30f02a283d291ba106e84275a04c1 by Miss Islington (bot) 
in branch '3.6':
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. 
(GH-7278)
https://github.com/python/cpython/commit/af31228650d30f02a283d291ba106e84275a04c1


--

___
Python tracker 

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



[issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset b1438c0d376e1d438a11927e2698e3317da0d854 by Miss Islington (bot) 
in branch '3.7':
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. 
(GH-7278)
https://github.com/python/cpython/commit/b1438c0d376e1d438a11927e2698e3317da0d854


--
nosy: +miss-islington

___
Python tracker 

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



[issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10222

___
Python tracker 

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



[issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10223

___
Python tracker 

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



[issue33709] test.support.FS_NONASCII returns incorrect result in Windows with non-US locale

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce by Serhiy Storchaka 
(native-api) in branch 'master':
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. 
(GH-7278)
https://github.com/python/cpython/commit/8752dfbd1f0c96ca09cdacabaf0d0f8c3895b6ce


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10221

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10220

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 6ea9d54dea9f2f8be7fe6d284064c579331388a9 by Terry Jan Reedy in 
branch 'master':
bpo-34162: Update idlelib NEWS to 2018-12-05. (GH-10964)
https://github.com/python/cpython/commit/6ea9d54dea9f2f8be7fe6d284064c579331388a9


--

___
Python tracker 

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



[issue35422] misleading error message from ssl.get_server_certificate() when bad port

2018-12-05 Thread Benjamin Peterson


Benjamin Peterson  added the comment:

Note this is just the error that OpenSSL produces. There isn't a whole Python 
can do to change it.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Myles Borins  added the comment:

Thanks for chiming in R. David Murray

> Think of the absence of the mimetype rule as a bug, rather than its presence 
> as a feature.

Very much appreciate this sentiment.

I've opened backports to simplify the process if y'all decide to approve.

2.7: https://github.com/python/cpython/pull/10978
3.6: https://github.com/python/cpython/pull/10976
3.7: https://github.com/python/cpython/pull/10977

--

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Change by Myles Borins :


--
pull_requests: +10219

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Change by Myles Borins :


--
pull_requests: +10218

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Change by Myles Borins :


--
pull_requests: +10217

___
Python tracker 

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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Eryk Sun


Eryk Sun  added the comment:

> I don't see how PyNamespace_New() can call LookupPrivilegeValueA()

For the record, in the 3.7.1 release build, `PyNamespace_New + d4` is in 
enable_symlink (Modules/posixmodule.c), which gets called when the nt (aka 
posix) module gets initialized. It's the return address for the 
LookupPrivilegeValueA call:

0:000> u (python37!PyNamespace_New + d4 - 6) l2
python37!enable_symlink+0x42:
7ffd`e4b9a356 
ff153ccd1500callqword ptr 
[python37!_imp_LookupPrivilegeValueA (7ffd`e4cf7098)]
7ffd`e4b9a35c 
85c0testeax,eax

It's just that Cao didn't have the python37.pdb symbol file available in 
Process Explorer.

--

___
Python tracker 

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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Cao Hongfu


Change by Cao Hongfu :


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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Cao Hongfu

Cao Hongfu  added the comment:

I tried windows resource manager and found that stuck python process does not 
have load these three DLL files(or stuck on loading these DLL files):
MozartBreathBolo.dll
MozartBreathNet.dll
MozartBreathProcess.dll.
These DLL files were created by our company's supervisory software,I contact 
the IT guy and disabled it. Now everything is fine.
Without the supervisory software, the normal python should allocate only 8MB 
memeory.
THX you guys, and sorry for wasting your time~

--
resolution:  -> not a bug

___
Python tracker 

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



[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-05 Thread STINNER Victor


New submission from STINNER Victor :

Since 2 years, I'm fixing frequently "dangling thread" and "dangling process" 
warnings on buildbots. These bugs are really hard to reproduce. They usually 
require to get access to a specific buildbot, simulate a specific workload, and 
get the proper timing to get the warning.

I propose to emit a ResourceWarning in multiprocessing.Pool destructor if the 
pool has not been cleaned properly. I'm not sure in which cases a warning 
should be emitted.

Attached PR is a WIP implementation.

--
components: Tests
messages: 331201
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: multiprocessing.Pool: emit ResourceWarning
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



[issue3533] mac 10.4 buld of 3.0 --with-pydebug fails no __eprintf

2018-12-05 Thread Mario Corchero


Change by Mario Corchero :


--
pull_requests: +10215

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 358fc87f53cf97a1768d5b1ded08f2a564f9fd85 by Victor Stinner in 
branch '2.7':
Revert "[2.7] bpo-34172: multiprocessing.Pool leaks resources after being 
deleted (GH-9686)" (GH-10970)
https://github.com/python/cpython/commit/358fc87f53cf97a1768d5b1ded08f2a564f9fd85


--

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset eb38ee052e2273568d0041e969aa851ee44e43ce by Victor Stinner in 
branch '3.6':
[3.6] Revert "bpo-34172: multiprocessing.Pool leaks resources after being 
deleted (GH-8450) (GH-9677)" (GH-10969)
https://github.com/python/cpython/commit/eb38ee052e2273568d0041e969aa851ee44e43ce


--

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3c6b0d967eb4c95e06c4f1beddfca4f6300d92ce by Victor Stinner in 
branch '3.7':
[3.7] Revert "bpo-34172: multiprocessing.Pool leaks resources after being 
deleted (GH-8450) (GH-9676)" (#10968)
https://github.com/python/cpython/commit/3c6b0d967eb4c95e06c4f1beddfca4f6300d92ce


--

___
Python tracker 

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



[issue35420] how to migrate a c-extension module to one that supports subinerpreters?

2018-12-05 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



[issue35423] Signal handling machinery still relies on "pending calls".

2018-12-05 Thread Eric Snow


Change by Eric Snow :


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

___
Python tracker 

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



[issue35423] Signal handling machinery still relies on "pending calls".

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

In the master branch, the signal handler only uses pending calls to report 
error on writing into the "wakeup_fd" (fd or socket handle):

commit c08177a1ccad2ed0d50898c2731b518c631aed14
Author: Antoine Pitrou 
Date:   Wed Jun 28 23:29:29 2017 +0200

bpo-30703: Improve signal delivery (#2415)

--
nosy: +vstinner

___
Python tracker 

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



[issue35423] Signal handling machinery still relies on "pending calls".

2018-12-05 Thread Eric Snow


New submission from Eric Snow :

For a while now the signal handling machinery has piggy-backed on ceval's 
"pending calls" machinery (e.g. Py_AddPendingCall).  This is a bit confusing.  
It also increases the risk with unrelated changes to the pending calls code.

--
assignee: eric.snow
messages: 331196
nosy: eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Signal handling machinery still relies on "pending calls".
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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Eryk Sun


Eryk Sun  added the comment:

> This traceback doesn't make sense

Enable the installer options for the debug binaries and symbol files. Ensure 
that this installs the *_d.[exe|dll] debug binaries and also the *.pdb symbol 
files for the release and debug builds. 

Run the debug build via python_d.exe to check whether it aborts from a failed 
assertion. If it still hangs, in Process Explorer open the dialog for Options 
-> Configure Symbols and add the installation directory of Python 3.7 to the 
beginning of the "Symbols path". At least now your stack traces should have 
proper symbols instead of only the names of exported functions, for what that's 
worth. It's a poor substitute for a [mini]dump file and a debugger.

--
nosy: +eryksun

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset 4699f2aa26b2f8befa77852e0c6fba0b474a2748 by Miss Islington (bot) 
in branch '3.6':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
https://github.com/python/cpython/commit/4699f2aa26b2f8befa77852e0c6fba0b474a2748


--

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10213

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10212

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset 0fc3b2fe010e42a8c146fb84924e9fd33c6f4e29 by Miss Islington (bot) 
in branch '3.7':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
https://github.com/python/cpython/commit/0fc3b2fe010e42a8c146fb84924e9fd33c6f4e29


--
nosy: +miss-islington

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10211

___
Python tracker 

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10210
stage: resolved -> patch review

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10208

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10209

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset aa8ae904ad2f576f8e7b38a9a6542d3e9a569be9 by Victor Stinner in 
branch 'master':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
https://github.com/python/cpython/commit/aa8ae904ad2f576f8e7b38a9a6542d3e9a569be9


--

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

Ok, the bug should now be fixed in 3.6, 3.7 and master branches.

Thanks Brian Maissy for the bug report and thanks Oran Avraham for the fix!

I hope that we will understand why I didn't want to add a new functional test 
;-)

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



[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

Another example of complex issue related to object lifetime, resources (file 
descriptors) and multiprocessing: bpo-30966, add SimpleQueue.close().

--

___
Python tracker 

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



[issue35316] test_eintr fails randomly on macOS

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

Note: I just fixed another test_eintr bug on macOS, bpo-35363.

--

___
Python tracker 

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



[issue35316] test_eintr fails randomly on macOS

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue35316] test_eintr fails randomly on macOS

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

I close the issue.

@Pablo: You are free to continue to investigate why sometimes test_sleep() is 
not interrupted by any signal.

--

___
Python tracker 

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



[issue35363] test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10207

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +10206

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Release peps -- needed for proposed and actual release dates.
3.6 PEP 494
3.7 PEP 537
3.8 PEP 569

--

___
Python tracker 

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



[issue34162] idlelib/NEWS.txt for 3.8.0 (and backports)

2018-12-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Release peps -- needed for proposed and actual release dates.
3.6 pep-494
3.7 pep-537
3.8 pep-569

--

___
Python tracker 

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



[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 848acf7249b5669d73d70a7cb6e5ab60689cf825 by Victor Stinner in 
branch 'master':
bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)
https://github.com/python/cpython/commit/848acf7249b5669d73d70a7cb6e5ab60689cf825


--

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset fff8fab1ce4af208cd9c6cd84a8be626a1b744d8 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. 
(GH-8113). (GH-10946) (GH-10955)
https://github.com/python/cpython/commit/fff8fab1ce4af208cd9c6cd84a8be626a1b744d8


--

___
Python tracker 

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



[issue25545] email parsing docs: clarify that only ASCII strings are supported

2018-12-05 Thread R. David Murray


R. David Murray  added the comment:

The problem comes from thinking you can parse an arbitrary email message if it 
is in unicode form.  *YOU CANNOT DO THAT* in the general case (ie: non-ascii 
attachments).

That said, the new email package API is designed to facilitate "off label" 
uses.  I would have no problem with the definition of a policy object[*] that 
was basically "use this to parse messages in unicode form as long as they don't 
use MIME".  As soon as you start parsing MIME headers, the input had better be 
binary or pure ascii, or the headers *won't make sense*.  You break the MIME 
API contract if you use MIME with a non-ascii unicode string.

[*] that policy might be a clone of one of the existing policies and not 
actually do anything to prevent the input having mime headers...ideally it 
would, but I just don't want to say it is OK to use the standard email policies 
to do this and expect it to continue to work in the future.  It probably will, 
but we should not document it that way! :)

--

___
Python tracker 

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



[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread R. David Murray


R. David Murray  added the comment:

We have generally made an exception to the "new feature" rule for mimetypes.  
That is, we don't really consider a mimetype addition to be a new feature in 
the sense that our backward compatibility rules mean.  It is true that an 
application could work on x.y.z and break on x.y.z-1, but this isn't because an 
*API* present in x.y.z is not there in x.y.z-1.  is more akin to a bugfix (it 
threw an exception before, now it works).  Think of the absence of the mimetype 
rule as a bug, rather than its presence as a feature.

And yes, this is a policy evolution.  This way of looking at mimetypes changes 
has been in effect formaybe five years now?...and before that we treated 
them as features.  But then, too, before that we required there be an actual 
IANA accepted RFC, but that requirement too has had to evolve as mimetype 
management became more decentralized.

--

___
Python tracker 

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 3a9b3346b03796d8573c063ab4c2407043609459 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-34604: Use %R because of invisible characters or trailing whitespaces. 
(GH-9165). (GH-10947) (GH-10954)
https://github.com/python/cpython/commit/3a9b3346b03796d8573c063ab4c2407043609459


--

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset fdf505000f135df3bdae08697b2a324d8f046768 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. 
(GH-8113). (GH-10946) (GH-10952)
https://github.com/python/cpython/commit/fdf505000f135df3bdae08697b2a324d8f046768


--

___
Python tracker 

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



[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b2742ba5f9ce8a6108202e0645662f2b58da423b by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-34738: Add directory entries in ZIP files created by distutils. 
(GH-9419). (GH-10950)
https://github.com/python/cpython/commit/b2742ba5f9ce8a6108202e0645662f2b58da423b


--

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Dustin Ingram


Change by Dustin Ingram :


--
nosy: +di

___
Python tracker 

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



[issue35344] platform: get macOS version rather than darwin version

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: platform: get macOS version rather than darwin version? -> platform: get 
macOS version rather than darwin version

___
Python tracker 

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



[issue35346] Modernize Lib/platform.py code

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10205

___
Python tracker 

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



[issue35421] Expected result is not clear in case of list.append(list)

2018-12-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Lingaraj: the fact that you use IDLE to run Python code, with the same binary 
executable that is running IDLE, does not make the result an IDLE issue.  (This 
is a common mistake of beginners who use IDLE.)

Anyway, an infinite string, the 'accurate' result, or an out-of-memory or 
recursion-depth exception, the original result of trying to print recursive 
data objects, is even less practical ;-).  This fix, a compact replacement, is 
intentional.

--
assignee: terry.reedy -> 
components: +Interpreter Core -IDLE

___
Python tracker 

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



[issue35257] Avoid leaking linker flags into distutils.

2018-12-05 Thread Charalampos Stratakis


Change by Charalampos Stratakis :


--
title: Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C 
extensions. -> Avoid leaking linker flags into distutils.

___
Python tracker 

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



[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

PR has been finalized.

--
nosy: +vstinner

___
Python tracker 

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



[issue35344] platform: get macOS version rather than darwin version?

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1 by Victor Stinner in 
branch 'master':
bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)
https://github.com/python/cpython/commit/ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1


--

___
Python tracker 

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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread Alexey Izbyshev


Alexey Izbyshev  added the comment:

How is it possible to use faulthandler if the interpreter hasn't even started 
yet?

--

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10204

___
Python tracker 

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



[issue35411] FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting.

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

Nathaniel Smith has an explanation.

[Python-Dev] test_urllib2net fixed to repair Travis CI
https://mail.python.org/pipermail/python-dev/2018-December/155929.html

Travis is in the middle of moving everything from AWS to GCE, which is
probably related:

https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

As noted there, GCE has different IP addresses. But I suspect it's not the
new IP address that's the problem, but rather the fact that the GCE setup
is known to break outgoing ftp:

https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci

-n

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset 34510781901b75c9aeca79db41ce0fa92c67878f by Miss Islington (bot) 
in branch '3.7':
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
https://github.com/python/cpython/commit/34510781901b75c9aeca79db41ce0fa92c67878f


--

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset b2e0649dd9a36d54478d0edb623a18d7379e6f19 by Miss Islington (bot) 
in branch '3.6':
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
https://github.com/python/cpython/commit/b2e0649dd9a36d54478d0edb623a18d7379e6f19


--
nosy: +miss-islington

___
Python tracker 

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



[issue35422] misleading error message from ssl.get_server_certificate() when bad port

2018-12-05 Thread Cédric Van Rompay

New submission from Cédric Van Rompay :

When calling ssl.get_server_certificate() with a bad port number (I used 80 
when I should have been using 443), the error raised is a bit misleading:

>>> import ssl
>>> ssl.get_server_certificate(('gitlab.com',80))
[...]
SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:847)

"SSL: wrong version number" seems to indicate that there is a mismatch between 
SSL versions supported by the client and the ones supported by the server. When 
here I guess the problem would better be described as "there is no SSL 
available at this address+port".

--
assignee: christian.heimes
components: SSL
messages: 331171
nosy: cedricvanrompay, christian.heimes
priority: normal
severity: normal
status: open
title: misleading error message from ssl.get_server_certificate() when bad port
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10203

___
Python tracker 

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset ac8b47c8b4edd59aaee857717d434df52ec49e6c by Serhiy Storchaka in 
branch '3.7':
bpo-34604: Use %R because of invisible characters or trailing whitespaces. 
(GH-9165). (GH-10947)
https://github.com/python/cpython/commit/ac8b47c8b4edd59aaee857717d434df52ec49e6c


--

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Myles Borins  added the comment:

Also wanted to point out some prior art of a mimetype (json) being backported 
to all active runtimes

https://bugs.python.org/issue30824#msg297527

--

___
Python tracker 

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



[issue35418] python hung or stuck somtimes randomly on windows server 2008R2

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

You can try to use faulthandler.dump_traceback_later() with a file to get the 
traceback of the stuck threads.

--thread1--
...
!UuidCreate+0x1b00
...
!RegEnumKeyExW+0xbe
...
!LookupPrivilegeValueA+0x84
!PyNamespace_New+0xd4
!PyCodec_LookupTextEncoding+0xb5
!PyObject_SetAttrId+0x21e
...
!PyObject_CallMethod+0x3c
!PyTime_MulDiv+0x47
!Py_InitializeMainInterpreter+0x95
!PyMainInterpreterConfig_Read+0x309
!PyMapping_SetItemString+0x306
!PyBytes_AsString+0x142
!Py_Main+0x52
!BaseThreadInitThunk+0xd

This traceback doesn't make sense:

* Py_Main() doesn't call directly PyBytes_AsString().
* PyTime_MulDiv shouldn't call PyObject_CallMethod().
* I don't see how PyNamespace_New() can call LookupPrivilegeValueA()

--
nosy: +vstinner

___
Python tracker 

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



[issue35250] Minor parameter documentation mismatch for turtle

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue35250] Minor parameter documentation mismatch for turtle

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset abe74feb912292aa4df4e70d39e85d0bcd425436 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-35250: Correct argument name "num" -> "btn" in turtle docs. 
(GH-10565). (GH-10943)
https://github.com/python/cpython/commit/abe74feb912292aa4df4e70d39e85d0bcd425436


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10202

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 1de91a0032fed500ddd3d8c4fb7a38c0b8719f67 by Serhiy Storchaka in 
branch '3.7':
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. 
(GH-8113). (GH-10946)
https://github.com/python/cpython/commit/1de91a0032fed500ddd3d8c4fb7a38c0b8719f67


--

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Myles Borins  added the comment:

Thanks for cc'ing the other folks. I help run the Node.js release + LTS team... 
so I 100% understand the balance necessary to keep a stable API. In this 
particular case I would gauge that this has a near 0 case for breakage, but 
leaving it unpatched has a high risk of breaking user expectations

https://github.com/search?q=extension%3Amjs+function&type=Code

This is a really heavy handed search against github showing 13k+ files with the 
.mjs extension that include the word "function"

--

___
Python tracker 

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



[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-05 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +10201

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Christian Heimes is right: it is a new feature, not a bug fix. 
I regret too often when I cannot backport a brilliant patch to old Python 
version but this is the price of API stability.

You can try to convince release managers (Benjamin and Ned, I've added you to 
nosy list) but I suspect you'll get a rejection.

--
nosy: +benjamin.peterson, ned.deily

___
Python tracker 

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



[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b50b33b4ac62c8798199682e511b2028f2d3ec42 by Victor Stinner in 
branch '2.7':
bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) 
(GH-10930)
https://github.com/python/cpython/commit/b50b33b4ac62c8798199682e511b2028f2d3ec42


--

___
Python tracker 

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



[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset e0c2046d82f6db45a7f3d3ee5f555c3e2487a74d by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 
(GH-10942)
https://github.com/python/cpython/commit/e0c2046d82f6db45a7f3d3ee5f555c3e2487a74d


--

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:

Python 2.7 is not affected: select() isn't retried if it fails with EINTR.

--

___
Python tracker 

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



[issue35421] Expected result is not clear in case of list.append(list)

2018-12-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

The ... denotes a recursive data structure, which is what you've created here 
by "a" including itself as an element. I'm not clear what you expected to see, 
but I'm going to close this because I don't see an actual problem here. If you 
think there's a bug in Python, please describe it here. Also make sure to 
include what you expect to see in addition to what you do see.

--
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10200

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10199

___
Python tracker 

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



[issue25545] email parsing docs: clarify that only ASCII strings are supported

2018-12-05 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

I don't think this ticket should be implemented as described.

Consider the use-case in importlib_metadata, which loads metadata from a 
package, metadata known to be of a specified encoding. It already knows the 
encoding and has decoded the full message to text and now wants to parse it. It 
seems very much in the remit of something like email.parser to parse 
already-decoded content.

Yes, the RFCs describe how to decode bytes content, but that shouldn't preclude 
the e-mail module from supporting parsing from Unicode text.

And in fact, it does seem that the library is able to parse non-ascii Unicode 
text, especially on Python 3. Consider 'parse-text.py', attached. It 
illustrates that the parser currently mostly meets my expectation - on Python 
2.7 and 3.7, e-mail messages are parsed from unicode text without any 
indication of an encoding, and returning unicode text on both Python 2 and 
Python 3.

Python 2 is deficient in that message_from_string will get a UnicodeEncodeError 
constructing a bytes-oriented StringIO from the input, which is easily 
worked-around by using the text-oriented io.StringIO.

Still, I would argue the current behavior is desirable and shouldn't be 
deprecated.

--
nosy: +barry, jason.coombs
Added file: https://bugs.python.org/file47978/parse-text.py

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +10198

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-12-05 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7f52415a6d4841d77d3b7853e83b25a22e0048dc by Victor Stinner (Oran 
Avraham) in branch 'master':
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
https://github.com/python/cpython/commit/7f52415a6d4841d77d3b7853e83b25a22e0048dc


--

___
Python tracker 

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



[issue34604] Possible mojibake in pwd.getpwnam and grp.getgrnam

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10197

___
Python tracker 

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



[issue34738] Distutils: ZIP files don't include directory entries

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset 53bed18d93233b030bb5b2637daf1b5e87548ef1 by Miss Islington (bot) 
in branch '3.7':
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)
https://github.com/python/cpython/commit/53bed18d93233b030bb5b2637daf1b5e87548ef1


--
nosy: +miss-islington

___
Python tracker 

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



[issue31715] Add mimetype for extension .mjs

2018-12-05 Thread Myles Borins


Myles Borins  added the comment:

There are a number of tutorials that suggest using the .mjs extension for 
working with ESM modules for front end development.

https://developers.google.com/web/fundamentals/primers/modules 

https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/ 


There are many tutorials that suggest web developers use `python -m 
SimpleHTTPServer` as a way to spin up a quick development server.  If a .mjs 
file is not served with the correct mime type 

 the browser will throw when trying to load the module, and the error is not 
the most obvious if developers are not aware of what mime types even are.

As such I would like propose that this is a bug fix, rather than a feature, as 
popular browser workflow is going to be broken without an obvious way to fix it 
for anyone using python right now.

> On Dec 5, 2018, at 2:23 PM, Christian Heimes  wrote:
> 
> 
> Christian Heimes  added the comment:
> 
> It's technically a new feature. New features are not added to existing 
> releases unless there is a very compelling reason.
> 
> --
> nosy: +christian.heimes
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue34052] sqlite's create_function() raises exception on unhashable callback, but creates function

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10196

___
Python tracker 

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



[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-12-05 Thread Mario Corchero


Mario Corchero  added the comment:

I'll get ready a PR with a good set of tests and the fix for the original 
issue. This is quite an interesting bug :)

--

___
Python tracker 

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



[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 49d995fd6f2a703d19d93baf06fc9f911cb2ce06 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) 
(GH-10936)
https://github.com/python/cpython/commit/49d995fd6f2a703d19d93baf06fc9f911cb2ce06


--

___
Python tracker 

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



[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-12-05 Thread miss-islington


miss-islington  added the comment:


New changeset bacc272afc165df21c607aae4ff7bfa21ae1979d by Miss Islington (bot) 
in branch '2.7':
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)
https://github.com/python/cpython/commit/bacc272afc165df21c607aae4ff7bfa21ae1979d


--

___
Python tracker 

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



[issue35250] Minor parameter documentation mismatch for turtle

2018-12-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +10195

___
Python tracker 

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



[issue35420] how to migrate a c-extension module to one that supports subinerpreters?

2018-12-05 Thread Eric Snow


Change by Eric Snow :


--
nosy: +petr.viktorin

___
Python tracker 

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



  1   2   3   >