[issue496922] Integrate "What's new in Python x.y"

2022-04-10 Thread admin


Change by admin :


--
github: None -> 35828

___
Python tracker 

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



[issue47189] What's new in Python 3.11: Faster CPython

2022-04-06 Thread Ken Jin


Change by Ken Jin :


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



[issue47189] What's new in Python 3.11: Faster CPython

2022-04-06 Thread Ken Jin


New submission from Ken Jin :


New changeset 9ffe47df5468a72603f730eae48c2fd4ec615ffa by Ken Jin in branch 
'main':
bpo-47189: What's New in 3.11: Faster CPython (GH-32235)
https://github.com/python/cpython/commit/9ffe47df5468a72603f730eae48c2fd4ec615ffa


--

___
Python tracker 

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



[issue47189] What's new in Python 3.11: Faster CPython

2022-04-01 Thread Ken Jin


Change by Ken Jin :


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

___
Python tracker 

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



[issue47189] What's new in Python 3.11: Faster CPython

2022-04-01 Thread Ken Jin


Change by Ken Jin :


--
assignee: docs@python
components: Documentation
nosy: docs@python, kj
priority: normal
severity: normal
status: open
title: What's new in Python 3.11: Faster CPython
versions: Python 3.11

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2022-01-31 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.10 is released. It's too late, I close the issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2022-01-02 Thread Mariatta


Mariatta  added the comment:

Thanks Jakub for reporting the issue, and thanks Hugo for the PR.

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2022-01-02 Thread Mariatta


Mariatta  added the comment:


New changeset 7a8796dc67d691e43eed69969e7706fefe0f16e9 by Hugo van Kemenade in 
branch 'main':
bpo-45903: Fix typo in What's New: Signature.from_builtin is removed (GH-29813)
https://github.com/python/cpython/commit/7a8796dc67d691e43eed69969e7706fefe0f16e9


--
nosy: +Mariatta

___
Python tracker 

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-27 Thread Hugo van Kemenade


Hugo van Kemenade  added the comment:

Thanks Jakub! I've made https://github.com/python/cpython/pull/29813 to fix it.

--

___
Python tracker 

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-27 Thread Hugo van Kemenade


Change by Hugo van Kemenade :


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

___
Python tracker 

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Alex Waygood


Change by Alex Waygood :


--
type:  -> behavior

___
Python tracker 

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



[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Jakub Wilk

New submission from Jakub Wilk :

<https://docs.python.org/3.11/whatsnew/3.11.html#removed> says:

"Removed from the inspect module: […] the undocumented Signature.from_callable 
and Signature.from_function functions, deprecated since Python 3.5; use the 
Signature.from_callable() method instead."

But Signature.from_callable can't possibly be removed and the suggested 
replacement at the same time.

I think it should say: "… the undocumented Signature.from_builtin and …"

--
assignee: docs@python
components: Documentation
messages: 407054
nosy: docs@python, hugovk, jwilk
priority: normal
severity: normal
status: open
title: What’s New In Python 3.11: wrong reference to Signature.from_callable
versions: Python 3.11

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



[issue45267] New install Python 3.9.7 install of Sphinx Document Generator fails

2021-09-24 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
status: open -> closed

___
Python tracker 

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



[issue45267] New install Python 3.9.7 install of Sphinx Document Generator fails

2021-09-24 Thread Paul Broe


Paul Broe  added the comment:

Good Morning:

I was able to resolve the issue based on your assistance.  I created this
topic at github.com

https://github.com/sphinx-doc/sphinx/issues/9669

Someone answered it and it was simple:

Thank you so much. That was it. I thought it was looking for a package but I
completely missed the fact that the package name was package. I can't
connect to the internet from my machines. So, I have to download everything
manually from PyPI.

I added packages pyparsing and packaging ...
And

Building wheels for collected packages: sphinx
Building wheel for sphinx (setup.py) ... done
Created wheel for sphinx: filename=Sphinx-4.2.0-py3-none-any.whl
size=3061858
sha256=c5b28f87749557dc8c06b9820c748d6c5e764e32f2f25620d08b3259993ea90a
Stored in directory:
/usr/opt/oracle/.cache/pip/wheels/31/d2/bc/aa1cbddf1cd38373f4632ab20b0e3400f
037bcf271b50b2397
Successfully built sphinx
Installing collected packages: sphinx
Successfully installed sphinx-4.2.0

You can close the issue.. It was not a python bug

--
status: pending -> open

___
Python tracker 

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



[issue45267] New install Python 3.9.7 install of Sphinx Document Generator fails

2021-09-23 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The error in the attached file says that one of the dependencies could not be 
found, in particular the "packaging" library.

This doesn't look like a bug in CPython or pip, but more a general support 
question. I kindly ask you to visit one of the python forums or mail lists (for 
example https://discuss.python.org).

--
nosy: +ronaldoussoren
resolution:  -> not a bug
stage:  -> resolved
status: open -> pending
type:  -> behavior

___
Python tracker 

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



[issue45267] New install Python 3.9.7 install of Sphinx Document Generator fails

2021-09-22 Thread Paul Broe

New submission from Paul Broe :

Brand new build of Python 3.9.7 on RHEL 7.  Placed in /usr/local/python3

Created new python environment

cd /usr/opt/oracle/
 python3 -m venv py3-sphinx
source /usr/opt/oracle/py3-sphinx/bin/activate
Now verify that python is now linked to Python 3.
In this virtual environment python  python3
python -V
Python 3.9.7

I installed all the pre-requisites correctly for Sphinx 4.2.0
See the output of the command in the attached file
command:
pip install -vvv --no-index --find-link=/usr/opt/oracle/downloads/python-addons 
sphinx

--
components: Demos and Tools
files: Sphinx install output.txt
messages: 402472
nosy: pcbroe
priority: normal
severity: normal
status: open
title: New install Python 3.9.7 install of Sphinx Document Generator fails
versions: Python 3.9
Added file: https://bugs.python.org/file50295/Sphinx install output.txt

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-14 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> @pablogsal: You might want to merge this back to 3.10.0, once it's merged to 
> 3.10. I'll merge it shortly, once the tests have run.


Thanks for the ping. I have cherry-picked PR 28259 to 3.10.0

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-11 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 9.0 -> 10.0
pull_requests: +26701
pull_request: https://github.com/python/cpython/pull/28254

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Eric V. Smith  added the comment:

Changes merged to master and 3.10. Thanks, everyone!

@pablogsal: You can merge this to 3.10.0 if you see fit, but I'm going to close 
this issue.

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 8.0 -> 9.0
pull_requests: +26679
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28259

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


D.Lintin  added the comment:

1 failing checks.

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Eric V. Smith  added the comment:

@pablogsal: You might want to merge this back to 3.10.0, once it's merged to 
3.10. I'll merge it shortly, once the tests have run.

--
keywords:  -patch
nosy: +pablogsal
stage: patch review -> 

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


D.Lintin  added the comment:

Thankyou!

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks to both of you. Unfortunately, I have to pick one PR to use, and since 
dlintin had the earlier one, I'll use it.

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


D.Lintin  added the comment:

Just updated the description to attach to the issues, thanks.

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


Change by D.Lintin :


--
pull_requests: +26677
pull_request: https://github.com/python/cpython/pull/28253

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Saurabh Jaiswal


Saurabh Jaiswal  added the comment:

Fix done on the latest Branch as suggested

--
keywords: +patch
message_count: 8.0 -> 9.0
pull_requests: +26676
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/28257

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Saurabh Jaiswal


Saurabh Jaiswal  added the comment:

PR raised for the same
https://github.com/python/cpython/pull/28257

On Thu, 9 Sept 2021 at 18:19, Saurabh Jaiswal 
wrote:

>
> Saurabh Jaiswal  added the comment:
>
> i want to take this change, i just want to know the steps how to push this
> changes and raise PR for the same
>
> --
> nosy: +saurabh37
>
> ___
> Python tracker 
> 
> ___
>

-- 

*Thanks & Regards*

Saurabh Jaiswal

*www.saurabhjaiswal.com *

*+91-7032917377*

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please see the dev guide https://devguide.python.org/ for setting the 
description of the PR. If it's set correctly, the PR will be attached to this 
issue.

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


D.Lintin  added the comment:

no, this one: https://github.com/python/cpython/pull/28253

--

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Nitish Sharma


Nitish Sharma  added the comment:

Yeah, are you talking about this PR?

https://github.com/python/cpython/pull/28254

--
nosy: +nitss007

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread D.Lintin


D.Lintin  added the comment:

Already create a pull request, thanks.

--
nosy: +dlintin

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Ross Martin


Ross Martin  added the comment:

I would like to fix this, if it hasnt been assigned already.

--
nosy: +MrRBM97

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Saurabh Jaiswal


Saurabh Jaiswal  added the comment:

i want to take this change, i just want to know the steps how to push this 
changes and raise PR for the same

--
nosy: +saurabh37

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith


Change by Eric V. Smith :


--
keywords: +easy, newcomer friendly

___
Python tracker 

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



[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Ming Hua


Change by Ming Hua :


--
title: Type in "What's New In Python 3.10" documentation -> Typo in "What's New 
In Python 3.10" documentation

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



[issue45147] Type in "What's New In Python 3.10" documentation

2021-09-09 Thread Ming Hua


New submission from Ming Hua :

It's just a small typo, but since the documentation recommends reporting to bug 
tracker, here it is.

After downloading the 64-bit Windows Installer for 3.10.0 rc2 and successfully 
installing on my Windows 10, the "Python 3.10 Manuals" in start menu opens a 
(presumably) .chm documentation in Windows HTML Helper.  There in the "What's 
New in Python" > "What's New In Python 3.10" > "Deprecated" section, first 
paragraph, last line, is:
If future releases it will be changed...
It should be "IN future releases" instead.

--
assignee: docs@python
components: Documentation
messages: 401435
nosy: docs@python, minghua
priority: normal
severity: normal
status: open
title: Type in "What's New In Python 3.10" documentation
versions: Python 3.10

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



[issue45090] Add pairwise to What's New in Python 3.10; mark it as new in itertools docs

2021-09-03 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +rhettinger
stage:  -> needs patch

___
Python tracker 

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



[issue45090] Add pairwise to What's New in Python 3.10; mark it as new in itertools docs

2021-09-02 Thread Luciano Ramalho


New submission from Luciano Ramalho :

Thanks for adding `itertools.pairwise()`!

Let's make it easier to find by mentioning it in "What's New in Python 3.10" 
and also marking it as "New in Python 3.10" in the `itertools` module 
documentation.

--
assignee: docs@python
components: Documentation
messages: 400966
nosy: docs@python, ramalho
priority: normal
severity: normal
status: open
title: Add pairwise to What's New in Python 3.10; mark it as new in itertools 
docs
versions: Python 3.10

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-29 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-29 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

I mean intended wording

--

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-29 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

Since this is the intended behavior, we can just close the issue.

--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-29 Thread Brandt Bucher

Brandt Bucher  added the comment:

I don’t think this is a typo.

When x is 0, the point resides somewhere upon the vertical y axis. When y is 0, 
the point resides somewhere upon the horizontal x axis.

Try plotting the points (0, 1) and (1, 0), for example.

--

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-29 Thread Brandt Bucher


Change by Brandt Bucher :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-28 Thread Jack DeVries


Jack DeVries  added the comment:

@serif2 nice catch!

--

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-28 Thread Jack DeVries


Change by Jack DeVries :


--
keywords: +patch
nosy: +jack__d
nosy_count: 2.0 -> 3.0
pull_requests: +25511
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26944

___
Python tracker 

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



[issue44526] Doc typo in "What’s New In Python 3.10" (x/y-axis)

2021-06-28 Thread serif

New submission from serif :

Page:

What’s New In Python 3.10
https://docs.python.org/3.10/whatsnew/3.10.html

Section:

PEP 634: Structural Pattern Matching
Patterns and classes

In the example code, x and y in the printed messages are swapped.

case Point(x=0, y=y):
print(f"Y={y} and the point is on the y-axis.")
case Point(x=x, y=0):
print(f"X={x} and the point is on the x-axis.")

Should be:

case Point(x=0, y=y):
print(f"Y={y} and the point is on the x-axis.")
case Point(x=x, y=0):
print(f"X={x} and the point is on the y-axis.")

--
assignee: docs@python
components: Documentation
messages: 396640
nosy: docs@python, serif2
priority: normal
severity: normal
status: open
title: Doc typo in "What’s New In Python 3.10" (x/y-axis)
versions: Python 3.10

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Brett Cannon

Brett Cannon  added the comment:

Much like the question about load_module(), replacing find_module() with 
find_spec() can be helped with things like 
importlib.util.spec_from_file_location() and .spec_from_loader() 
(https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_file_location
 and 
https://docs.python.org/3/library/importlib.html#importlib.util.spec_from_loader),
 but there isn't a 1:1 swap, so it will take some thought.

And the docs in importlib for things like find_module() say to implement 
find_spec() which then mentions spec_from_loader() may be useful.

As for replicating the subprocess docs approach, that's a little different 
since those alternatives in the stdlib are not going anywhere while the stuff 
in importlib is going to be gone in 3.12 so it will only last for two years.

And BTW I took care of six for you knowing you were going to ask about it if I 
didn't. 

--

___
Python tracker 

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Sviatoslav Sydorenko

Sviatoslav Sydorenko  added the comment:

@vstinner: I think I figure out the solution — 
https://github.com/pypa/setuptools/pull/2633

--
nosy: +webknjaz

___
Python tracker 

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Florian Bruhin


Change by Florian Bruhin :


--
nosy: +The Compiler

___
Python tracker 

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread STINNER Victor


STINNER Victor  added the comment:

Concrete issue: setuptools defines a VendorImporter class with find_module() 
method, but no find_spec() method. How can it be ported to Python 3.10?

https://github.com/pypa/setuptools/issues/2632

--
nosy: +hroncok

___
Python tracker 

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread STINNER Victor


STINNER Victor  added the comment:

find_module() and find_loader() are now also deprecated (bpo-42134). Currently, 
What's New in Python 3.10 says: "(superseded by exec_module())".

It would be great to have a documentation like the good subprocess 
"replacement" documentation:
https://docs.python.org/dev/library/subprocess.html#subprocess-replacements

--

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-03-18 Thread Brett Cannon


Brett Cannon  added the comment:

The documentation states in the deprecation notice for 
https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
 that create_module() and exec_module() are what are necessary. But the it 
isn't a direct 1:1 replacement and people are expected to use all of the helper 
code so it's going to be very specific to the need of the code.

--

___
Python tracker 

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



[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-03-18 Thread STINNER Victor


New submission from STINNER Victor :

The load_module() method of importlib loaders is deprecated which cause test 
failures in multiple projects.

It is not easy to guess how to replace it. Examples:

* pkg_resources fix adding create_module() and exec_module() methods: 
https://github.com/pypa/setuptools/commit/6ad2fb0b78d11e22672f56ef9d65d13ebd3475a9
* pkg_resources fix replacing importlib.load_module() function call (not loader 
methods) with importlib.import_module(): 
https://github.com/pypa/setuptools/commit/a54d9e6b30c6da0542698144d2ff149ae7cadc9a

Cython uses this code:

if sys.version_info[:2] < (3, 3):
import imp
def load_dynamic(name, module_path):
return imp.load_dynamic(name, module_path)
else:
from importlib.machinery import ExtensionFileLoader
def load_dynamic(name, module_path):
return ExtensionFileLoader(name, module_path).load_module()

Fixed Cython code:

if sys.version_info < (3, 5):
import imp
def load_dynamic(name, module_path):
return imp.load_dynamic(name, module_path)
else:
import importlib.util as _importlib_util
def load_dynamic(name, module_path):
spec = _importlib_util.spec_from_file_location(name, module_path)
module = _importlib_util.module_from_spec(spec)
# sys.modules[name] = module
spec.loader.exec_module(module)
return module

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 389007
nosy: brett.cannon, docs@python, vstinner
priority: normal
severity: normal
status: open
title: importlib: Document how to replace load_module() in What's New in Python 
3.10
versions: Python 3.10

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



[issue42870] Document changed argparse output wrt optional arguments in What's new in Python 3.10

2021-01-11 Thread Guido van Rossum


Guido van Rossum  added the comment:

Thanks for your fix!

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



[issue42870] Document changed argparse output wrt optional arguments in What's new in Python 3.10

2021-01-11 Thread Guido van Rossum

Guido van Rossum  added the comment:


New changeset fb35fa49d192368e94ffec09c092260ed0fea2e1 by Tomáš Hrnčiar in 
branch 'master':
bpo-42870: Document change in argparse help output. (GH-24190)
https://github.com/python/cpython/commit/fb35fa49d192368e94ffec09c092260ed0fea2e1


--

___
Python tracker 

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



[issue42870] Document changed argparse output wrt optional arguments in What's new in Python 3.10

2021-01-11 Thread Tomáš Hrnčiar

Change by Tomáš Hrnčiar :


--
keywords: +patch
nosy: +hrnciar
nosy_count: 5.0 -> 6.0
pull_requests: +23017
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24190

___
Python tracker 

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



[issue42870] Document changed argparse output wrt optional arguments in What's new in Python 3.10

2021-01-09 Thread Guido van Rossum


Guido van Rossum  added the comment:

Quickest way to get that done is to send in a PR that updates whatsnew.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue42870] Document changed argparse output wrt optional arguments in What's new in Python 3.10

2021-01-08 Thread Miro Hrončok

New submission from Miro Hrončok :

A followup from https://bugs.python.org/issue9694

Could the change in output please be mentioned on 
https://docs.python.org/3.10/whatsnew/3.10.html ?

In Fedora, at least 3 packages fail tests because of the change:

ipython: https://github.com/ipython/ipython/pull/12759
m2r: https://github.com/miyakogi/m2r/pull/62
sphinxcontrib-autoprogram: https://bugzilla.redhat.com/show_bug.cgi?id=1914341

Thanks.

--
assignee: docs@python
components: Documentation
messages: 384699
nosy: docs@python, hroncok, paul.j3, rhettinger
priority: normal
severity: normal
status: open
title: Document changed argparse output wrt optional arguments in What's new in 
Python 3.10
versions: Python 3.10

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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-21 Thread Irit Katriel


Change by Irit Katriel :


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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset ed0201805c036e4bc26670ec7ccffefb8e219f78 by Miss Islington (bot) 
in branch '3.9':
bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435)
https://github.com/python/cpython/commit/ed0201805c036e4bc26670ec7ccffefb8e219f78


--

___
Python tracker 

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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-20 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset aa3a3521cef3998d4f9e7f7ff721163b6e3e5f39 by Quentin Hibon in 
branch 'master':
bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421)
https://github.com/python/cpython/commit/aa3a3521cef3998d4f9e7f7ff721163b6e3e5f39


--
nosy: +terry.reedy

___
Python tracker 

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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-20 Thread Quentin Hibon


Change by Quentin Hibon :


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

___
Python tracker 

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



[issue42419] Typo in "what's new in Python 3.9"

2020-11-20 Thread Quentin Hibon


New submission from Quentin Hibon :

"deprecatations" should be "deprecations"

--
assignee: docs@python
components: Documentation
messages: 381478
nosy: docs@python, hiqua
priority: normal
severity: normal
status: open
title: Typo in "what's new in Python 3.9"
versions: Python 3.9

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



[issue41475] Fix mistake in "What's new in Python 3.7"

2020-08-04 Thread Ram Rachum


Change by Ram Rachum :


--
type:  -> crash
versions: +Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue41475] Fix mistake in "What's new in Python 3.7"

2020-08-04 Thread Ram Rachum


Change by Ram Rachum :


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

___
Python tracker 

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



[issue41475] Fix mistake in "What's new in Python 3.7"

2020-08-04 Thread Ram Rachum


New submission from Ram Rachum :

Writing the patch now.

--
assignee: docs@python
components: Documentation
messages: 374814
nosy: cool-RR, docs@python
priority: normal
severity: normal
status: open
title: Fix mistake in "What's new in Python 3.7"
versions: Python 3.7

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



Re: New to python - Just a question

2020-07-03 Thread Tim Chase
On 2020-07-03 10:09, Daley Okuwa via Python-list wrote:
> Write an algorithm (choose the language you prefer) that given a
> character string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will
> print out the list of characters appearing at least 2 times. In
> this specific example, it would return {‘a’}. Afterwards, comment
> out the cost in terms of space and time.

What have you tried already?  Where are you having trouble?

Have you written a program that accepts a character string?  Is the
string coming in as a command-line argument or on standard-input?

The example string you give looks more like some sort of
serialization format rather than a string.

Are you having difficulty counting the letters?  Python provides a
"dict()" type that would work well.

Should uppercase letters be counted the same as lowercase letters?
I.e., should "Pop" report that there are 2 "p"s?

If you've counted the duplicates, 

Have you studied space/time complexity and do you know how to
evaluate code for these characteristics?  The problem should be
solvable in roughly O(k) per word.

> Write a bash/python script that takes a directory as an argument
> and output the total lines of code in *.cpp files recursively.

Again, what have you tried?

Have you been able to iterated over a directory? See find(1) or ls(1)
or grep(1) in a shell-script or os.listdir()/os.scandir()/glob.glob()
in Python

Have you been able to open those files?

Can you iterate over the lines in each file?

Do you need to filter out any lines (such as blank lines or comments)?

If you provide what you've tried, folks here on the list are pretty
happy to help.  But most won't do your homework for you.

-tkc




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


Re: New to python - Just a question

2020-07-03 Thread Rhodri James

On 03/07/2020 11:09, Daley Okuwa via Python-list wrote:


Please can someone help

Write an algorithm (choose the language you prefer) that given a character 
string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print out the list of 
characters appearing at least 2 times. In this specific example, it would 
return {‘a’}. Afterwards, comment out the cost in terms of space and time.


The first thing to do with any problem is to break it down into bits. 
In the case of Python, writing them out as "pseudo-code" instructions 
often helps.  In this case you have:


Set up something to count letters with
For each letter in the string:
If we haven't seen this letter before:
Set the counter for the letter to 1
Else:
Add 1 to the counter for the letter

For each counter:
If the count is 2 or more:
Print the letter

Now there are a lot of possible ways to write that, but they mostly come 
down to deciding what data structure to use to count letters with.  Have 
a browse through a tutorial (or the standard library if you are feeling 
adventurous) and see what you think might work, then try it.



Write a bash/python script that takes a directory as an argument and output the 
total lines of code in *.cpp files recursively.


In bash, what existing commands count things?  If you don't know, how 
might you find out?  Then you have to figure out how to do that for each 
*.cpp file in a directory, and add the totals together.


In Python, you can read a file one line at a time, so how to count the 
number of lines in a file should be pretty obvious.  Figuring out how to 
do that for every *.cpp file in a directory will involve looking through 
the standard library, or getting a bash script to do it for you :-)


--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


Re: New to python - Just a question

2020-07-03 Thread David Lowry-Duda
Hello!

> Please can someone help
> 
> Write an algorithm (choose the language you prefer) that given a 
> character string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print 
> out the list of characters appearing at least 2 times. In this 
> specific example, it would return {‘a’}. Afterwards, comment out the 
> cost in terms of space and time.
> 
> Write a bash/python script that takes a directory as an argument and 
> output the total lines of code in *.cpp files recursively.

These are both pretty classical problems. But the way you've presented 
them sounds a bit like a "do my homework for me" style question.

Do you know any python? I recommend that you consider following a book 
or tutorial to get through some of the basics. I like to recommend Think 
Python (available for free from the author).

If you have particular questions that come up while you're trying to 
write a solution, I think more people would be more inclined to help.

Good luck! - DLD

-- 
David Lowry-Duda  
-- 
https://mail.python.org/mailman/listinfo/python-list


New to python - Just a question

2020-07-03 Thread Daley Okuwa via Python-list

Please can someone help

Write an algorithm (choose the language you prefer) that given a character 
string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print out the list of 
characters appearing at least 2 times. In this specific example, it would 
return {‘a’}. Afterwards, comment out the cost in terms of space and time.


Write a bash/python script that takes a directory as an argument and output the 
total lines of code in *.cpp files recursively.


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


[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-06-26 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991
nosy_count: 5.0 -> 6.0
pull_requests: +20327
pull_request: https://github.com/python/cpython/pull/21169

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Thanks for the report.

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 5c01ed6f9366bc6fd880c18e5a2929de72bc1be6 by Miss Islington (bot) 
in branch '3.9':
bpo-40725: Restore missing column of digits (GH-20313) (GH-20315)
https://github.com/python/cpython/commit/5c01ed6f9366bc6fd880c18e5a2929de72bc1be6


--

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Rahul Kumaresan


Change by Rahul Kumaresan :


--
nosy: +rahul-kumi

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +rhettinger

___
Python tracker 

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



[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Jakub Beránek

New submission from Jakub Beránek :

The "What's new in Python 3.9" page displays a table with microbenchmark 
results between different Python version 
(https://docs.python.org/3.9/whatsnew/3.9.html#optimizations).

The values provided for Python 3.4 are suspicious, as they are several times 
smaller than all following Python versions. Therefore it looks like Python got 
much slower in the recent releases, although the opposite is probably true.

--
assignee: docs@python
components: Documentation
messages: 369563
nosy: Jakub Beránek, docs@python
priority: normal
severity: normal
status: open
title: Documentation: Benchmark table in "What's new in Python 3.9" has weird 
values
versions: Python 3.9

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



[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-24 Thread STINNER Victor


Change by STINNER Victor :


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



[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-24 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2d5097663d7f80921fb07cdcd26c9d59cf71f1a2 by Victor Stinner (Ammar 
Askar) in branch 'master':
bpo-39361: Document the removal of PyTypeObject.tp_print (GH-18125)
https://github.com/python/cpython/commit/2d5097663d7f80921fb07cdcd26c9d59cf71f1a2


--

___
Python tracker 

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



[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-22 Thread Ammar Askar


Change by Ammar Askar :


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

___
Python tracker 

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



[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-16 Thread STINNER Victor


New submission from STINNER Victor :

commit aacc77fbd77640a8f03638216fa09372cc21673d
Author: Jeroen Demeyer 
Date:   Wed May 29 20:31:52 2019 +0200

bpo-36974: implement PEP 590 (GH-13185)


Co-authored-by: Jeroen Demeyer 
Co-authored-by: Mark Shannon 

removed PyTypeObject.tp_print:

diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index ba52a48358..a65aaf6482 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -182,7 +182,7 @@ typedef struct _typeobject {
 /* Methods to implement standard operations */
 
 destructor tp_dealloc;
-printfunc tp_print;
+Py_ssize_t tp_vectorcall_offset;
 getattrfunc tp_getattr;
 setattrfunc tp_setattr;
 PyAsyncMethods *tp_as_async; /* formerly known as tp_compare (Python 2)


Would it be possible to just document it in What's New in Python 3.9? Near:
https://docs.python.org/dev/whatsnew/3.9.html#build-and-c-api-changes


For example, this incompatible change broke zbar project:
https://bugzilla.redhat.com/show_bug.cgi?id=1791745

--
components: C API
messages: 360120
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Document PyTypeObject.tp_print removal in What's New In Python 
3.9
versions: Python 3.9

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



Re: (New to Python) Shopping List Code

2019-10-28 Thread Andrea D'Amore
On Mon, 28 Oct 2019 at 14:42, ferzan saglam  wrote:
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on 
> asking for an entry until -1 is typed

> item = input()
> item != -1:

Try these two in REPL and see how the break condition you are using in
your code is evaluated, then check each of the comparison operands.

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


Re: (New to Python) Shopping List Code

2019-10-28 Thread Peter J. Holzer
On 2019-10-28 06:42:46 -0700, ferzan saglam wrote:
> How can I stop this code when -1 is typed or at a maximum item count of ten.

I'm just rewriting that sentence in Python:

> At the moment the code seems to be in a infinite loop meaning it keeps on 
> asking for an entry until -1 is typed 
> 
> 
> total = 0
> while True:
>
>   print('Cost of item')
>
>   item = input()
>
>   if item != -1:
> total = total + item
>   if item == -1:

if item == -1 or count > 10:

>
>   break
>
> print(total)

Now it is up to you increment the variable count for each item.

Does that help?

hp

-- 
   _  | Peter J. Holzer| we build much bigger, better disasters now
|_|_) || because we have much more sophisticated
| |   | h...@hjp.at | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson 


signature.asc
Description: PGP signature
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX

> On Oct 28, 2019, at 8:42 AM, ferzan saglam  wrote:
> 
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on 
> asking for an entry until -1 is typed 
> 
> 
> total = 0
> while True:
>
>  print('Cost of item')
>
>  item = input()
>
>  if item != -1:
>total = total + item
>  if item == -1:
>
>  break
>
> print(total)
> -- 
Sorry about the blank post— I attempted to scroll down, but instead of doing 
that,it sent the message.

From the documentation (emphasis is mine):
“input([prompt])
If the prompt argument is present, it is written to standard output without a 
trailing newline. The function then reads a line from input, converts it to a 
string (stripping a trailing newline), and returns that. When EOF is read, 
EOFError is raised.

So you don’t have a number; you have a string.  Presuming that the string 
contains an integer, You can convert that string to an integer number with the 
built in int() function.

Bev in TX
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX



Bev

> On Oct 28, 2019, at 8:42 AM, ferzan saglam  wrote:
> 
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on 
> asking for an entry until -1 is typed 
> 
> 
> total = 0
> while True:
>
>  print('Cost of item')
>
>  item = input()
>
>  if item != -1:
>total = total + item
>  if item == -1:
>
>  break
>
> print(total)
-- 
https://mail.python.org/mailman/listinfo/python-list


(New to Python) Shopping List Code

2019-10-28 Thread ferzan saglam
How can I stop this code when -1 is typed or at a maximum item count of ten.
At the moment the code seems to be in a infinite loop meaning it keeps on 
asking for an entry until -1 is typed 


total = 0   
while True: 

  print('Cost of item') 

  item = input()

  if item != -1:
total = total + item

  if item == -1:

  break 

print(total)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: new to python - like to write a script with the libvirt-python 5.3.0 package

2019-06-03 Thread Cameron Simpson

On 03Jun2019 16:32, Dennis Lee Bieber  wrote:

On Mon, 3 Jun 2019 17:05:52 +0200 (CEST), "Lentes, Bernd"
 declaimed the following:
I wrote a shellscript to create consistent images of the virtual 
machines each night, using the bash and virsh (the libvirt shell).

Script is running fairly fine, but i need to extend it.
I'm thinking of rewriting it in python, i think that would be a good practise.
Inside the script i'm using things like "virsh start, virsh shutdown, virsh
snaphot-list, virsh snapshot, virsh snapshot-delete, virsh domblklist, 
virsh blockcommit, virsh list, virsh define ..." 


The big thing I see is that all of those are separate invocations to
command line operations. That gets clunky with Python (spawn a new process
for each command, handle output from it, etc.).


Note of course that his shell script is doing that too, though "invoke a 
separate command" is pretty much the shell's core function :-)


Can i use all the possibilities i have in virsh in that 
libvirt-package ?


https://libvirt.org/bindings.html   indicates that there is a Python
binding to the actual libvirt library. On a Debian system, apt-get appears
to be able to find something [...]
Using the API means you will not be invoking "virsh" commands
themselves. You will have to become familiar with the API equivalent to the
commands you were using.


Or he could just "python3 -m pip install libvirt-python", since it is 
published on PyPI.


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


new to python - like to write a script with the libvirt-python 5.3.0 package

2019-06-03 Thread Lentes, Bernd
Hello dear Python-community,

i'm pretty new to Python. I made a seminar two weeks ago and like to write now 
a script because if i don't i will have forgotten everything in a few weeks.
If this is the wrong place to ask my question please tell me where is the 
appropriate one.
I'm a Sysadmin, not a software developer. 
We are running a two-node High Availibility cluster on SLES 12 SP4 with virtual 
machines on it.
I wrote a shellscript to create consistent images of the virtual machines each 
night, using the bash and virsh (the libvirt shell).
Script is running fairly fine, but i need to extend it.
I'm thinking of rewriting it in python, i think that would be a good practise.
Inside the script i'm using things like "virsh start, virsh shutdown, virsh 
snaphot-list, virsh snapshot, virsh snapshot-delete, virsh domblklist, virsh 
blockcommit, virsh list, virsh define ..."
Can i use all the possibilities i have in virsh in that libvirt-package ?

I'm also creating logfiles, deleting files, sending e-Mails, redirecting stdout 
and stderr.
This shouldn't be a problem in Python ?

Thanks.


Bernd


-- 

Bernd Lentes 
Systemadministration 
Institut für Entwicklungsgenetik 
Gebäude 35.34 - Raum 208 
HelmholtzZentrum münchen 
bernd.len...@helmholtz-muenchen.de 
phone: +49 89 3187 1241 
phone: +49 89 3187 3827 
fax: +49 89 3187 2294 
http://www.helmholtz-muenchen.de/idg 

wer Fehler macht kann etwas lernen 
wer nichts macht kann auch nichts lernen
 

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Stellv. Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter
Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich Bassler, 
Kerstin Guenther
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671

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


[issue27163] IDLE entry for What's New in Python 3.6

2018-07-30 Thread Tal Einat


Change by Tal Einat :


--
resolution:  -> out of date
stage: needs patch -> 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



[issue23548] TypeError in event loop finalizer, new in Python 3.4.3

2018-06-19 Thread William Woodall


William Woodall  added the comment:

Just an update to my previous post. We ran into this issue again, but only 
noticed later because we do not see this problem on Ubuntu Bionic with Python 
3.6.5, but we did see it again when we tested later on Ubuntu Xenial with 
Python 3.5.1.

See: https://github.com/ros2/launch/issues/84

So this seems to be fixed in later versions, unless it's just hidden now within 
the asyncio debug log messages (though I didn't see anything there either, at a 
glance).

--

___
Python tracker 

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



[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-23 Thread Miro Hrončok

Miro Hrončok  added the comment:

This was fixed via issue32996

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



[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok

Miro Hrončok  added the comment:

Oh, didn't know that. Consider my PR as a remote sprint contribution. Hopefully 
nobody has already written this part.

--

___
Python tracker 

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



[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok

Change by Miro Hrončok :


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

___
Python tracker 

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



[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Ned Deily

Ned Deily  added the comment:

Thanks for the report.  The 3.7 What's New document is being completed right 
now at the PyCon US sprints.  CCing the editors.

--
nosy: +Elvis.Pranskevichus, ned.deily, yselivanov

___
Python tracker 

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



[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok

Miro Hrončok  added the comment:

I'll prep a PR

--

___
Python tracker 

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



  1   2   3   4   5   6   7   8   9   10   >