[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2020-04-05 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

I think this question is about types in c, apart from any Python c API. 

According to https://docs.python.org/3/c-api/arg.html#numbers, the specifier is

c: (bytes or bytearray of length 1) -> [char]

so you should be able to write to a c variable of type "char". In c, "signed 
char"s are signed, with values in [-128..127]. C also has an "unsigned char" 
type, with values in [0..255]. Both types of variables contain eight bits of 
information, but they are interpreted in different ways. As such, we can write 
something like this:

signed char c1;
unsigned char c2;
PyObject *tup = Py_BuildValue("(c)", 0xff);

PyArg_ParseTuple(tup, "c", &c1);
PyArg_ParseTuple(tup, "c", &c2);

if (c1 < 0) {
printf("First is signed.\n");
}
else {
printf("First is unsigned.\n");
}

if (c2 < 0) {
printf("Second is signed.\n");
}
else {
printf("Second is unsigned.\n");
}

and get back:

First is signed.
Second is unsigned.

Here, c1 and c2 each store nothing but the eight bits 0b (a.k.a. 0xff), 
but the compiler interprets c1 in two's-complement as -1 whereas it interprets 
c2 as 255, simply based on variable types.

If you just care about which eight bits you have, using "char" is good enough, 
and comparing "char"s for equality is all well and good. But if you're doing 
arithmetic or numerical comparisons on chars, I believe it's best practice to 
explicitly declare "signed" or "unsigned", since it's implementation-defined 
which one the compiler will do if you don't specify.

Note that if you replace 0xff with -1 in the c code above, the result will 
probably be the same, since the int -1 will be cast to the the same least 
significant byte as 0xff (the upper bytes are thrown away).

(A technicality: even the bounds for the number of bits in a char are 
implementation-specific, but unsigned chars must support *at least* [-127..127] 
and signed chars must support *at least* [0..255], and implementation using 
more than 8 bits are quite rare. If you wanted to be totally sure about exactly 
the types you're using, you could technically use uint8_t or int8_t.)

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-05 Thread Kjell Braden


Kjell Braden  added the comment:

PR is up. Any chance we get this reviewed for inclusion in 3.9.0a6 / 3.8.3rc1?

--

___
Python tracker 

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



[issue40177] Python Language Reference Documentation

2020-04-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18747
pull_request: https://github.com/python/cpython/pull/19384

___
Python tracker 

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



[issue40177] Python Language Reference Documentation

2020-04-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone


New submission from cripitone :

The official documentation doesn't seem to cover the various meanings/uses of 
the single underscore "_", in different contexts (not just the interactive 
interpreter).

See for example:

https://www.datacamp.com/community/tutorials/role-underscore-python

--
assignee: docs@python
components: Documentation
messages: 365814
nosy: cripitone, docs@python
priority: normal
severity: normal
status: open
title: Document special meanings of a single underscore
type: enhancement

___
Python tracker 

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



[issue40177] Python Language Reference Documentation

2020-04-05 Thread Mark Dickinson


Mark Dickinson  added the comment:

Thanks for the report! Now fixed.

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

___
Python tracker 

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



[issue40195] multiprocessing.Queue.put can fail silently due to pickle errors

2020-04-05 Thread Sander Land


New submission from Sander Land :

The multiprocessing Queue uses a thread to pickle and send the object after a 
call to put. When pickling fails (e.g. due to recursion depth) the exception is 
not returned to the caller to .put but instead dumped on the screen, leaving 
any multiprocessing pools in a very unhappy state.

Suggested fix: pickle the object in the same thread as the caller and send the 
pickled object to the thread, ensuring the caller to .put can catch the 
exception.

Sad workaround: (un)pickle anything sent via this queue yourself.

--
components: Library (Lib)
files: minimal_repr.py
messages: 365816
nosy: Sander Land
priority: normal
severity: normal
status: open
title: multiprocessing.Queue.put can fail silently due to pickle errors
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49036/minimal_repr.py

___
Python tracker 

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



[issue40194] Document special meanings of a single underscore

2020-04-05 Thread SilentGhost


SilentGhost  added the comment:

Various meanings are documented in appropriate sections, ignoring and use in 
loops is a misunderstanding on part of the author - using underscore there is 
convention and doesn't have special meaning on the language level.

--
nosy: +SilentGhost
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



[issue40194] Document special meanings of a single underscore

2020-04-05 Thread cripitone


cripitone  added the comment:

> Various meanings are documented in appropriate sections

Uhm, you're right, though some of them are not that easy to find using the 
searchbar in the doc website, for example the meaning of "_" in 
https://docs.python.org/3.7/tutorial/introduction.html

Maybe it would help adding "(a single underscore)" at the end of the sentence 
"In interactive mode, the last printed expression is assigned to the variable 
_". This way one would get it by searching for "single underscore" or even 
"underscore".
(and maybe it could also be mentioned in 
https://docs.python.org/3.7/tutorial/interpreter.html and/or 
https://docs.python.org/3.7/tutorial/appendix.html which deal specifically with 
the interactive interpreter)

--

___
Python tracker 

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



[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +18748
pull_request: https://github.com/python/cpython/pull/19385

___
Python tracker 

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



[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2020-04-05 Thread Juris Kaminskis


Juris Kaminskis  added the comment:

Would be good to have solution for this out-of-box in Python3. Any news?

--
nosy: +juris

___
Python tracker 

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



[issue40196] symtable.Symbol.is_local() can be True for global symbols

2020-04-05 Thread Wolfgang Stöcher

New submission from Wolfgang Stöcher :

Consider this function:

def f():
global e
e = 1

When inspecting symbols with symtable, symbol 'e' will be global and local, 
whereas is_local() should return False. See the attached file for reproducing. 
It will output to stdout:

symbol 'e' in function scope: is_global() = True, is_local() = True
global scope: e = 1

--
components: Library (Lib)
files: global_and_local.py
messages: 365820
nosy: coproc
priority: normal
severity: normal
status: open
title: symtable.Symbol.is_local() can be True for global symbols
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49037/global_and_local.py

___
Python tracker 

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



[issue40196] symtable.Symbol.is_local() can be True for global symbols

2020-04-05 Thread Wolfgang Stöcher

Wolfgang Stöcher  added the comment:

see https://stackoverflow.com/a/61040435/1725562 for a proposed fix

--
type:  -> behavior

___
Python tracker 

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



[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 Thread Jérôme

Jérôme  added the comment:

Yes, I get your meaning, and I totally agree with it, I was wondering what was 
the best way to do it, stay close to the cause, which would allow to more 
easily go along with changes, or put it in the configure file and warn the user 
as soon as possible... It was kind of a flip a coin decision in the end.

For my information, is there a kind of committee or someone taking these kinds 
of decisions or at least expressing rules as to the spirit in which they should 
be made?

On the same track, how can I find why someone wrote "
/* Various compilers have only certain posix functions */
/* XXX Gosh I wish these were all moved into pyconfig.h */
" in posixmodule.c? Is it just because no-one had the opportunity to do it and 
it is OK for me to do it?

"Fetchez la vache"

--

___
Python tracker 

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



[issue40174] HAVE_CLOCK_GETTIME not repected in pytime.c

2020-04-05 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



[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread Morten Hels

New submission from Morten Hels :

It is not immediately obvious to me what the units are in the timing table 
here: https://docs.python.org/3/whatsnew/3.8.html#demos-and-tools

Clicking through to https://bugs.python.org/issue35884 shows that the unit is 
microseconds, but I think it would be helpful to many readers to put that 
information in the docs itself, e.g.,

"Here’s a summary of performance improvements since Python 3.3 (timings are in 
microseconds):"

--
assignee: docs@python
components: Demos and Tools, Documentation
messages: 365823
nosy: docs@python, frozenpaving
priority: normal
severity: normal
status: open
title: Add microseconds to timing table in What's new python 3.8
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



[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2020-04-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread STINNER Victor


Change by STINNER Victor :


--
assignee: docs@python -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue40197] Add microseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
title: Add microseconds to timing table in What's new python 3.8 -> Add 
nanoseconds to timing table in What's new python 3.8

___
Python tracker 

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



[issue40198] macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to hardened runtime

2020-04-05 Thread dgelessus


New submission from dgelessus :

Recent Python.org versions of Python for macOS no longer respect the 
DYLD_LIBRARY_PATH environment variable for extending the dynamic library search 
path, and the envvar is completely invisible to the Python process. This is the 
case since at least Python 3.7.7 and Python 3.8.2. It was *not* the case with 
Python 3.7.5 or Python 3.8.0 or any earlier versions (I haven't tested 3.7.6 
and 3.8.1). For example:

$ python3.6 --version
Python 3.6.8
$ DYLD_LIBRARY_PATH=tests/objc python3.6 -c 'import os; 
print(os.environ.get("DYLD_LIBRARY_PATH"))'
tests/objc
$ python3.7 --version
Python 3.7.7
$ DYLD_LIBRARY_PATH=tests/objc python3.7 -c 'import os; 
print(os.environ.get("DYLD_LIBRARY_PATH"))'
None

This seems to be because the Python binaries now fulfill the requirements for 
notarization (as mentioned in 
https://www.python.org/downloads/release/python-377/#macos-users), which 
includes enabling the hardened runtime 
(https://developer.apple.com/documentation/security/hardened_runtime), which by 
default hides DYLD_LIBRARY_PATH (and other DYLD_... envvars) from the hardened 
binary.

To disable this protection and allow using DYLD_... envvars again, the 
entitlement com.apple.security.cs.allow-dyld-environment-variables 
(https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_allow-dyld-environment-variables)
 can be added to a hardened binary. The Python binaries seem to have some 
entitlements, but not .allow-dyld-environment-variables:

$ codesign --display --entitlements=:- python3.7
Executable=/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7

http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


com.apple.security.cs.disable-library-validation

com.apple.security.cs.disable-executable-page-protection




Would it be possible to add this entitlement to the Python binaries, so that 
DYLD_LIBRARY_PATH can be used again, as was possible in previous versions?

--
components: macOS
messages: 365824
nosy: dgelessus, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to 
hardened runtime
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Michal Laboš

New submission from Michal Laboš :

The current warning filter seems to filter out the compile time 
DeprecationWarnings that get triggered on invalid escape sequences:

import warnings

compile("'\d'", "", "eval")
warnings.resetwarnings()
compile("'\d'", "", "eval")


results in one
:1: DeprecationWarning: invalid escape sequence \d
being printed

--
messages: 365825
nosy: Michal Laboš
priority: normal
severity: normal
status: open
title: Invalid escape sequence DeprecationWarnings don't trigger by default
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I get it printed two times.

Actually I get it printed four times: two time when compile the test script 
(use r"'\d'" or "'\\d'" to get rid of them), and other two times when call 
compile() inside a script.

$ ./python issue40199.py 
issue40199.py:3: DeprecationWarning: invalid escape sequence \d
  compile("'\d'", "", "eval")
issue40199.py:5: DeprecationWarning: invalid escape sequence \d
  compile("'\d'", "", "eval")
:1: DeprecationWarning: invalid escape sequence \d
:1: DeprecationWarning: invalid escape sequence \d

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue40200] count 0 crash

2020-04-05 Thread Talha Demirsoy


New submission from Talha Demirsoy :

Dear Python Developers,

I made a program that finds how many 0's at the end of the number

But when I enter number has 23 zero its okay but when I enter number has 24 
zero its crash

--
components: Build
files: howmany0.py
messages: 365827
nosy: talha.demirsoy
priority: normal
severity: normal
status: open
title: count 0 crash
type: crash
versions: Python 3.8
Added file: https://bugs.python.org/file49038/howmany0.py

___
Python tracker 

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



[issue40200] count 0 crash

2020-04-05 Thread Furkan Onder


Furkan Onder  added the comment:

Can i see the program code?

--
nosy: +furkanonder

___
Python tracker 

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



[issue40200] count 0 crash

2020-04-05 Thread Talha Demirsoy


Talha Demirsoy  added the comment:

I shared but I write again.

sayac = 0
fakto = 100
while True:
if fakto % 10 == 0:
sayac += 1
fakto = fakto / 10
elif fakto % 10 > 0:
break
print(sayac)

--

___
Python tracker 

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



[issue40200] count 0 crash

2020-04-05 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Talha, you are using floating points division which convert its operands to 
floats so it loose precision for large numbers. The syntax for integer division 
in Python 3 is // and it will not change the type of its operands. Notice the 
difference below:

>>> 100/10 % 10
4.0
>>> 100.0//10 % 10
4.0
>>> 100//10 % 10
0

As you can see, in the first example the operand got changed to float which 
caused a loss of precision and we get the same result when we try directly with 
a float. Using // gives the expected result.

Python use perfect arithmetic for integers but IEEE 754 for floating point 
calculations. You will find that there is a lot of those "quirks" when using 
either very large or very small numbers and will need to be mindful of them.

In the program you linked, changing '/' to '//' should gives the result you are 
expecting.

--
nosy: +remi.lapeyre -furkanonder

___
Python tracker 

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



[issue40200] count 0 crash

2020-04-05 Thread Batuhan Taskaya


Batuhan Taskaya  added the comment:

Closing issue since it is not a bug, at least a bug of python itself. Feel free 
to post any questions to python-list mailing list. 
https://mail.python.org/mailman/listinfo/python-list

--
nosy: +BTaskaya
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: crash -> 

___
Python tracker 

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



[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2020-04-05 Thread Numerlor


Numerlor  added the comment:

In what environment was that ran in?
The issue seems to exist in all the different environments that are easily 
available to me (win7, win10, linux under docker and on repl.it)

--

___
Python tracker 

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



[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset c63629e7c09da80a6b7d0253d04a9b3f57f88eff by Raymond Hettinger in 
branch 'master':
bpo-40197: Better describe the benchmark results table (GH-19386)
https://github.com/python/cpython/commit/c63629e7c09da80a6b7d0253d04a9b3f57f88eff


--

___
Python tracker 

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



[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +18750
pull_request: https://github.com/python/cpython/pull/19387

___
Python tracker 

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



[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy


New submission from Talha Demirsoy :

When I try to enter 10^23 or less its gives me ture but when I  tried 10^24 and 
more its give me just 1

--
files: howmany0.py
messages: 365834
nosy: talha.demirsoy
priority: normal
severity: normal
status: open
title: Last digit count error
type: crash
versions: Python 3.8
Added file: https://bugs.python.org/file49039/howmany0.py

___
Python tracker 

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



[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy


Talha Demirsoy  added the comment:

sorry delete pls

--

___
Python tracker 

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



[issue40201] Last digit count error

2020-04-05 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

Your script is using "true" division with / , (that produces potentially 
inaccurate float results) not floor division with // , (which gets int 
results). When the inputs vastly exceed the integer representational 
capabilities of floats (52-53 bits, where 10 ** 24 is 80 bits), you'll have 
problems.

This is a bug in your script, not Python.

--
nosy: +josh.r
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



[issue40201] Last digit count error

2020-04-05 Thread Talha Demirsoy


Change by Talha Demirsoy :


Removed file: https://bugs.python.org/file49039/howmany0.py

___
Python tracker 

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



[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +18751
pull_request: https://github.com/python/cpython/pull/19388

___
Python tracker 

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



[issue39414] Multiprocessing resolving object as None

2020-04-05 Thread Talley Lambert


Talley Lambert  added the comment:

FYI, this bug was an issue with dask: https://github.com/dask/dask/issues/5806
and has been fixed in dask as of (I believe) v2.11.0

--
nosy: +Talley Lambert

___
Python tracker 

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



[issue40198] macOS Python builds from Python.org ignore DYLD_LIBRARY_PATH due to hardened runtime

2020-04-05 Thread Ned Deily


Change by Ned Deily :


--
assignee:  -> ned.deily
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



[issue40147] Move checking for duplicated keywords to the compiler

2020-04-05 Thread Zackery Spytz


Change by Zackery Spytz :


--
nosy: +ZackerySpytz
nosy_count: 2.0 -> 3.0
pull_requests: +18752
pull_request: https://github.com/python/cpython/pull/19389

___
Python tracker 

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



[issue34972] json dump silently converts int keys to string

2020-04-05 Thread Stub


Stub  added the comment:

Similarly, keys can be lost entirely:

>>> json.dumps({1:2, 1.0:3})
'{"1": 3}'

--
nosy: +Stub2

___
Python tracker 

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



[issue40197] Add nanoseconds to timing table in What's new python 3.8

2020-04-05 Thread Morten Hels


Morten Hels  added the comment:

It turns out I was wrong about microseconds. The output in 
https://bugs.python.org/issue35884 does show microseconds, but the output is 
before this commit 
https://github.com/python/cpython/commit/9da3583e78603a81b1839e17a420079f734a75b0
 that fixes a typo (that's my best guess anyway).

Thank you for clearing this up, rhettinger.

--

___
Python tracker 

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



[issue34972] json dump silently converts int keys to string

2020-04-05 Thread Stuart Bishop


Stuart Bishop  added the comment:

(sorry, my example is normal Python behavior. {1:1, 1.0:2} == {1:2} , {1.0:1} 
== {1:1} )

--
nosy: +stub

___
Python tracker 

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



[issue40147] Move checking for duplicated keywords to the compiler

2020-04-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 08050e959e6c40839cd2c9e5f6a4fd1513e3d605 by Zackery Spytz in 
branch 'master':
bpo-40147: Fix a compiler warning on Windows in Python/compile.c (GH-19389)
https://github.com/python/cpython/commit/08050e959e6c40839cd2c9e5f6a4fd1513e3d605


--

___
Python tracker 

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