[issue38148] Add slots to asyncio transports

2019-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Note, slots for protocols are provided by 3.8 already.

--

___
Python tracker 

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



[issue38148] Add slots to asyncio transports

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue38148] Add slots to asyncio transports

2019-09-12 Thread Andrew Svetlov


New submission from Andrew Svetlov :

Transports are abstract interfaces.
Adding slots allows using slots in transport implementations as well.
If the implementation doesn't use slots -- everything keeps working.

Slots can help with saving a memory footprint a little.

--
components: asyncio
messages: 352239
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Add slots to asyncio transports
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



[issue38107] Replace direct future and task contructor calls with factories in asyncio tests

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue35810] Object Initialization does not incref Heap-allocated Types

2019-09-12 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +15698
pull_request: https://github.com/python/cpython/pull/16071

___
Python tracker 

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



[issue38140] Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API

2019-09-12 Thread Eddie Elizondo


Change by Eddie Elizondo :


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

___
Python tracker 

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



[issue30701] Exception parsing certain invalid email address headers

2019-09-12 Thread Tim Bell


Tim Bell  added the comment:

This appears to be the same issue as subsequently reported in #34155.

--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

AIX has the same error as RHEL and Fedora

https://buildbot.python.org/all/#/builders/161/builds/1615/steps/5/logs/stdio

--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

and some Fedora and RHEL bots are failing with:

==
ERROR: test_extra_groups (test.test_subprocess.POSIXProcessTestCase)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_subprocess.py",
 line 1840, in test_extra_groups
output = subprocess.check_output(
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 419, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 497, in run
with Popen(*popenargs, **kwargs) as process:
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 889, in __init__
gids.append(grp.getgrnam(extra_group).gr_gid)
KeyError: "getgrnam(): name not found: 'nogroup'"
==
ERROR: test_group (test.test_subprocess.POSIXProcessTestCase) (group='nogroup')
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/test/test_subprocess.py",
 line 1800, in test_group
output = subprocess.check_output(
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 419, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 497, in run
with Popen(*popenargs, **kwargs) as process:
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Lib/subprocess.py",
 line 862, in __init__
gid = grp.getgrnam(group).gr_gid
KeyError: "getgrnam(): name not found: 'nogroup'"

--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

The 'Debian root' buildbot exposed a unittest issue to deal with:

https://buildbot.python.org/all/#/builders/27/builds/3702/steps/5/logs/stdio

==
ERROR: test_user (test.test_subprocess.POSIXProcessTestCase) (user=65534)
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subprocess.py", 
line 1761, in test_user
output = subprocess.check_output(
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 419, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 497, in run
with Popen(*popenargs, **kwargs) as process:
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 941, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 1797, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 
'/root/buildarea/3.x.angelico-debian-amd64/build/python'
==
ERROR: test_user (test.test_subprocess.POSIXProcessTestCase) (user='nobody')
--
Traceback (most recent call last):
  File 
"/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subprocess.py", 
line 1761, in test_user
output = subprocess.check_output(
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 419, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 497, in run
with Popen(*popenargs, **kwargs) as process:
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 941, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py", 
line 1797, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: 
'/root/buildarea/3.x.angelico-debian-amd64/build/python'

--

___
Python tracker 

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



[issue38128] IDLE undo calls get_saved() when set to None

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Here's one more:

Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py",
 line 1883, in __call__
return self.func(*args)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py",
 line 176, in handler
r = l[i](event)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/filelist.py",
 line 54, in close_all_callback
reply = edit.close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py",
 line 1079, in close
self._close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py",
 line 312, in _close
EditorWindow._close(self)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py",
 line 1083, in _close
if self.io.filename:
AttributeError: 'NoneType' object has no attribute 'filename'

--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Thanks for working on this.  Least privilege is an important security 
consideration.  The world will be a better place if we limit harm from bad or 
broken actors.

--
nosy: +rhettinger

___
Python tracker 

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



[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-12 Thread Tim Peters


Tim Peters  added the comment:

Following up, at least under Visual Studio for x86 "it's free" to change the 
code to add in `perturb` shifted left.  The C source:

perturb >>= PERTURB_SHIFT;
i = (i*5 + (perturb << 1) + 1) & mask;

compiles to this, where I added comments relating the instructions to the 
source code:

lea rax,[r14+r14*4]  # rax = i*5
shr r12,5# r12(perturb) >>= 5
lea r14,[r12*2+1]# r14(i) = (perturb << 1) + 1
add r14,rax  # r14(i) += i*5
and r14,rbx  # r14(i) &= mask

Good job!  There are actually fewer machine instructions than C operators.

As noted, this change would eliminate the possibility of fixed points from the 
start, so would eliminate the symptoms in this specific bug report.

Which I don't much care about ;-)  But I _do_ care about that, in general, the 
early stages of collision resolution for small tables can "frequently" visit 
slots more than once.  This is true even if the hashes aren't identical.  And 
it would remain true even with the change (cycles can still exist - that there 
are no fixed points just means there are no more cycles of the minimum possible 
length 1).

Improving that is worth some effort, but not much.  In general, hash codes 
aren't identical, and in small tables redundant slot visits just cost the time 
to read the hash code from cache and re-deduce that it's not equal to what 
we're looking for (__eq__ isn't typically called).

In larger tables redundant slot visits in the early stages are too rare to care 
about.

In small tables, it's worth something to guarantee that the first probe after a 
collision can't hit exactly the same slot again (in a random model, there's a 
12.5% chance of that happening now in the smallest tables - 12.5% is 1 in 8 - 
and this bug report contrived cases where the chance is 100% across a dozen 
iterations).

Anyone up a for a world of tedious benchmarking? ;-)

--

___
Python tracker 

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



[issue9216] FIPS support for hashlib

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 7cad53e6b084435a220e6604010f1fa5778bd0b1 by Gregory P. Smith 
(Christian Heimes) in branch 'master':
bpo-9216: Add usedforsecurity to hashlib constructors (GH-16044)
https://github.com/python/cpython/commit/7cad53e6b084435a220e6604010f1fa5778bd0b1


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue34155] [CVE-2019-16056] email.utils.parseaddr mistakenly parse an email

2019-09-12 Thread Roberto C . Sánchez

Roberto C. Sánchez  added the comment:

I am working on Debian LTS support.  I have submitted a PR that contains the 
necessary adjustments to implement the fix in 2.7.

--
nosy: +rcsanchez97

___
Python tracker 

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



[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-12 Thread Tim Peters


Tim Peters  added the comment:

A more principled change would be to replace instances of this:

i = (i*5 + perturb + 1) & mask;

with this:

i = (i*5 + (perturb << 1) + 1) & mask;

The latter spelling has no fixed points.  That's easy to see:  `(perturb << 1) 
+ 1` is necessarily odd, and then `i*5 + ODD` is even when `i` is odd, and vice 
versa.

I had hoped that the time for a new shift could overlap with the multiply 
latency, but no such luck.  At least Visual Studio didn't multiply to begin 
with:  it first computes `i*4 + perturb` cheaply with a single LEA instruction, 
then adds 1 (INC), then adds in `i` again.

I expect it would be able to fold in a "free" shifted add of perturb with 
another LEA, so the latter spelling isn't necessarily more expensive.  But I'm 
generally loathe to increase operation counts relying on clever compilers to 
exploit processor-specific tricks.

--

___
Python tracker 

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



[issue37455] asyncio.run() error related to finalizing async generators

2019-09-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> AsyncGenerator breaks when not iterated fully with 
RuntimeError("can't send non-None value to a just-started coroutine")

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue38147] add macro for __builtin_unreachable

2019-09-12 Thread Sergey Fedoseev


New submission from Sergey Fedoseev :

GCC (along with Clang and ICC) has __builtin_unreachable() and MSVC has 
__assume() builtins, that can be used to optimize out unreachable conditions.

So we could add macro like this:

#ifdef Py_DEBUG
#   define Py_ASSUME(cond) (assert(cond))
#else
#   if defined(_MSC_VER)
#   define Py_ASSUME(cond) (__assume(cond))
#   elif defined(__GNUC__)
#   define Py_ASSUME(cond) (cond? (void)0: __builtin_unreachable())
#   else
#   define Py_ASSUME(cond) ((void)0);
#   endif
#endif

Here's a pair of really simple examples showing how it can optimize code: 
https://godbolt.org/z/g9LYXF.

Real world example. _PyLong_Copy() [1] calls _PyLong_New() [2]. _PyLong_New() 
checks the size, so that overflow does not occur. This check is redundant when 
_PyLong_New() is called from _PyLong_Copy(). We could add a function that 
bypass that check, but in LTO build PyObject_MALLOC() is inlined into 
_PyLong_New() and it also checks the size. Adding Py_ASSUME((size_t)size <= 
MAX_LONG_DIGITS) allows to bypass both checks. 

[1] 
https://github.com/python/cpython/blob/3a4f66707e824ef3a8384827590ebaa6ca463dc0/Objects/longobject.c#L287-L309
[2] 
https://github.com/python/cpython/blob/3a4f66707e824ef3a8384827590ebaa6ca463dc0/Objects/longobject.c#L264-L283

--
messages: 352228
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: add macro for __builtin_unreachable

___
Python tracker 

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



[issue38146] QVariant NULL returns anomalous values in equality statements

2019-09-12 Thread John Midgett


New submission from John Midgett :

Per PEP 8, equality comparisons to None should use the "is" or "is not" 
keywords. However, if x is a {QVariant}NULL, the equality statement with the 
"is" keyword returns FALSE whereas the "==" comparison returns TRUE.  

Hence where cond = {QVariant}NULL:

if cond is None  # Returns False
if cond == None  # Returns True

This can cause some unexpected code anomalies (as it did for me) when adjusting 
code for PEP 8 compliance.

--
components: Interpreter Core
messages: 352227
nosy: John Midgett
priority: normal
severity: normal
status: open
title: QVariant NULL returns anomalous values in equality statements
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue38141] Use fewer statics in Argument Clinic.

2019-09-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Dropping "static" will hit performance. _PyArg_Parser is used at first place 
because it can cache some data between calls. If drop static, you should drop 
also _PyArg_Parser and return to old slow arguments parsing.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue38143] plistlib: cleanup PEP8 violations

2019-09-12 Thread Julien Palard


Julien Palard  added the comment:

Hi Jon, thanks for trying to enhance Python.

You should start by reading the devguide [1]. We'd like to enhance the style 
and may or may not do it in the future, but if we do I'll be all in the single 
conmit, and I bet using black. We do not accept such small changes because they 
mess with got history (blame mainly).

[1]: https://devguide.python.org

Excuse my short message, sent from my phone.

--
nosy: +mdk
resolution:  -> later
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



[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2019-09-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue38145] Fix short option 'd' in 'distutils' command 'bdist_dumb'

2019-09-12 Thread sinoroc


Change by sinoroc :


--
title: Fix short option 'd' in 'scommand 'bdist_dumb' -> Fix short option 'd' 
in 'distutils' command 'bdist_dumb'

___
Python tracker 

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



[issue38145] Fix short option 'd' in 'scommand 'bdist_dumb'

2019-09-12 Thread sinoroc


New submission from sinoroc :

In the 'distutils' command 'bdist_dumb', the short option 'd' is used
for both the 'bdist-dir' and 'dist-dir' options.

The bdist-dir option appeared first on 2000-05-13 in commit:
ba0506b

The dist-dir option appeared then on 2000-07-05 in commit:
c4eb84a

There appears to have been no version released between these two
commits, so most likely the global behaviour of the command has
stayed consistent.

The short option d actually triggers the dist-dir option, not the
bdist-dir option.

It is therefore safe to change the short option for bdist-dir. A
choice consistent with other similar distutils commands is 'b'.

--
components: Distutils
messages: 352224
nosy: dstufft, eric.araujo, sinoroc
priority: normal
pull_requests: 15695
severity: normal
status: open
title: Fix short option 'd' in 'scommand 'bdist_dumb'
versions: Python 2.7, Python 3.5, Python 3.6, 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



[issue38144] Add the root_dir and dir_fd parameters in glob.glob()

2019-09-12 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The pattern for the glob() function can be relative and absolute. If it is 
relative, paths are searched from the current directory. If you want to search 
them in other directory, you need either change the current directory (which 
affects other parts of your program) or pass a concatenation of the escaped 
root directory and a pattern:

   glob.glob(os.path.join(glob.escape(root_dir), pattern))

Most code (even in the stdlib and tools) forget to escape the root directory. 
It works only until it does not contain metacharacters ('*?[').

When you need paths relative to the root directory, you need to "remove" the 
root_dir prefix from results (using os.path.relpath() at best).

The proposed PR adds two new parameters in glob.glob() and glob.iglob(): 
root_dir and dir_fd.

root_dir specifies the root directory for relative pattern. Its effect is the 
same as chdir before calling glob(). It is similar to the root_dir parameter of 
shutil.make_archive. For example, you can add py-files in the specified 
directory to the ZIP archive by:

with zipfile.ZipFile(archive, 'w') as zf:
for filename in glob.glob('**/*.py', recursive=True, root_dir=root_dir):
zf.write(os.path.join(root_dir, filename), arcname=filename)

Adding to archive and copying are simpler if you have paths relative to the 
specified directory.

The dir_fd parameter is similar to root_dir, but it specifies the root 
directory as an open directory descriptor instead of a path (as in many os 
functions). It adds security (nobody can rename and replace the root directory 
in process) and performance (because of shorter paths).

root_dir and dir_fd can be combined. root_dir is relative to dir_fd and the 
pattern is relative to root_dir.

If root_dir is absolute, dir_fd is ignored. If the pattern is absolute, 
root_dir and dir_fd are ignored.

--
components: Library (Lib)
messages: 352223
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add the root_dir and dir_fd parameters in glob.glob()
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



[issue37455] asyncio.run() error related to finalizing async generators

2019-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Yes, please close as a duplicate.

--

___
Python tracker 

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



[issue38143] plistlib: cleanup PEP8 violations

2019-09-12 Thread Jon Janzen


Change by Jon Janzen :


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

___
Python tracker 

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



[issue38143] plistlib: cleanup PEP8 violations

2019-09-12 Thread Jon Janzen


New submission from Jon Janzen :

There are a series of PEP8 violations in plistlib.

Most of them are spacing issues, a few naming issues, and also some unused 
function parameters and unused imports that can be done away with.

--
components: Library (Lib)
messages: 352221
nosy: bigfootjon, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: plistlib: cleanup PEP8 violations
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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 664d56a52eb5b98ac24b2d0cd4a080ffd49fd93d by Miss Islington (bot) 
in branch '3.8':
bpo-38133: Allow py.exe launcher to locate installations from the Microsoft 
Store (GH-16025)
https://github.com/python/cpython/commit/664d56a52eb5b98ac24b2d0cd4a080ffd49fd93d


--
nosy: +miss-islington

___
Python tracker 

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



[issue37967] Beta GPG signature check failing

2019-09-12 Thread Trishank Kuppusamy


Trishank Kuppusamy  added the comment:

The problem with not authoritatively publishing one or more public keys for the 
Python tarballs is that no one will know for sure which key to trust. If you 
naively download the public key associated with a malicious tarball, you would 
trust it w/o realizing that it's malicious (assuming that the tarball 
developers themselves have not gone rogue).

I strongly urge the Python developers to use at least one official GPG key to 
sign all tarballs, and publish that on its web site (perhaps indirectly using 
Keybase).

--
nosy: +Trishank Kuppusamy

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


Change by Steve Dower :


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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15693
pull_request: https://github.com/python/cpython/pull/16073

___
Python tracker 

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



[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower


Steve Dower  added the comment:


New changeset ed93a8852d120c5a3606720edc723bf5aa6a1fc2 by Steve Dower in branch 
'master':
bpo-38133: Allow py.exe launcher to locate installations from the Microsoft 
Store (GH-16025)
https://github.com/python/cpython/commit/ed93a8852d120c5a3606720edc723bf5aa6a1fc2


--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I'm curious to see what weird things the various buildbot platforms find for 
this one.  crossing my fingers.

--

___
Python tracker 

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



[issue36046] support dropping privileges when running subprocesses

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 2b2ead74382513d0bb9ef34504e283a71e6a706f by Gregory P. Smith 
(Patrick McLean) in branch 'master':
bpo-36046: Add user and group parameters to subprocess (GH-11950)
https://github.com/python/cpython/commit/2b2ead74382513d0bb9ef34504e283a71e6a706f


--

___
Python tracker 

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



[issue38142] Make _hashlib extension module PEP-384 compatible

2019-09-12 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue37455] asyncio.run() error related to finalizing async generators

2019-09-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think this would be fixed by issue38013. Andrew I feel these are the same 
issues here and can be closed.

--
nosy: +xtreak

___
Python tracker 

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



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 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



[issue38142] Make _hashlib extension module PEP-384 compatible

2019-09-12 Thread Christian Heimes


New submission from Christian Heimes :

Updated _hashopenssl.c to be PEP 384 compliant.

--
assignee: christian.heimes
components: Extension Modules
messages: 352214
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Make _hashlib extension module PEP-384 compatible
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



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +15691
pull_request: https://github.com/python/cpython/pull/16070

___
Python tracker 

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



[issue5396] os.read not handling O_DIRECT flag

2019-09-12 Thread Paul


Paul  added the comment:

Michael,

I ran into the same issue as you.  I got it to work by changing the mmap size 
to 8K.

d = os.open(disk_file_path, os.O_RDWR | os.O_DIRECT | os.O_SYNC | os.O_DSYNC)
readbuf = mmap.mmap(-1, 8192)
os.lseek(d, 0, os.SEEK_SET)
fo = os.fdopen(d, 'rb')
fo.readinto(readbuf)

Should work.  What's strange is that further multiples of 4K seem to work OK.

readbuf = mmap.mmap(-1, 4096 * 3)

Also works... So what's going on with 4K?

--
nosy: +yoyoyopcp

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-12 Thread Mark Shannon


Mark Shannon  added the comment:

I expect to fix this is as part of the general improvements I am making to the 
bytecode, interpreter and compiler.
So it should be fixed for 3.9 but not for 3.8

--

___
Python tracker 

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



[issue17013] Allow waiting on a mock

2019-09-12 Thread Mario Corchero


Mario Corchero  added the comment:

Spoke offline with @xtreak, I'll be sending a PR for this to take over the 
existing one.

@lisroach proposed a new name, EventMock to differentiate it from any awaitable 
async notation.

@michael.foord suggested using `mock_timeout` as the argument.

Discussed also to change the naming of the method to `await_until_any_call` to 
make the semantics similar to the one that `Mock` provides. As 
`await_until_called_with` might mislead the user that it applies only to the 
last call.

--

___
Python tracker 

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



[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-09-12 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue37803] "python -m pdb --help" does not work

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 21bfff9a5a766acfbdd899687850f563893a0f9e by Miss Islington (bot) 
in branch '3.8':
closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)
https://github.com/python/cpython/commit/21bfff9a5a766acfbdd899687850f563893a0f9e


--

___
Python tracker 

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



[issue37803] "python -m pdb --help" does not work

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 7da8c0aee2039685f3eff878610684f94f7f7873 by Miss Islington (bot) 
in branch '3.7':
closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)
https://github.com/python/cpython/commit/7da8c0aee2039685f3eff878610684f94f7f7873


--
nosy: +miss-islington

___
Python tracker 

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



[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow


Eric Snow  added the comment:


New changeset 088b63ea7a8331a3e34bc93c3b873c60354b4fad by Eric Snow in branch 
'master':
bpo-36876: Fix the globals checker tool. (gh-16058)
https://github.com/python/cpython/commit/088b63ea7a8331a3e34bc93c3b873c60354b4fad


--

___
Python tracker 

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



[issue37908] Add an example of ArgumentParser.exit()

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue38105] hash collision when hash(x) == -2 causes many calls to __eq__

2019-09-12 Thread Tim Peters


Tim Peters  added the comment:

Something that may be slightly worth pursuing:  in

j = (5*j + 1) % 2**power

to get a full-period sequence hitting every integer in range(2**power) exactly 
once, the multiplier (5) is a bit delicate (it has to be congruent to 1 mod 4), 
but the addend (1) only needs to be odd.  When the hash code has a long string 
of high-order 1 bits, the lower bits of `perturb` are all ones repeatedly 
across iterations, and a string of `power` one bits is congruent to -1 mod 
2**power, cancelling out the +1.

Which people stumbled into here:  all negative ints with small absolute value 
_do_ have a long string of high-order 1 bits (as did also my contrived 2**60 - 
2).

If we changed the addend to, say, +3 instead, it would still be possible to 
contrive cases as bad, but you'd be unlikely to stumble into them by accident, 
and they would be sensitive to the value of `power` (the table's current size). 
 For example, for a table size of 8 (the smallest we use), only ints ending 
with bits 101 are congruent to -3 mod 8.  So maximally "bad" hash codes would 
be of the form (bits, where "x" is "doesn't matter", and grouped into chunks of 
PERTURB_SHIFT (5) bits from the right):

... xx101 xx101 ... xx101 xx101 x
 
Provided changing +1 to +3 didn't slow anything down (you never know until you 
try!), that would be fine by me.  But I'm not bothered by the current behavior, 
so I won't be pursuing it.

--

___
Python tracker 

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



[issue37803] "python -m pdb --help" does not work

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15690
pull_request: https://github.com/python/cpython/pull/16067

___
Python tracker 

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



[issue37803] "python -m pdb --help" does not work

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15689
pull_request: https://github.com/python/cpython/pull/16066

___
Python tracker 

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



[issue37803] "python -m pdb --help" does not work

2019-09-12 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 855df7f273c3988c72f01e51ba57091887ec38b2 by Benjamin Peterson 
(Daniel Hahler) in branch 'master':
closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)
https://github.com/python/cpython/commit/855df7f273c3988c72f01e51ba57091887ec38b2


--
nosy: +benjamin.peterson
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



[issue37908] Add an example of ArgumentParser.exit()

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 6dc3e61c511d3e13ce4eac86c8b6abdff58e3617 by Miss Islington (bot) 
in branch '3.8':
bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)
https://github.com/python/cpython/commit/6dc3e61c511d3e13ce4eac86c8b6abdff58e3617


--
nosy: +miss-islington

___
Python tracker 

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



[issue38121] Synchronize importlib.metadata with importlib_metadata 0.22

2019-09-12 Thread Jason R. Coombs


Change by Jason R. Coombs :


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



[issue38121] Synchronize importlib.metadata with importlib_metadata 0.22

2019-09-12 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset a0d4aac50b362f4c33594a86e0e299d3f812e7b1 by Jason R. Coombs in 
branch '3.8':
[3.8] bpo-38121: Sync importlib.metadata with 0.22 backport (GH-15993) 
(GH-16064)
https://github.com/python/cpython/commit/a0d4aac50b362f4c33594a86e0e299d3f812e7b1


--

___
Python tracker 

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



[issue37908] Add an example of ArgumentParser.exit()

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset b1a2abdb06408ffc4f13d6ff50351ad49c99afc0 by Stéphane Wirtel (Hai 
Shi) in branch 'master':
bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)
https://github.com/python/cpython/commit/b1a2abdb06408ffc4f13d6ff50351ad49c99afc0


--
nosy: +matrixise

___
Python tracker 

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



[issue37908] Add an example of ArgumentParser.exit()

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15688
pull_request: https://github.com/python/cpython/pull/16065

___
Python tracker 

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



[issue34709] Suggestion: make getpass.getuser() also look at SUDO_USER environment variable

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Adding a check for SUDO_USER would break existing uses as it would no longer be 
reporting the user the process is running as.

--
assignee:  -> gregory.p.smith
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed
title: Suggestion: make getuser.getpass() also look at SUDO_USER environment 
variable -> Suggestion: make getpass.getuser() also look at SUDO_USER 
environment variable

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

thanks!

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

___
Python tracker 

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



[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

While there is technically still time, it'd take people spending dedicated time 
on it before the 3.8 release.  I won't be.

Important?  Sure.  But not urgent; this bug is not new.  We've lived with it 
for many releases already.  I believe it has been around since 2.5 when with 
statements were introduced.

--

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset d04c85f5a74e61637ee17e8d4870c6a1d3b07d3e by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.8':
bpo-38096:  Complete the "structseq" and "named tuple" cleanup (GH-16010) 
(GH-16062)
https://github.com/python/cpython/commit/d04c85f5a74e61637ee17e8d4870c6a1d3b07d3e


--

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset e3c25fc902eedcd5c593fac58f35645961f55bf4 by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.7':
bpo-38096:  Complete the "structseq" and "named tuple" cleanup (GH-16010) 
(GH-16063)
https://github.com/python/cpython/commit/e3c25fc902eedcd5c593fac58f35645961f55bf4


--

___
Python tracker 

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



[issue17013] Allow waiting on a mock

2019-09-12 Thread Lisa Roach


Change by Lisa Roach :


--
nosy: +lisroach

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Paul, no worries.  Welcome to the team.

--

___
Python tracker 

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



[issue38121] Synchronize importlib.metadata with importlib_metadata 0.22

2019-09-12 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
pull_requests: +15687
pull_request: https://github.com/python/cpython/pull/16064

___
Python tracker 

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



[issue38141] Use fewer statics in Argument Clinic.

2019-09-12 Thread Larry Hastings


Change by Larry Hastings :


--
title: Use less statics in Argument Clinic. -> Use fewer statics in Argument 
Clinic.

___
Python tracker 

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



[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-12 Thread Jonathan Gossage


Jonathan Gossage  added the comment:

I now do not think that it is a Python problem. It only appears when Ubuntu
18.04 is upgraded to 19.04 by the upgrade process. The problem does not
show up on a fresh install of Ubuntu 19.04 followed by a source install of
Python 3.8.0b4 only if the install is preceded by a software upgrade of
Ubuntu.

On Thu, Sep 12, 2019 at 5:12 AM Zachary Ware  wrote:

>
> Zachary Ware  added the comment:
>
> If calling /usr/local/bin/python3.8 directly works as expected, there's
> nothing for us to do here so I'm going to go ahead and close the issue.
> Please reopen if you can demonstrate a real bug in the installation code,
> though!
>
> --
> nosy: +zach.ware
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue37935] Improve performance of pathlib.scandir()

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 98a4a713d001cf2dfb04a9e318e4aea899bc8fbd by Gregory P. Smith 
(Miss Islington (bot)) in branch '3.8':
bpo-37935: Added tests for os.walk(), glob.iglob() and Path.glob() (GH-15956) 
(GH-16043)
https://github.com/python/cpython/commit/98a4a713d001cf2dfb04a9e318e4aea899bc8fbd


--

___
Python tracker 

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



[issue38141] Use less statics in Argument Clinic.

2019-09-12 Thread Eric Snow


New submission from Eric Snow :

(This is a sub-task of bpo-36876, "Global C variables are a problem.".)

Currently Argument Clinic generates "_PyArg_Parser _parser" as a static 
variable.  Dropping "static" solves the problem of thread safety (e.g. for 
subinterpreters not sharing the GIL).

--
assignee: eric.snow
components: Argument Clinic
messages: 352193
nosy: eric.snow, larry
priority: normal
severity: normal
stage: needs patch
status: open
title: Use less statics in Argument Clinic.
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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15686
pull_request: https://github.com/python/cpython/pull/16063

___
Python tracker 

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



[issue37488] Document the "gotcha" behaviors in utcnow() and utcfromtimestamp()

2019-09-12 Thread Paul Ganssle


Paul Ganssle  added the comment:

Thanks Joannah!

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15685
pull_request: https://github.com/python/cpython/pull/16062

___
Python tracker 

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



[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 4210ad5ebd5769f585035e022876e161cd0e9a3e by Raymond Hettinger in 
branch 'master':
bpo-38096:  Complete the "structseq" and "named tuple" cleanup (GH-16010)
https://github.com/python/cpython/commit/4210ad5ebd5769f585035e022876e161cd0e9a3e


--

___
Python tracker 

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



[issue38137] hashopenssl fails to compile on MacOS

2019-09-12 Thread miss-islington

miss-islington  added the comment:


New changeset 36c29e444d6bc0e31b46509610d3fb7cff74f2c2 by Miss Islington (bot) 
(Stéphane Wirtel) in branch '3.8':
[3.8] bpo-38137: Re-add OpenSSL 1.0.2 compat (GH-16051) (GH-16057)
https://github.com/python/cpython/commit/36c29e444d6bc0e31b46509610d3fb7cff74f2c2


--

___
Python tracker 

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



[issue37488] Document the "gotcha" behaviors in utcnow() and utcfromtimestamp()

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 307c5fe9428b175ff3871a1fdc19bdd7562cfee5 by Miss Islington (bot) 
in branch '3.8':
bpo-37488 : Document a warning for datetime.utcnow() and utcfromtimestamp() 
(GH-15773)
https://github.com/python/cpython/commit/307c5fe9428b175ff3871a1fdc19bdd7562cfee5


--

___
Python tracker 

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



[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2019-09-12 Thread Ned Deily


Ned Deily  added the comment:

This issue does not seem to me to be a security issue so would not meet the 
criteria for backporting to 3.6.

--

___
Python tracker 

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



[issue38013] AsyncGenerator breaks when not iterated fully with RuntimeError("can't send non-None value to a just-started coroutine")

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue38138] test_importlib is leaking references

2019-09-12 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
title: test_importleak is leaking references -> test_importlib is leaking 
references

___
Python tracker 

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



[issue38108] Everything in Mock should inherit from Base

2019-09-12 Thread Lisa Roach


Change by Lisa Roach :


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

___
Python tracker 

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



[issue37488] Document the "gotcha" behaviors in utcnow() and utcfromtimestamp()

2019-09-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15682
pull_request: https://github.com/python/cpython/pull/16059

___
Python tracker 

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



[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2019-09-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

This is fixed in Python 3.5+.

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



[issue38118] Valgrind warnings when running tokenize.py

2019-09-12 Thread Benjamin Peterson


Change by Benjamin Peterson :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> off-by-one error in PyState_AddModule

___
Python tracker 

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



[issue37802] micro-optimization of PyLong_FromSize_t()

2019-09-12 Thread Gregory P. Smith


Change by Gregory P. Smith :


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

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset a3c53a1b45b05bcb69660eac5a271443b37ecc42 by Miss Islington (bot) 
in branch '3.7':
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)
https://github.com/python/cpython/commit/a3c53a1b45b05bcb69660eac5a271443b37ecc42


--

___
Python tracker 

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



[issue37802] micro-optimization of PyLong_FromSize_t()

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset c6734ee7c55add5fdc2c821729ed5f67e237a096 by Gregory P. Smith 
(Sergey Fedoseev) in branch 'master':
bpo-37802: Slightly improve perfomance of PyLong_FromUnsigned*() (GH-15192)
https://github.com/python/cpython/commit/c6734ee7c55add5fdc2c821729ed5f67e237a096


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue38138] test_importleak is leaking references

2019-09-12 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close the issue, I have tested with 3.8, there is no leaks with 
test_importlib, nice ;-)

Thanks Dino

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



[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +15681
pull_request: https://github.com/python/cpython/pull/16058

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 824407f76e211a2a19c94d5cb1f39fc422ab62ee by Miss Islington (bot) 
in branch '3.8':
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)
https://github.com/python/cpython/commit/824407f76e211a2a19c94d5cb1f39fc422ab62ee


--
nosy: +miss-islington

___
Python tracker 

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



[issue37012] Possible crash due to PyType_FromSpecWithBases()

2019-09-12 Thread Petr Viktorin


Change by Petr Viktorin :


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



[issue37090] test_gdb's test_pycfunction should test all calling conventions

2019-09-12 Thread Petr Viktorin


Petr Viktorin  added the comment:

Fixed here and in https://bugs.python.org/issue37499 ( 
https://github.com/python/cpython/pull/15776 )

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



[issue38137] hashopenssl fails to compile on MacOS

2019-09-12 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +15680
pull_request: https://github.com/python/cpython/pull/16057

___
Python tracker 

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



[issue38138] test_importleak is leaking references

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 8d88e8c662a80c186c7a0e67f1c1f3d4010276f8 by Miss Islington (bot) 
(Dino Viehland) in branch 'master':
bpo-38138: Fix memory leak introduced by interned strings (GH-16053)
https://github.com/python/cpython/commit/8d88e8c662a80c186c7a0e67f1c1f3d4010276f8


--
nosy: +miss-islington

___
Python tracker 

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



[issue36960] Make datetime docs more user-friendly

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 8976359c598f56825648f4e5397b78c5d14ea13c by Miss Islington (bot) 
in branch '3.8':
Overhaul datetime documentation (GH-13410)
https://github.com/python/cpython/commit/8976359c598f56825648f4e5397b78c5d14ea13c


--
nosy: +miss-islington

___
Python tracker 

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



[issue36991] zipfile: AttributeError on extract

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 717cc61ed103684b8c73e0e8af10ace345f39f16 by Miss Islington (bot) 
in branch '3.8':
bpo-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632)
https://github.com/python/cpython/commit/717cc61ed103684b8c73e0e8af10ace345f39f16


--
nosy: +miss-islington

___
Python tracker 

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



[issue37141] Allow multiple separators in Stream.readuntil

2019-09-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

please do

--

___
Python tracker 

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



[issue38137] hashopenssl fails to compile on MacOS

2019-09-12 Thread miss-islington


miss-islington  added the comment:


New changeset 9a4963b932a087b78596cca0b8394ac898faa490 by Miss Islington (bot) 
(Christian Heimes) in branch 'master':
bpo-38137: Re-add OpenSSL 1.0.2 compat (GH-16051)
https://github.com/python/cpython/commit/9a4963b932a087b78596cca0b8394ac898faa490


--
nosy: +miss-islington

___
Python tracker 

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



[issue21872] LZMA library sometimes fails to decompress a file

2019-09-12 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 4ffd05d7ec47cfd0d7fc95dce851633be9663255 by Gregory P. Smith 
(animalize) in branch 'master':
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)
https://github.com/python/cpython/commit/4ffd05d7ec47cfd0d7fc95dce851633be9663255


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-09-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



  1   2   3   >