[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-23 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 3.0 -> 4.0
pull_requests: +19610
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20347

___
Python tracker 

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



[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-23 Thread hai shi


Change by hai shi :


--
pull_requests: +19609
pull_request: https://github.com/python/cpython/pull/20344

___
Python tracker 

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



[issue40751] command 'elif' does not work

2020-05-23 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

You're indenting elif inside if clause. The elif should be of same indentation 
length like if condition.

--
nosy: +xtreak

___
Python tracker 

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



[issue40751] command 'elif' does not work

2020-05-23 Thread Jonny Li


Change by Jonny Li :


Added file: https://bugs.python.org/file49189/Screen Shot 2020-05-24 at 
10.56.10.png

___
Python tracker 

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



[issue40751] command 'elif' does not work

2020-05-23 Thread Jonny Li


Change by Jonny Li :


--
assignee: terry.reedy
components: IDLE
files: Screen Shot 2020-05-24 at 10.56.55.png
nosy: Jonny Li, terry.reedy
priority: normal
severity: normal
status: open
title: command 'elif' does not work
type: compile error
versions: Python 3.8
Added file: https://bugs.python.org/file49188/Screen Shot 2020-05-24 at 
10.56.55.png

___
Python tracker 

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



[issue40160] documentation example of os.walk should be less destructive

2020-05-23 Thread Kyle Stanley


Kyle Stanley  added the comment:

> I made the suggested change to just print the os.remove() statements (instead 
> of executing them) and also removed the 'skip news'.

I think you may have misunderstood the suggestion. 

Specifically, the key part was "I would suggest adding succinct comments or a 
note that very briefly explains how one could see a visual demonstration...". 
This would mean the actual code in the example would be *unchanged*, but with a 
new code comment or separate note after the example that explains how one could 
replace ``os.remove(os.path.join(root, name))`` with 
``print(f"os.remove({os.path.join(root, name)})")`` for a purely visual 
demonstration that doesn't affect any local files.

--

___
Python tracker 

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



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +gvanrossum, lys.nikolaou

___
Python tracker 

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



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

A piece of the output for the string "1 + 1" with PR 20340:

   > star_expressions[0-0]: star_expression ','
   ✗ star_expressions[0-0]: star_expression ',' failed!
   > star_expressions[0-0]: star_expression
   ✓ star_expressions[0-3]: star_expression
   > augassign[3-3]: '+='
   ✗ augassign[3-3]: '+=' failed!
   > augassign[3-3]: '-='
   ✗ augassign[3-3]: '-=' failed!
   > augassign[3-3]: '*='
   ✗ augassign[3-3]: '*=' failed!
   > augassign[3-3]: '@='
   ✗ augassign[3-3]: '@=' failed!
   > augassign[3-3]: '/='
   ✗ augassign[3-3]: '/=' failed!
   > augassign[3-3]: '%='
   ✗ augassign[3-3]: '%=' failed!
   > augassign[3-3]: '&='
   ✗ augassign[3-3]: '&=' failed!
   > augassign[3-3]: '|='
   ✗ augassign[3-3]: '|=' failed!
   > augassign[3-3]: '^='
   ✗ augassign[3-3]: '^=' failed!
   > augassign[3-3]: '<<='
   ✗ augassign[3-3]: '<<=' failed!
   > augassign[3-3]: '>>='
   ✗ augassign[3-3]: '>>=' failed!
   > augassign[3-3]: '**='
   ✗ augassign[3-3]: '**=' failed!
   > augassign[3-3]: '//='
   ✗ augassign[3-3]: '//=' failed!
  ✗ invalid_assignment[0-0]: star_expressions augassign (yield_expr | 
star_expressions) failed!
 ✗ assignment[0-0]: invalid_assignment failed!
✗ small_stmt[0-0]: assignment failed!
> small_stmt[0-0]: star_expressions
 > star_expressions[0-0]: star_expression ((',' star_expression))+ ','?
  > _loop1_71[3-3]: (',' star_expression)
   > _tmp_139[3-3]: ',' star_expression
   ✗ _tmp_139[3-3]: ',' star_expression failed!
  ✗ _loop1_71[3-3]: (',' star_expression) failed!
 ✗ star_expressions[0-0]: star_expression ((',' star_expression))+ ','? 
failed!
 > star_expressions[0-0]: star_expression ','
 ✗ star_expressions[0-0]: star_expression ',' failed!
 > star_expressions[0-0]: star_expression
 ✓ star_expressions[0-3]: star_expression
✓ small_stmt[0-3]: star_expressions
   ✓ simple_stmt[0-4]: small_stmt !';' NEWLINE
  ✓ statement_newline[0-4]: simple_stmt
 ✓ interactive[0-4]: statement_newline
2
 > interactive[0-0]: statement_newline

--

___
Python tracker 

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



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Python has a (mostly unknown) -d flag that can only be used in debug builds 
that emit some debug output for the old parser. The new parser does not support 
such flag. This is very useful when playing with the grammar as it helps 
enormously to inspect how the parser has behaved and what rules have 
accepted/rejected in its path.

--
components: Interpreter Core
messages: 369763
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Support -d flag in the new parser
type: behavior
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue22533] Counter with no keys does not compare equal to Counter with keys which zero value

2020-05-23 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +19607
pull_request: https://github.com/python/cpython/pull/20339

___
Python tracker 

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



[issue40657] Resource leaks with threading.Thread

2020-05-23 Thread Ned Deily


Change by Ned Deily :


--
nosy: +vstinner

___
Python tracker 

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



[issue40657] Resource leaks with threading.Thread

2020-05-23 Thread Martin Panter


Martin Panter  added the comment:

Perhaps this is the same as Issue 37788, introduced in 3.7.

--
nosy: +martin.panter

___
Python tracker 

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



[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread Ned Deily


Change by Ned Deily :


--
nosy: +lukasz.langa, pablogsal

___
Python tracker 

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



[issue40748] Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

2020-05-23 Thread Chas Belov


Chas Belov  added the comment:

Also in For statements 
https://docs.python.org/3.10/tutorial/controlflow.html#for-statements (same 
issue)

However, a few of the code blocks having this issue don't exist in the 
documentation of earlier versions. Do I need a separate issue for each code 
block that is not common across 3.5 through 3.10? Or would this be handled 
during the back-porting process?

--

___
Python tracker 

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread Kyle Stanley


Kyle Stanley  added the comment:

Thanks for bring this to our attention and working on this Bar Harel, and 
thanks to Yury for the suggestions.

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington


miss-islington  added the comment:


New changeset 9181e2e2f3ade85f65bf2521a5deb898434dfd64 by Miss Islington (bot) 
in branch '3.9':
bpo-40405: Fix asyncio.as_completed docs (GH-19753)
https://github.com/python/cpython/commit/9181e2e2f3ade85f65bf2521a5deb898434dfd64


--

___
Python tracker 

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington


miss-islington  added the comment:


New changeset 2fecb48a1d84190c37214eb4b0c8d5460300a78b by Miss Islington (bot) 
in branch '3.8':
bpo-40405: Fix asyncio.as_completed docs (GH-19753)
https://github.com/python/cpython/commit/2fecb48a1d84190c37214eb4b0c8d5460300a78b


--

___
Python tracker 

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19606
pull_request: https://github.com/python/cpython/pull/20338

___
Python tracker 

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



[issue40405] asyncio.as_completed documentation misleading

2020-05-23 Thread Kyle Stanley


Kyle Stanley  added the comment:


New changeset 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed by Bar Harel in branch 
'master':
bpo-40405: Fix asyncio.as_completed docs (GH-19753)
https://github.com/python/cpython/commit/13206b52d16c2489f4c7dd2dce2a7f48a554b5ed


--

___
Python tracker 

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



[issue40749] Consider adding decorator for required inner class

2020-05-23 Thread Elijah Rippeth


New submission from Elijah Rippeth :

Sometimes it's desirable to couple classes together by nesting. Currently 
there's no way to signal to an interface implementer that an inner class is a 
required attribute to be implemented. 

I propose a decorator for `abstractnestedclass` to fill this gap. A simple 
example use-case is outlined below:

```
from abc import ABCMeta, abstractnestedclass

class BaseComponent(metaclass=ABCMeta):
@abstractnestedclass
class Config:
pass

class MissingNestedComponent(BaseComponent):
# This will raise when constructed because 
# BaseComponent.Config is not implemented
pass

class NonraisingComponent(BaseComponent):
# This will be constructable
class NonraisingComponentConfig(BaseComponent.Config):
pass
pass
```

--
components: Library (Lib)
messages: 369756
nosy: Elijah Rippeth
priority: normal
severity: normal
status: open
title: Consider adding decorator for required inner class
type: enhancement

___
Python tracker 

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



[issue40748] Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

2020-05-23 Thread Chas Belov


Chas Belov  added the comment:

Also in For statements 
https://docs.python.org/3.10/tutorial/controlflow.html#for-statements (same 
issue)

--
title: Tutorial 4.7 More on Defining Functions missing screen prompts -> 
Tutorial 4 More Control Flow Tools missing screen prompts in some code blocks

___
Python tracker 

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



[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH


YoSTEALTH  added the comment:

terry.reedy ok, recreated the patch.

--

___
Python tracker 

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



[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH


Change by YoSTEALTH :


--
pull_requests: +19604
pull_request: https://github.com/python/cpython/pull/20336

___
Python tracker 

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



[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-23 Thread Chas Belov


New submission from Chas Belov :

The tutorial on More on Defining Functions at 
https://docs.python.org/3.7/tutorial/controlflow.html#more-on-defining-functions
 is missing most of the >>> and ... screen prompts that show elsewhere in the 
tutorial. This is potentially confusing to readers.

I am going to attempt a PR by May 26, 2020.

--
assignee: docs@python
components: Documentation
messages: 369753
nosy: Chas Belov, docs@python
priority: normal
severity: normal
status: open
title: Tutorial 4.7 More on Defining Functions missing screen prompts
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH


Change by YoSTEALTH :


--
keywords: +patch
pull_requests: +19603
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20335

___
Python tracker 

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



[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Chas Belov


Chas Belov  added the comment:

@Florian Dahlitz, thank you for your help. I have created a PR at 
https://github.com/python/cpython/pull/20334 and it is awaiting approval of my 
CLA and of the change itself.

--

___
Python tracker 

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



[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Chas Belov


Change by Chas Belov :


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

___
Python tracker 

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



[issue34852] Counter-intuitive behavior of Server.close() / wait_closed()

2020-05-23 Thread Chris Jerdonek


Change by Chris Jerdonek :


--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue25095] test_httpservers hangs since Python 3.5

2020-05-23 Thread William Pickard


William Pickard  added the comment:

I've made the changes you've requested.

--

___
Python tracker 

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



[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread mattip


Change by mattip :


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

___
Python tracker 

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



[issue40747] sysconfig.get_config_var("py_version_nodot") should return 3_10

2020-05-23 Thread mattip


New submission from mattip :

Over in packaging, that code expects 
`sysconfig.get_config_var("py_version_nodot")` to be consistent with 
`tags._version_nodot`, which expects 3_10 for python 3.10. See 
https://github.com/pypa/packaging/issues/308. The current value of 
`sysconfig.get_config_var("py_version_nodot")` (which comes from 
https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L89) is `310` 
which is ambiguous.

--
components: Installation
messages: 369750
nosy: mattip
priority: normal
severity: normal
status: open
title: sysconfig.get_config_var("py_version_nodot") should return 3_10
type: behavior
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



[issue40367] ImportError: libffi.so.6

2020-05-23 Thread YoSTEALTH


YoSTEALTH  added the comment:

How did you get the Python installed in /opt/python/3.8.1?
- I custom installed python.

Maybe it was compiled against libffi 6, then you updated the system to libffi 
7, so that Python would need a rebuild.
- Yes, you are right about this.

So i did rebuild and no problems, Thanks :)

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



[issue40057] Missing mention of some class attributes in socketserver documentation

2020-05-23 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
nosy: +martin.panter
versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue37973] improve docstrings of sys.float_info

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@mark.dickinson, please take a look at the PR when you get a chance.  Thanks!

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@steve.dower, please review the changes when you get a chance.  Thanks!

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue34938] Fix mimetype.init() to account for from import

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@steve.dower, Mariatta had a question for you on the PR.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue40133] Provide additional matchers for unittest.mock

2020-05-23 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

I disagree.  Many of these do belong in the stdlib and we don't need a 
python-ideas bike shedding 300 message thread about something so trivial.

We've been using these internally at Google for years.

Its on my plate to identify which ones to accept and get the most used useful 
ones in.  With an additional eye to which ones we'd likely use when testing the 
stdlib itself.

They fit right in with 
https://docs.python.org/3/library/unittest.mock.html#helpers

--
assignee:  -> gregory.p.smith
resolution: rejected -> 
status: closed -> open
versions: +Python 3.10 -Python 3.9

___
Python tracker 

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



[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-05-23 Thread Michał Górny

Michał Górny  added the comment:

Ok, it seems that I misunderstood it at first.  Judging by the code, it also 
affects extensions installed into site-packages, so I've tried to make that 
clear and add one more example to the bullet list.

--

___
Python tracker 

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



[issue1294959] Add sys.platlibdir and configure --with-platlibdir to use /usr/lib64 on Fedora and SuSE

2020-05-23 Thread Michał Górny

Change by Michał Górny :


--
pull_requests: +19600
pull_request: https://github.com/python/cpython/pull/20332

___
Python tracker 

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



[issue33388] Support PEP 566 metadata in distutils

2020-05-23 Thread Éric Araujo

Éric Araujo  added the comment:

Closing as per previous messages.

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed
title: Support PEP 566 metadata in dist.py -> Support PEP 566 metadata in 
distutils

___
Python tracker 

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



[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

Could you please turn that into a Github PR?

--

___
Python tracker 

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



[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-23 Thread Christian Heimes


Christian Heimes  added the comment:

LibreSSL does neither include SHA3/SHAKE family nor Blake2. Feature requests 
have been open for 1.5 to almost four years. The first reply on each feature 
request don't come as a surprise to me...

https://github.com/libressl-portable/portable/issues/199
https://github.com/libressl-portable/portable/issues/455

--

___
Python tracker 

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



[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Chris Jerdonek


Chris Jerdonek  added the comment:

This was discussed a bit last December 2019 here ("Is there prior discussion 
around the build system of CPython itself?"):
https://discuss.python.org/t/is-there-prior-discussion-around-the-build-system-of-cpython-itself/2813

--
nosy: +chris.jerdonek

___
Python tracker 

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



[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier


Matthias Bussonnier  added the comment:

https://github.com/python/cpython/pull/20331 is a first step toward this. 

See comments in there, I would love some reviews. If that gets im I'll be happy 
to send further refactor to make the compression step also respect 
SOURCE_DATE_EPOCH.

For projects building with older python you should be able to unpack/repack 
with your custom scripts that should allow you have bytes identical tar in many 
cases.

--

___
Python tracker 

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



[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


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

___
Python tracker 

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



[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Christian Heimes


Christian Heimes  added the comment:

How about you start with a PEP that compares our current build system with 
CMake and explores if CMake is a viable option? Is CMake supported on platforms 
like Solaris, HP-UX, VxWorks? Or are there better options for a new build 
system for CPython, for example Meson? After all Meson is written in Python and 
used by large projects like X.org, Wayland, major parts of Gnome, systemd, and 
more.

PS: I find your phrasing and choice of words aggressive, condescending, 
patronizing. Please turn it down a nudge.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue39686] add dump_json to ast module

2020-05-23 Thread Cheryl Sabella


Change by Cheryl Sabella :


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



[issue38741] Definition of multiple ']' in header configparser

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@lukasz.langa, please take a look at the PR for a review.  Thank you!

--
nosy: +cheryl.sabella, lukasz.langa
versions: +Python 3.10, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue40746] test_gdb failing on Raspbian on 3.9, regression from 3.8

2020-05-23 Thread Gregory P. Smith


New submission from Gregory P. Smith :

https://buildbot.python.org/all/#/builders/727

test_tuples (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of tuples ... ok
test_bt (test.test_gdb.PyBtTests)
Verify that the "py-bt" command works ... FAIL
Stderr:
Python Exception  Cannot access memory at address 
0xfedc: 
Error occurred in Python command: Cannot access memory at address 0xfedc

and a pile of similar errors after test_bt

Marking release blocker as this isn't present in 3.8 or earlier, we've got a 
regression here.

i haven't tried to debug yet, but that pointer value smells like something did 
a negative offset from NULL...

--
components: Tests
messages: 369736
nosy: gregory.p.smith
priority: release blocker
severity: normal
status: open
title: test_gdb failing on Raspbian on 3.9, regression from 3.8
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue40745] Typo in library/typing

2020-05-23 Thread Héctor Canto

Héctor Canto  added the comment:

I'll try ASAP.
Héctor Canto

On Sat, 23 May 2020 at 19:33, Rémi Lapeyre  wrote:

>
> Rémi Lapeyre  added the comment:
>
> Hi Héctor, can you open a new PR with those changes?
>
> --
> nosy: +remi.lapeyre
> versions:  -Python 3.5, Python 3.6, Python 3.7
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue40133] Provide additional matchers for unittest.mock

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@Flameeyes, thank you for the suggestion.  As per the other comments, I'm going 
to close this as it would be more suitable to have it on PyPI.  Feel free to 
have more discussion here or on python-ideas if you want to get more feedback.

--
nosy: +cheryl.sabella
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



[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Can you point to specific issues with the current build system?

It seems to me that for 1. it will only make it easier for projects that use 
CMake, 2. the build system is not the only part needed to support a new OS and 
for 3. I've not found Python to be particularly slow to build for such a large 
program. You may want to look at ccache if you want to speed you build process 
(I'm not using it on this computer and it's still quite fast, Make will only 
rebuild the appropriate object files already unless you explicitly clean them).

Before making large changes to the build system, you should open a thread on 
the python-ideas mailing list, there was some discussion about this a few years 
back but maybe now that Python2 is gone it would be easier to make this change?

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue38632] setup.py sdist should honor SOURCE_DATE_EPOCH

2020-05-23 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
nosy: +mbussonn

___
Python tracker 

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



[issue33294] Support complex expressions for py-print command.

2020-05-23 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
assignee:  -> dmalcolm
nosy: +dmalcolm

___
Python tracker 

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



[issue31956] Add start and stop parameters to the array.index()

2020-05-23 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

I found this SO about reclaiming an orphaned pull request:
https://stackoverflow.com/a/53383772

But you may still need to open a new PR for it.

--
nosy: +cheryl.sabella

___
Python tracker 

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



[issue40745] Typo in library/typing

2020-05-23 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Héctor, can you open a new PR with those changes?

--
nosy: +remi.lapeyre
versions:  -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread Ama Aje My Fren

Ama Aje My Fren  added the comment:

> I think I used duckduckgo to find the docs.

Ok,

I just checked and when one has scrolled down the search is not seen.
In most browsers web search is easier than searching on the docs site.

--
Added file: https://bugs.python.org/file49186/docs.python.org.png

___
Python tracker 

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



[issue40745] Typo in library/typing

2020-05-23 Thread Héctor Canto

New submission from Héctor Canto :

I found a small typo here:
https://docs.python.org/3.8/library/typing.html?highlight=typing#typing.NewType

I checked also in other 3.x versions and it is there too.

Original:
A helper function to indicate a distinct types to a typechecker, see NewType

Possible solution (remove the "s" in types):
A helper function to indicate a distinct type to a typechecker, see NewType

--
assignee: docs@python
components: Documentation
messages: 369730
nosy: docs@python, hectorcanto
priority: normal
severity: normal
status: open
title: Typo in library/typing
type: enhancement
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue40744] Explicitly drop support for SQLite version < 3.7.3

2020-05-23 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


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

___
Python tracker 

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



[issue40744] Explicitly drop support for SQLite version < 3.7.3

2020-05-23 Thread Erlend Egeberg Aasland


New submission from Erlend Egeberg Aasland :

Currently, we use sqlite3_create_function_v2() without wrapping it in any 
#ifdefs, so in practise the sqlite3 module will not build against sqlite3 pre 
3.7.3. Despite this, we still wrap parts of the code in #ifdefs for versions 
3.6.x and older.

Added patch drops support for sqlite3 pre 3.7.3.

--
components: Library (Lib)
files: 0001-Drop-support-for-sqlite3-3.7.3.patch
keywords: patch
messages: 369729
nosy: erlendaasland
priority: normal
severity: normal
status: open
title: Explicitly drop support for SQLite version < 3.7.3
versions: Python 3.10, Python 3.8, Python 3.9
Added file: 
https://bugs.python.org/file49187/0001-Drop-support-for-sqlite3-3.7.3.patch

___
Python tracker 

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



[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-23 Thread Florian Dahlitz


Florian Dahlitz  added the comment:

@terry.reedy sorry if I misunderstood you, but it seems to me that you agree 
with the proposed changes?

--

___
Python tracker 

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



[issue40568] Modify -c command-line option to accept multiple inputs

2020-05-23 Thread Florian Dahlitz


Change by Florian Dahlitz :


--
nosy:  -DahlitzFlorian

___
Python tracker 

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



[issue40726] ast.Call end_lineno is defined and returns None

2020-05-23 Thread Florian Dahlitz


Change by Florian Dahlitz :


--
nosy:  -DahlitzFlorian

___
Python tracker 

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



[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Florian Dahlitz


Change by Florian Dahlitz :


--
nosy:  -DahlitzFlorian

___
Python tracker 

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



[issue40738] backspace character \b not processed by IDLE

2020-05-23 Thread Stan Hendryx

Stan Hendryx  added the comment:

Hello Terry,

Thank you for your reply. I understand there are different interpretations of 
\b. IMHO, since IDLE is part of a python distribution, IDLE needs to be 
consistent with the native python interpreter on each platform. On Mac, IDLE 
gives
>>> print("deleted\b file")
deleted file

whereas on mac Terminal we get 
>>> print("deleted\b file")
delete file

JetBrains gives another vote for the native interpretation. I’ve been tutoring 
my grandson on python using JetBrains Academy’s python tutorials. 
They teach 
>>> print("deleted\b file")
delete file

That’s how I discovered the inconsistency.

Thank you,

Stan Hendryx

> On May 22, 2020, at 7:29 PM, Terry J. Reedy  wrote:
> 
> 
> Terry J. Reedy  added the comment:
> 
> I am considering terminal simulation as an option, but there is not exactly a 
> standard to emulate.  \b originally meant the same as the typewrite backspace 
> and modern US computer keyboard left arrow key <- (move cursor left without 
> erasing), which would result in 'delete filed' in insert mode, but sometimes 
> now is interpreted the same as modern US computer keyboard backspace (erase 
> and move left), as you expect.
> 
> --
> resolution:  -> duplicate
> stage:  -> resolved
> status: open -> closed
> superseder:  -> IDLE: Document how Shell displays user code output
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue32782] memoryview & ctypes: incorrect itemsize for empty array

2020-05-23 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread pmp-p


pmp-p  added the comment:

Hi, I'm always curious about others experiences : why would you need 
cross-platform building for any of the officially supported platforms ?

Also on some random unsupported platforms that require cross-compilation like 
maybe android, wasm or other uncommon posix, cmake is maybe not yet fully 
ready. So it may be easier to hack the old system if not alternative is present.

--
nosy: +pmpp

___
Python tracker 

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



[issue40743] [CMake] It's 2020, where is CMake?

2020-05-23 Thread TheUltimatePineapple


New submission from TheUltimatePineapple :

The current CPython build system is antiquated and makes cross-platform builds 
difficult (in my experience). There have been unofficial CMake implementations 
but they are either outdated, abandoned or just unusable.

Adopting CMake has many benefits, here are few:

1. Simplifies cross-platform builds and inclusion of CPython in other projects 
as subdirectory/subproject.

2. Automatically generated builds for any CMake supported OS'es, no need to 
maintain an unique build system for each OS, only the CMake script.

3. Faster. Just the configuration process in current build system for Unix is 
super slow, making testing changes slow and painful.

--
components: Build
messages: 369724
nosy: TheUltimatePineapple
priority: normal
severity: normal
status: open
title: [CMake] It's 2020, where is CMake?
type: enhancement
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



[issue40678] Full list of Python lexical rules

2020-05-23 Thread Ram Rachum


Ram Rachum  added the comment:

I understand, thank you.

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



[issue30756] ttk: GUI tests fail on Ubuntu

2020-05-23 Thread Florian Dahlitz


Florian Dahlitz  added the comment:

I'm on Ubuntu 20.04 64-bit, ran the command provided and got

  Ran 303 tests in 18.900s
  
  OK

I was running against the master branch.

--
nosy: +DahlitzFlorian

___
Python tracker 

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



[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Paul, the doc has the following line
 -s run $IDLESTARTUP or $PYTHONSTARTUP before anything else

--

___
Python tracker 

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



[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Florian Dahlitz


Florian Dahlitz  added the comment:

I pointed you to the quick guide. In fact, you fork the cpython repository, 
create a new branch called fix-issue-40640, change the file 
Doc/tutorial/controlflow.rst and submit a PR agains the cpython master branch. 
As Rahul as already added all the versions to the issue that need a backport, 
the cpython bot will handle it for you. So you only need to submit a PR to the 
master branch. :)

--

___
Python tracker 

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



[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Ama, when responding by email, please leave out the full quote of the message 
you are responding to.  (A snippet of at most a few lines is ok.) Once posted, 
it becomes redundant noise.

--

___
Python tracker 

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



[issue40722] test_ttk_guionly times out on Ubuntu CI

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I listed this failure on the original test_ttk_guionly failure issue.

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



[issue30756] ttk: GUI tests fail on Ubuntu

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#40722 is about a hang, at least once, on line 147

def test_variable_change(self):
x = ttk.LabeledScale(self.root)
x.pack()
x.wait_visibility()  # Here.

--

___
Python tracker 

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



[issue40678] Full list of Python lexical rules

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

What you literally seem to ask for does not exist.  If you want to pursue this, 
I suggest posting to python-ideas and you might get support for an acceptable 
alternative.

--

___
Python tracker 

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



[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-23 Thread Christian Heimes


Christian Heimes  added the comment:

OpenSSL's SHA-3 implementation is a tiny bit faster than our builtin copy of 
SHA-3.

builtin SHA-3 with PGO

$ python3 -m timeit -s "from _sha3 import sha3_256; d = b'12345678' * 1000" 
"sha3_256(d)"
1 loops, best of 5: 20.3 usec per loop

builtin SHA-3 without PGO

$ ./python -m timeit -s "from _sha3 import sha3_256; d = b'12345678' * 1000" 
"sha3_256(d)"
1 loops, best of 5: 21.1 usec per loop

OpenSSL SHA-3

$ ./python -m timeit -s "from _hashlib import openssl_sha3_256 as sha3_256; d = 
b'12345678' * 1000" "sha3_256(d)"
2 loops, best of 5: 19.1 usec per loop


OpenSSL's Blake2 implementation is also a tiny bit faster. (b.copy().update() 
because the _hashlib module doesn't have fast constructor yet)

$ python3 -m timeit -s "from _blake2 import blake2b; b = blake2b(); d = 
b'12345678' * 1000" "b.copy().update(d)"
5 loops, best of 5: 9.67 usec per loop
$ python3 -m timeit -s "from _hashlib import new; b = new('blake2b512'); d = 
b'12345678' * 1000" "b.copy().update(d)"
5 loops, best of 5: 8.87 usec per loop

--

___
Python tracker 

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



[issue40737] Handle PyModule_AddObject() error correctly in sqlite3

2020-05-23 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

This issue could probably be expanded to the whole Modules directory. A lot of 
the modules fail to clean up properly on PyModule_AddObject() error.

--

___
Python tracker 

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



[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-23 Thread Petr Viktorin


Petr Viktorin  added the comment:

Thank you for responding so quickly!

> Petr, do you mind reviewing it?

Yes, but I'll only get to it next week.

--

___
Python tracker 

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



[issue40742] Doc: Parallel build break audit table

2020-05-23 Thread Julien Palard


New submission from Julien Palard :

Currently we can't build the doc using sphinx parallel builds, like: 
`sphinx-build -j auto`, because the audit-events table [1] is not generated in 
this case.

[1]: https://docs.python.org/3/library/audit_events.html

To reproduce:

make -C Doc SPHINXOPTS='-j auto' autobuild-dev-html
see build/html/library/audit_events.html

see also: 
https://mail.python.org/archives/list/python-...@python.org/thread/POWT35ULU2CPELWQ6BRTLTU5H3YKHQZW/

--
assignee: docs@python
components: Documentation
messages: 369712
nosy: docs@python, mdk, xtreak
priority: normal
severity: normal
status: open
title: Doc: Parallel build break audit table
versions: Python 3.10, Python 3.9

___
Python tracker 

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



[issue40741] Upgrade to SQLite v3.32.0 in Windows and macOS builds

2020-05-23 Thread Erlend Egeberg Aasland


New submission from Erlend Egeberg Aasland :

SQLite 3.32.0 is out: https://www.sqlite.org/releaselog/3_32_0.html

I'll preparing a PR for cpython-source-deps and cpython.

--
components: Windows, macOS
messages: 369711
nosy: erlendaasland, ned.deily, paul.moore, ronaldoussoren, steve.dower, 
tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Upgrade to SQLite v3.32.0 in Windows and macOS builds
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



[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread paul rubin


paul rubin  added the comment:

I think I used duckduckgo to find the docs.  They don't change much between 
versions and I was trying to find how to do a specific thing.  My installation 
has the docs included but it didn't explain how to do what I wanted, so I had 
hoped there was a more complete doc on docs.python.org.  Unfortunately it 
turned out to be the same doc.  The functionality I wanted (to put a startup 
script in .idlerc) seems to not exist though.  I'll research workarounds a bit 
further and possibly open an RFE if people think that sounds right.

--

___
Python tracker 

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



[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-23 Thread Ama Aje My Fren


Ama Aje My Fren  added the comment:

>
> I could also add label with the online url and date above the text.
> [https://docs.python.org/3.x/library/idle.html as of ]
>
> Maybe this is a bit messy?

I may be wrong but I suspect that most people on docs.python.org use none
dev versions. For us, most likely, we keep to the releases (maybe behind
the very current version, but unlikely that we are compiling in the latest
bug fixes, or (and here I could be absolutely wrong) pulling from a
distribution that is). (If they are compiling their own Python with bug
fixes, is it fair to assume they are also preparing their own
documentation? Not sure.)

Say I am using Python 3.7.5, the documentation, being for Python 3.7.7, is
(hopefully?) sufficient for me to know it is not the same as the IDLE I am
using - the addition of the date may help emphasize the point, but chances
are I don't track the release schedule/know when my IDLE was packaged for
me and so it may only further confuse me. I suggest that if the page has
the release version don't also provide the "as of " .
Now if Documentation for all patchlevels were available ... but I suspect
that may not be possible.

Thinking about it though Paul said:

So I looked for it on the main docs page, docs.python.org, and didn't
find it there.  I ended up finding it by web search.
>
>
 From 3.5 there is a search on the top right of docs.python.org: @phr is
that what you meant by web search or did you use google/bing/etc? Most
likely many people use the search to find what they want from
docs.python.org ... or it is hardly used.

On Sat, May 23, 2020 at 4:14 AM Terry J. Reedy 
wrote:

>
> Terry J. Reedy  added the comment:
>
> I agree that finding the online doc is slight pain.  It is not listed in
> the Modules index because idlelib, not IDLE, is the stdlib module, and does
> not have a doc page.  I may add one or, if possible, make the page serve as
> one, as part of this issue.  'IDLE' *is* in the Index, and the first link
> is the correct one.
>
> I don't control and would not unilaterally change the main page.  I am
> hesitant because I expect that there are people who would think it unfair
> or deceptive to especially promote IDLE this way versus other stdlib
> packages and non-stdlib IDEs and editors.  I might subscribe to and post on
> python-ideas to see what other users think.
>
> Help => IDLE Help displays an offline copy of idle.html as of the release
> date in a tktinker text window.  Have you noticed that?  Would "IDLE doc"
> be clearer?
>
> I could also add label with the online url and date above the text.
> [https://docs.python.org/3.x/library/idle.html as of ]
>
> --
> nosy: +taleinat
> stage:  -> needs patch
> title: mention IDLE in main python docs page -> Make IDLE doc more
> visible, mention in main python docs page
> versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9
>
> ___
> Python tracker 
> 
> ___
> ___
> docs mailing list -- d...@python.org
> To unsubscribe send an email to docs-le...@python.org
> https://mail.python.org/mailman3/lists/docs.python.org/
> Member address: amaajemyf...@gmail.com
>

--
nosy: +amaajemyfren

___
Python tracker 

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



[issue34556] Add --upgrade-deps to venv module

2020-05-23 Thread miss-islington


miss-islington  added the comment:


New changeset 1cba1c9abadf76f458ecf883a48515aa3b534dbd by Shantanu in branch 
'master':
bpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)
https://github.com/python/cpython/commit/1cba1c9abadf76f458ecf883a48515aa3b534dbd


--
nosy: +miss-islington

___
Python tracker 

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



[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-05-23 Thread honglei jiang


New submission from honglei jiang :

Python.exe cannot run for missing  api-ms-win-core-path-l1-1.0.dll ,

api-ms-win-core-path-l1-1-0.dll is for only Windows 8?

https://github.com/microsoft/CNTK/issues/224

--
components: Windows
messages: 369707
nosy: honglei.jiang, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe 
Under Win7
type: crash
versions: Python 3.9

___
Python tracker 

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



[issue40722] test_ttk_guionly times out on Ubuntu CI

2020-05-23 Thread Zackery Spytz


Zackery Spytz  added the comment:

See also bpo-30756.

--
nosy: +ZackerySpytz

___
Python tracker 

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



[issue40678] Full list of Python lexical rules

2020-05-23 Thread Ram Rachum


Ram Rachum  added the comment:

Hmm, I feel this isn't right, because I still feel like there should be one 
place where one can see the full Python syntax specification, lexing and 
parsing and all. But I'm underqualified to argue because I don't understand the 
details. Is someone more knowledgeable interested in arguing this point?

--

___
Python tracker 

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



[issue40640] Tutorial for Continue missing ... line

2020-05-23 Thread Chas Belov


Chas Belov  added the comment:

@DahlitzFlorian: I'm happy do to the PR provided I don't actually have to build 
Python to work on a documentation change. If it does require building Python 
then please go ahead.

That said, I've looked at the Doc/tutorial/controlflow.rst and it appears to be 
a plain text file. I believe that I would have a PR up by May 26, 2020. Is the 
best practice to check out the 3.10 branch then add backport tags for the other 
versions to the PR? That wasn't clear to me from the docs you referred me to.

--

___
Python tracker 

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



[issue40722] test_ttk_guionly times out on Ubuntu CI

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

By 'intermittantly', do you mean the one time on PR-20236 (and then not on your 
retest) or multiple times on various PRs and buildbots?

Serhiy, could the issue be that tk is waiting for an event that has already 
happened?

--
nosy: +serhiy.storchaka, terry.reedy

___
Python tracker 

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



[issue40707] Popen.communicate documentation does not say how to get the return code

2020-05-23 Thread Gareth Rees


Gareth Rees  added the comment:

The following test cases in test_subprocess.py call the communicate() method 
and then immediately assert that returncode attribute has the expected value:

* test_stdout_none
* test_stderr_redirect_with_no_stdout_redirect
* test_stdout_filedes_of_stdout
* test_communicate_stdin
* test_universal_newlines_communicate_stdin
* test_universal_newlines_communicate_input_none
* test_universal_newlines_communicate_stdin_stdout_stderr
* test_nonexisting_with_pipes
* test_wait_when_sigchild_ignored
* test_startupinfo_copy
* test_close_fds_with_stdio
* test_communicate_stdin

You'll see that some of these test for success (returncode == 0) and some for 
failure (returncode == 1). This seems like adequate test coverage to me, but if 
something is missing, let me know.

--

___
Python tracker 

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



[issue40739] find_library broken for binutils >= 2.32 / 2.34

2020-05-23 Thread Frederik Rietdijk


Frederik Rietdijk  added the comment:

I suppose this issue was not found yet because a) regression testing is done 
with ubuntu 18.04 LTS which uses binutils 2.30 and b) it, along with most 
distro's, will use ldconfig, which we in Nixpkgs have patched out.

--

___
Python tracker 

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



[issue40707] Popen.communicate documentation does not say how to get the return code

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Can you attach a script or post an interactive session, with both success and 
failure, showing that returncode is set appropriately after reading output?  
Possible calls: '''python -c "print('Success')"''', "raise 
Exception('Failure')".  Or point to a test in test_subprocess.

--

___
Python tracker 

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



[issue40739] find_library broken for binutils >= 2.32 / 2.34

2020-05-23 Thread Frederik Rietdijk


New submission from Frederik Rietdijk :

With binutils 2.34 Python 3 (any version) the following returns None

python3 -c 'import ctypes.util; print((ctypes.util.find_library("c")))'

instead of the requested library which we think may be caused by 
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=727a29badd95a68d08b86fec0b98702ce756c660
which is included in binutils 2.32 and up.


With binutils at 2.31 we got

# recent unstable
$ nix-shell --pure -p hello --run 'ld -t -o /dev/null -lc'
/nix/store/a57856fs4m8ir6vlv14h3gq3sv9aq2lb-binutils-2.31.1/bin/ld: mode 
elf_x86_64
/nix/store/nwsn18fysga1n5s0bj4jp4wfwvlbx8b1-glibc-2.30/lib/libc.so.6
/nix/store/nwsn18fysga1n5s0bj4jp4wfwvlbx8b1-glibc-2.30/lib/ld-linux-x86-64.so.2
/nix/store/nwsn18fysga1n5s0bj4jp4wfwvlbx8b1-glibc-2.30/lib/ld-linux-x86-64.so.2
/nix/store/a57856fs4m8ir6vlv14h3gq3sv9aq2lb-binutils-2.31.1/bin/ld: warning: 
cannot find entry symbol _start; not setting start address

however with 2.34 we get

# current staging
$ nix-shell --pure -p hello --run 'ld -t -o /dev/null -lc'
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/libc.so
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/libc.so.6
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/libc_nonshared.a
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/ld-linux-x86-64.so.2
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/libc_nonshared.a
/nix/store/j1l6ds4mhm97nqw965w9sg07i9fric4d-glibc-2.30/lib/ld-linux-x86-64.so.2
/nix/store/j284mk8hdv9ccxfdlhcdk1lg2jml4fhk-binutils-2.34/bin/ld: warning: 
cannot find entry symbol _start; not setting start address

The text-file libc.so is present which find_library cannot handle.

I suppose the regex needs to be fixed to exclude these references or otherwise 
handle them. It may be a bit late for binutils to revert their change.

Note this issue was discovered with the CFFI test suite 
https://foss.heptapod.net/pypy/cffi/blob/2aa5775ffdd6a911e9f40e3c2f5ba766155349c5/c/test_c.py#L60

Nixpkgs issue: 
https://github.com/NixOS/nixpkgs/pull/86954#issuecomment-632985576

--
components: ctypes
messages: 369699
nosy: Frederik Rietdijk
priority: normal
severity: normal
status: open
title: find_library broken for binutils >= 2.32 / 2.34
type: behavior
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Eric L.


Eric L.  added the comment:

Sorry, I uploaded by mistake an early version of the patch. The new one is the 
one I had actually tested (the old one would fail with mixing bytes and string 
under certain circumstances, I can't remember any more).

--
Added file: https://bugs.python.org/file49185/tempfile_py_2020-05-23.diff

___
Python tracker 

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



[issue40707] Popen.communicate documentation does not say how to get the return code

2020-05-23 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This is not a security issue.

--
nosy: +terry.reedy
versions:  -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



[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -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



[issue40678] Full list of Python lexical rules

2020-05-23 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



  1   2   >