[issue40793] print() performance problem with very large numbers

2020-05-29 Thread U.W.


U.W.  added the comment:

That's ok for me. It *is* a rare edge case.

FYI, printing this 60 Million digit number took about 12 hours on my i7.

--

___
Python tracker 

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



[issue39943] Meta: Clean up various issues in C internals

2020-05-29 Thread Ammar Askar


Ammar Askar  added the comment:

For sre.c, this is definitely a bug in MSVC, see:

* 
https://stackoverflow.com/questions/10403713/why-does-visual-c-warn-on-implicit-cast-from-const-void-to-void-in-c-but
* https://godbolt.org/z/BpMqA_


I'm trying to get rid of MSVC warnings to unblock 
https://github.com/python/cpython/pull/18532 so I'll make a pull request that 
adds explicit casts for this.

--
nosy: +ammar2

___
Python tracker 

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



[issue40812] _tkinter build failed when install Python-3.6.10

2020-05-29 Thread zhang


New submission from zhang :

building '_tkinter' extension
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 
-Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -DWITH_APPINIT=1 -I./Include 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python/Python-3.6.10/include
 -I. -I/usr/local/include 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Include
 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10
 -c 
/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/_tkinter.c
 -o 
build/temp.linux-x86_64-3.6/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/_tkinter.o
 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/tcltk/8.6.8/include/
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 
-Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -DWITH_APPINIT=1 -I./Include 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python/Python-3.6.10/include
 -I. -I/usr/local/include 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Include
 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10
 -c 
/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/tkappinit.c
 -o 
build/temp.linux-x86_64-3.6/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/tkappinit.o
 
-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/tcltk/8.6.8/include/
gcc -pthread -shared 
build/temp.linux-x86_64-3.6/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/_tkinter.o
 
build/temp.linux-x86_64-3.6/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python-3.6.10/Modules/tkappinit.o
 
-L/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/Python/Python-3.6.10/lib
 -L/usr/local/lib -o 
build/lib.linux-x86_64-3.6/_tkinter.cpython-36m-x86_64-linux-gnu.so 
-L/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T06/zhangxq/software/tcltk/8.6.8/lib/
warning: building with the bundled copy of libffi is deprecated on this 
platform.  It will not be distributed with Python 3.7
*** WARNING: renaming "_tkinter" since importing it failed: 
build/lib.linux-x86_64-3.6/_tkinter.cpython-36m-x86_64-linux-gnu.so: undefined 
symbol: Tcl_GetCharLength

--
components: Build
messages: 370281
nosy: zhang
priority: normal
severity: normal
status: open
title: _tkinter build failed when install Python-3.6.10
type: compile error
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



[issue40812] _tkinter build failed when install Python-3.6.10

2020-05-29 Thread zhang


zhang  added the comment:

configure command :./configure 
--prefix=/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T/zzz/software/Python/Python-3.6.10/
 
--with-tcltk-includes='-I/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T/zzz/software/tcltk/8.6.8/include/'
 
--with-tcltk-libs='-L/YZGROUP4/STORAGE/personalbio/Work/Transcriptome/T/zzz/software/tcltk/8.6.8/lib/'

--

___
Python tracker 

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



[issue39943] Meta: Clean up various issues in C internals

2020-05-29 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +19754
pull_request: https://github.com/python/cpython/pull/20508

___
Python tracker 

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



[issue30710] getaddrinfo raises OverflowError

2020-05-29 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

The original pull request has been closed as inactive.  If the original author 
is interested in pursuing this issue, it can be reopened or someone else can 
create a new pull request to replace it.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue30986] Add --include-py argument to Tools/msi/make_zip.py

2020-05-29 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue31817] Compilation Error with Python 3.6.1/3.6.3 with Tkinter

2020-05-29 Thread zhang

zhang  added the comment:

Josh,Did you solve this problem?I met the same error when install python.

*** WARNING: renaming "_tkinter" since importing it failed: 
build/lib.linux-x86_64-3.6/_tkinter.cpython-36m-x86_64-linux-gnu.so: undefined 
symbol: Tcl_GetCharLength

--
nosy: +zhang

___
Python tracker 

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



[issue30710] getaddrinfo raises OverflowError

2020-05-29 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Cheryl Sabella, the pull request that got closed is the one for issue 30711. 
The pull request for this one has never been reviewed.

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue40801] Expose PyFloat_AsDouble at Python level: operator.as_float?

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:

I started a python-ideas thread: 
https://mail.python.org/archives/list/python-id...@python.org/thread/3YGNHGWZOU5AIBS3A52CAHPJJLY7J2CS/

--

___
Python tracker 

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread timofej


New submission from timofej :

a SyntaxError must be look like:

File "main.py", line 7
print("hello world"
  ^
SyntaxError: unexpected EOF while parsing

but instead of this i'm get this:

File "main.py", line 3

   ^
SyntaxError: unexpected EOF while parsing

It seems to me that this problem is only in windows.

--
components: Build
messages: 370287
nosy: timofej
priority: normal
severity: normal
status: open
title: Output SyntaxError is not defective
type: compile error
versions: Python 3.8

___
Python tracker 

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



[issue34240] Convert test_mmap to use tempfile

2020-05-29 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@tim.golden, I closed this pull request as it was from an unknown repository 
and new pull request would need to be created with the changes in order to move 
it forward.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue31817] Compilation Error with Python 3.6.1/3.6.3 with Tkinter

2020-05-29 Thread Ned Deily


Ned Deily  added the comment:

@zhang, Did you try the solution given by dplusplus in the previous message 
(msg319861)?

--

___
Python tracker 

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



[issue34240] Convert test_mmap to use tempfile

2020-05-29 Thread TJG


TJG  added the comment:

Thanks, Cheryl. It was getting pretty stale. If I think it's worthwhile 
I'll resurrect it.

I suspect what happened was that my cpython fork got borked somehow 
between then and now. I probably ditched the repo and re-forked. That's 
for doing the housekeeping work here.

--
nosy: +tjguk

___
Python tracker 

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



[issue40812] _tkinter build failed when install Python-3.6.10

2020-05-29 Thread Ned Deily


Ned Deily  added the comment:

Since you have already found and commented on Issue31817, closing this as a 
duplicate of it.

--
nosy: +ned.deily
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Compilation Error with Python 3.6.1/3.6.3 with Tkinter

___
Python tracker 

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



[issue25247] Tkinter modules built successfully but removed because they could not be imported

2020-05-29 Thread Ned Deily


Ned Deily  added the comment:

It looks like this is the same issue that has been discussed in later 
Issue31817. Since there has been more discussion there, let's close this as a 
duplicate of that one.

--
nosy: +ned.deily
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Compilation Error with Python 3.6.1/3.6.3 with Tkinter

___
Python tracker 

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



[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2020-05-29 Thread Ned Deily


Ned Deily  added the comment:

In Python 3.8, the default start method for multiprocessing when run on macOS 
is now "spawn" instead of "fork".

"Changed in version 3.8: On macOS, the spawn start method is now the default. 
The fork start method should be considered unsafe as it can lead to crashes of 
the subprocess. See bpo-33725."

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Python crashes on macOS after fork with no exec
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



[issue40793] print() performance problem with very large numbers

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:

> FYI, printing this 60 Million digit number took about 12 hours on my i7.

That sounds about right: on my machine, it takes around 10 seconds to convert a 
1 million-digit number to a string. Multiplying by 60**2 gives 10 hours.

I do have to wonder what you're doing with all those digits now that you have 
them, though ...

--

___
Python tracker 

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



[issue34240] Convert test_mmap to use tempfile

2020-05-29 Thread TJG


TJG  added the comment:

That last should clearly have said:

Thanks for doing the housekeeping work here

:)

--

___
Python tracker 

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



[issue33725] Python crashes on macOS after fork with no exec

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since the default has been different on different systems for as long as I 
remember, I see no reason to break code on *nix in the name of 'consistency'.  
Asyncio also works different on different systems.

Aside from that idea, is there anything else left for this issue?  Especially 
at this time as opposed to some possible future when macOS changes?

--
nosy: +terry.reedy

___
Python tracker 

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



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

2020-05-29 Thread Deomid Ryabkov


Deomid Ryabkov  added the comment:

is there a workaround for earlier Python versions that does not involve 
patching the standard library?

--
nosy: +rojer

___
Python tracker 

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



[issue39040] Wrong attachement filename when mail mime header was too long

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset a6ae02d7e91cfe63c9b65b803ae24a40d2864bc0 by Miss Islington (bot) 
in branch '3.9':
bpo-39040: Fix parsing of email mime headers with whitespace between 
encoded-words. (gh-17620)
https://github.com/python/cpython/commit/a6ae02d7e91cfe63c9b65b803ae24a40d2864bc0


--

___
Python tracker 

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



[issue39040] Wrong attachement filename when mail mime header was too long

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 6381ee077d3c69d2f947f7bf87d8ec76e0caf189 by Miss Islington (bot) 
in branch '3.8':
bpo-39040: Fix parsing of email mime headers with whitespace between 
encoded-words. (gh-17620)
https://github.com/python/cpython/commit/6381ee077d3c69d2f947f7bf87d8ec76e0caf189


--

___
Python tracker 

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



[issue39040] Wrong attachement filename when mail mime header was too long

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 5f977e09e8a29dbd5972ad79c4fd17a394d1857f by Miss Islington (bot) 
in branch '3.7':
bpo-39040: Fix parsing of email mime headers with whitespace between 
encoded-words. (gh-17620)
https://github.com/python/cpython/commit/5f977e09e8a29dbd5972ad79c4fd17a394d1857f


--

___
Python tracker 

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



[issue25872] multithreading traceback KeyError when modifying file

2020-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19755
pull_request: https://github.com/python/cpython/pull/20511

___
Python tracker 

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



[issue25872] multithreading traceback KeyError when modifying file

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset b86636bff4b29ce23c886df079715dd951f13a07 by Andrew Kuchling in 
branch '3.8':
[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) 
(GH-20092)
https://github.com/python/cpython/commit/b86636bff4b29ce23c886df079715dd951f13a07


--

___
Python tracker 

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



[issue40805] Can no longer patch flask.g

2020-05-29 Thread Ruairidh MacLeod


Change by Ruairidh MacLeod :


--
nosy: +rkm

___
Python tracker 

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



[issue25872] multithreading traceback KeyError when modifying file

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 852e8a7ed4d3d48e5c1c8120cfc932eb6a84bb8e by Miss Islington (bot) 
in branch '3.7':
[3.8] bpo-25872: Fix KeyError in linecache when multithreaded (GH-18007) 
(GH-20092)
https://github.com/python/cpython/commit/852e8a7ed4d3d48e5c1c8120cfc932eb6a84bb8e


--

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-05-29 Thread STINNER Victor


STINNER Victor  added the comment:

> bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290)

This change broke two projects:

* Cython: 
https://github.com/cython/cython/commit/d8e93b332fe7d15459433ea74cd29178c03186bd
 (FIXED)
* immutables: https://github.com/MagicStack/immutables/issues/46

--

___
Python tracker 

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



[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19757
pull_request: https://github.com/python/cpython/pull/20513

___
Python tracker 

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



[issue40810] sqlite3 test CheckTraceCallbackContent fails for sqlite v3.7.3 through 3.7.14.1

2020-05-29 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

FYI, the #if in line 1563 in `Modules/_sqlite/connection.c` is wrong, but the 
comment five lines below is correct:
https://github.com/python/cpython/blob/e56ce3ce865cb5539cdedbeae54eaa11ec563922/Modules/_sqlite/connection.c#L1563-L1589

`sqlite3_errstr()` was introduced in 3.7.15, so the #if comparison operator 
should have been '>=', not '>'.

--

___
Python tracker 

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



[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +19756
pull_request: https://github.com/python/cpython/pull/20512

___
Python tracker 

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



[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-29 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.8 and Python 3.9 are also affected, I created backports.

Python 3.7 is not affected: deterministic parameter was added to Python 3.8.
https://docs.python.org/dev/library/sqlite3.html#sqlite3.Connection.create_function

--
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue40814] Update typing module documentation based on PEP 585

2020-05-29 Thread Matúš Valo

New submission from Matúš Valo :

In documentation of typing module there is no mention of new possibilities 
based on PEP 585. Moreover, should be old constructs like  List, Dict,... 
marked as deprecated?

--
assignee: docs@python
components: Documentation
messages: 370306
nosy: Matúš Valo, docs@python, gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: Update typing module documentation based on PEP 585
type: behavior
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue39359] zipfile: add missing "pwd: expected bytes, got str" exception message

2020-05-29 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
nosy: +serhiy.storchaka, twouters

___
Python tracker 

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



[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 00a240bf7f95bbd220f1cfbf9eb58484a5f9681a by Miss Islington (bot) 
in branch '3.8':
bpo-40784: Fix sqlite3 deterministic test (GH-20448)
https://github.com/python/cpython/commit/00a240bf7f95bbd220f1cfbf9eb58484a5f9681a


--

___
Python tracker 

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



[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 8fcc1474ef5d819c144309e048e71e6013544063 by Miss Islington (bot) 
in branch '3.9':
bpo-40784: Fix sqlite3 deterministic test (GH-20448)
https://github.com/python/cpython/commit/8fcc1474ef5d819c144309e048e71e6013544063


--

___
Python tracker 

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



[issue29017] Docs: PySide is provided by 'The Qt Company' and not by 'Nokia'

2020-05-29 Thread sgaist


Change by sgaist :


--
keywords: +patch
nosy: +sgaist
nosy_count: 2.0 -> 3.0
pull_requests: +19758
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20149

___
Python tracker 

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



[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +19759
pull_request: https://github.com/python/cpython/pull/20514

___
Python tracker 

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



[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 895c9c1d438367722f74f437fda96767d770662b by Mark Dickinson in 
branch 'master':
bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435)
https://github.com/python/cpython/commit/895c9c1d438367722f74f437fda96767d770662b


--

___
Python tracker 

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



[issue40815] Multiprocessing docs don't describe thread-safety

2020-05-29 Thread Ben


New submission from Ben :

The Multiprocessing docs specifically say that Queue is process- and thread- 
safe: 
https://docs.python.org/3/library/multiprocessing.html#exchanging-objects-between-processes.

But this information is not given for the various synchronisation primitives 
and such (Lock, Semaphore, Event, etc)

Are they thread-safe?  Should the docs say whether they are or are not?

--
assignee: docs@python
components: Documentation
messages: 370310
nosy: bjs, docs@python
priority: normal
severity: normal
status: open
title: Multiprocessing docs don't describe thread-safety

___
Python tracker 

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



[issue40815] Multiprocessing docs don't describe thread-safety

2020-05-29 Thread Alan Briolat


Change by Alan Briolat :


--
nosy: +alan.briolat

___
Python tracker 

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread Zachary Ware


Zachary Ware  added the comment:

Without some example code, there's no way to really tell what's going on here.  
In particular, it's suspicious that you're expecting an error on line 7 but 
seeing one on line 3.

Can you attach your `main.py` file to the issue?

--
components: +Interpreter Core -Build
nosy: +zach.ware

___
Python tracker 

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



[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset ad088ca5c6adc4a107411cad62b83f5c6e06b5ed by Miss Islington (bot) 
in branch '3.9':
bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) 
(GH-20514)
https://github.com/python/cpython/commit/ad088ca5c6adc4a107411cad62b83f5c6e06b5ed


--

___
Python tracker 

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread Zachary Ware


Change by Zachary Ware :


--
type: compile error -> behavior

___
Python tracker 

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



[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:

Fixed in master and 3.9; not backporting to 3.8 or 3.7, as discussed.

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread timofej


timofej  added the comment:

here attached file with SyntaxError

--
Added file: https://bugs.python.org/file49201/main.py

___
Python tracker 

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread timofej


timofej  added the comment:

About of numbers of line. I tested on different files and i forget change 
number of line.

--

___
Python tracker 

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



[issue40813] Output SyntaxError is not defective

2020-05-29 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Indeed, the exception has the correct line number when compiling manually:


>>> try:
... compile('if __name__ == "__main__":\n   print("hello world"\n', 
'', 'exec')
... except SyntaxError as e:
... print(e.lineno)
...
2


but not when running `python3 main.py`:
  File "main.py", line 3

  ^
SyntaxError: unexpected EOF while parsing



I tried with all version of Python >= 3.6 and Python2 and they all exhibit the 
same behavior.

--
nosy: +remi.lapeyre
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40816] Add missed AsyncContextDecorator to contextlib

2020-05-29 Thread Андрей Казанцев

New submission from Андрей Казанцев :

I can use context manager as decorator but can't use async context manager. 
Seems it because didn't implemented AsyncContextDecorator class

--
components: Library (Lib)
messages: 370317
nosy: heckad
priority: normal
severity: normal
status: open
title: Add missed AsyncContextDecorator to contextlib
versions: Python 3.9

___
Python tracker 

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



[issue40816] Add missed AsyncContextDecorator to contextlib

2020-05-29 Thread Андрей Казанцев

Change by Андрей Казанцев :


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

___
Python tracker 

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



[issue40814] Update typing module documentation based on PEP 585

2020-05-29 Thread Florian Dahlitz


Change by Florian Dahlitz :


--
nosy: +DahlitzFlorian

___
Python tracker 

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



[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-29 Thread E. Paine


E. Paine  added the comment:

This is simply because the Python interpreter is running from /usr/bin. This is 
shown if you call:

cp /usr/bin/idle idle
./idle

In this case, the Python interpreter is running from the directory you are in 
and /usr/bin shouldn't(!) show in the path (at least on my system...)

--
nosy: +epaine

___
Python tracker 

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



[issue40817] Document the asyncio shell

2020-05-29 Thread Rémi Lapeyre

New submission from Rémi Lapeyre :

Python 3.8 introduced `python -m asyncio` to run a Python shell with asyncio 
support. It had a note in What's New but was not documented, I think a note in 
https://docs.python.org/3/library/asyncio.html should be helpful.


This could be a good issue for a new contributor.

--
assignee: docs@python
components: Documentation
messages: 370319
nosy: docs@python, remi.lapeyre
priority: normal
severity: normal
status: open
title: Document the asyncio shell
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue40817] Document the asyncio shell

2020-05-29 Thread STINNER Victor


STINNER Victor  added the comment:

I understood that it was more added as an "experimental" feature. Not sure if 
it's still considered as experimental in Python 3.9?

A few more bugs have been fixed in the parser/compiler recently for async/await 
keywords.

--
nosy: +vstinner, yselivanov

___
Python tracker 

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



[issue40818] Run sys.__interactivehook__ for asyncio REPLs

2020-05-29 Thread Rémi Lapeyre

New submission from Rémi Lapeyre :

As a nice side effect, it gives the same completion than the standard shell.

--
components: Library (Lib)
messages: 370321
nosy: remi.lapeyre
priority: normal
severity: normal
status: open
title: Run sys.__interactivehook__ for asyncio REPLs
versions: Python 3.10

___
Python tracker 

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



[issue38035] shared_semaphores cannot be shared across unrelated processes

2020-05-29 Thread Tal Einat


Tal Einat  added the comment:

Sorry this hasn't been followed up. I think this would best be discussed a bit 
on the Python-Ideas mailing list. Please send an email there suggesting this 
feature, and link to the discussion thread in the mailing list archives here.

--

___
Python tracker 

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



[issue40818] Run sys.__interactivehook__ for asyncio REPLs

2020-05-29 Thread pmp-p


Change by pmp-p :


--
nosy: +pmpp

___
Python tracker 

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



[issue40818] Run sys.__interactivehook__ for asyncio REPLs

2020-05-29 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


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

___
Python tracker 

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



[issue29882] Add an efficient popcount method for integers

2020-05-29 Thread Mark Dickinson


Change by Mark Dickinson :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.7

___
Python tracker 

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



[issue29882] Add an efficient popcount method for integers

2020-05-29 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 8bd216dfede9cb2d5bedb67f20a30c99844dbfb8 by Niklas Fiekas in 
branch 'master':
bpo-29882: Add an efficient popcount method for integers (#771)
https://github.com/python/cpython/commit/8bd216dfede9cb2d5bedb67f20a30c99844dbfb8


--

___
Python tracker 

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



[issue40819] Idle Context Menu Copy/Cut Grayed Out

2020-05-29 Thread Bev


New submission from Bev :

In Idle on macOS, when I select text in either the Shell or a file, both copy 
and cut should be available in the context menu, but they are grayed out (not 
selectable).  Both copy and cut are still available via the menu bar Edit menu 
and keyboard shortcuts, c and x, respectively.  I tried this 
on macOS El Capitan 10.11.6 and Catalina 10.15.4

--
assignee: terry.reedy
components: IDLE
files: copy and cut missinf from context menu.png
messages: 370324
nosy: BevInTX, terry.reedy
priority: normal
severity: normal
status: open
title: Idle Context Menu Copy/Cut Grayed Out
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49202/copy and cut missinf from context 
menu.png

___
Python tracker 

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



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

2020-05-29 Thread Sylvain Corlay


Sylvain Corlay  added the comment:

Hello,

Is there a means to work around that bug for Python 3.6 ? It seems that the fix 
was only backported to 3.7, and we were not planning on dropping Python 3.6 
support quite yet in our project.

--
nosy: +sylvain.corlay

___
Python tracker 

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



[issue40744] Explicitly drop support for SQLite version < 3.7.3

2020-05-29 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


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



[issue29882] Add an efficient popcount method for integers

2020-05-29 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19762
pull_request: https://github.com/python/cpython/pull/20518

___
Python tracker 

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



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

2020-05-29 Thread STINNER Victor


STINNER Victor  added the comment:

Sadly, 3.6 no longer get bug fixes, only security fixes:
https://devguide.python.org/#status-of-python-branches

--

___
Python tracker 

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



[issue24651] Mock.assert* API is in user namespace

2020-05-29 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue24391] Better repr for threading objects

2020-05-29 Thread Brett Cannon


Brett Cannon  added the comment:

Assigning to Serhiy in case he wants to finish this.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue24391] Better repr for threading objects

2020-05-29 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue23967] Make inspect.signature expression evaluation more powerful

2020-05-29 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue24165] Free list for single-digits ints

2020-05-29 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



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

2020-05-29 Thread Sylvain Corlay


Sylvain Corlay  added the comment:

Yes, I understand that.

I was wondering if there was a workaround that we could use to not drop 3.6
support right away!

On Fri, May 29, 2020, 19:29 STINNER Victor  wrote:

>
> STINNER Victor  added the comment:
>
> Sadly, 3.6 no longer get bug fixes, only security fixes:
> https://devguide.python.org/#status-of-python-branches
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue24048] remove_module() needs to save/restore exception state

2020-05-29 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 

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



[issue24048] remove_module() needs to save/restore exception state

2020-05-29 Thread Brett Cannon


Brett Cannon  added the comment:

Assigning to Nick to decide if he wants to backport it to 3.7 before it's no 
longer possible.

--
assignee:  -> ncoghlan

___
Python tracker 

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



[issue40820] Mock Call attributes args and kwargs have no changeversion

2020-05-29 Thread Andrius Gobis


New submission from Andrius Gobis :

In Python 3.8, the ``args`` and ``kwargs`` properties were added to Mock 
``Call`` objects (PR: https://github.com/python/cpython/pull/11807 Issue: 
https://bugs.python.org/issue21269).

However, the change did not add a change version to the documentation.

The ``Doc/library/unittest.mock.rst`` file should include the following in the 
``Call`` section:
```
The ``Doc/library/unittest.mock.rst`` file should include the following in the 
``Call`` section:
```
   .. versionchanged:: 3.8

  Added the ``args`` and ``kwargs`` properties to more easily access the 
positional args and keyword args within a ``Call``object tuple.
```

--
assignee: docs@python
components: Documentation
messages: 370330
nosy: Andrius Gobis, docs@python
priority: normal
severity: normal
status: open
title: Mock Call attributes args and kwargs have no changeversion
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



[issue33725] Python crashes on macOS after fork with no exec

2020-05-29 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

I don't think there's really anything more to do here.  I'm closing the issue.  
Let's open a new one if needed at some future point.

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



[issue40820] Mock Call attributes args and kwargs have no changeversion

2020-05-29 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +19763
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20519

___
Python tracker 

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



[issue40741] Upgrade to SQLite v3.32.1 in Windows and macOS builds

2020-05-29 Thread Steve Dower


Steve Dower  added the comment:

I've checked and merged the cpython-source-deps update. (For everyone's info, I 
downloaded the sources myself and checked hashes/etc. as per normal, even 
though I eventually merged the PR and tagged it manually.)

--

___
Python tracker 

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



[issue40741] Upgrade to SQLite v3.32.1 in Windows and macOS builds

2020-05-29 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Thanks, Steve!

--

___
Python tracker 

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



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

2020-05-29 Thread Steve Dower


Steve Dower  added the comment:

> import subprocess
> subprocess._cleanup = lambda: None

--

___
Python tracker 

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



[issue40741] Upgrade to SQLite v3.32.1 in Windows and macOS builds

2020-05-29 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


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

___
Python tracker 

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



[issue24048] remove_module() needs to save/restore exception state

2020-05-29 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +19765
pull_request: https://github.com/python/cpython/pull/20521

___
Python tracker 

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



[issue24048] remove_module() needs to save/restore exception state

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 5aa40e587e63bcad22c7e196fc3559e2b5e0792b by Miss Islington (bot) 
in branch '3.7':
bpo-24048: Save the live exception during import.c's remove_module() (GH-13005)
https://github.com/python/cpython/commit/5aa40e587e63bcad22c7e196fc3559e2b5e0792b


--

___
Python tracker 

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



[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2020-05-29 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue40820] Mock Call attributes args and kwargs have no changeversion

2020-05-29 Thread Andrius Gobis


Change by Andrius Gobis :


--
status: open -> pending

___
Python tracker 

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



[issue40821] os.getlogin() not working

2020-05-29 Thread Manickaraja Kumarappan


New submission from Manickaraja Kumarappan :

Hi,
We are using below command to get the original login user. In some cases folks 
sudo as different user and run commands. In some cases folks use switch to 
different user (su - <>) and then run command. In all cases we would like to 
get original user who logged into the terminal to run the command. We are using 
below command to get the same.

user=os.getlogin()

We got three RHEL linux systems with Python 3 and strangely on two of them this 
command works fine. However only on third system it is failing with below error

OSError: [Errno 6] No such device or address

Not sure if it is some o/s env setup which is causing this command to fail. Any 
pointers to run this command will be of great help so that we can pin point the 
issue.

Please note on faiing system if I do python and then run the command it works 
fine without any issue. However if it is triggered through our Scheduler 
(Control M) it is failing with above message.

Give below is the command how Scheduler triggers the job.

/bin/su - edwadm -c /bin/sh -x <>

Thanks
Manick.

--
components: Extension Modules
messages: 370336
nosy: Manickaraja Kumarappan
priority: normal
severity: normal
status: open
title: os.getlogin() not working
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19766
pull_request: https://github.com/python/cpython/pull/20522

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19768
pull_request: https://github.com/python/cpython/pull/20524

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19767
pull_request: https://github.com/python/cpython/pull/20523

___
Python tracker 

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



[issue40819] IDLE: Test right-click and context menu tests

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thanks for the report. I verified the context menu defect on Windows and Mac 
Mohave.  The menu and shortcuts still work on both.

This regression was introduced by the first PR for #39885.  I mistakenly 
delayed the fixer, PR-18951, to finish new tests. (On current Win10, disabled 
items are nearly black dark gray that I easily confuse with enabled black.  On 
Mac, the contrast between its light-medium gray and black is unmistakable.)

I polished the fixer and merged it, with only manual testing, to immediately 
fix the regression.  I re-labelled this issue to add an automated test that 
would have caught it.

--
title: Idle Context Menu Copy/Cut Grayed Out -> IDLE: Test right-click and 
context menu tests
versions: +Python 3.10, Python 3.7, Python 3.9

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 97e4e0f53d6690db6b942678489716a30925b8af by Terry Jan Reedy in 
branch 'master':
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
https://github.com/python/cpython/commit/97e4e0f53d6690db6b942678489716a30925b8af


--

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 80b6a05d38ce34ef543a2376b8132eef4ada67ce by Miss Islington (bot) 
in branch '3.7':
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
https://github.com/python/cpython/commit/80b6a05d38ce34ef543a2376b8132eef4ada67ce


--

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 3dcccd1186febe0bca5936aed750d55c68b78bcd by Miss Islington (bot) 
in branch '3.8':
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
https://github.com/python/cpython/commit/3dcccd1186febe0bca5936aed750d55c68b78bcd


--

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread miss-islington


miss-islington  added the comment:


New changeset 9f3f70fd0b6922840b3ef8018c446a6c8ac74ece by Miss Islington (bot) 
in branch '3.9':
bpo-39885: Make IDLE context menu cut and copy work again (GH-18951)
https://github.com/python/cpython/commit/9f3f70fd0b6922840b3ef8018c446a6c8ac74ece


--

___
Python tracker 

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



[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

hang.py uses the default multiprocessing start method, which was then 'fork'.  
It is now 'spawn' on macOS.  And there have been many other changes.  When I 
run the following from IDLE, it finishes immediately.

import multiprocessing, sqlite3
def hang():
   sqlite3.connect('/tmp/foo')
if __name__ == '__main__':
   multiprocessing.Pool(2).apply_async(hang, []).get(999)
print('done')

Unless I am missing something, this should be closed as 'out of date'.

--

___
Python tracker 

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



[issue39885] IDLE right click outside of any selection should clear it

2020-05-29 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10

___
Python tracker 

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



[issue39343] Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

gmane was down for maybe a day early this week.  We should expect this to 
continue happening on and off, as it has for years (I use it daily).  I suggest 
that we run the test when we can and skip (or connect elsewhere) when we cannot.

try:
s = NNTP('news.gmane.io')
except ConnectionRefusedError as e:
self.skipTest(f'Gmane down: {e}')

--
nosy: +terry.reedy

___
Python tracker 

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



[issue40133] Provide additional matchers for unittest.mock

2020-05-29 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-05-29 Thread Chris Meyer


Change by Chris Meyer :


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

___
Python tracker 

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



[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-05-29 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I verified that running tests for installed 64-bit 3.9.0b1 on Win10 is somewhat 
a joke.  I got 22 failures.  Multiple tests failed on missing 
_testinternalcapi, and at least 1 on _xxtestfuzz.  Several tests had multiple 
failures and would need to be run individually and verbosely to see why.  For 
instance, test_itertools tries to run test.support.__init__.checksizeof 4 
times, and the latter imports _testinternalcapi, resulting is 4 failures.

Release managers: I think installers should be run and the suite run with the 
result.  This is not the first time a file has been omitted.  One needed by 
IDLE was once omitted, I believe on Windows.  There is now a test that reads 
it, but is useless unless run.  (And I should add checks for all the other 'not 
.py' files.)

honglei: Thank you for both posts.  Next time, please remove the quoted message 
when replying by email.  Once posted on the web page, below the quoted message, 
the quote becomes redundant noise.

--
nosy: +lukasz.langa, ned.deily, pablogsal, terry.reedy
title: ModuleNotFoundError: No module named '_testinternalcapi' under Win10 -> 
Test installers before releasing (ModuleNotFoundErrors)

___
Python tracker 

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



  1   2   >