[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12638

___
Python tracker 

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



[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-06 Thread Nick Coghlan


Nick Coghlan  added the comment:

Thanks for the technical clarification Lars, and for the docs update C.A.M.

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



[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-04-06 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 89a894403cfa880d7f9d1d67070f61456d14cbde by Nick Coghlan (CAM 
Gerlach) in branch 'master':
bpo-30661: Improve docs for tarfile pax change and effect on shutil (GH-12635)
https://github.com/python/cpython/commit/89a894403cfa880d7f9d1d67070f61456d14cbde


--

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +steven.daprano

___
Python tracker 

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



[issue36547] bedevere is not working

2019-04-06 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This is a workflow issue and already seems to have a report. I am closing this 
as third party. Please don't create issues related to workflow or one of the 
bots here since they have separate GitHub repos where their development takes 
place.

--
nosy: +xtreak
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue36547] bedevere is not working

2019-04-06 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

https://github.com/python/bedevere/issues/162

--

___
Python tracker 

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



[issue16786] argparse doesn't offer localization interface for "version" action

2019-04-06 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
pull_requests: +12637
stage:  -> patch review

___
Python tracker 

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



[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Emmanuel Arias


Change by Emmanuel Arias :


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

___
Python tracker 

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



[issue36547] bedevere is not working

2019-04-06 Thread Emmanuel Arias


New submission from Emmanuel Arias :

Hi!

I don't know if here is the correct place to this, but bedevere is not working 
from a day ago.

--
messages: 339552
nosy: eamanu
priority: normal
severity: normal
status: open
title: bedevere is not working

___
Python tracker 

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



[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-06 Thread Inada Naoki


Change by Inada Naoki :


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

___
Python tracker 

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



[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-06 Thread Dan Yeaw


Dan Yeaw  added the comment:

lazka: Thanks for you response. You are correct, the issue was that I had a pip 
installed version of setuptools somehow. It sounds like you think that all 
issues should go downstream to fixing them in the MINGW-packages. I am OK with 
this, it just seams like there are many many issues with Python in MSYS2. 
Basics like virtualenvs aren't currently working at all. I will start 
submitting the issues I am having there with proposed fixes, and then we can 
push them upstream if we think there are things that the core Python team can 
help out with.

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



[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Saim Raza


Saim Raza  added the comment:

https://docs.python.org/3/reference/compound_stmts.html#the-try-statement says

=
except E as N:
foo
=

is converted to the following statement:

=
except E as N:
try:
foo
finally:
del N
=

In the examples in this thread, foo is 'import pdb; pdb.set_trace()'. So, I was 
expecting 'del N' to be executed only after executing foo. This implies that 
err should have been available in the scope.

Further, isn't the code execution supposed to be stopped at the set_trace() 
line and not on the next line. Should it at least respect the scope 
(indentation) and not execute the '--Return--' line event until the user 
actually executes the next line (x=1 in your example)?

--

___
Python tracker 

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



[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3


paul j3  added the comment:

https://bugs.python.org/issue16786

points out that the 'version' action isn't localizable either.

--

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

https://patch-diff.githubusercontent.com/raw/python/cpython/pull/12710.diff

--

___
Python tracker 

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



[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3


paul j3  added the comment:

I haven't paid much attention to the localization issues in `argparse`.  

The issue is with the help modification done by the:

class ArgumentDefaultsHelpFormatter

help += ' (default: %(default)s)'

This formatter is a convenience, not something critical.  The programmer could 
always include that 'default' string in the help line with their preferred 
terminology.  They don't have to use this formatter to show the default values 
in their help lines.

_() is used mostly for error messages with the format 

msg = _('message %(value)s')
raise Error( msg % args)

So the following change might work:

help += _(' (default: %(default)s)')

But I'm not in a position to test it or evaluate its usefulness.

--

___
Python tracker 

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



[issue36517] typing.NamedTuple does not support mixins

2019-04-06 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

Hm, it looks like we can support this. I however don't think the proposed 
"patch" is the right way to fix it, since this makes the implementation with 
and without a mixin quite different.

Also I am not sure I will have time to work on this in the nearest month.

--

___
Python tracker 

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



[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2019-04-06 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

I am totally fine with making RegexFlag public (this may be indeed useful for 
static typing purposes).

--

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue36546] Add quantiles() to the statistics module

2019-04-06 Thread Raymond Hettinger


New submission from Raymond Hettinger :

It is a common and useful data analysis technique to examine quartiles, 
deciles, and percentiles. It is especially helpful for comparing distinct 
datasets (heights of boys versus heights of girls) or for comparing against a 
reference distribution (empirical data versus a normal distribution for 
example).

--- sample session ---

>>> from statistics import NormalDist, quantiles
>>> from pylab import plot

# SAT exam scores
>>> sat = NormalDist(1060, 195)
>>> list(map(round, quantiles(sat, n=4)))   # quartiles
[928, 1060, 1192]
>>> list(map(round, quantiles(sat, n=10)))  # deciles
[810, 896, 958, 1011, 1060, 1109, 1162, 1224, 1310]

# Summarize a dataset
>>> data = [110, 96, 155, 87, 98, 82, 156, 88, 172, 102, 91, 184, 105, 114, 104]
>>> quantiles(data, n=2)# median
[104.0]
>>> quantiles(data, n=4)# quartiles
[91.0, 104.0, 155.0]
>>> quantiles(data, n=10)   # deciles
[85.0, 88.6, 95.0, 99.6, 104.0, 108.0, 122.2, 155.8, 176.8]


# Assess when data is normally distributed by comparing quantiles
>>> reference_dist = NormalDist.from_samples(data)
>>> quantiles(reference_dist, n=4)
[93.81594518619364, 116.27, 138.71738814713967]

# Make a QQ plot to visualize how well the data matches a normal distribution
# plot(quantiles(data, n=7), quantiles(reference_dist, n=7))

--
components: Library (Lib)
messages: 339544
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Add quantiles() to the statistics module
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



[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

@paul.j3 I assume this is an easy issue of wrapping "default" with _() at [0]. 
There doesn't seem to be any tests for localization in argparse.

https://github.com/python/cpython/blob/2ea8099523581cf2ecc060831a53debb57ff98ee/Lib/argparse.py#L682

--
components: +Library (Lib)
nosy: +paul.j3, xtreak
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



[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

This is not a bug.
On the first pdb session from the OP:

True
--Return--
> (5)()->None
-> import pdb; pdb.set_trace()
(Pdb) print("err" in locals())
False  <-- BUG??

Pdb has stopped on a '--Return--' line event, so we are already outside the 
scope of the except clause and the 'err' local variable cannot be accessed 
outside the except block. The following code snippet shows that pdb stops at 
the line following the set_trace() call:

==
def foo():
try:
1/0
except Exception as err:
import pdb; pdb.set_trace()
x= 1

foo()
==

And the corresponding pdb session:

$ python foo.py
> /path/to/foo.py(6)foo()
-> x= 1
(Pdb) err
*** NameError: name 'err' is not defined
(Pdb)

--

___
Python tracker 

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



[issue36541] Make lib2to3 grammar more closely match Python

2019-04-06 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +pablogsal

___
Python tracker 

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



[issue36545] Python 3.5 OOM during test_socket on make

2019-04-06 Thread Philip Deegan


New submission from Philip Deegan :

Building Python 3.5.3 or 3.5.6 on my Kernel 5.0.2 Debian 9 install has runaway 
memory usage during "test_socket" while running make after 

./configure CFLAGS="-g3 -O3 -march=native -fPIC -I/usr/include/openssl" 
CXXFLAGS="-g3 -O3 -march=native -fPIC -I/usr/include/openssl" --enable-shared 
LDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu 
-Wl,-rpath=/usr/lib/x86_64-linux-gnu" --prefix=$PWD --with-valgrind 
--enable-optimizations --with-ensurepip=install

--
messages: 339541
nosy: dekken
priority: normal
severity: normal
status: open
title: Python 3.5 OOM during test_socket on make

___
Python tracker 

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



[issue36529] Python from WindowsStore: can't install package using "-m pip"

2019-04-06 Thread Steve Dower


Steve Dower  added the comment:

Yeah, right now you need to also pass --local when you use -m (the bundled 
pip.exe does this automatically). Your user account does not have permission to 
install into the global site directory.

Once we update the bundled pip I can add a site-specific configuration file to 
handle both cases transparently (I had to enable it in pip first before we 
could make CPython handle it).

--
assignee:  -> steve.dower
components: +Windows
nosy: +tim.golden, zach.ware
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



[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-06 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xdegaye

___
Python tracker 

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



[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 2ea8099523581cf2ecc060831a53debb57ff98ee by Serhiy Storchaka 
(Stefan Behnel) in branch 'master':
bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)
https://github.com/python/cpython/commit/2ea8099523581cf2ecc060831a53debb57ff98ee


--

___
Python tracker 

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



[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-04-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12634

___
Python tracker 

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



[issue36146] Refactor setup.py

2019-04-06 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
pull_requests: +12633

___
Python tracker 

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



[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye


Change by Xavier de Gaye :


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

___
Python tracker 

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



[issue36504] Signed integer overflow in _ctypes.c's PyCArrayType_new()

2019-04-06 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

Working on a PR

--

___
Python tracker 

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



[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

Changeset 5ec33a1c25a586552751ca35c85ab7ecb6b06ec3 appends to the new 
detect_openssl_hashlib() method, the detection for the _sha256, _sha512, _md5, 
... extension modules. These modules were detected unconditionnaly before this 
change and are not detected anymore now when openssl is not supported by the 
platform.

--

___
Python tracker 

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



[issue36506] [security] CVE-2019-10268: An arbitrary execution vulnerability exists in the built-in function getattr

2019-04-06 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



[issue36544] cannot import hashlib when openssl is missing

2019-04-06 Thread Xavier de Gaye


New submission from Xavier de Gaye :

Python is built natively in a docker container (based on ubuntu bionic) that 
lacks openssl.

pydev@979e9e009b08:~/build/python-native$ ./python
Python 3.8.0a3+ (heads/master-dirty:d6bf6f2, Apr  6 2019, 14:43:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type blake2b
ERROR:root:code for hash blake2s was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type blake2s
ERROR:root:code for hash sha3_224 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha3_224
ERROR:root:code for hash sha3_256 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha3_256
ERROR:root:code for hash sha3_384 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha3_384
ERROR:root:code for hash sha3_512 was not found.
Traceback (most recent call last):
  File "/home/pydev/cpython/Lib/hashlib.py", line 244, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/pydev/cpython/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise 

[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See also issue29209.

--

___
Python tracker 

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



[issue29209] Remove old-deprecated ElementTree features

2019-04-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The rest will be removed in issue36543.

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



[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue36543] Remove old-deprecated ElementTree features (part 2)

2019-04-06 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The proposed PR removes old-deprecated ElementTree features.

* Methods Element.getchildren(), Element.getiterator() and 
ElementTree.getiterator() deprecated in 2.7 and 3.2. They were deprecated in 
the documentation only, and started to emit a warning in 3.8. Use list(elem) or 
iteration instead of getchildren(), methods iter() instead of getiterator().

* The xml.etree.cElementTree module deprecated in 3.3. It was deprecated 
documentation only because adding a runtime warning will cause more harm than 
removing it because of the common idiom of using it since Python 2:

try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET

TODO: Add a What's New entry after the start of developing 3.9.

--
assignee: serhiy.storchaka
components: XML
messages: 339533
nosy: eli.bendersky, scoder, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Remove old-deprecated ElementTree features (part 2)
type: enhancement
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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-06 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset d6bf6f2d0c83f0c64ce86e7b9340278627798090 by Inada Naoki in branch 
'master':
bpo-36050: optimize HTTPResponse.read() (GH-12698)
https://github.com/python/cpython/commit/d6bf6f2d0c83f0c64ce86e7b9340278627798090


--

___
Python tracker 

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



[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2019-04-06 Thread Inada Naoki


Change by Inada Naoki :


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

___
Python tracker 

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



[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-06 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset a0da131a74acdb147ecd64d729c86d65fecd0cff by Inada Naoki (Dmitry 
Marakasov) in branch 'master':
bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688)
https://github.com/python/cpython/commit/a0da131a74acdb147ecd64d729c86d65fecd0cff


--
nosy: +inada.naoki

___
Python tracker 

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



[issue35459] Use PyDict_GetItemWithError() instead of PyDict_GetItem()

2019-04-06 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +12630
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



[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue36542] Allow to overwrite the signature for Python functions

2019-04-06 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Currently __text_signature__ can be used for specifying signature of functions 
implemented in C. It is ignored for functions implemented in Python. The 
proposed PR allows to override the real signature of Python functions by 
setting the __text_signature__ attribute. This is needed to restore useful 
signatures in functions that use the *args hack to implement positional-only 
parameters. See the discussion for PR 12637.

--
components: Library (Lib)
messages: 339530
nosy: gvanrossum, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Allow to overwrite the signature for Python functions
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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-06 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Here's a PR that goes the re-initialization route rather than attempting to 
acquire/release anything other than the single module _lock.

--
nosy: +lukasz.langa
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



[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2019-04-06 Thread Gregory P. Smith


Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue36440] more helpful diagnostics for parser module

2019-04-06 Thread Xavier Combelle


Change by Xavier Combelle :


--
nosy:  -xcombelle

___
Python tracker 

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



[issue36538] _thread.interrupt_main() no longer interrupts Lock.wait

2019-04-06 Thread Eryk Sun


Eryk Sun  added the comment:

Windows doesn't implement POSIX signals in the kernel, so 
_thread.interrupt_main (i.e. PyErr_SetInterrupt) can be useful as an 
abstraction. 

Currently PyErr_SetInterrupt (Modules/signalmodule.c) doesn't set our SIGINT 
event in Windows. It was suggested in issue 29926 to replace the trip_signal 
call with raise(SIGINT). That works for Windows -- as long as we're not 
concerned about emulating Ctrl+C exactly as if the user typed it in the console 
(if we're attached to a console). In POSIX, raise(SIGINT) won't interrupt the 
main thread if it's in a blocking system call, since it targets pthread_self(), 
so PyErr_SetInterrupt can instead call kill(getpid(), SIGINT), as you suggest, 
or pthread_kill(main_thread, SIGINT). 

3.8 adds signal.raise_signal (see issue 35568), so it's possible to implement 
this in pure Python. Either way, it would be nice to keep it as a 
cross-platform function, and hopefully make it public and documented.

Another option would be to enhance our Windows implementation of os.kill to 
more closely match POSIX kill(), such that os.kill(os.getpid(), signal.SIGINT) 
is implemented as raise(SIGINT). That would be a breaking change since 
currently it calls TerminateProcess (an abrupt termination like POSIX SIGKILL).

--
nosy: +eryksun

___
Python tracker 

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



[issue36440] more helpful diagnostics for parser module

2019-04-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Since the parser module did not work in 3.7, I think this will not harm. But in 
general new features (including changes in error messages) are added only in 
the developed version.

--

___
Python tracker 

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



[issue36532] Example of logging.formatter with new str.format style

2019-04-06 Thread spaceman_spiff


spaceman_spiff  added the comment:

I was under the impression that this was all it takes to use loggers with the 
normal string.format syntax.
e.g.:
   log.info('{}', 'Test')
Turns out when I tested it I used f-strings in the first parameters - so I got 
it wrong.
Imho this can be closed and the pr rejected.
Sorry for wasting your time :)

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



[issue36539] Distutils VC 6.0 Errors When Using mingw-w64 GCC

2019-04-06 Thread Christoph Reiter


Christoph Reiter  added the comment:

MSYS2 patches setuptools to work with GCC and the MSYS2 Python, so you can't 
use setuptools as is from pip.

See 
https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python-setuptools 
for the current set of patches.

--
nosy: +lazka

___
Python tracker 

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