[issue22239] asyncio: nested event loop

2021-12-10 Thread Kumar Aditya


Change by Kumar Aditya :


--
nosy: +kumaraditya303

___
Python tracker 

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



[issue44946] Integer operations are inefficient for "medium" integers.

2021-12-10 Thread Xinhang Xu


Change by Xinhang Xu :


--
nosy: +xuxinhang
nosy_count: 3.0 -> 4.0
pull_requests: +28270
pull_request: https://github.com/python/cpython/pull/30044

___
Python tracker 

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



[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The OP self-closed the PR.

--
nosy: +rhettinger
resolution:  -> rejected
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



[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-10 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
nosy: +lars.gustaebel

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun


Eryk Sun  added the comment:

The code to copy a file could be rewritten to use a regex match. For example:

# Copy src to dst. If src is a base executable, copy a launcher.
dirname, filename = os.path.split(src)
m = re.match(r'(pythonw?)[0-9._]*((?:_d)?(?:\.exe|\.pdb))$',
filename.lower())
if m is not None:
src = os.path.join(os.path.dirname(__file__),
'scripts', 'nt', m.group(1) + m.group(2))
# If the base environment is a Python source build, use
# the launcher in the build directory instead of
# "Lib/venv/scripts/nt".
if sysconfig.is_python_build(True) or not os.path.isfile(src):
basename = ('venvlauncher' if m.group(1) == 'python' else
'venvwlauncher')
src = os.path.join(dirname, basename + m.group(2))

--

___
Python tracker 

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



Sad news: Fredrik Lundh ("Effbot") has passed away

2021-12-10 Thread Roel Schroeven
Message from Guido van Rossum 
(https://mail.python.org/archives/list/python-...@python.org/thread/36Q5QBILL3QIFIA3KHNGFBNJQKXKN7SD/):


A former core dev who works at Google just passed the news that 
Fredrik Lundh (also known as Effbot) has died.


Fredrik was an early Python contributor (e.g. Elementtree and the 're' 
module) and his enthusiasm for the language and community were 
inspiring for all who encountered him or his work. He spent countless 
hours on comp.lang.python answering questions from newbies and 
advanced users alike.


He also co-founded an early Python startup, Secret Labs AB, which 
among other software released an IDE named PythonWorks. Fredrik also 
created the Python Imaging Library (PIL) which is still THE way to 
interact with images in Python, now most often through its Pillow 
fork. His effbot.org site was a valuable resource for generations of 
Python users, especially its Tkinter documentation.


Fredrik's private Facebook page contains the following message from 
November 25 by Ylva Larensson (translated from Swedish):


"""

It is with such sorrow and pain that I write this. Fredrik has left us 
suddenly.


"""

A core dev wrote: "I felt privileged to be able to study Fredrik's 
code and to read his writing. He was a huge asset to our community in 
the early days. I enjoyed his sense of humor as well. I'm sad that he 
passed away."


We will miss him.



--
"Your scientists were so preoccupied with whether they could, they didn't
stop to think if they should"
-- Dr. Ian Malcolm

--
https://mail.python.org/mailman/listinfo/python-list


[issue46013] Confusing period in object.__hash__ doc

2021-12-10 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +AlexWaygood

___
Python tracker 

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



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


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

___
Python tracker 

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



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-10 Thread Matthias Bussonnier


New submission from Matthias Bussonnier :

This page: https://docs.python.org/3/distutils/sourcedist.html

Is the first result on google for "python sdist", but does not mention that all 
but tar.gz and zip are supported by PyPI.

--
assignee: docs@python
components: Documentation
messages: 408288
nosy: docs@python, mbussonn
priority: normal
severity: normal
status: open
title: Update distutils documentation to  say PyPI only accepts tar.gz and zip.

___
Python tracker 

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



[issue23469] Delete Misc/*.wpr files

2021-12-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

url: https://github.com/python/cpython/blob/main/Misc/python-wing5.wpr

--

___
Python tracker 

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



[issue23469] Delete Misc/*.wpr files

2021-12-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Since the files have effectively been abandoned, I think removing them should 
be considered now.  The three files in /Misc, for wing-3, 4, and 5, are
python-wing3.wpr
python-wing4.wpr
python-wing5.wpr

The current version of Wing is 8.1.1.  The files were last edited in March 
2011, a decade ago, by M. Foord.  The last contains

#!wing
#!version=5.0
##
# Wing IDE project file  #
##
[project attributes]
proj.directory-list = [{'dirloc': loc('..'),
'excludes': [u'.hg',
 u'Lib/unittest/__pycache__',
 u'Lib/unittest/test/__pycache__',
 u'Lib/__pycache__',
 u'build',
 u'Doc/build'],
'filter': '*',
'include_hidden': False,
'recursive': True,
'watch_for_changes': True}]
proj.file-type = 'shared'

*4.* is the same except for the version comment.  Both are specialized for 
working with Lib/unittest, failing to exclude most of the other __pycache__ 
directories.  I wonder whether current Wing now knows that it should ignore 
__cache__ directories.  (I considered emailing supp...@wingware.com, but 
decided to wait.)  In the absence of more comments, we could inquire on 
python-dev.

In 2019, these .ini-format configuration data files were marked as executable 
scripts.  I believe that this was a mistake.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Serhiy! ✨  ✨

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



[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d55a03e02e69fb7f639998de71ed3f44c2f4f999 by Miss Islington (bot) 
in branch '3.9':
[3.10] bpo-13236: Flush the output stream more often in unittest (GH-29929) 
(GH-30039)
https://github.com/python/cpython/commit/d55a03e02e69fb7f639998de71ed3f44c2f4f999


--

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks! ✨  ✨

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

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 9299e3a39c3b1dd7d5db0d88080249c2dab3070f by Miss Islington (bot) 
in branch '3.9':
bpo-19737: Improved the documentation for globals (GH-29823) (GH-30042)
https://github.com/python/cpython/commit/9299e3a39c3b1dd7d5db0d88080249c2dab3070f


--

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1f7000808e8385e2a29ffd0ef6aac9a6139d3d92 by Miss Islington (bot) 
in branch '3.10':
bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)
https://github.com/python/cpython/commit/1f7000808e8385e2a29ffd0ef6aac9a6139d3d92


--

___
Python tracker 

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



[issue20559] urllib/http fail to sanitize a non-ascii url

2021-12-10 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



[issue9504] signal.signal/signal.alarm not working as expected

2021-12-10 Thread STINNER Victor


STINNER Victor  added the comment:

https://www.python.org/dev/peps/pep-0475/ changed deeply how Python handles 
signals. Python now tries to restart syscalls interrupted by signals (EINTR). A 
Python function only raises an exception if the Python signal handler raises an 
exception.

--
status: pending -> open

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Steve Dower


Steve Dower  added the comment:

We'd also need to update the launcher to launch the executable with its name, 
which it currently doesn't do. I was looking at this recently for some other 
reason.

--

___
Python tracker 

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



[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-10 Thread Steve Dower


Steve Dower  added the comment:

I'm going to need a decent amount of time to learn all of these components, 
because I never use this OS, Tox, nor virtualenv :) I'll try and get to it, but 
don't hold your breath. Luckily, Modules/getpath.py is much easier to follow 
and modify than the old systems.

If there's a pyvenv.cfg involved, base_executable should be calculated based on 
the "home" key in it. Previously, I don't think we calculated it at all on 
Linux - it was just sys.executable before site.py changes anything.

On Windows, it was always intended to be "the executable that new venvs should 
be created with" so that venvs created from venvs would be based off the same 
install, rather than trying to chain. I have no idea what the correct path for 
that is in this context, so could do with some help.

--

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28268
pull_request: https://github.com/python/cpython/pull/30042

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue19737] Documentation of globals() and locals() should be improved

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4fe5585240f64c3d14eb635ff82b163f92074b3a by 180909 in branch 
'main':
bpo-19737: Improved the documentation for globals (GH-29823)
https://github.com/python/cpython/commit/4fe5585240f64c3d14eb635ff82b163f92074b3a


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 5f622f1d5c5425ed1e992da6611edfb486a9bf7c by Miss Islington (bot) 
in branch '3.9':
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) 
(GH-29759)
https://github.com/python/cpython/commit/5f622f1d5c5425ed1e992da6611edfb486a9bf7c


--

___
Python tracker 

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



[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset e1e3f648ad6ab467356d2d14e1d208583c1a76c6 by Miss Islington (bot) 
in branch '3.10':
bpo-45822: Minor cleanups to the test_Py_CompileString test (GH-29750) 
(GH-29758)
https://github.com/python/cpython/commit/e1e3f648ad6ab467356d2d14e1d208583c1a76c6


--

___
Python tracker 

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



[issue45859] test_collections has a wrong test in case _itemgetter is not available

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7c5b01b5101923fc38274c491bd55239ee9f0416 by Miss Islington (bot) 
in branch '3.8':
bpo-45859: Mark test_field_descriptor in test_collections as CPython-only 
(GH-29691) (GH-29710)
https://github.com/python/cpython/commit/7c5b01b5101923fc38274c491bd55239ee9f0416


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

I agree with Serhiy that in general the fact that json.tool crashes here is 
useful: similarly to an exception in Python code, it can inform the user that 
some data they feed to json.tool is invalid.

At the same time, I find it a bit obnoxious that the current implementation 
doesn't allow for the *final character* of the input to be a newline (or 
"characters" in case of \r\n... but it should still only ignore *a single 
effective newline*).

I mean, if the user starts spewing newlines in the middle of the file... that 
might easily be an error. If the file ends with 5 empty lines, that might 
easily be an error. But, if the file really is:

{'line': 1, 'data': ...}\n
{'line': 2, 'data': ...}\n
{'line': 3, 'data': ...}\n

I think that should be pragmatically accepted by json.tool, especially since 
many text editors now add newline characters at file ends.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Alex Waygood

Alex Waygood  added the comment:

This is awesome! Should a note be added to the functools documentation 
mentioning the new feature? (Genuine question — I'm not sure whether it's 
necessary myself.)

--

___
Python tracker 

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



[Python-announce] NumPy 1.22. 0rc2 Release

2021-12-10 Thread Charles R Harris
Hi All,

On behalf of the NumPy team, I'm pleased to announce the release of NumPy
1.22.0rc1. NumPy 1.22.0rc1 is a big release featuring the work of 151
contributers spread over 589 pull requests. There have been many
improvements,
highlights are:

   - Annotations of the main namespace are essentially complete. Upstream
   is a moving target, so there will likely be further improvements, but the
   major work is done. This is probably the most user visible enhancement in
   this release.
   - A preliminary version of the proposed Array-API is provided. This is a
   step in creating a standard collection of functions that can be used across
   applications such as CuPy and JAX.
   - NumPy now has a DLPack backend. DLPack provides a common interchange
   format for array (tensor) data.
   - New methods for `quantile`, `percentile`, and related functions.
   Thenew methods provide a complete set of the methods commonly found in the
   literature.
   - A new configurable allocator for use by downstream projects.

These are in addition to the ongoing work to provide SIMD support for
commonly used functions, improvements to F2PY, and better documentation.

The Python versions supported in this release are 3.8-3.10, Python 3.7 has
been dropped. Note that 32 bit wheels are only provided for Python 3.8 and
3.9 on Windows, all other wheels are 64 bits on account of Ubuntu, Fedora,
and other Linux distributions dropping 32 bit support. All 64 bit wheels
are also linked with 64 bit integer OpenBLAS, which should fix the
occasional problems encountered by folks using truly huge arrays. Wheels
can be downloaded from PyPI ; source
archives, release notes, and wheel hashes are available on Github
. Linux users will
need pip >= 0.19.3 in order to install the manylinux2014 wheels. A recent
version of pip is needed to install the universal2 macos wheels.

*Contributors*

A total of 151 people contributed to this release.  People with a "+" by
their
names contributed a patch for the first time.

   - @DWesl
   - @Illviljan
   - @h-vetinari
   - @yan-wyb +
   - Aaron Meurer
   - Abel Aoun +
   - Adrian Gao +
   - Ahmet Can Solak +
   - Ajay DS +
   - Alban Colley +
   - Alberto Rubiales +
   - Alessia Marcolini +
   - Amit Kumar +
   - Andrei Batomunkuev +
   - Andrew Watson +
   - Anirudh Dagar +
   - Ankit Dwivedi +
   - Antony Lee
   - Arfy Slowy +
   - Arryan Singh +
   - Arun Palaniappen +
   - Arushi Sharma +
   - Bas van Beek
   - Brent Brewington +
   - Carl Johnsen +
   - Carl Michal +
   - Charles Harris
   - Chiara Marmo
   - Chris Fu (傅立业) +
   - Christoph Buchner +
   - Christoph Reiter +
   - Chunlin Fang
   - Clément Robert +
   - Constanza Fierro
   - Damien Caliste
   - Daniel Ching
   - David Badnar +
   - David Cortes +
   - David Okpare +
   - Derek Huang +
   - Developer-Ecosystem-Engineering +
   - Dima Pasechnik
   - Dimitri Papadopoulos +
   - Dmitriy Fishman +
   - Eero Vaher +
   - Elias Koromilas +
   - Eliaz Bobadilla +
   - Elisha Hollander +
   - Eric Wieser
   - Eskild Eriksen +
   - Evan Miller +
   - Fayas Noushad +
   - Gagandeep Singh +
   - Ganesh Kathiresan
   - Ghiles Meddour +
   - Greg Lucas
   - Gregory R. Lee
   - Guo Shuai +
   - Gwyn Ciesla +
   - Hameer Abbasi
   - Hector Martin +
   - Henry Schreiner +
   - Himanshu +
   - Hood Chatham +
   - Hugo Defois +
   - Hugo van Kemenade
   - I-Shen Leong +
   - Imen Rajhi +
   - Irina Maria Mocan +
   - Irit Katriel +
   - Isuru Fernando
   - Jakob Jakobson
   - Jerry Morrison +
   - Jessi J Zhao +
   - Joe Marshall +
   - Johan von Forstner +
   - Jonas I. Liechti +
   - Jonathan Reichelt Gjertsen +
   - Joshua Himmens +
   - Jérome Eertmans
   - Jérôme Kieffer +
   - KIU Shueng Chuan +
   - Kenichi Maehashi
   - Kenny Huynh +
   - Kent R. Spillner +
   - Kevin Granados +
   - Kevin Modzelewski +
   - Kevin Sheppard
   - Lalit Musmade +
   - Malik Idrees Hasan Khan +
   - Marco Aurelio da Costa +
   - Margret Pax +
   - Mars Lee +
   - Marten van Kerkwijk
   - Matthew Barber +
   - Matthew Brett
   - Matthias Bussonnier
   - Matthieu Dartiailh
   - Matti Picus
   - Melissa Weber Mendonça
   - Michael McCann +
   - Mike Jarvis +
   - Mike McCann +
   - Mike Toews
   - Mukulika Pahari
   - Nick Pope +
   - Nick Wogan +
   - Niels Dunnewind +
   - Niko Savola +
   - Nikola Forró
   - Niyas Sait +
   - Pamphile ROY
   - Paul Ganssle +
   - Pauli Virtanen
   - Pearu Peterson
   - Peter Hawkins +
   - Peter Tillema +
   - Prathmesh Shirsat +
   - Raghuveer Devulapalli
   - Ralf Gommers
   - Robert Kern
   - Rohit Goswami +
   - Ronan Lamy
   - Ross Barnowski
   - Roy Jacobson +
   - Samyak S Sarnayak +
   - Sayantika Banik +
   - Sayed Adel
   - Sebastian Berg
   - Sebastian Schleehauf +
   - Serge Guelton
   - Shriraj Hegde +
   - Shubham Gupta +
   - Sista Seetaram +
   - Stefan van der Walt
   - Stephannie Jimenez Gacha +
   - Tania Allard
   

[issue37971] Wrong trace with multiple decorators (linenumber wrong in frame)

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b593bdc7803cc75461f6fad03cb7d8dfc416 by Carl Friedrich 
Bolz-Tereick in branch 'main':
bpo-37971: fix the position of decorator application (GH-30027)
https://github.com/python/cpython/commit/b593bdc7803cc75461f6fad03cb7d8dfc416


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue20559] urllib/http fail to sanitize a non-ascii url

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3

___
Python tracker 

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



[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-12-10 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 28179aac796ed1debdce336c4b8ca18e8475d40d by Weipeng Hong in 
branch 'main':
bpo-42918: Improve build-in function compile() in mode 'single' (GH-29934)
https://github.com/python/cpython/commit/28179aac796ed1debdce336c4b8ca18e8475d40d


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue13236] unittest needs more flush calls

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 83fa1291fd0a25216a4a9e990f423682fda67cbe by Serhiy Storchaka in 
branch '3.10':
[3.10] bpo-13236: Flush the output stream more often in unittest (GH-29864) 
(GH-29929)
https://github.com/python/cpython/commit/83fa1291fd0a25216a4a9e990f423682fda67cbe


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue13236] unittest needs more flush calls

2021-12-10 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 9.0 -> 10.0
pull_requests: +28265
pull_request: https://github.com/python/cpython/pull/30039

___
Python tracker 

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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 98e506ae8a7997658a08fbf77ac016d200588cb3 by Petr Viktorin in 
branch 'main':
bpo-43795: Document stable_abi.txt format and contents (GH-29956)
https://github.com/python/cpython/commit/98e506ae8a7997658a08fbf77ac016d200588cb3


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue25834] getpass falls back when sys.stdin is changed

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

Adam, do you have a suggestion what the check should be?

--
nosy: +iritkatriel
versions: +Python 3.11 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks! ✨  ✨

--
assignee:  -> docs@python
components: +Documentation -ctypes
nosy: +docs@python
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8f3728edcbc205913772f8dc04cccd8bdc476ff4 by Miss Islington (bot) 
in branch '3.10':
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) 
(GH-30037)
https://github.com/python/cpython/commit/8f3728edcbc205913772f8dc04cccd8bdc476ff4


--

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f8eebb0db720cd81fb736d9cbfd16faf2ec68b53 by Miss Islington (bot) 
in branch '3.9':
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) 
(GH-30038)
https://github.com/python/cpython/commit/f8eebb0db720cd81fb736d9cbfd16faf2ec68b53


--

___
Python tracker 

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



[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Support added as an enhancement in Python 3.11. Thanks, Yurii! ✨  ✨

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



[issue46014] functools.singledispatch does not support Union types

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 3cb357a2e6ac18ee98db5d450414e773744e3c76 by Yurii Karabas in 
branch 'main':
bpo-46014: Add ability to use typing.Union with singledispatch (GH-30017)
https://github.com/python/cpython/commit/3cb357a2e6ac18ee98db5d450414e773744e3c76


--

___
Python tracker 

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



[issue46043] Python Launcher Not Opening Files.

2021-12-10 Thread Nicholas Bond


New submission from Nicholas Bond :

Python launcher opens its preferences and no terminal or Tkinter application 
opens. It appears as something was launched because for a fraction of a second, 
I see a window and then the icon glides back to its position on the desktop.

However, python files and Tkinter GUIs work when run through the IDLE and 
through other text editors, e.g. when I build the program in sublime text, the 
python launcher application opens and launches the Tkinter window.

Even the simplest of programs don't work. I tried opening this:
number = input("Type in a number:")

I ran this outside of the text editor(dragging the .py file onto the python 
launcher) and it still did not work.

--
components: macOS
messages: 408260
nosy: ned.deily, nicholasjbond2020, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python Launcher Not Opening Files.
type: crash
versions: Python 3.10

___
Python tracker 

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



[issue9504] signal.signal/signal.alarm not working as expected

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

I'm unable to reproduce this on 3.11 on a Mac. Has it been fixed?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue21459] DragonFlyBSD support

2021-12-10 Thread Thomas Klausner


Thomas Klausner  added the comment:

Not interested in this any longer, and Dragonfly's Dports doesn't carry this 
patch, so it's probably not needed any longer.

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



[issue31370] Remove support for threads-less builds

2021-12-10 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

https://web.dev/webassembly-threads/ suggests otherwise.

--

___
Python tracker 

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



[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner


Thomas Klausner  added the comment:

I must confess, I don't know.
This patch has been in pkgsrc since at least the import of the first python 2.7 
package in 2011, and I haven't dug deeper.

If you think it is unnecessary, I'll trust you. I've just removed it from the 
python 3.10 package in pkgsrc.

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



[issue27062] `inspect` doesn't have `__all__`

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks! ✨  ✨

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

___
Python tracker 

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



[issue27062] `inspect` doesn't have `__all__`

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 810c1769f1c24ed907bdf3cc1086db4e602a28ae by Kumar Aditya in 
branch 'main':
bpo-27062: add `__all__` to inspect module (GH-30003)
https://github.com/python/cpython/commit/810c1769f1c24ed907bdf3cc1086db4e602a28ae


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 0fe104fce7da709edddb701baa2249e3275db1fd by Irit Katriel in 
branch 'main':
bpo-45635: refactor print_exception_recursive into smaller functions to 
standardize error handling (GH-30015)
https://github.com/python/cpython/commit/0fe104fce7da709edddb701baa2249e3275db1fd


--

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28264
pull_request: https://github.com/python/cpython/pull/30038

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42114] Documentation of ctypes.CDLL does not correspond to code

2021-12-10 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset c1051e08b3c6d9045322763876a4b0aea98d79f9 by Louis Sautier in 
branch 'main':
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
https://github.com/python/cpython/commit/c1051e08b3c6d9045322763876a4b0aea98d79f9


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue21964] inconsistency in list-generator comprehension with yield(-from)

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

I think this issue was resolved by now. This is what happens on 3.11:

>>> l = ["abc", range(3)]
>>> g = [(yield from i) for i in l]
  File "", line 1
SyntaxError: 'yield' inside list comprehension

>>> g2 = ((yield from i) for i in l)
  File "", line 1
SyntaxError: 'yield' inside generator expression

--
nosy: +iritkatriel
resolution:  -> out of date
status: open -> pending

___
Python tracker 

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



[Python-announce] Announcing NumExpr 2.8.1

2021-12-10 Thread Robert McLeod
Hi everyone,

This is another maintenance release to further modernize our install script
for
distributions that do not include `setuptools` by default. Thanks to
Antonio
Valentino for the changes.

Project documentation is available at:

http://numexpr.readthedocs.io/


Changes from 2.8.0 to 2.8.1
---

* Fixed dependency list.
* Added ``pyproject.toml`` and modernize the ``setup.py`` script. Thanks to
Antonio Valentino for the PR.

What's Numexpr?
---

Numexpr is a fast numerical expression evaluator for NumPy.  With it,
expressions that operate on arrays (like "3*a+4*b") are accelerated
and use less memory than doing the same calculation in Python.

It has multi-threaded capabilities, as well as support for Intel's
MKL (Math Kernel Library), which allows an extremely fast evaluation
of transcendental functions (sin, cos, tan, exp, log...) while
squeezing the last drop of performance out of your multi-core
processors.  Look here for a some benchmarks of numexpr using MKL:

https://github.com/pydata/numexpr/wiki/NumexprMKL

Its only dependency is NumPy (MKL is optional), so it works well as an
easy-to-deploy, easy-to-use, computational engine for projects that
don't want to adopt other solutions requiring more heavy dependencies.

Where I can find Numexpr?
-

The project is hosted at GitHub in:

https://github.com/pydata/numexpr

You can get the packages from PyPI as well (but not for RC releases):

http://pypi.python.org/pypi/numexpr

Documentation is hosted at:

http://numexpr.readthedocs.io/en/latest/

Share your experience
-

Let us know of any bugs, suggestions, gripes, kudos, etc. you may
have.

Enjoy data!


-- 
Robert McLeod
robbmcl...@gmail.com
robert.mcl...@hitachi-hightech.com
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thanks for the catch Carl!

> I can try to fix this.

Awesome, I will wait for the PR!

--

___
Python tracker 

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



[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Andre Roberge


Change by Andre Roberge :


--
nosy: +aroberge

___
Python tracker 

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



[issue40358] pathlib's relative_to should behave like os.path.relpath

2021-12-10 Thread C.A.M. Gerlach


C.A.M. Gerlach  added the comment:

For the record, requested [on 
Discourse](https://discuss.python.org/t/how-to-go-on-with-a-tiny-improvement-idea-for-pathlib/12472)
 as well, with a fairly similar proposal.

--
nosy: +CAM-Gerlach

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun


Change by Eryk Sun :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
versions: +Python 3.11 -Python 3.8

___
Python tracker 

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



[issue46042] Error range of "duplicate argument" SyntaxErrors is too big

2021-12-10 Thread Carl Friedrich Bolz-Tereick


New submission from Carl Friedrich Bolz-Tereick :

The error range for the "duplicate argument in function definition" SyntaxError 
is too large:

$ cat x.py 
def f(a, b, c, d, e, f, g, a): pass
$ python x.py
  File "/home/cfbolz/projects/cpython/x.py", line 1
def f(a, b, c, d, e, f, g, a): pass
^^^
SyntaxError: duplicate argument 'a' in function definition

I would expect only the second 'a' to be underlined.

I can try to fix this.

--
messages: 408248
nosy: Carl.Friedrich.Bolz, pablogsal
priority: normal
severity: normal
status: open
title: Error range of "duplicate argument" SyntaxErrors is too big

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Eryk Sun


Eryk Sun  added the comment:

The Windows implementation of symlink_or_copy() actually copies "python.exe" 
and "pythonw.exe" launchers from "Lib/venv/scripts/nt". One cannot simply copy 
the "python3.exe" executable because the required DLLs aren't copied. If this 
seemed to work when testing, it was only because the installation directory was 
in PATH. The solution that actually works is to copy the launcher as 
"python3.exe".

--
nosy: +eryksun
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue766910] fix one or two bugs in trace.py

2021-12-10 Thread Daniel Diniz


Change by Daniel Diniz :


--
nosy: +ajaksu2
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.7

___
Python tracker 

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



[issue1182143] making builtin exceptions more informative

2021-12-10 Thread Daniel Diniz


Change by Daniel Diniz :


--
nosy: +iritkatriel

___
Python tracker 

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



[issue4733] Add a "decode to declared encoding" version of urlopen to urllib

2021-12-10 Thread Daniel Diniz


Daniel Diniz  added the comment:

As Victor notes, this is a controversial issue. And I'll add that the need for 
this feature seems not to have been brought up up in over a decade. So I'm 
closing this.

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



[issue18636] mingw: setup _ssl module

2021-12-10 Thread Irit Katriel


Change by Irit Katriel :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue22714] target of 'import statement' entry in general index for 'i' is wrong

2021-12-10 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> wont fix
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-12-10 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

related: https://www.python.org/dev/peps/pep-0490/ (rejected pep to auto-chain 
from C API calls)

I don't come across it often, but I did just review some code at work today 
where the chain might have been nice (though not a big deal).

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



[issue41248] Python manual forced in maximized window

2021-12-10 Thread Mischiew Rithe


Mischiew Rithe  added the comment:

The problem still exists in version 3.10.1, in Windows.

When the user wants to get the documentation, the whole screen is hidden by it, 
which is very inconvenient.

If the user does not want this behaviour, they have to change the shortcut, for 
instance in:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.10

This is not possible if the user doesn't have the admin rights.

There is no reason to force a maximized window for the documentation, but there 
are reasons not to: it's invasive, now monitors are often too large to make it 
a comfortable reading format for a single window, the OS is multi-tasking and 
the user will most likely read the documentation while editing code on an IDE 
and needs to see both.

--
versions: +Python 3.10 -Python 3.8

___
Python tracker 

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



[issue31370] Remove support for threads-less builds

2021-12-10 Thread Brett Cannon


Brett Cannon  added the comment:

This has unfortunately turned out to be a blocker on getting WASI support as 
there's not direct threading support in WebAssembly.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue39425] list.count performance regression

2021-12-10 Thread Maxwell Bernstein


Change by Maxwell Bernstein :


--
nosy: +tekknolagi
nosy_count: 5.0 -> 6.0
pull_requests: +28262
pull_request: https://github.com/python/cpython/pull/30036

___
Python tracker 

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



[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein


Change by Maxwell Bernstein :


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

___
Python tracker 

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



[issue46041] Add reference counting micro-optimizations to listobject.c

2021-12-10 Thread Maxwell Bernstein


New submission from Maxwell Bernstein :

Avoid reference counting in the fast path of list.contains and list.index

--
messages: 408242
nosy: tekknolagi
priority: normal
severity: normal
status: open
title: Add reference counting micro-optimizations to listobject.c

___
Python tracker 

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



[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes


Christian Heimes  added the comment:

Python's configure script should detect when a platform needs -pthread and 
automatically include the flags for linking and compiling of all files. Under 
which circumstances do you need -pthread in a Setup file?

--

___
Python tracker 

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



[issue46040] asyncio.coroutine documented as removed in 3.10

2021-12-10 Thread Stanislav Syekirin


New submission from Stanislav Syekirin :

https://docs.python.org/3.10/library/asyncio-task.html#generator-based-coroutines

This page says about asyncio.coroutine:

Deprecated since version 3.8, removed in version 3.10

However, asyncio.coroutine is still working in 3.10 and has been removed, as 
far as I can see, here: https://bugs.python.org/issue43216.

--
assignee: docs@python
components: Documentation
messages: 408240
nosy: Zabolekar, docs@python
priority: normal
severity: normal
status: open
title: asyncio.coroutine documented as removed in 3.10
versions: Python 3.10

___
Python tracker 

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



[issue21178] doctest cause warnings in tests using generators

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5

___
Python tracker 

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



Re: How to package a Python command line app?

2021-12-10 Thread Anssi Saari
Manfred Lotz  writes:

> pyinstaller worked fine taking care of message.py and typer module. But
> as said in my other reply it is glibc version dependent.

Perhaps the included freeze.py script (included in the CPython source
that is, in Tools/freeze) is worth considering as well. Although it also
seems to create a dynamic executable by default (I tried with your hello
example), it seems to me it's possible to edit the generated makefile
and replace -shared with -static in a few places. Didn't try that
though.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner


Thomas Klausner  added the comment:

gcc supports this flag. According to the man page:

This option consistently for both compilation and linking.  This option is 
supported on GNU/Linux targets, most other Unix derivatives, and also on x86 
Cygwin and MinGW targets.

On NetBSD, using -pthread is the recommended method to enable thread support.

clang on NetBSD also supports this flag. I don't have access to clang on other 
systems.

--

___
Python tracker 

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



[issue17024] cElementTree calls end() on parser taget even if start() fails

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

This test passes on 3.11 (on a Mac).

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue21461] Recognize -pthread

2021-12-10 Thread Christian Heimes


Christian Heimes  added the comment:

Which platforms or compilers use -pthread?

--
components: +Build -Extension Modules
nosy: +christian.heimes
versions: +Python 3.11 -Python 3.5

___
Python tracker 

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



[issue45654] Freeze the runpy module.

2021-12-10 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 16638a4bdb802ae52d386a39d2dbef14de3fbc92 by Christian Heimes in 
branch 'main':
bpo-45654: No need to freeze types (GH-30028)
https://github.com/python/cpython/commit/16638a4bdb802ae52d386a39d2dbef14de3fbc92


--

___
Python tracker 

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



Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 13:51:00 -0700
Mats Wichmann  wrote:

> On 12/9/21 11:35, Manfred Lotz wrote:
> 
> > I played with pyinstaller which worked fine. However, it builds a
> > dynamic executable and thus it is glibc version dependent. Means, I
> > have to build different executables for differen glibc versions.
> > 
> > So, it seems I will have to check how executable zip archives are
> > supposed to work.
> >   
> 
> For me at least, I'm still not sure what you are trying to accomplish.
> 

I like to offer my command line app to some people who are not really
command line geeks. Means, I don't want to have to tell them to install
packages via pip and stuff like that. Simply take a file, make it
executable and run it.


-- 
Manfred





-- 
https://mail.python.org/mailman/listinfo/python-list


[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset bad16f0cf71a6b11ef62f86be6b3d3567cd70a16 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-43749: Ensure current exe is copied when using venv on windows 
(GH-25216) (GH-30033)
https://github.com/python/cpython/commit/bad16f0cf71a6b11ef62f86be6b3d3567cd70a16


--

___
Python tracker 

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



Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 21:23:58 +0100
"Peter J. Holzer"  wrote:

> On 2021-12-09 19:35:37 +0100, Manfred Lotz wrote:
> > I played with pyinstaller which worked fine. However, it builds a
> > dynamic executable and thus it is glibc version dependent. Means, I
> > have to build different executables for differen glibc versions.  
> 
> Just build it for the oldest version.

Wasn't aware of that.

>  Even if you don't, it may not
> matter. I just compiled a hello world program on Ubuntu 20 and ran it
> on Debian 6 (which is 10 years old). Obviusly a real program has more
> opportunities to run into compatibility problems, but glibc doesn't
> change all that much.
> 
> hp
> 

I have build an executable with pyinstaller on Ubuntu 20.04 and it
didn't run on Redhat 8.4.

Doing it the other way round helps indeed, i.e. building on Redhat 8.4
and then it runs on Ubuntu 20.04. 

Thank you.


-- 
Manfred

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Irit Katriel


Change by Irit Katriel :


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



[issue46039] Break up the YIELD_FROM instruction.

2021-12-10 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset bb8d645f3a09645686cf8f66bd46dcfa4efac713 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-43749: Ensure current exe is copied when using venv on windows 
(GH-25216) (GH-30034)
https://github.com/python/cpython/commit/bb8d645f3a09645686cf8f66bd46dcfa4efac713


--

___
Python tracker 

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



[issue46039] Break up the YIELD_FROM instruction.

2021-12-10 Thread Mark Shannon


New submission from Mark Shannon :

The YIELD_FROM instruction does three things:

* It sends a value to the sub-iterator
* It yields the value from the sub-iterator back up to its caller
* Loops back on itself

So we should implement this as:

SEND<--+
YIELD_VALUE|
JUMP_ABSOLUTE -+

Doing so would allow us to simplify gen.send and gen.throw as they wouldn't 
need all the special cases for 'yield from'.

Zero cost exception handling allows us to handle throw in the bytecode with no 
runtime overhead:

while True:
SEND -> exit
try:
YIELD_VALUE
except BaseException as ex:
sub_iterator.throw(ex)
exit:

--
assignee: Mark.Shannon
components: Interpreter Core
messages: 408232
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: Break up the YIELD_FROM instruction.
versions: Python 3.11

___
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

2021-12-10 Thread Mark Shannon


Change by Mark Shannon :


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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Mitchell Hentges


Mitchell Hentges  added the comment:

That's great, thanks!

--

___
Python tracker 

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



[issue17113] argparse.RawDescriptionHelpFormatter should not delete blank lines

2021-12-10 Thread Roy Smith


Roy Smith  added the comment:

It's nice to see this is still being worked on after all these years :-)

I'm not actually convinced the proposed fix makes sense.  It swaps out one 
incorrect behavior for a different incorrect behavior.  If it really is more 
effort than it's worth to fix this (and given msg223371, I agree it probably 
is), then at least the original behavior makes more sense, as it's got years of 
history behind it and dropping an extra blank line is less arbitrary than 
adding an extra space.  

I've long since forgotten what real-world issue led me to open this, but it 
seems like it be easier to just document that extra trailing whitespace may not 
be honored.

--
status: pending -> open

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip


Vinay Sajip  added the comment:

*3.8, I meant.

--

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread Vinay Sajip


Vinay Sajip  added the comment:

3.10 and 3.9 - OK, but 3. is security fixes only, I'm afraid.

--

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28259
pull_request: https://github.com/python/cpython/pull/30034

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-12-10 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue24338] In argparse adding wrong arguments makes malformed namespace

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

>From the discussion and "rejected" resolution it looks like the intention was 
>to close this issue. I will do that soon if nobody objects.

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue15125] argparse: positional arguments containing - in name not handled well

2021-12-10 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue45582] Rewrite getpath.c in Python

2021-12-10 Thread Steve Dower


Steve Dower  added the comment:


New changeset 3f398a77d37b5dfd51dabbc362d482a482fa885a by neonene in branch 
'main':
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
https://github.com/python/cpython/commit/3f398a77d37b5dfd51dabbc362d482a482fa885a


--

___
Python tracker 

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



[issue28609] argparse claims '*' positional argument is required in error output

2021-12-10 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

>>> parser.parse_args([])
usage: [-h] [-V] COMMAND [ARGUMENT ...]
: error: the following arguments are required: COMMAND, ARGUMENT

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

___
Python tracker 

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



[issue21461] Recognize -pthread

2021-12-10 Thread Thomas Klausner


Change by Thomas Klausner :


--
pull_requests: +28257
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30032

___
Python tracker 

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



  1   2   >