[issue35773] test_bdb fails on non-UTF-8 locale

2020-07-05 Thread Michael Felt


Michael Felt  added the comment:

Thanks for getting back to this. ++1 :)

On 25/06/2020 11:49, Serhiy Storchaka wrote:
> Serhiy Storchaka  added the comment:
>
> test_bdb fails on non-UTF-8 locale because Python executes a Python code from 
> the corresponding "encodings" submodule. There are shortcuts for the UTF-8 
> codec which avoid using the Python code.
>
> --
> nosy: +serhiy.storchaka
> title: test_bdb fails on AIX bot (regression) -> test_bdb fails on non-UTF-8 
> locale
> versions: +Python 3.10, Python 3.9
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Michael Felt

Michael Felt  added the comment:

My apologies for lack of context.

On 05/07/2020 20:27, Pablo Galindo Salgado wrote:
> Pablo Galindo Salgado  added the comment:
>
> Unfortunately, I am having a hard time parsing your error description because 
> is not immediate to distinguish:
>
> - What is the error.
crash - segmentation error.
> - Where does the error happen.
During python initialization.
> - How to reproduce the error.

The error occurs during `make`

root@x066:[/data/prj/python/bpo-41215]make
    xlc_r -g -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1
-qarch=pwr5 -O    -I../git/bpo-41215/Include/internal -IObjects
-IInclude -IPython -I. -I../git/bpo-41215/Include -I/opt/include  
-DPy_BUILD_CORE -o Parser/pegen/pegen.o
../git/bpo-41215/Parser/pegen/pegen.c
    xlc_r -g -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1
-qarch=pwr5 -O    -I../git/bpo-41215/Include/internal -IObjects
-IInclude -IPython -I. -I../git/bpo-41215/Include -I/opt/include  
-DPy_BUILD_CORE  -DGITVERSION="\"`LC_ALL=C `\""  -DGITTAG="\"`LC_ALL=C
`\""  -DGITBRANCH="\"`LC_ALL=C `\""  -o Modules/getbuildinfo.o
../git/bpo-41215/Modules/getbuildinfo.c
    rm -f libpython3.9.a
    ar rcs libpython3.9.a Modules/getbuildinfo.o  Parser/acceler.o 
Parser/grammar1.o  Parser/listnode.o  Parser/node.o  Parser/parser.o 
Parser/token.o   Parser/pegen/pegen.o  Parser/pegen/parse.o 
Parser/pegen/parse_string.o  Parser/pegen/peg_api.o Parser/myreadline.o
Parser/parsetok.o Parser/tokenizer.o  Objects/abstract.o 
Objects/accu.o  Objects/boolobject.o  Objects/bytes_methods.o 
Objects/bytearrayobject.o  Objects/bytesobject.o  Objects/call.o 
Objects/capsule.o  Objects/cellobject.o  Objects/classobject.o 
Objects/codeobject.o  Objects/complexobject.o  Objects/descrobject.o 
Objects/enumobject.o  Objects/exceptions.o 
Objects/genericaliasobject.o  Objects/genobject.o  Objects/fileobject.o 
Objects/floatobject.o  Objects/frameobject.o  Objects/funcobject.o 
Objects/interpreteridobject.o  Objects/iterobject.o 
Objects/listobject.o  Objects/longobject.o  Objects/dictobject.o 
Objects/odictobject.o  Objects/memoryobject.o  Objects/methodobject.o 
Objects/moduleobject.o  Objects/namespaceobject.o  Objects/object.o 
Objects/obmalloc.o  Objects/picklebufobject.o  Objects/rangeobject.o 
Objects/setobject.o  Objects/sliceobject.o  Objects/structseq.o 
Objects/tupleobject.o  Objects/typeobject.o  Objects/unicodeobject.o 
Objects/unicodectype.o  Objects/weakrefobject.o  Python/_warnings.o 
Python/Python-ast.o  Python/asdl.o  Python/ast.o  Python/ast_opt.o 
Python/ast_unparse.o  Python/bltinmodule.o  Python/ceval.o 
Python/codecs.o  Python/compile.o  Python/context.o 
Python/dynamic_annotations.o  Python/errors.o  Python/frozenmain.o 
Python/future.o  Python/getargs.o  Python/getcompiler.o 
Python/getcopyright.o  Python/getplatform.o  Python/getversion.o 
Python/graminit.o  Python/hamt.o  Python/import.o  Python/importdl.o 
Python/initconfig.o  Python/marshal.o  Python/modsupport.o 
Python/mysnprintf.o  Python/mystrtoul.o  Python/pathconfig.o 
Python/peephole.o  Python/preconfig.o  Python/pyarena.o 
Python/pyctype.o  Python/pyfpe.o  Python/pyhash.o  Python/pylifecycle.o 
Python/pymath.o  Python/pystate.o  Python/pythonrun.o  Python/pytime.o 
Python/bootstrap_hash.o  Python/structmember.o  Python/symtable.o 
Python/sysmodule.o  Python/thread.o  Python/traceback.o 
Python/getopt.o  Python/pystrcmp.o  Python/pystrtod.o 
Python/pystrhex.o  Python/dtoa.o  Python/formatter_unicode.o 
Python/fileutils.o  Python/dynload_shlib.o    Modules/config.o 
Modules/getpath.o  Modules/main.o  Modules/gcmodule.o 
Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o 
Modules/_sre.o  Modules/_codecsmodule.o  Modules/_weakref.o 
Modules/_functoolsmodule.o  Modules/_operator.o 
Modules/_collectionsmodule.o  Modules/_abc.o  Modules/itertoolsmodule.o 
Modules/atexitmodule.o  Modules/signalmodule.o  Modules/_stat.o 
Modules/timemodule.o  Modules/_threadmodule.o  Modules/_localemodule.o 
Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o
Modules/bufferedio.o Modules/textio.o Modules/stringio.o 
Modules/faulthandler.o  Modules/_tracemalloc.o Modules/hashtable.o 
Modules/_peg_parser.o  Modules/symtablemodule.o  Modules/xxsubtype.o 
Python/frozen.o
    ../git/bpo-41215/Modules/makexp_aix Modules/python.exp .
libpython3.9.a;  xlc_r -g -Wl,-bE:Modules/python.exp -lld -o python
Programs/python.o libpython3.9.a -lintl -ldl  -lm   -lm
 ./python -E -S -m sysconfig --generate-posix-vars ; if test $?
-ne 0 ; then  echo "generate-posix-vars failed" ;  rm -f
./pybuilddir.txt ;  exit 1 ;  fi
/bin/sh: 5242890 Segmentation fault(coredump)
make: 1254-004 The error code from the last command is 139.

Stop.

And can be repeated by just trying to start the executable:

root@x066:[/data/prj/python/bpo-41215]./python
Segmentation fault(coredump)

>
> Could you kindly provide more scoped information about these points so we can 
> look into it?
>

[issue41216] eval don't load local variable in dict and list comprehensions.

2020-07-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This seems to be a duplicate of issue5242, issue36300

--
nosy: +xtreak

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Vedran Čačić

Vedran Čačić  added the comment:

Well, then "what name is in which namespace" is relative to which function 
we're considering. In my example above, imagine aa has x declared, bb has y, 
and cc has z. Then y and z are in the same namespace when we look from the 
perspective of aa, but they are not in the same namespace from the perspective 
of bb. Even worse, cc sees z but doesn't see y. How can they be in the same 
namespace then?

I always thought about namespaces as mappings from names to objects, 
independent of perspective. Whether two names are in the same namespace, should 
be a question with an objective answer.

--

___
Python tracker 

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



[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-05 Thread miss-islington


miss-islington  added the comment:


New changeset 1ce59f0421d9550762977454bda22db750aa20aa by Miss Islington (bot) 
in branch '3.9':
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
https://github.com/python/cpython/commit/1ce59f0421d9550762977454bda22db750aa20aa


--

___
Python tracker 

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



[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-05 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 9ce8132e1f2339cfe116dfd4795574182c2245b4 by Inada Naoki in branch 
'master':
bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
https://github.com/python/cpython/commit/9ce8132e1f2339cfe116dfd4795574182c2245b4


--

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 6790f9badda47c7aa0fe4b0b5f090d6ca0c477d5 by Miss Islington (bot) 
in branch '3.8':
bpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21344)
https://github.com/python/cpython/commit/6790f9badda47c7aa0fe4b0b5f090d6ca0c477d5


--

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 00c09f06a4cf1e352c6ab0c9b9e6074e52f44ae1 by Miss Islington (bot) 
in branch '3.9':
bpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21343)
https://github.com/python/cpython/commit/00c09f06a4cf1e352c6ab0c9b9e6074e52f44ae1


--

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 3f4a9fd912fc6d4f5ee2b49bfef979cc7d457848 by Miss Islington (bot) 
in branch '3.9':
bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21341)
https://github.com/python/cpython/commit/3f4a9fd912fc6d4f5ee2b49bfef979cc7d457848


--

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I wait for backports to be merged before closing.  Someone has to approve them 
or manually merge them before that happens, so leaving issues open until all 
merges are done prevents totally forgetting about them.

For doc issues, the patch, if not drastically wrong, becomes the new status 
quo.  So I think any further proposed change should normally be a new issue.  
So once the backports *are* done, you can close.

For code issues, 'drastically wrong' usually means that the patch failed on one 
of the buildbots, or fairly soon somewhere else, and needs either reversion or 
a hot fix.

--
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 7ceb3e3ffc8ee00551df2245544eb60f7debf3af by Miss Islington (bot) 
in branch '3.8':
bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342)
https://github.com/python/cpython/commit/7ceb3e3ffc8ee00551df2245544eb60f7debf3af


--

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset d12af71047f0eae86440654d3ea74c032c7c3558 by Joannah Nanjekye in 
branch 'master':
bpo-28681: Clarify multiple function names in the tutorial (GH-21340)
https://github.com/python/cpython/commit/d12af71047f0eae86440654d3ea74c032c7c3558


--

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20492
pull_request: https://github.com/python/cpython/pull/21344

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

Merged, this can be closed if there is consesus.

--

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20490
pull_request: https://github.com/python/cpython/pull/21342

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:


New changeset 9ed3cd8ba052b395ab50692bb65988b065d68e27 by Joannah Nanjekye in 
branch 'master':
bpo-26205: Specify the number of nested scopes (GH-21324)
https://github.com/python/cpython/commit/9ed3cd8ba052b395ab50692bb65988b065d68e27


--

___
Python tracker 

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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 10.0 -> 11.0
pull_requests: +20489
pull_request: https://github.com/python/cpython/pull/21341

___
Python tracker 

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



[issue28681] Clarify multiple function names in the tutorial

2020-07-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Vedran, thank you for the interesting cultural and linguistic perspective.  In 
Spanish, "Como te llamas?" (familiar) "Como se llama?" (formal) literally 
translate as "What do you call yourself?" (want me to call you?).  (I believe 
the latter could also be translated as "What are you called?", which you note 
is slightly different.  I also know that addressing people by name is a more 
involved -- and dangerous-- subject in Japan than in America.

I think that David's rewrite is clear enough with the little change I suggested 
at the end, and have approved Joannah's PR with one little addition.  Even if 
not perfect, it is definitely better than the current text.

--
title: About function renaming in the tutorial -> Clarify multiple function 
names in the tutorial
versions: +Python 3.10, Python 3.8, Python 3.9 -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



[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: Inconsistency concerning nested scopes -> Better specify number of 
nested scopes

___
Python tracker 

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



[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

PR updated with your change. @Terry

--

___
Python tracker 

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



[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Vedran: "How is that different from saying that "At any one time, the language 
and interpreter sees all the scopes as one scope for the purpose of accessing 
and rebinding."?"

For access, one may bypass the default staged access by specifying a specific 
namespace.  For rebinding elsewhere than in locals, one must specify one of the 
others.  So the 4 scopes are each visible.  However, the internal 'structure' 
of nonlocals is intentionally not visible or accessible.  (The proposal to make 
them somehow accessible was considered and rejected.)
---

The PR replaces 'at least three' with 'various'.  This is needlessly vague. 
There are always 3 namespaces and sometimes a 4th, so I think 'at least three' 
should be replaced with the specific '3 or 4'.

I rechecked two special cases.  Exception clauses with 'as name' bind name in 
the current local namespace and auto delete the binding when done.  
Comprehensions bind the name and iterator of the 'for' clause in a temporary 
new local namespace, making the existing namespace temporarily part of a 
nonlocal namespace, which may or may not have been present before.  '3 or 4' 
still applies in both cases.

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

___
Python tracker 

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



[issue41216] eval don't load local variable in dict and list comprehensions.

2020-07-05 Thread Andrej Klychin


New submission from Andrej Klychin :

I'm not sure is it a bug or a fecature of comprehensions or eval, but 
intuitively it seems like it should work.

def foo(baz):
return eval("[baz for _ in range(10)]")

foo(3)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2, in foo
  File "", line 1, in 
  File "", line 1, in 
NameError: name 'baz' is not defined

def bar(baz):
return eval("{i: baz for i in range(10)}")

bar(3)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2, in bar
  File "", line 1, in 
  File "", line 1, in 
NameError: name 'baz' is not defined

--
components: Interpreter Core
messages: 373054
nosy: Andy_kl
priority: normal
severity: normal
status: open
title: eval don't load local variable in dict and list comprehensions.
type: behavior
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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Michael Felt


Michael Felt  added the comment:

Iirc, my debug shows that k is not NULL, as k++ is not going to suddenly become 
smaller. And my debug shows it grows by a constant. 

My gut says the pointer to the base of the tokens is wrong, because the key 
types are such different values. Or do you know that those are valid types?

--

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-05 Thread Guido van Rossum


Guido van Rossum  added the comment:

You're welcome. Hope this helps Cpython users.

--

___
Python tracker 

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



[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread Ben Griffin

Ben Griffin  added the comment:

Erm, I don’t rightly know how to parse epaine’s comment, as it seems to relate 
to a version of Unicode from over a decade ago, and a wiki page that was 
written 12 years ago.

IIRC Python 3 was (IMO rightly) developed to default to UTF-8, and according to 
a much more recently edited article (https://en.m.wikipedia.org/wiki/UTF-8), a 
normative UTF-8 parser can handle any of the million+ Unicode characters, 
including emoji.

As I pointed out in the bug report, and as mentioned by contributors on SO, TCL 
has seems to have fixed these issues by 8.6.10.

If epaine is correct and TCL CANTFIX/WONTFIX normative utf-8 - then maybe it’s 
time to drop the strong relationship that Python has with tkinter. However Im 
pretty sure that there is no need for such a drastic measure: the UTF-8 
algorithm isn’t that complex.

--

___
Python tracker 

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



[issue29727] collections.abc.Reversible doesn't fully support the reversing protocol

2020-07-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset e51dd9dad6590bf3a940723fbbaaf4f64a3c9228 by Pablo Galindo in 
branch 'master':
bpo-29727: Register array.array as a MutableSequence (GH-21338)
https://github.com/python/cpython/commit/e51dd9dad6590bf3a940723fbbaaf4f64a3c9228


--

___
Python tracker 

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



[issue29727] collections.abc.Reversible doesn't fully support the reversing protocol

2020-07-05 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



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2020-07-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Library (Lib)
type: behavior -> enhancement
versions: +Python 3.10 -Python 2.7, Python 3.5

___
Python tracker 

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



[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Vedran Čačić

Vedran Čačić  added the comment:

How is that different from saying that "At any one time, the language and 
interpreter sees all the scopes as one scope for the purpose of accessing and 
rebinding."? Any ChainMap presents itself as a dictionary to the outside. That 
doesn't mean it doesn't have an internal structure.

Yes, nonlocal picks the innermost one because of its semantics, but it still 
needs to search through the scopes in order to know which one to pick, right?

--

___
Python tracker 

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



[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

At any one time, the language and interpreter sees the local scopes of 
enclosing functions as collectively 'nonlocal' for the purpose of accessing and 
rebinding.  If there are bindings of a name 'x' in multiple enclosing local 
scopes, the binding for 'x' in the synthesized 'nonlocal' is the innermost one.

--

___
Python tracker 

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



[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-05 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

CPython should also consider [this 
change](https://github.com/pypa/distutils/commit/d9ba43436d), which unifies the 
`DEBUG` handling, consolidates the exception trapping, and uses 
`subprocess.check_call` to re-use exit code checking.

--

___
Python tracker 

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



[issue28681] About function renaming in the tutorial

2020-07-05 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah
nosy_count: 8.0 -> 9.0
pull_requests: +20488
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/21340

___
Python tracker 

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



[issue41018] warning: 'Tk_MainWindow' is deprecated: first deprecated

2020-07-05 Thread Joannah Nanjekye


New submission from Joannah Nanjekye :

I find this issue to be less descriptive. Maybe a sentence to complement the 
title can help others understand even better.

--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue41207] distutils.command.build_ext raises FileNotFoundError

2020-07-05 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

In 
[pypa/distutils@7aa5abeafc](https://github.com/pypa/distutils/commit/7aa5abeafc1e0b1b351c4c8ac7eb14c310366a46),
 I've pushed a fix (with a repro test in the parent commit). I recommend this 
fix be applied to CPython 3.9.

--

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-05 Thread Stefan Behnel


Stefan Behnel  added the comment:

Fixed in 3.8+. Closing.
Thanks for the feedback.

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-05 Thread Stefan Behnel


Stefan Behnel  added the comment:


New changeset 8912c182455de83e27d5c120639ec91b18247913 by scoder in branch 
'3.8':
bpo-39960: Allow heap types in the "Carlo Verre" hack check that override 
"tp_setattro()" (GH-21092) (GH-21339)
https://github.com/python/cpython/commit/8912c182455de83e27d5c120639ec91b18247913


--

___
Python tracker 

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



[issue31305] 'pydoc -w import' report "no Python documentation found for 'import'"

2020-07-05 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

Given EOL is this still relevant? as it is marked 2.7

--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread E. Paine


E. Paine  added the comment:

This is a Tcl issue, as Tcl is designed for characters up to 16 bits. The fact 
that Chip is showing at all is very surprising, though any character outside of 
this 16-bit range should be considered unpredictable.

"The majority of characters used in the human languages of the world have 
character codes between 0 and 65535, and are known as the Basic Multilingual 
Plane  (BMP). Currently a default build of Tcl is only capable of handling 
these characters, but work is underway to change that, and workarounds 
requiring non-default build-time configuration options exist." 
[https://wiki.tcl-lang.org/page/Unicode]

--
nosy: +epaine

___
Python tracker 

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



[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-05 Thread Stefan Behnel


Change by Stefan Behnel :


--
pull_requests: +20487
pull_request: https://github.com/python/cpython/pull/21339

___
Python tracker 

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



[issue21333] Document recommended exception for objects that shouldn't be pickled

2020-07-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

2.7 docs are no longer revised

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



[issue41208] An exploitable segmentation fault in marshal module

2020-07-05 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
nosy: +serhiy.storchaka, vstinner

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Michael, can you try with this patch:

diff --git a/Parser/pegen.c b/Parser/pegen.c
index 53e3d49138..7faeec26ad 100644
--- a/Parser/pegen.c
+++ b/Parser/pegen.c
@@ -528,7 +528,7 @@ _get_keyword_or_name_type(Parser *p, const char *name, int 
name_len)
 if (name_len >= p->n_keyword_lists || p->keywords[name_len] == NULL) {
 return NAME;
 }
-for (KeywordToken *k = p->keywords[name_len]; k->type != -1; k++) {
+for (KeywordToken *k = p->keywords[name_len]; k != NULL && k->type != -1; 
k++) {
 if (strncmp(k->str, name, name_len) == 0) {
 return k->type;
 }


For whatever reasons, it seems that me are calling into 
_get_keyword_or_name_type with a name_len of 0.

--

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Unfortunately, I am having a hard time parsing your error description because 
is not immediate to distinguish:

- What is the error.
- Where does the error happen.
- How to reproduce the error.

Could you kindly provide more scoped information about these points so we can 
look into it?

--

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +lys.nikolaou

___
Python tracker 

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



[issue29727] collections.abc.Reversible doesn't fully support the reversing protocol

2020-07-05 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
nosy: +pablogsal
nosy_count: 5.0 -> 6.0
pull_requests: +20486
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/21338

___
Python tracker 

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



[issue41195] Interface to OpenSSL's security level

2020-07-05 Thread Christian Heimes


Christian Heimes  added the comment:

Users can set the current security level in either an OpenSSL config file or 
with ctx.set_cipher("@SECLEVEL=i:...").

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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-07-05 Thread Guido van Rossum


Change by Guido van Rossum :


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



[issue39168] Generic type subscription is a huge toll on Python performance

2020-07-05 Thread miss-islington


miss-islington  added the comment:


New changeset 5a1384935ee8996a5bd240dd29f9b5e356cfc467 by Miss Islington (bot) 
in branch '3.9':
bpo-39168: Remove the __new__ method of typing.Generic (GH-21327)
https://github.com/python/cpython/commit/5a1384935ee8996a5bd240dd29f9b5e356cfc467


--

___
Python tracker 

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



[issue36346] Prepare for removing the legacy Unicode C API

2020-07-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset b3dd5cd4a36877c473417fd7b3358843dcf8e647 by Serhiy Storchaka in 
branch 'master':
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
https://github.com/python/cpython/commit/b3dd5cd4a36877c473417fd7b3358843dcf8e647


--

___
Python tracker 

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



[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Adding Miro since Fedora will be testing Python 3.10 and deprecated API 
removals here might potentially affect libraries like Python 3.9 testing.

--
nosy: +hroncok

___
Python tracker 

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



[issue40424] AIX: makexp_aix, parallel build (failures) and ld WARNINGS

2020-07-05 Thread Michael Felt


Michael Felt  added the comment:

Thanks Kevin.

I took your patch (added your name to blurb as well).

Only difference was to remove Qsystem (or something), from the pathnames.

--
versions: +Python 3.7

___
Python tracker 

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



[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-07-05 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +20485
pull_request: https://github.com/python/cpython/pull/21337

___
Python tracker 

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



[issue36346] Prepare for removing the legacy Unicode C API

2020-07-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +20484
pull_request: https://github.com/python/cpython/pull/21336

___
Python tracker 

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



[issue36346] Prepare for removing the legacy Unicode C API

2020-07-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

There is no need to deprecate _PyUnicode_AsUnicode. It is a private function. 
Undeprecating it will make the code clearer.

--

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Michael Felt

Michael Felt  added the comment:

OK - merely added some fprintf statements.

When it is working as expected, the k->type values seem to be between 500 and 
535 - when it fails the k->type value is frequently 9 digits (e.g., 537120904) 
- and it seems to never become -1 -- which would end the loop and "RETURN NAME".

One working example...

NAMEPTR: 20089d44, name_len:6 strlen(name):4472 name.16s:
import aliases



token: 20030d30, k_type:500, strlen(k->str):6 k->str.16s:
return

token: 20030d38, k_type:505, strlen(k->str):6 k->str.16s:
assert

token: 20030d40, k_type:508, strlen(k->str):6 k->str.16s:
global

token: 20030d48, k_type:513, strlen(k->str):6 k->str.16s:
import

RETURN k->type: 513 from k-str.16:import

And a failed (abbreviated) that ends with the segmentation error:

NAMEPTR: 20089d60, name_len:8 strlen(name): name.16s:
_unknown = '--un

token: 2000f340, k_type:537120904, strlen(k->str):0 k->str.16s:


token: 2000f348, k_type:271488524, strlen(k->str):8 k->str.16s:
d  z▒

token: 2000f350, k_type:805316552, strlen(k->str):0 k->str.16s:


token: 2000f358, k_type:368, strlen(k->str):11 k->str.16s:
__setitem__

token: 2000f360, k_type:537120928, strlen(k->str):8 k->str.16s:
<▒ z▒

token: 2000f368, k_type:0, strlen(k->str):61 k->str.16s:
__setitem__($sel

token: 2000f370, k_type:271482672, strlen(k->str):0 k->str.16s:


...
token: 2000f730, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f738, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f740, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f748, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f750, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f758, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f760, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f768, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f770, k_type:271810528, strlen(k->str):0 k->str.16s:


token: 2000f778, k_type:0, strlen(k->str):0 k->str.16s:


token: 2000f780, k_type:271810512, strlen(k->str):4 k->str.16s:
real

token: 2000f788, k_type:0, strlen(k->str):0 k->str.16s:


/bin/sh: 8847524 Segmentation fault(coredump)
make: 1254-004 The error code from the last command is 139.


Hope this helps. I really do not know 'WHERE' it went wrong. I can only begin 
by guessing. So, expert guidance is appreciated!

--

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Michael Felt


Michael Felt  added the comment:

Well, the first step -s just showing where the segmentation fault occurs (in 
pegen.c).

I am not really 'wiser' in what I should be looking at. I'll try adding a 
fprintf(stderr, ) to see if I can figure out a bit more.

For the experts:

(dbx) where
strncmp(??, ??, ??) at 0xd011d920
_get_keyword_or_name_type(p = 0x0023, name = warning: Unable to access 
address 0xd from core
(invalid char ptr (0x000d)), name_len = 0), line 503 in "pegen.c"
_PyPegen_fill_token(p = 0x1025f138), line 546 in "pegen.c"
_PyPegen_expect_token(p = (nil), type = 805759776), line 675 in "pegen.c"
_tmp_6_rule@AF486_140(??), line 10251 in "parse.c"
_PyPegen_lookahead(positive = 269294544, func = 0x3001da40, p = 0x2ff20f30), 
line 666 in "pegen.c"
compound_stmt_rule@AF476_280(??), line 1232 in "parse.c"
statement_rule@AF477_284(??), line 795 in "parse.c"
unnamed block in _loop1_2_rule(p = 0x30085830), line 10086 in "parse.c"
_loop1_2_rule(p = 0x30085830), line 10086 in "parse.c"
statements_rule@AF478_285(??), line 766 in "parse.c"
file_rule@AF479_289(??), line 646 in "parse.c"
_PyPegen_run_parser(p = 0x30085820), line 916 in "pegen.c"
_PyPegen_run_parser_from_string(str = "compile", start_rule = 272032944, 
filename_ob = 0x20084f68, iflags = 805427776, arena = 0x30085820), line 1024 in 
"pegen.c"
PyPegen_ASTFromStringObject(str = (nil), filename = (nil), mode = 804393472, 
flags = 0x20035cb0, arena = 0x102453c4), line 26 in "peg_api.c"
unnamed block in Py_CompileStringObject(str = "|p^[yN", filename = (nil), start 
= 0, flags = 0x3007bbc8, optimize = -2147483647), line 1244 in "pythonrun.c"
Py_CompileStringObject(str = "|p^[yN", filename = (nil), start = 0, flags = 
0x3007bbc8, optimize = -2147483647), line 1244 in "pythonrun.c"
builtin_compile_impl(module = (nil), source = 0x2bd8, filename = 
0x20063c48, mode = "\320Qf", flags = 1, dont_inherit = 536873648, optimize = 
804393760, feature_version = 537275800), line 823 in "bltinmodule.c"
builtin_compile(module = 0x2ff21460, args = 0x3007fa78, nargs = 2, kwnames = 
0x30007470), line 274 in "bltinmodule.c.h"
cfunction_vectorcall_FASTCALL_KEYWORDS(func = 0x100b203c, args = 0x0003, 
nargsf = 804394000, kwnames = 0x20047844), line 396 in "methodobject.c"
PyVectorcall_Call(callable = 0x100b2e10, tuple = 0x20026f40, kwargs = 
0x2ff21470), line 255 in "call.c"
_PyObject_Call(tstate = 0x100b1d1c, callable = 0x30002870, args = 0x2ff214c0, 
kwargs = 0x30043fd0), line 265 in "call.c"
do_call_core(tstate = 0x0001, func = 0x30094050, callargs = 0x30046428, 
kwdict = 0x300462e8), line 5054 in "ceval.c"
_PyEval_EvalFrameDefault(tstate = 0x3009315c, f = 0x30043e58, throwflag = 
-261800280), line 3542 in "ceval.c"
_PyEval_EvalCode(tstate = 0x3005d820, _co = 0x3003a6a0, globals = 0x2ff216d0, 
locals = 0x422822cc, args = 0x100b46e4, argcount = 805410760, kwnames = 
0x2ff216d0, kwargs = 0x20047844, kwcount = 2, kwstep = 1, defs = (nil), 
defcount = 0, kwdefs = (nil), closure = (nil), name = 0x300197c8, qualname = 
0x300197c8), line 41 in "pycore_ceval.h"
_PyFunction_Vectorcall(func = 0x100d3714, stack = 0x3008ea08, nargsf = 
804394848, kwnames = 0x20047844), line 411 in "call.c"
_PyEval_EvalFrameDefault(tstate = 0x, f = 0x300834c8, throwflag = 
804395040), line 487 in "abstract.h"
_PyEval_EvalCode(tstate = 0x300865b0, _co = 0x30061b88, globals = 0x2ff218e0, 
locals = 0x5328333f, args = 0x10073d54, argcount = 537279560, kwnames = 
0x2ff218e0, kwargs = 0x20047844, kwcount = 0, kwstep = 1, defs = (nil), 
defcount = 0, kwdefs = 0x3006bb90, closure = (nil), name = 0x30061b88, qualname 
= 0x3004eb10), line 41 in "pycore_ceval.h"
_PyFunction_Vectorcall(func = 0x30092f50, stack = 0x30004048, nargsf = 
804395376, kwnames = (nil)), line 411 in "call.c"
_PyEval_EvalFrameDefault(tstate = 0x100759a4, f = (nil), throwflag = 
804395568), line 487 in "abstract.h"
function_code_fastcall(tstate = 0x300418bc, co = (nil), args = 0x3000c220, 
nargs = 805664616, globals = (nil)), line 41 in "pycore_ceval.h"
_PyEval_EvalFrameDefault(tstate = 0x100759a4, f = 0x30087c08, throwflag = 
804395904), line 487 in "abstract.h"
function_code_fastcall(tstate = 0x30086520, co = 0x3004c070, args = 0x2000abe8, 
nargs = 1, globals = 0x30049ec0), line 41 in "pycore_ceval.h"
_PyEval_EvalFrameDefault(tstate = (nil), f = 0x0001, throwflag = 
804396240), line 487 in "abstract.h"
function_code_fastcall(tstate = 0x3004389c, co = 0x30031176, args = 0x30031160, 
nargs = 805626736, globals = (nil)), line 41 in "pycore_ceval.h"
_PyEval_EvalFrameDefault(tstate = 0x100759a4, f = 0x20063c48, throwflag = 
804396576), line 487 in "abstract.h"
function_code_fastcall(tstate = 0x0082, co = 0x0087, args = 0x2ff21e90, 
nargs = 0, globals = 0x3004c070), line 41 in "pycore_ceval.h"
_PyEval_EvalFrameDefault(tstate = 0x102f4474, f = (nil), throwflag = 
804397104), line 487 in "abstract.h"
function_code_fastcall(tstate = 0x3004ca50, co = 0x3004c688, args = 0x2ff21ff0, 
nargs = 537163844, 

[issue41176] revise Tkinter mainloop dispatching flag behavior

2020-07-05 Thread Richard Sheridan


Richard Sheridan  added the comment:

I'd like to consider one more possibility for future behavior that sort of came 
to mind while discussing the PR. In current behavior, it is possible to use 
`willdispatch` to trick `WaitForMainloop` into letting a thread pass through 
the timeout, where it will eventually wait on a `Tcl_ConditionWait` in 
`Tkapp_ThreadSend`. 

This could be very efficient default behavior, since no polling is required; 
the thread just goes when the loop comes up. Is it possible to make this a 
well-documented feature and default behavior of tkinter? Or would it be too 
surprising for new and existing users? It would be important to make sure that 
threads aren't silently getting lost in old programs and new users can figure 
out they need to call `mainloop`, `doonevent`, or `update` when not on the REPL 
or the thread will hang.

--

___
Python tracker 

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



[issue39542] Cleanup object.h header

2020-07-05 Thread Łukasz Langa

Łukasz Langa  added the comment:

Good catch, Raymond. I'll mark this as a release blocker to ensure I don't miss 
it. The last beta is scheduled for July 20th. Is this enough time for you? I 
would very much like to avoid refactors of any sort during the release 
candidate stage.

--
priority: high -> release blocker
resolution: fixed -> 

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Stefan Krah


Change by Stefan Krah :


--
nosy: +skrah

___
Python tracker 

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



[issue41215] AIX: build fails for xlc/xlC since new PEG parser

2020-07-05 Thread Michael Felt


New submission from Michael Felt :

As the bots were both running - based on gcc - this was not noticed immediately.

issue40334 implements PEP 617, the new PEG parser for CPython.

Using bisect I located:

commit c5fc15685202cda73f7c3f5c6f299b0945f58508 (HEAD, refs/bisect/bad)
Author: Pablo Galindo 
Date:   Wed Apr 22 23:29:27 2020 +0100

bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)

Co-authored-by: Guido van Rossum 
Co-authored-by: Lysandros Nikolaou 

+++ the make status (abbreviated) is:
root@x066:[/data/prj/python/py39-3.10]slibclean; rm -rf *; buildaix 
--without-computed-gotos; print; date; ./python -E -S -m sysconfig 
--generate-posix-vars; ./python
+ CPPFLAGS="-I/opt/include" CFLAGS="-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5"\
../git/py39-3.10/configure\
--prefix=/opt \
--sysconfdir=/var/py39/etc\
--sharedstatedir=/var/py39/com\
--localstatedir=/var/py39\
--mandir=/usr/share/man\
--infodir=/opt/share/info/py39 --without-computed-gotos\
> .buildaix/configure.out
+ /usr/bin/make > .buildaix/make.out
1500-016: (W) WARNING: Compiler problem occurred while compiling 
_PyPegen_clear_memo_statistics: A file or directory in the path name does not 
exist..
1500-034: (S) Cannot create object file.
make: 1254-004 The error code from the last command is 1.

+++ The complete make.out (stdout) is:
root@x066:[/data/prj/python/py39-3.10]cat .buildaix/make*
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Programs/python.o ../git/py39-3.10/Programs/python.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/acceler.o ../git/py39-3.10/Parser/acceler.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/grammar1.o ../git/py39-3.10/Parser/grammar1.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/listnode.o ../git/py39-3.10/Parser/listnode.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/node.o ../git/py39-3.10/Parser/node.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/parser.o ../git/py39-3.10/Parser/parser.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/token.o ../git/py39-3.10/Parser/token.c
xlc_r -c  -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5
-I../git/py39-3.10/Include/internal -IObjects -IInclude -IPython -I. 
-I../git/py39-3.10/Include -I/opt/include -I/opt/include  -DPy_BUILD_CORE -o 
Parser/pegen/pegen.o ../git/py39-3.10/Parser/pegen/pegen.c

***
After 
commit a25f3c4c8f7d4878918ce1d3d67db40ae255ccc6 (HEAD)
Author: Pablo Galindo 
Date:   Thu Apr 23 01:38:11 2020 +0100

bpo-40334: Fix builds outside the source directory and regenerate autoconf 
files (GH-19667)

/bin/sh: 7405692 Segmentation fault(coredump)
make: 1254-004 The error code from the last command is 139.


Stop.
/usr/bin/make returned an error

Sun Jul  5 11:23:39 UTC 2020
Segmentation fault(coredump)
Python 3.9.0a5+ (default, Jul  5 2020, 11:23:33) [C] on aix
Type "help", "copyright", "credits" or "license" for more information.

***
The above includes 

aixtools@x064:[/data/prj/python/git/py39-3.10]git checkout 
458004bf7914f96b20bb76bc3584718cf83f652e
Previous HEAD position was a25f3c4c8f bpo-40334: Fix builds outside the source 
directory and regenerate autoconf files (GH-19667)
HEAD is now at 458004bf79 bpo-40334: Fix errors in p

[issue39168] Generic type subscription is a huge toll on Python performance

2020-07-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20483
pull_request: https://github.com/python/cpython/pull/21335

___
Python tracker 

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



[issue41214] -O0: Segmentation fault in _PyArg_UnpackStack

2020-07-05 Thread Vincent LE GARREC


New submission from Vincent LE GARREC :

In Gentoo, I compile my system with -O0

When I compile Apache Serf, python 3.7.8 crashes. When I compile python 3.7 
with -O2, python don't crash when compiling Serf.

It's the first time that -O0 causes program crash.

I run test suite, I don't have any problem.

Please find enclosed the backtrace.

I can reproduce every time so if you want me to do some tests, I can do it.

I already report it to Gentoo (https://bugs.gentoo.org/730312) but it seems 
it's not related to them.

--
files: backtrace.log.gz
messages: 373026
nosy: Vincent LE GARREC
priority: normal
severity: normal
status: open
title: -O0: Segmentation fault in _PyArg_UnpackStack
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file49298/backtrace.log.gz

___
Python tracker 

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2020-07-05 Thread Peter Wu


Peter Wu  added the comment:

I just ran into this issue on Linux when piping a binary file to stdin resulted 
in a UnicodeDecodeError while trying to read a byte from the stream. Passing 
/dev/stdin is a workaround that does not require modifications to an 
application.

As for the proposed PR 13165, I'd suggest to gracefully fallback to normal 
stdout/stdin if the buffer is not available. That approach is also followed in 
the fileinput module, and takes care of the note for library developers in the 
documentation at https://docs.python.org/3/library/sys.html#sys.stdin

Not feeling particular strong about the graceful handling, but I hope that the 
test code can be simplified in that case.

--
nosy: +lekensteyn

___
Python tracker 

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



[issue41210] LZMADecompressor.decompress(FORMAT_RAW) truncate output when input is paticular LZMA+BCJ data

2020-07-05 Thread Ma Lin


Change by Ma Lin :


--
components: +Library (Lib) -Extension Modules
nosy: +malin

___
Python tracker 

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



[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread Ned Deily


Change by Ned Deily :


--
assignee:  -> ned.deily

___
Python tracker 

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



[issue36302] distutils creates unreproducible .so files

2020-07-05 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

An unfortunate side effect of this change is that changes the build order even 
if the source list order is relevant. 

In particular, I sort the source list by age when working on larger extensions, 
this makes sure that the source files I edited last get compiled first, which 
speeds up edit/build cycles.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue41213] Cannot locate MSBuild.exe on PATH or as MSBUILD variable

2020-07-05 Thread Amine


Amine  added the comment:

I added the path manually to env variables. and this particular issue has been 
resolved

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



[issue26205] Inconsistency concerning nested scopes

2020-07-05 Thread Vedran Čačić

Vedran Čačić  added the comment:

Just to point out: it can be more than four, right? If you have a function aa 
within a function bb within a function cc, then bb's and cc's scope are 
different, even though functionally equivalent from the perspective of aa.

--
nosy: +veky

___
Python tracker 

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



[issue40874] Update to libmpdec-2.5.0

2020-07-05 Thread Stefan Krah


Stefan Krah  added the comment:

Thanks for taking a look, Antoine.

IIRC, the version pinning already accommodates Debian:

#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x0205
  #error "libmpdec version >= 2.5.0 required"
#endif


In the first libmpdec versions, I had a stricter equality check,
and I *think* (but I'm not 100% sure) that it was Matthias who
requested the relaxation.


Based on that, perhaps Debian should just use 2.5.0 for both
3.8 and 3.9 in the transition period.


I'm more comfortable with 3.8 using 2.5.0 than 3.9 using 2.4.2.

--

___
Python tracker 

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



[issue41213] Cannot locate MSBuild.exe on PATH or as MSBUILD variable

2020-07-05 Thread Amine


New submission from Amine :

I am running windows10. I HAVE to use python 3.6 for a project
downloaded it and followed the instructions in PCBuild/readme.txt
and I got the following output: (I would like to mention i checked this issue 
#33675 but I had no idea what is it talking about, am not using a "Buildbot")

C:\Users\Amine\Downloads\Python-3.6.11\Python-3.6.11\PCbuild>build.bat -e
Using 
"C:\Users\Amine\Downloads\Python-3.6.11\Python-3.6.11\PCbuild\\..\externals\pythonx86\tools\python.exe"
 (found in externals directory)  
Fetching external libraries...
bzip2-1.0.6 already exists, skipping.
openssl-1.0.2q already exists, skipping.
sqlite-3.21.0.0 already exists, skipping.
tcl-core-8.6.6.0 already exists, skipping.
tk-8.6.6.0 already exists, skipping.
tix-8.4.3.6 already exists, skipping.
xz-5.2.2 already exists, skipping.
Fetching external binaries...
nasm-2.11.06 already exists, skipping.
Finished.
Cannot locate MSBuild.exe on PATH or as MSBUILD variable

C:\Users\Amine\Downloads\Python-3.6.11\Python-3.6.11\PCbuild>

--
components: Windows
messages: 373020
nosy: Amen8, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Cannot locate MSBuild.exe on PATH or as MSBUILD variable
type: compile error
versions: Python 3.6

___
Python tracker 

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



[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread SilentGhost


Change by SilentGhost :


--
components: +macOS
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread Ben Griffin

New submission from Ben Griffin :

https://stackoverflow.com/questions/62713741/tkinter-and-32-bit-unicode-duplicating-any-fix

Emoji are doubling up when using canvas.create_text()
This is reported to work on tcl/tk 8.6.10 but there’s no. Way to upgrade tcl/tk 
using the standard installs from the python.org site

--
components: Tkinter
files: Emoji.py.txt
messages: 373019
nosy: Ben Griffin
priority: normal
severity: normal
status: open
title: Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49297/Emoji.py.txt

___
Python tracker 

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



[issue39765] asyncio loop.add_signal_handler() may not behave as expected

2020-07-05 Thread LtWorf


LtWorf  added the comment:

This looks related to: https://bugs.python.org/issue32443

--
nosy: +tiposchi

___
Python tracker 

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



[issue41111] Convert a few stdlib extensions to the limited C API

2020-07-05 Thread pmp-p


Change by pmp-p :


--
nosy: +pmpp

___
Python tracker 

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