[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Did you get the source from openSUSE or from python.org?

--

___
Python tracker 

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



[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset 7bd6f0e5500f778e940374237b94651f60ae1990 by Miss Islington (bot) 
in branch '3.7':
closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)
https://github.com/python/cpython/commit/7bd6f0e5500f778e940374237b94651f60ae1990


--
nosy: +miss-islington

___
Python tracker 

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



[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7716

___
Python tracker 

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



[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset b0274f2cddd36b49fe5080efbe160277ef546471 by Benjamin Peterson in 
branch 'master':
closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130)
https://github.com/python/cpython/commit/b0274f2cddd36b49fe5080efbe160277ef546471


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



[issue30400] Race condition in shutil.copyfile()

2018-07-06 Thread Preston Moore


Preston Moore  added the comment:

Sure.  I'll get everything up to date for 3.8 and create and required test.

Thanks!

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Ted Kandell


Ted Kandell  added the comment:

This isn't for the OpenSUSE official build itself, just compiling and 
installing from source on OpenSUSE 42.3. Without the symlink, and also with a 
wrong PYTHONHOME, pip coredumps.

--

___
Python tracker 

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



[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

A crash, for the tracker, is failed execution without a Python exception and 
trackback.

Debian, Fedora, Gentoo, RHEL, and Ubuntu (AMD64) buildbots are currently green. 
 We don't have one for SUSE, open or other wise.

If you have not yet reported the issue to openSUSE, I would do so in case this 
is something they should deal with.

Victor, do you have anything to add?

--
nosy: +terry.reedy, vstinner
type: crash -> behavior

___
Python tracker 

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



[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Ryan: this tracker only covers issues with the PSF CPython distribution.  
Problems with 3rd party modules like pywinauto are not our responsibility until 
someone determines that its misbehavior reflects a CPython bug.

--
nosy: +terry.reedy
resolution:  -> third party
status: open -> closed

___
Python tracker 

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



[issue34017] Tkinter CheckButton not working in EXE

2018-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The tracker only covers the PSF cpython distribution.  When you code ran in 
Spyder, our responsibily ended.  cx Freeze is a 3rd party package: contact 
their support.

--
nosy: +terry.reedy
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue34013] Inconsistent SyntaxError for print

2018-07-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Eric, Nick, Serhiy: this issue proposes to extend the print message patch of 
#30597 to cover more cases.  On the face of it, this seems sensible, but I have 
no read the original discussion or the current and proposed patches.

--
nosy: +eric.smith, ncoghlan, serhiy.storchaka, terry.reedy

___
Python tracker 

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



[issue31839] datetime: add method to parse isoformat() output

2018-07-06 Thread Martin Panter


Change by Martin Panter :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> datetime: add ability to parse RFC 3339 dates and times

___
Python tracker 

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



[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki


INADA Naoki  added the comment:


New changeset e25399b40cd15620e77c9ad2ed24549006ae9b47 by INADA Naoki in branch 
'master':
bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131)
https://github.com/python/cpython/commit/e25399b40cd15620e77c9ad2ed24549006ae9b47


--

___
Python tracker 

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



[issue34019] webbrowser: wrong arguments for Opera browser.

2018-07-06 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 8902a1d14e9fe6fb80f4145ad4ea27a579567289 by Pablo Galindo in 
branch '2.7':
[2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)
https://github.com/python/cpython/commit/8902a1d14e9fe6fb80f4145ad4ea27a579567289


--

___
Python tracker 

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



[issue34063] binhex REASONABLY_LARGE = 32768 so what is 128000

2018-07-06 Thread Jim Jewett


New submission from Jim Jewett :

binhex defines a module-wide constant of 

REASONABLY_LARGE = 32768  # Minimal amount we pass the rle-coder

Later on, in 5 locations it does either ifp.read(128000) or 
ifp.read_rsrc(128000)

It isn't clear why a different constant is used, let alone why a literal is 
used instead of something like REASONABLY_LARGE.

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 321193
nosy: Jim.Jewett, docs@python
priority: low
severity: normal
stage: needs patch
status: open
title: binhex REASONABLY_LARGE = 32768 so what is 128000
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto


Alberto  added the comment:

Hey Victor,

I've spent another number of hours debugging the problem and trying to avoid 
encodings to be loaded but I've had no luck since initfsencoding is necesary 
for init_sys_streams to work and that's an important function that sets stdin, 
stout and sterr. 

It seems that encodings is the only thing that prevents Py_Initialize to be 
called and therefore for a static python version to be used.

Is there any way to move encodings to pythoncore? Is there any other solution? 
I'm happy to put my time on this (I've already spent 3 full days debugging the 
problem).

I think this could be considered a bug since there is no point on statically 
build python and use it as a library as the README stands if there is still 
requirements on encodings which need to reside on the filesystem. 

Thank you again for your time

--

___
Python tracker 

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



[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

No problem! I'm going to close this issue as I don't think there's anything we 
can do here.

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



[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Santiago Hernandez


Santiago Hernandez  added the comment:

Thanks, I get it now, I hadn't seen that the pickling of the workers was
Processes pickling.
Yeah, I was not doing this anywhere else, it seems like slipped through
once. But it called my attention that it used to work and now it doesn't.

On Tue, Jul 3, 2018 at 4:38 PM, Antoine Pitrou 
wrote:

>
> Antoine Pitrou  added the comment:
>
> It could be many different things.  The bottom line here, though, is that
> the Process class is not designed to be picklable (how would it work?),
> which is probably why you're seeing this.
>
> --
> nosy: +pitrou
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Eryk Sun


Eryk Sun  added the comment:

I don't think the launcher has unit tests.

The if statement in process() that calls show_python_list only checks for "-0". 
It needs to check for the long names as well, e.g.:

if (argc == 2) {
/* First check for -0[p], --list, or --list-paths. */
if (!wcsncmp(p, L"-0", 2) || !wcscmp(p, L"--list") ||
!wcscmp(p, L"--list-paths")) {
valid = show_python_list(argv);
}
}

show_python_list shouldn't need to be modified. It already looks for -0p and 
--list-paths to include paths in the output format.

--
nosy: +eryksun

___
Python tracker 

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



[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault


Guillaume Perrault-Archambault  added the comment:

A friend of mine has suggested a fix that seems to work for now (upgrade numpy 
from 1.14.3 to 1.14.5). This makes no sense at all but it does seem to work for 
now. I have a strong suspicion that this is just masking the problem and that 
it will reappear.

However, since it works I would not want you to waste any time on this. I will 
reopen if the deadlock reappears!

I do apologize if you already spent a lot of time on this.

Regards,
Guillaume

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue33922] [Windows] Document the launcher's -64 suffix

2018-07-06 Thread Eryk Sun


Change by Eryk Sun :


--
assignee:  -> docs@python
components: +Documentation
dependencies: +Allow windows launcher to specify bit lengths with & without 
minor version
nosy: +docs@python
resolution: duplicate -> 
stage: resolved -> patch review
status: closed -> open
superseder: Allow windows launcher to specify bit lengths with & without minor 
version -> 
title: Enforce 64bit Python by Launcher -> [Windows] Document the launcher's 
-64 suffix
versions: +Python 3.7, Python 3.8

___
Python tracker 

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



[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Brett Cannon


New submission from Brett Cannon :

When you run `py -h` it says you can use -0 or --list as well as -0p or 
--list-paths, but both --list and --list-paths don't work (the -0-based options 
do, though).

--
components: Windows
messages: 321187
nosy: brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: Python launcher on Windows does not work with --list or --list-paths
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-07-06 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

On Fedora after the fix we had also to BuildRequire libnsl2-devel and 
libtirpc-devel after the glibc change was implemented for the correct headers 
to be included within the buildroot.

I am not familiar with suse's build system webui to find the logs, but are 
those packages provided by the distribution?

--

___
Python tracker 

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



[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault


Guillaume Perrault-Archambault  added the comment:

Hi Victor and Yang,

Thanks for your fast replies.

I did initially think it could be a torch issue. Indeed, I have an
equivalent numpy testcase that does not deadlock. However, the fact that it
gets stuck inside a multiprocessing wait statement makes me think it's
still a multiprocessing issue.

I've spent two weeks full time on this issue. Over at torch forums I've had
no replies (
https://discuss.pytorch.org/t/multiprocessing-code-works-using-numpy-but-deadlocked-using-pytorch/20473
).

On stackexchange I only got a workaround suggestion that works sporadically
(
https://stackoverflow.com/questions/51093970/multiprocessing-code-works-using-numpy-but-deadlocked-using-pytorch).
Basically I can get rid of the deadlock (sometimes) if I impose only one
thread per process. But this is not a solution anyway.

I have tried stepping through the code, but because it is multiprocessed,
you cannot step through it (at least not in the conventional way, since the
main thread is not doing the heavy lifting).

I've tried adding print statements in the multiprocess library and mucking
around with it a bit, but debugging multi-processed code in this way is an
absolute nightmare because you can't even trust the order in which print
statements display on the screen. And probably more relevant, I'm out of my
league here.

I'm really at a complete dead end. I'm blocked and my work cannot progress
without fixing this issue. I'd be very grateful if you could try to
reproduce and rule out the multiprocessing library. If you need help
reproducing I can send a different testcase that deadlocked on my friend's
Mac (for him, the original testcase did not deadlock).

Testcase I attached in my original post it sometimes deadlocks and
sometimes doesn't, depending on the machine I run on. So I'm not suprised
you got no deadlock when you tried to reproduce.

I can always get it deadlocking on Linux/Mac though, by tweaking the code.

To give you a sense of how unreliably it deadlocks, just removing the for
loop in the code (which is outside the multiprocessing portion of the
code!) somehow gets rid of the deadlock. Also, it never deadlocks on
Windows.

If you could provide any help on this issue I'd be very grateful.

Regards,
Guillaume.

On Fri, Jul 6, 2018 at 11:21 AM STINNER Victor 
wrote:

>
> STINNER Victor  added the comment:
>
> IMHO it's an issue with your usage of the torch module which is not part
> of the Python stdlib, so I suggest to close this issue as "third party" or
> "not a bug".
>
> --
> nosy: +vstinner
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue34061] Document sqlite3.NotSupportedError exception

2018-07-06 Thread Berker Peksag


New submission from Berker Peksag :

Most of the exceptions in sqlite3 module were documented in issue 6057 
(https://github.com/python/cpython/commit/ed789f9cf9586d94e85115bb516a2ab6b9a2f668)

Unfortunately, I noticed that I missed NotSupportedError while reviewing PR 
8086. I think it should be documented in the Exceptions section as well:

https://docs.python.org/3.8/library/sqlite3.html#exceptions

We can adapt the text in PEP 249:

https://www.python.org/dev/peps/pep-0249/#notsupportederror

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 321184
nosy: berker.peksag, docs@python
priority: normal
severity: normal
stage: needs patch
status: open
title: Document sqlite3.NotSupportedError exception
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-06 Thread Berker Peksag


Change by Berker Peksag :


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



[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov


Yury Selivanov  added the comment:

Thank you for reporting the issue, Kay.  And huge thanks to Antoine and Pablo 
for bisecting.

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



[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset 127bd9bfd591c8ec1a97eb7f4037c8b884eef973 by Miss Islington (bot) 
in branch '3.7':
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
https://github.com/python/cpython/commit/127bd9bfd591c8ec1a97eb7f4037c8b884eef973


--
nosy: +miss-islington

___
Python tracker 

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



[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto

Alberto  added the comment:

Hi,

First of all thank you for your answer.
If every module can't be statically compiled within a library, what is the
point of having instructions to compile python statically in the build
instructions?

Can I modify the code to make it completely statically?

Thank you

On Fri, Jul 6, 2018 at 12:27 AM STINNER Victor 
wrote:

>
> STINNER Victor  added the comment:
>
> > Why is Python looking for external modules when it is a statically
> linked library and encodings should be built-in?
>
> Hi, this is not a bug. Python needs its standard library. You might want
> to put the whole stdlib into a single ZIP, but I don't recall how to do
> that.
>
> The encodings and codecs modules are not built-in, but _codecs is built-in:
>
> >>> import encodings, codecs, _codecs
> >>> encodings
> 
> >>> codecs
> 
> >>> _codecs
> 
>
> I suggest to close this issue as "not a bug". You should ask on a Python
> mailing list or forum to get help how to build a standalone Python.
>
> --
>
> ___
> Python tracker 
> 
> ___
>
-- 
Alberto García Illera

GPG Public Key: https://goo.gl/twKUUv

--

___
Python tracker 

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



[issue34032] Add platlibdir to allow distinction between /usr/lib and /usr/lib64 for Linux

2018-07-06 Thread Éric Araujo

Éric Araujo  added the comment:

I think there are open tickets discussing this, and the problem is more complex 
that a simple PR:

- Debian does multiarch that’s more than just lib/lib64
- some systems have lib32 I think
- recent systems merge / and /usr, is that relevant?
- how does virtualenv follow or customize install schemes
- doko patches Python in Debian and Ubuntu to edit sysconfig/distutils

--
nosy: +doko, eric.araujo

___
Python tracker 

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



[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7715

___
Python tracker 

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



[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov


Yury Selivanov  added the comment:


New changeset 0b75228700e0077d8bf2636e74733389514b4b2f by Yury Selivanov in 
branch 'master':
bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119)
https://github.com/python/cpython/commit/0b75228700e0077d8bf2636e74733389514b4b2f


--

___
Python tracker 

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



[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov


Yury Selivanov  added the comment:

> If you could do what you often you, and make this what distributions like 
> Debian pull from, it would be good enough in terms of release for me, as it 
> blocks Nuitka tests from passing on them.

I'm not sure what you mean by "what you often do". I'll push a fix to master 
and 3.7 branches in a few minutes, so perhaps you can open a PR to ask Linux 
vendors to add a patch for 3.7.0 to their packages.  An easier solution would 
be for you to disable refcounting tests that rely on gettotalrefcount just for 
3.7.0.  And I apologize for the hassle :(

--

___
Python tracker 

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



[issue34060] regrtest: log "CPU usage" on Windows

2018-07-06 Thread STINNER Victor


New submission from STINNER Victor :

I would help to debug race conditions on Windows to log the "CPU usage" on 
regrtest, as we do on other platforms (using os.getloadavg()).

Links:

* https://stackoverflow.com/questions/13666458/python-collect-system-stats
* 
https://docs.microsoft.com/en-us/windows/desktop/api/pdh/nf-pdh-pdhmakecounterpatha
* GetSystemTimes()?
* 
https://stackoverflow.com/questions/23143693/retrieving-cpu-load-percent-total-in-windows-with-c

--
components: Tests, Windows
messages: 321177
nosy: paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: regrtest: log "CPU usage" on Windows
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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 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



[issue34059] multiprocessing deadlock

2018-07-06 Thread STINNER Victor


STINNER Victor  added the comment:

IMHO it's an issue with your usage of the torch module which is not part of the 
Python stdlib, so I suggest to close this issue as "third party" or "not a bug".

--
nosy: +vstinner

___
Python tracker 

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



[issue34059] multiprocessing deadlock

2018-07-06 Thread Windson Yang


Windson Yang  added the comment:

I'm can't reproduce the deadlock, maybe it's related to torch package? Can you 
try without torch to see if this happens again?

--
nosy: +Windson Yang

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

I have worked on this, almost ready for a PR.

--

___
Python tracker 

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



[issue32007] nis module fails to build against glibc-2.26

2018-07-06 Thread Matej Cepl


Matej Cepl  added the comment:

> - I agree with Benjamin, let's deprecate the NIS module. NIS/YP functionality 
> has been replaced by NSS a long time ago.

Agree. a) who will separate its functionality into separate module for PyPI, b) 
who start a thread on python-devel?

--

___
Python tracker 

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



[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Gabriele Tornetta


Gabriele Tornetta  added the comment:

Are there any PRs already for this issue? I couldn't find any on GitHub. Also, 
is the plan to branch the fix down to at least 3.6?

--
nosy: +Gabriele Tornetta

___
Python tracker 

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



[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki


INADA Naoki  added the comment:

I can't confirm significant performance benefit.
sort_keys is not bottleneck of pure Python encoder.

BTW, benefit from C encoder is more significant.  It's about 3x faster.
Adding `indent` option support to C encoder may be good target for new 
contributors who want to write C.

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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset 972458a4245afb4e934fbcb9c0224b105fb5d7ba by Miss Islington (bot) 
in branch '3.6':
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)
https://github.com/python/cpython/commit/972458a4245afb4e934fbcb9c0224b105fb5d7ba


--

___
Python tracker 

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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington


miss-islington  added the comment:


New changeset 4bd5fce27d5c03a013e5ebb008670ca0d89e3298 by Miss Islington (bot) 
in branch '3.7':
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)
https://github.com/python/cpython/commit/4bd5fce27d5c03a013e5ebb008670ca0d89e3298


--
nosy: +miss-islington

___
Python tracker 

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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7714

___
Python tracker 

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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7713

___
Python tracker 

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



[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c2368cbc83ca2bafeaea0e4760be4996046d0444 by Victor Stinner in 
branch 'master':
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)
https://github.com/python/cpython/commit/c2368cbc83ca2bafeaea0e4760be4996046d0444


--

___
Python tracker 

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



[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Ned Batchelder


Ned Batchelder  added the comment:

Coverage.py is registering a handler to save data before the program ends.  The 
execv call is not in the coverage.py code, it's in the program that coverage.py 
is running.

--

___
Python tracker 

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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

Now that transmogrify is done, the only open question is about itertools and 
collections.

1. Should collections be converted?
2. How to proceed with itertools? There are two PRs ready, with the one just 
for groupby() approved, but not yet reviewed by Raymond Hettinger.

--

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

Thanks for all of your work on this, Ammar!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset 7829bba45d0e2446f3a0ca240bfe46959f01071e by Tal Einat (Ammar 
Askar) in branch '2.7':
[2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line 
behavior (GH-7891) (#8133)
https://github.com/python/cpython/commit/7829bba45d0e2446f3a0ca240bfe46959f01071e


--

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset 11c36a3e16f7fd4e937466014e8393ede4b61a25 by Tal Einat (Ammar 
Askar) in branch '3.6':
[3.6] bpo-33899: Make tokenize module mirror end-of-file is end-of-line 
behavior (GH-7891) (GH-8134)
https://github.com/python/cpython/commit/11c36a3e16f7fd4e937466014e8393ede4b61a25


--

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset ab75d9e4244ee24bc96ea9d52362899e3bf365a2 by Tal Einat (Ammar 
Askar) in branch '3.7':
[3.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line 
behavior (GH-7891) (GH-8132)
https://github.com/python/cpython/commit/ab75d9e4244ee24bc96ea9d52362899e3bf365a2


--

___
Python tracker 

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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset c929df3b96c8d7e7977e581431192be21cdafd19 by Tal Einat in branch 
'master':
bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)
https://github.com/python/cpython/commit/c929df3b96c8d7e7977e581431192be21cdafd19


--

___
Python tracker 

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



[issue16968] Fix test discovery for test_concurrent_futures.py

2018-07-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Seems that reap_children() in regrtest is ran only if the test is passed. And 
it doesn't produce warnings.

--

___
Python tracker 

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



[issue34042] Reference loss for local classes

2018-07-06 Thread Kay Hayen


Kay Hayen  added the comment:

Hello,

so it's harmless and it explains the other reference counting issue, where a 
change in call convention could make a reference counting bug show or go away:

codecs.open(TESTFN, encoding='cp949')
This was showing it, where as
codecs.open(TESTFN, "rb", 'cp949')

was not. With all the difference being a dictionary passed into a function call 
or not. I am now assuming that getting your fix this will also go away. Caused 
me a bit of head scratching already.

If you could do what you often you, and make this what distributions like 
Debian pull from, it would be good enough in terms of release for me, as it 
blocks Nuitka tests from passing on them.

Yours,
Kay

--

___
Python tracker 

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



[issue34007] test_gdb fails in s390x SLES buildbots

2018-07-06 Thread Karthikeyan Singaravelan

Karthikeyan Singaravelan  added the comment:

All the builds fail consistently after 
http://buildbot.python.org/all/#/builders/54/builds/465 and things were passing 
before 465. Maybe is this something to do with the commit that happened there 
that we could revert and test it in the machine by doing a git-bisect? But I 
couldn't see anything on GDB related code being changed in Python on #465. My 
initial hunch was that it had something to do with GDB 8.0+ but Ubuntu 18.04 
LTS also runs on 8.0+ fine.

Tests pass : 00e05242ae650bc29e8052a5fb79cbb83224a657
Tests fail : d6a283b37b66ecd2d0ff43602ddc8e91b54a51c5

➜  cpython git:(master) git log 
00e05242ae650bc29e8052a5fb79cbb83224a657~1..d6a283b37b66ecd2d0ff43602ddc8e91b54a51c5

commit d6a283b37b66ecd2d0ff43602ddc8e91b54a51c5
Author: Zackery Spytz 
Date:   Fri Jun 29 13:30:07 2018 -0600

[3.6] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). 
(GH-3918). (GH-8012)

(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)

Co-authored-by: Zackery Spytz 

commit a73027918a659ca69480a7e023d3838e2601ce6d
Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
Date:   Fri Jun 29 03:17:43 2018 -0700

Fix the indentation in the documentation of bin() and hash() (GH-7998)

(cherry picked from commit bda9c3eae3ad16e43145599ac6359bfdcaf1fd4a)

Co-authored-by: Andrés Delfino 

commit 00e05242ae650bc29e8052a5fb79cbb83224a657
Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
Date:   Thu Jun 28 22:32:16 2018 -0700

bpo-14117: Make minor tweaks to turtledemo (GH-8002)


The 'wikipedia' example is now 'rosette', describing what it draws.
The 'penrose' print output is reduced.  The 'tree' '1024'
output is eliminated.
(cherry picked from commit 891a1f86d415779cf67ca23e626a868e586feb05)

Co-authored-by: Terry Jan Reedy 

--
nosy: +xtreak

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +7712

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +7711

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +7710

___
Python tracker 

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



[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki


Change by INADA Naoki :


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

___
Python tracker 

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



[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki


INADA Naoki  added the comment:

In C version, we don't use key func.

items = PyMapping_Items(dct);
if (items == NULL)
goto bail;
if (s->sort_keys && PyList_Sort(items) < 0) {

Like that, how about removing key function completely?

--
nosy: +inada.naoki

___
Python tracker 

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



[issue34043] Optimize tarfile uncompression performance

2018-07-06 Thread INADA Naoki


Change by INADA Naoki :


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



[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread STINNER Victor


STINNER Victor  added the comment:

> Why is Python looking for external modules when it is a statically linked 
> library and encodings should be built-in?

Hi, this is not a bug. Python needs its standard library. You might want to put 
the whole stdlib into a single ZIP, but I don't recall how to do that.

The encodings and codecs modules are not built-in, but _codecs is built-in:

>>> import encodings, codecs, _codecs
>>> encodings

>>> codecs

>>> _codecs


I suggest to close this issue as "not a bug". You should ask on a Python 
mailing list or forum to get help how to build a standalone Python.

--

___
Python tracker 

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



[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

> we could definitely have a separate "atexec" handler

Couldn't coverage.py and similar apps can just invoke the atexit handlers 
before calling os.execv() or similar?  If so, perhaps a mention of this in the 
docs would suffice?

--
nosy: +taleinat

___
Python tracker 

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



[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:


New changeset c4ef4896eac86a6759901c8546e26de4695a1389 by Tal Einat (Ammar 
Askar) in branch 'master':
bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior 
(GH-7891)
https://github.com/python/cpython/commit/c4ef4896eac86a6759901c8546e26de4695a1389


--
nosy: +taleinat

___
Python tracker 

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



[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

With Python 3.6.5 on OSX, I'm seeing all of the issues (including the 
originally reported one) except the issue with the scroll direction inversion 
on two-finger swipe.

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



[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

On OSX with Python 3.7.0 behavior is the same as current master.

--

___
Python tracker 

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



[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-06 Thread Tal Einat


Tal Einat  added the comment:

Confirmed on latest master on OSX.

I'm also experiencing many other kinds of erratic scrolling behavior:
1. Dragging the scrollbar isn't possible immediately after opening the file 
Lib/idlelib/editor.py.  Also later after scrolling to the top.
2. Scrolling via two-finger swipte on the trackpad scrolls down both when I 
scroll up and down.
3. Clicking in the trough slightly below the slider has no effect.

There's definitely something very broken!

Commenting out the `return 'break'` in handle_yview() doesn't appear to affect 
this.

In all cases I ran idle from a terminal via `python -m idlelib` and saw no 
errors.

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