[issue19270] Document that sched.cancel() doesn't distinguish equal events and can break order

2020-06-23 Thread Bar Harel


Bar Harel  added the comment:

@Raymond your first idea sounds good and was the first thing that came to my 
mind.
I only worried about breaking things, so I gave the more conservative 
suggestion.

If breaking a few eggs isn't an issue and the implications of your idea are 
agreed upon, I'll patch and add a PR.

--

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Bryan


New submission from Bryan :

parser.add_argument('-e', '--Edge', type = int, default = 0.005, metavar = 
'Edge')

Runs fine. Script uses default of 0.005 even when int specified.

But if user tries to change, not an int

--
messages: 372143
nosy: Bryan
priority: normal
severity: normal
status: open
title: Argparse int / float default
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



[issue41087] Argparse int / float default

2020-06-23 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

There is a documentation note on type casting along with an example similar to 
the report https://docs.python.org/3.8/library/argparse.html#default

> If the default value is a string, the parser parses the value as if it were a 
> command-line argument. In particular, the parser applies any type conversion 
> argument, if provided, before setting the attribute on the Namespace return 
> value. Otherwise, the parser uses the value as is:

--
nosy: +paul.j3, rhettinger, xtreak
type:  -> behavior

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Bryan


Bryan  added the comment:

Maybe so,

But, the issue is, if it trips up a user when they try to use the option,
it should trip up the dev when the default is used...

On Tue, 23 Jun 2020 18:47 Karthikeyan Singaravelan, 
wrote:

>
> Karthikeyan Singaravelan  added the comment:
>
> There is a documentation note on type casting along with an example
> similar to the report
> https://docs.python.org/3.8/library/argparse.html#default
>
> > If the default value is a string, the parser parses the value as if it
> were a command-line argument. In particular, the parser applies any type
> conversion argument, if provided, before setting the attribute on the
> Namespace return value. Otherwise, the parser uses the value as is:
>
> --
> nosy: +paul.j3, rhettinger, xtreak
> type:  -> behavior
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2020-06-23 Thread Виктор

Change by Виктор :


--
nosy: +ViktorPegy

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 by Victor Stinner in 
branch 'master':
bpo-40521: Make dict free lists per-interpreter (GH-20645)
https://github.com/python/cpython/commit/b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0


--

___
Python tracker 

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



[issue40887] Free lists are still used after being finalized (cleared)

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

All free lists now have assertions to ensure that they are no longer used after 
their finalization.

--

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

All free lists are now per-interpreter! See Modules/gcmodule.c:

static void
clear_freelists(PyThreadState *tstate)
{
_PyFrame_ClearFreeList(tstate);
_PyTuple_ClearFreeList(tstate);
_PyFloat_ClearFreeList(tstate);
_PyList_ClearFreeList(tstate);
_PyDict_ClearFreeList(tstate);
_PyAsyncGen_ClearFreeLists(tstate);
_PyContext_ClearFreeList(tstate);
}

I'm still working on the Unicode caches.

--

___
Python tracker 

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



[issue41078] [C API] Convert PyTuple_GET_ITEM() macro to a static inline function

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

See "(PEP 620) C API for efficient loop iterating on a sequence of PyObject** 
or other C types" thread on python-dev:
https://mail.python.org/archives/list/python-...@python.org/thread/632CV42376SWVYAZTHG4ROOV2HRHOVZ7/

--

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-23 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> My only reservation would be: if the parsing of f-strings is moved into the 
> parser, would it be possible to maintain the error new messages?

Probably without a single change.

--

___
Python tracker 

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



[issue31938] Convert selectmodule.c to Argument Clinic

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20236
pull_request: https://github.com/python/cpython/pull/21067

___
Python tracker 

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



[issue41083] plistlib can't decode date from year 0

2020-06-23 Thread Christian Heimes


Christian Heimes  added the comment:

There is no year 0. It does not exist. The year after 1 BC is the year 1 AD.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue41083] plistlib can't decode date from year 0

2020-06-23 Thread Christian Heimes


Christian Heimes  added the comment:

By the way most datetime libraries will give you incorrect values for dates 
before 1582, 1752, 1926, 1949 or any dates in that range depending on your 
country and the predominant religion of your country, county, state, or 
principality. Dates before 1970 are generally problematic unless the date 
format also references a calendar system.

It's ... messy.

--

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20237
pull_request: https://github.com/python/cpython/pull/21068

___
Python tracker 

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



[issue41085] Array regression test fails

2020-06-23 Thread William Pickard


William Pickard  added the comment:

The only modification I made was to "rt.bat" to have the value of '-u' work 
properly.

--

___
Python tracker 

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



[issue41088] Extend the AST Validator to validate all identifiers

2020-06-23 Thread Batuhan Taskaya


New submission from Batuhan Taskaya :

These identifiers include;
- 'name' of FunctionDef/ClassDef/AsyncFunctionDef/ExceptHandler
- 'name' and 'asname' of import aliases within ImportFrom and Import nodes.

Any of these cases will crash the interpreter (abort) when used with a constant 
(such as True). This is a follow-up issue on 40870

--
messages: 372154
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: Extend the AST Validator to validate all identifiers

___
Python tracker 

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



[issue41085] Array regression test fails

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

It's Python 3.10 on Windows built in 64-bit with Visual Studio.

Extract of test_output.log:

L:\GIT\cpython\PCbuild>"L:\GIT\cpython\PCbuild\amd64\python_d.exe"  -u -Wd -E 
-bb -m test -u all,-curses -v -M 24Gb --header

== CPython 3.10.0a0 (heads/master-dirty:c96d00e88e, Jun 22 2020, 19:15:48) [MSC 
v.1926 64 bit (AMD64)]
== Windows-10-10.0.19041-SP0 little-endian
== cwd: L:\GIT\cpython\build\test_python_20756
== CPU count: 8
== encodings: locale=cp1252, FS=utf-8
(...)
test_index (test.test_array.LargeArrayTest) ... 
 ... expected peak memory use: 4.2G
FAIL
(...)
==
FAIL: test_index (test.test_array.LargeArrayTest)
--
Traceback (most recent call last):
  File "L:\GIT\cpython\lib\test\support\__init__.py", line 837, in wrapper
return f(self, maxsize)
  File "L:\GIT\cpython\lib\test\test_array.py", line 1460, in test_index
self.assertEqual(example.index(11), size+3)
AssertionError: -2147483645 != 2147483651

--
nosy: +vstinner

___
Python tracker 

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



[issue41085] Array regression test fails

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

That's a bug in array_array_index() which downcasts "Py_ssize_t i" to long:

static PyObject *
array_array_index(arrayobject *self, PyObject *v)
/*[clinic end generated code: output=d48498d325602167 input=cf619898c6649d08]*/
{
Py_ssize_t i;

for (i = 0; i < Py_SIZE(self); i++) {
PyObject *selfi;
int cmp;

selfi = getarrayitem((PyObject *)self, i);
if (selfi == NULL)
return NULL;
cmp = PyObject_RichCompareBool(selfi, v, Py_EQ);
Py_DECREF(selfi);
if (cmp > 0) {
return PyLong_FromLong((long)i); // <= HERE ===
}
else if (cmp < 0)
return NULL;
}
PyErr_SetString(PyExc_ValueError, "array.index(x): x not in array");
return NULL;
}

--

___
Python tracker 

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



[issue41085] [easy C] Array regression test fails

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +easy (C)
title: Array regression test fails -> [easy C] Array regression test fails

___
Python tracker 

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



[issue41085] [easy C] Array regression test fails

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +newcomer friendly

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
title: [easy C] Array regression test fails -> [easy C] array.array.index() 
method downcasts Py_ssize_t to long

___
Python tracker 

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



[issue23427] Add sys.orig_argv: original command line arguments passed to the Python executable

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

The setproctitle project uses Py_GetArgcArgv() and would benefit of 
PyConfig.orig_argv, see:

* https://bugs.python.org/issue15577#msg370965
* https://github.com/dvarrazzo/py-setproctitle/issues/8

--

___
Python tracker 

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



[issue41088] Extend the AST Validator to validate all identifiers

2020-06-23 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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

___
Python tracker 

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



[issue41088] Extend the AST Validator to validate all identifiers

2020-06-23 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +pablogsal, serhiy.storchaka

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Nikita Nemkin


New submission from Nikita Nemkin :

Visual Studio projects need a bit of grooming.

* File filters don't reflect recent file movements and additions.
* Solution file is missing _zoneinfo project entries, resulting in dirty repo 
on every save.
* bdist_wininst project hasn't been updated with the new zlib location.

--
components: Windows
messages: 372158
nosy: nnemkin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Filters and other issues in Visual Studio projects
type: enhancement
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



[issue41083] plistlib can't decode date from year 0

2020-06-23 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Year 0 does exist in ISO 8601 though, but that wouldn't help us here as year 0 
in that standard is year 1 BCE which is not representable in Python's datetime 
module.

I'm not sure what we can do about this. The best we could do with plistlib is 
probably to add an option to either set unrepresentable dates to None or 
represent those dates as strings.

A more comprehensive fix is to change datetime to be able to represent these 
dates, but that's a much larger change that likely requires a PEP.

--

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Nikita Nemkin


Change by Nikita Nemkin :


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

___
Python tracker 

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



[issue41090] Support for "Apple Silicon"

2020-06-23 Thread Ronald Oussoren


New submission from Ronald Oussoren :

The attached patch implements "universal2" as an option for 
"--with-univeral-archs" to enable building "Universal 2" binaries on macOS 
(with x86_64 and arm64 code).

This is an extension of the already existing support for other flavours of fat 
binaries on macOS. 

NOTE: I've attached a patch instead of creating a PR because I'm not logged on 
to GitHub in the macOS 11 VM where I created this patch. I'll obviously create 
a PR later.

--
assignee: ronaldoussoren
components: macOS
files: universal2.patch
keywords: patch
messages: 372160
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Support for "Apple Silicon"
versions: Python 3.10, Python 3.9
Added file: https://bugs.python.org/file49258/universal2.patch

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread William Pickard


Change by William Pickard :


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

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 261cfedf7657a515e04428bba58eba2a9bb88208 by Victor Stinner in 
branch 'master':
bpo-40521: Make the empty frozenset per interpreter (GH-21068)
https://github.com/python/cpython/commit/261cfedf7657a515e04428bba58eba2a9bb88208


--

___
Python tracker 

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



[issue40605] «python»: Aucun fichier ou dossier de ce type

2020-06-23 Thread Goheakan

Goheakan  added the comment:

Bonjour Isa, Hello Terry !

"/usr/bin/env: «python»: Aucun fichier ou dossier de ce type"
or
"/usr/bin/env: «python»: No such file or directory"


I was in the same trouble of you today and I solved it.
So it's not a bug, some Unix Systems Operating (like Ubuntu and derivetives) 
need a little help to start the compilation in Python. A sort of link between 
Python and Python3.


You can do it by installing this package => python-is-python3 by the simple 
command :
sudo apt install python-is-python3


Now run your program as usual with :
./[your_program]

Isa (sab1703) : Si tu as besoin d'aide en français n'hésite pas ◕‿↼

Hope it's gonna help (^̮^)

--
nosy: +Goheakan

___
Python tracker 

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



[issue41090] Support for "Apple Silicon"

2020-06-23 Thread Mark Dickinson


Mark Dickinson  added the comment:

@Ronald: a bit off-topic for this issue, but do you know if there are or will 
be any publicly available developer resources for people moving to Apple 
Silicon? For obvious reasons, I'm interested in what the floating-point and 
libm situation is going to look like.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger
nosy_count: 4.0 -> 5.0
pull_requests: +20241
pull_request: https://github.com/python/cpython/pull/21073

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20242
pull_request: https://github.com/python/cpython/pull/21074

___
Python tracker 

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



[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20243
pull_request: https://github.com/python/cpython/pull/21075

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20245
pull_request: https://github.com/python/cpython/pull/21077

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 1d3dad5f96ed445b958ec53dfa0d46812f2162d9 by WildCard65 in branch 
'master':
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
https://github.com/python/cpython/commit/1d3dad5f96ed445b958ec53dfa0d46812f2162d9


--

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +20244
pull_request: https://github.com/python/cpython/pull/21076

___
Python tracker 

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



[issue41090] Support for "Apple Silicon"

2020-06-23 Thread Mark Dickinson


Mark Dickinson  added the comment:

> a bit off-topic for this issue

Apologies: on reflection, it's way off-topic. Please ignore this and the last 
message; I'll find a more appropriate place to take this up.

--

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread miss-islington


miss-islington  added the comment:


New changeset c6e24e7420a03a1751004e255a6f6c14265b9ea1 by Miss Islington (bot) 
in branch '3.8':
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
https://github.com/python/cpython/commit/c6e24e7420a03a1751004e255a6f6c14265b9ea1


--

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread miss-islington


miss-islington  added the comment:


New changeset 92f8b480bab408be09bc1631cf2e0e5a4641b731 by Miss Islington (bot) 
in branch '3.9':
bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)
https://github.com/python/cpython/commit/92f8b480bab408be09bc1631cf2e0e5a4641b731


--

___
Python tracker 

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



[issue40773] DOC: Fix rendering for 'retval' on the pdb page

2020-06-23 Thread Chenyoo Hao


Change by Chenyoo Hao :


--
pull_requests: +20246
pull_request: https://github.com/python/cpython/pull/21080

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 32f2eda85957365d208f499b730d30b7eb419741 by Raymond Hettinger in 
branch 'master':
bpo-40521: Remove freelist from collections.deque() (GH-21073)
https://github.com/python/cpython/commit/32f2eda85957365d208f499b730d30b7eb419741


--

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread William Pickard


Change by William Pickard :


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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c41eed1a874e2f22bde45c3c89418414b7a37f46 by Victor Stinner in 
branch 'master':
bpo-40521: Make bytes singletons per interpreter (GH-21074)
https://github.com/python/cpython/commit/c41eed1a874e2f22bde45c3c89418414b7a37f46


--

___
Python tracker 

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



[issue41090] Support for "Apple Silicon"

2020-06-23 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I only know what's on Apple website. There will be documentation, and there is 
developer hardware. I do have a VM running the new macOS with a version of 
Xcode that can compile for the new hardware, but that's where it ends for me.

--

___
Python tracker 

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



[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 61b649296110dcb38e67db382a7e8427c5eb75d0 by Victor Stinner in 
branch 'master':
bpo-36710: Pass tstate explicitly in abstract.c (GH-21075)
https://github.com/python/cpython/commit/61b649296110dcb38e67db382a7e8427c5eb75d0


--

___
Python tracker 

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



[issue40773] DOC: Fix rendering for 'retval' on the pdb page

2020-06-23 Thread Chenyoo Hao


Change by Chenyoo Hao :


--
pull_requests: +20247
pull_request: https://github.com/python/cpython/pull/21081

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20248
pull_request: https://github.com/python/cpython/pull/21082

___
Python tracker 

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



[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Mark Dickinson


Mark Dickinson  added the comment:

The text "TEST CHANGE TO BE UNDONE" is currently visible here: 
https://docs.python.org/3/whatsnew/3.0.html

It was introduced in commit 343bc06d8047e4a2e675394528dbb5155be1b3b5.

Should this test change have been undone?

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-23 Thread Paul Ganssle


Change by Paul Ganssle :


--
nosy: +p-ganssle
nosy_count: 3.0 -> 4.0
pull_requests: +20249
pull_request: https://github.com/python/cpython/pull/21083

___
Python tracker 

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



[issue41065] Use zip-strict in zoneinfo

2020-06-23 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset bc43f6e21244f31d25896875430174cd4ac7604c by Ram Rachum in branch 
'master':
bpo-41065: Use zip-strict in zoneinfo (GH-21031)
https://github.com/python/cpython/commit/bc43f6e21244f31d25896875430174cd4ac7604c


--

___
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-06-23 Thread Chris Withers


Chris Withers  added the comment:

Okay, but to be up-front about this, I don't see any place in the stdlib for 
any more "helpers" that could more easily be maintained on pypi and wouldn't 
incur further support burden for anyone looking after this part of the standard 
library.

The only "helper" in the section you refer to is 
https://docs.python.org/3/library/unittest.mock.html#mock-open which I'd 
consider vestigal and a bit of a maintenance magnet.

--

___
Python tracker 

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



[issue41085] [easy C] array.array.index() method downcasts Py_ssize_t to long

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks William Pickard for the bug report and the fix!

--
components: +Library (Lib) -Tests, Windows
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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 522691c46e2ae51faaad5bbbce7d959dd61770df by Victor Stinner in 
branch 'master':
bpo-40521: Cleanup code of free lists (GH-21082)
https://github.com/python/cpython/commit/522691c46e2ae51faaad5bbbce7d959dd61770df


--

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-23 Thread Beuc


Change by Beuc :


--
nosy: +Beuc

___
Python tracker 

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



[issue41084] Signify that a SyntaxError comes from an fstring in the error message

2020-06-23 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


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

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +20251
pull_request: https://github.com/python/cpython/pull/21085

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20252
pull_request: https://github.com/python/cpython/pull/21086

___
Python tracker 

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



[issue36921] Deprecate yield from and @coroutine in asyncio

2020-06-23 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Was this supposed to deprecate using types.coroutine as a decorator as well? 
Because that's not clearly documented, which means people can still use it to 
make generator-based coroutines without async def.

--
nosy: +josh.r

___
Python tracker 

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



[issue41091] Remove recommendation in curses module documentation to initialize LC_ALL and encode strings

2020-06-23 Thread Manuel Jacob

New submission from Manuel Jacob :

The documentation for the curses module 
(https://docs.python.org/3.9/library/curses.html) has the following note:

> Since version 5.4, the ncurses library decides how to interpret non-ASCII 
> data using the nl_langinfo function. That means that you have to call 
> locale.setlocale() in the application and encode Unicode strings using one of 
> the system’s available encodings. This example uses the system’s default 
> encoding:
> 
> import locale
> locale.setlocale(locale.LC_ALL, '')
> code = locale.getpreferredencoding()
> 
> Then use code as the encoding for str.encode() calls.

The recommendation to call `locale.setlocale(locale.LC_ALL, '')` is problematic 
as it initializes all locale categories to the user settings, which might be 
unintended and is not necessary for curses to work correctly. Initializing 
LC_CTYPE is sufficient for nl_langinfo() to return the correct encoding. 
Current versions of Python (*) initialize LC_CTYPE at interpreter startup. 
Therefore calling locale.setlocale() should not be necessary at all.

The curses module automatically encodes strings. Therefore the recommendation 
to manually encode strings is outdated.

(*) It seems to be the case since 177d921c8c03d30daa32994362023f777624b10d. Why 
was is not previously done on Python 2 and on Python 3 on Windows?

--
assignee: docs@python
components: Documentation
messages: 372178
nosy: docs@python, mjacob
priority: normal
severity: normal
status: open
title: Remove recommendation in curses module documentation to initialize 
LC_ALL and encode strings

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Petr Viktorin


Petr Viktorin  added the comment:

> do we still only support single inheritance at the C level?

Not any more. Heap types may have multiple bases, and they can be created at 
the C level (since Python 3.2, PEP 384).

>  So, I think we should do something like walking up the hierarchy to find the 
> C function in it that is currently being called, and then check if it's the 
> one we would expect or if a subclass defines a different one. The current 
> check does not bother to search and just assumes that it knows which 
> (super)type defines the right function to call.

Should we be bold and skip the check for heap types?
That would mean that when/if `str` is converted to a heap type, you could do 
`object.__delattr__(str, "lower")`. That would break your Python, but only at 
the Python level (similar to things like `import builtins; del 
builtins.__build_class__`).
Heap types are not shared between interpreters, so that reason is gone. But 
Guido's [2003 mail] suggests there are other reasons to prevent changing 
built-in types. What are they?

[2003 mail] https://mail.python.org/pipermail/python-dev/2003-April/034535.html

--

___
Python tracker 

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



[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2020-06-23 Thread Zackery Spytz


Zackery Spytz  added the comment:

Python 2 is EOL, so I think this issue should be closed.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-06-23 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f9bd05e83e32bece49de5af0c9a232325c57648a by Raymond Hettinger in 
branch 'master':
bpo-40521: Empty frozenset is no longer a singleton (GH-21085)
https://github.com/python/cpython/commit/f9bd05e83e32bece49de5af0c9a232325c57648a


--

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-23 Thread hai shi


Change by hai shi :


--
pull_requests: +20253
pull_request: https://github.com/python/cpython/pull/21087

___
Python tracker 

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



[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2020-06-23 Thread SilentGhost


Change by SilentGhost :


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



[issue41087] Argparse int / float default

2020-06-23 Thread paul j3


paul j3  added the comment:

No, parameters like `type` let the developer control what his users provides.  
Violating that produces a runtime error, and exit.

But in general argparse does not try to control values that the developer uses. 
 There's plenty of time during development to catch error such as this - if 
they are errors at all.  

'type' does not 'declare' what the attribute will be.  It is a function that is 
applied to the input string, and converts that to something or other, or raises 
a TypeError.  It is used only if there is a string value to work on, either 
from the user, or a string default.  

This is not a bug, so should be closed.

--

___
Python tracker 

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



[issue41092] Report actual size from 'os.path.getsize'

2020-06-23 Thread Stephen Finucane


New submission from Stephen Finucane :

The 'os.path.getsize' API returns the apparent size of the file at *path*, that 
is, the number of bytes the file reports itself as consuming. However, it's 
often useful to get the actual size of the file, or the size of file on disk. 
It would be helpful if one could get this same information from 
'os.path.getsize'.

--
components: Library (Lib)
messages: 372183
nosy: stephenfin
priority: normal
severity: normal
status: open
title: Report actual size from 'os.path.getsize'
type: enhancement
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



[issue41092] Report actual size from 'os.path.getsize'

2020-06-23 Thread Stephen Finucane


Change by Stephen Finucane :


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

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Bryan


Bryan  added the comment:

This sort of ambiguity is why I like strongly typed languages and languages
where timtoady is not seen often.

I can guarantee you, that if argparse was implemented in Pascal (and copt
most probably has been), that if type was specified and a default given,
that the default would have to adhere to that type. It is just programming
common sense

On Wed, 24 Jun 2020 02:20 paul j3,  wrote:

>
> paul j3  added the comment:
>
> No, parameters like `type` let the developer control what his users
> provides.  Violating that produces a runtime error, and exit.
>
> But in general argparse does not try to control values that the developer
> uses.  There's plenty of time during development to catch error such as
> this - if they are errors at all.
>
> 'type' does not 'declare' what the attribute will be.  It is a function
> that is applied to the input string, and converts that to something or
> other, or raises a TypeError.  It is used only if there is a string value
> to work on, either from the user, or a string default.
>
> This is not a bug, so should be closed.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue41083] plistlib can't decode date from year 0

2020-06-23 Thread Michael Shields


Michael Shields  added the comment:

You're correct that there is no year 0, but as you see Apple does use 
-12-30T00:00:00Z in their plists. I did not set that in order 
to test plistlib; it's what I found on my system.

If it's a goal that plistlib be able to parse system-generated plists and 
round-trip them to an equivalent serialization -- and I think that should be a 
goal -- then using strings or None also won't work. Maybe there could be a 
plistlib.Datetime for dates which are outside what datetime can represent?

--

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Vedran Čačić

Vedran Čačić  added the comment:

Yes, it is common sense in statically typed languages. Python is not statically 
typed. Many other things are also "common sense" in various paradigms, which 
doesn't mean they should also be in Python.

--
nosy: +veky

___
Python tracker 

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



[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar


Change by Ammar Askar :


--
pull_requests: +20255
pull_request: https://github.com/python/cpython/pull/21089

___
Python tracker 

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



[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar


Ammar Askar  added the comment:

Thanks for finding this Mark, looks like this was accidentally introduced in 
the 3.8 backport for testing the changes: 
https://github.com/python/cpython/pull/18670

The master (6aa1f1ecf7142a4117eedb8c570f30da1598616c) and 3.7 
(3bf9de2fb954bd1131f4f41517d7d5c316fb95f8) commits look clean.

--

___
Python tracker 

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



[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Ammar Askar


Ammar Askar  added the comment:

Opened up a quick pull request to fix it: 
https://github.com/python/cpython/pull/21089

--

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Bryan

Bryan  added the comment:

So you agree, Python lacks common sense...

On Wed, 24 Jun 2020 at 03:32, Vedran Čačić  wrote:

>
> Vedran Čačić  added the comment:
>
> Yes, it is common sense in statically typed languages. Python is not
> statically typed. Many other things are also "common sense" in various
> paradigms, which doesn't mean they should also be in Python.
>
> --
> nosy: +veky
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue41087] Argparse int / float default

2020-06-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue39699] Some CIs silence potentially useful output from make

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 6eab52ffadb2836adb59d0578c84d247f05e19b1 by Ammar Askar in branch 
'3.8':
bpo-39699: Remove accidentally committed test change (GH-21089)
https://github.com/python/cpython/commit/6eab52ffadb2836adb59d0578c84d247f05e19b1


--

___
Python tracker 

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



[issue41072] Python 3.8.3 passively introduced open source software contains CVE vulnerability

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:

It depends on your application. Almost all of these are exposed directly, so 
you will be vulnerable if your application uses them in the way described by 
the CVE.

I'm not familiar enough with the vulnerabilities in question to tell you for 
sure, and I doubt any of the other volunteers here are either. 

I do seem to recall that one of the OpenSSL vulnerabilities only applied if you 
were serving a particular TLS version, which won't impact most Python apps. And 
the wininst*.exe files are only used with bdist_wininst packages, which nobody 
should be using anymore.

If you're not able to evaluate them yourself, you might look for a paid company 
or consultant who can help you out. We've already updated the dependencies that 
need to be updated for upcoming releases.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset fe2a48c605d98ac02ab2b9593cb87ce364aeae2d by Nikita Nemkin in 
branch 'master':
bpo-41089: Filters and other issues in Visual Studio projects (GH-21070)
https://github.com/python/cpython/commit/fe2a48c605d98ac02ab2b9593cb87ce364aeae2d


--

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +20256
pull_request: https://github.com/python/cpython/pull/21090

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Steve Dower


Change by Steve Dower :


--
assignee:  -> steve.dower
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:

Thanks!

--

___
Python tracker 

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



[issue41093] BaseServer's server_forever() shutdown immediately when calling shutdown()

2020-06-23 Thread Tony


New submission from Tony :

Currently calling BaseServer's shutdown() function will not make 
serve_forever() return immediately from it's select().

I suggest adding a new function called server_shutdown() that will make 
serve_forever() shutdown immediately.

Then in TCPServer(BaseServer) all we need to do is call 
self.socket.shutdown(socket.SHUT_RDWR) in server_shutdown()'s implementation.

To test this I made a simple script:

import threading
import time
from functools import partial
from http.server import HTTPServer, SimpleHTTPRequestHandler


def serve_http(server):
server.serve_forever(poll_interval=2.5)

def main():
with HTTPServer(('', 8000), SimpleHTTPRequestHandler) as server:
t = threading.Thread(target=partial(serve_http, server))
t.start()

time.sleep(3)

start = time.time()
print('shutdown')
server.shutdown()
print(f'time it took: {time.time() - start}')


if __name__ == "__main__":
main()

--
components: Library (Lib)
messages: 372194
nosy: tontinton
priority: normal
severity: normal
status: open
title: BaseServer's server_forever() shutdown immediately when calling 
shutdown()
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41093] BaseServer's server_forever() shutdown immediately when calling shutdown()

2020-06-23 Thread Tony


Tony  added the comment:

By the way I have to ask, if I want this feature to be merged (this is my first 
PR) should I make a PR to 3.6/3.7/3.8/3.9 and master?

Or should I create a PR to master only? 

thanks

--

___
Python tracker 

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



[issue41054] Simplify resource compilation on Windows

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 4efc3360c9a83d5891f27ed67b4f0ab7275d2ab4 by Nikita Nemkin in 
branch 'master':
bpo-41054: Simplify resource compilation on Windows (GH-21004)
https://github.com/python/cpython/commit/4efc3360c9a83d5891f27ed67b4f0ab7275d2ab4


--

___
Python tracker 

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



[issue41054] Simplify resource compilation on Windows

2020-06-23 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +20257
pull_request: https://github.com/python/cpython/pull/21091

___
Python tracker 

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



[issue41054] Simplify resource compilation on Windows

2020-06-23 Thread miss-islington


miss-islington  added the comment:


New changeset cebd43fbfd25a80404728f73edc301f9558d9410 by Miss Islington (bot) 
in branch '3.9':
bpo-41054: Simplify resource compilation on Windows (GH-21004)
https://github.com/python/cpython/commit/cebd43fbfd25a80404728f73edc301f9558d9410


--

___
Python tracker 

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



[issue41089] Filters and other issues in Visual Studio projects

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 47cd931a61146793faa44e01516bf07b0c23380c by Steve Dower in branch 
'3.9':
bpo-41089: Filters and other issues in Visual Studio projects (GH-21070)
https://github.com/python/cpython/commit/47cd931a61146793faa44e01516bf07b0c23380c


--

___
Python tracker 

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



[issue41039] Simplify python3.dll build

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:


New changeset 2c6e4e91c5a4d3f25908108f4ed32aba936df70c by Nikita Nemkin in 
branch 'master':
bpo-41039: Simplify python3.dll build (GH-20989)
https://github.com/python/cpython/commit/2c6e4e91c5a4d3f25908108f4ed32aba936df70c


--

___
Python tracker 

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



[issue41054] Simplify resource compilation on Windows

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:

Thanks!

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



[issue41039] Simplify python3.dll build

2020-06-23 Thread Steve Dower


Steve Dower  added the comment:

Thanks!

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel


Change by Stefan Behnel :


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

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel


Stefan Behnel  added the comment:

I chose to go through the MRO, which takes multiple inheritance into account.

--
stage: patch review -> 

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-23 Thread Stefan Behnel


Change by Stefan Behnel :


--
stage:  -> patch review

___
Python tracker 

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



[issue41093] BaseServer's server_forever() shutdown immediately when calling shutdown()

2020-06-23 Thread Tony


Change by Tony :


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

___
Python tracker 

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



[issue40707] Popen.communicate documentation does not say how to get the return code

2020-06-23 Thread Gareth Rees


Gareth Rees  added the comment:

Is there anything I can do to move this forward?

--

___
Python tracker 

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



[issue41093] BaseServer's server_forever() shutdown immediately when calling shutdown()

2020-06-23 Thread Tony


Change by Tony :


--
pull_requests: +20260
pull_request: https://github.com/python/cpython/pull/21094

___
Python tracker 

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



[issue41094] Audit does not work with non-ASCII data on non-UTF-8 locale

2020-06-23 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There are issues with using PySys_Audit() with non-ASCII data on non-UTF-8 
locale.

One example is with PYTHONSTARTUP. In pymain_run_startup() in Modules/main.c 
the value of the PYTHONSTARTUP environment variable is passed to PySys_Audit() 
as UTF-8 encoded data. If it contains non-ASCII characters and the locale 
encoding is different from UTF-8, it fails.

There are similar bugs in _Py_fopen() and _Py_fopen_obj().

--
components: Interpreter Core
messages: 372205
nosy: serhiy.storchaka, steve.dower, vstinner
priority: normal
severity: normal
status: open
title: Audit does not work with non-ASCII data on non-UTF-8 locale
type: behavior
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



[issue41094] Audit does not work with non-ASCII data on non-UTF-8 locale

2020-06-23 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



  1   2   >