[issue896330] pyconfig.h is not placed in --includedir

2020-06-30 Thread Mario Gonzalez


Mario Gonzalez  added the comment:

hey u, send mi a mail, u need my help
and i need u 
mario the last one
mario.cro...@gmail.com

--
nosy: +Mario Gonzalez

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I reread Nick's comment "the C level loop simply blocks on stdin, waiting until 
the parser spits out a complete AST."  I interpret that now as meaning that the 
REPL compiles user code only once per statement, which IDLE and 
code.InteractiveInterpreter compile a statement once per line, which codeop 
expands to 3 compiles in an attempt to determine whether more is needed.  This 
can all be considered to be a hack, so adding 1 more does not bother me now.

(Side note: if the first compile succeeds in producing a code object, it is 
unconditionally returned after the additional compiles, so they seem like a 
waste.)

I looked at a git blame listing for codeop.  It was extracted from code by 
Guido in 1998 so that Jython (JPython) could replace compile_command.  It was 
not revised after the addition of nonlocal broke it.

I traced the flow of calls from when a user hits  in the entry area to 
the call of compile, and of the returns back.  The attached 
idle-shell-compile.txt records what I found.  Of particular interest to me:

1. IDLE strips trailing ' 's, '\t's, and 1 '\n' from user input before sending 
it to be compiled. (This goes back to the original IDLE commit in 2000.) So 
there is a trailing '\n' only when the user has hit '' twice to complete 
a compound statement.  It would solve this issue *for IDLE* to only print the 
nonlocal error message when there is a trailing '\n'.  I am willing to give up 
the special casing needed to get 'def a():\n  nonlocal c' (no double , 
no trailing '\n') to raise immediately.

Nothing in code says that it expects source to be stripped as IDLE does.  The 
reason for the latter might just be to get rid of the 'smart indent' that will 
precede the first Enter, and possibly anything the user adds before the second. 
 

2. compile is passed the undocumented flag PyCF_DONT_IMPLY_DEDENT = 0x200.  Can 
anyone explain the full intent?  I found this difference.

>>> compile("def f():\n  nonlocal c", '', 'single')
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2
SyntaxError: no binding for nonlocal 'c' found

# Same code, flag added, different message.
>>> compile("def f():\n  nonlocal c", '', 'single', 0x200)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2
nonlocal c
 ^
SyntaxError: unexpected EOF while parsing

# Add '\n' and message is same as without flag.
>>> compile("def f():\n  nonlocal c\n", '', 'single', 0x200)
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 2
SyntaxError: no binding for nonlocal 'c' found

To use the message difference, the first compile-with-flag message would have 
to be saved for comparison, and the difference would only appear if source had 
no trailing '\n'.  We could make that be true, or we could wait until another 
user of codeop complains.

--
Added file: https://bugs.python.org/file49282/idle-shell-compile.txt

___
Python tracker 

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



[issue41179] find_library on macOS Big Sur

2020-06-30 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +20400
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21250

___
Python tracker 

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



[issue41179] find_library on macOS Big Sur

2020-06-30 Thread Sumanth Ratna

New submission from Sumanth Ratna :

The following all return None on macOS Big Sur, but return a valid path (str) 
on macOS Catalina:

python3.6 -c "from ctypes import util; print(util.find_library('objc'))"
python3.7 -c "from ctypes import util; print(util.find_library('objc'))"
python3.8 -c "from ctypes import util; print(util.find_library('objc'))"

The solution I'm thinking of is using platform.mac_ver() in 
ctypes.util.find_library to see if the macOS version is either 10.16 or 11.0; 
if so, use an alternative method to locate the path of the library 
somehow—else, use the current functionality. I'm hoping that looking in 
/System/Library/Frameworks/ is enough. 

>From the macOS Big Sur release notes 
>(https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11-beta-release-notes):

> New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker 
> cache of all system-provided libraries. As part of this change, copies of 
> dynamic libraries are no longer present on the filesystem. Code that attempts 
> to check for dynamic library presence by looking for a file at a path or 
> enumerating a directory will fail. Instead, check for library presence by 
> attempting to `dlopen()` the path, which will correctly check for the library 
> in the cache. (62986286)

Related links:
- https://bugs.python.org/issue41116 (this is a build issue, but is related I 
think)
- 
https://stackoverflow.com/questions/62587131/macos-big-sur-python-ctypes-find-library-does-not-find-libraries-ssl-corefou
- 
https://www.reddit.com/r/MacOSBeta/comments/hfknpa/is_corefoundation_missing_for_everyone_on_big_sur/
- https://github.com/vispy/vispy/issues/1885
- https://github.com/napari/napari/issues/1393
- https://github.com/espressif/esptool/issues/540


This is my first issue in Python; sorry in advance if I've made a mistake 
anywhere.

--
components: ctypes
messages: 372728
nosy: Sumanth Ratna
priority: normal
severity: normal
status: open
title: find_library on macOS Big Sur
type: behavior
versions: Python 3.6, 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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Lawrence D'Anna


Change by Lawrence D'Anna :


--
pull_requests: +20399
pull_request: https://github.com/python/cpython/pull/21249

___
Python tracker 

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



[issue41170] Use strnlen instead of strlen when the size i known.

2020-06-30 Thread Eric V. Smith


New submission from Eric V. Smith :

Is strnlen() supported by all of the compilers we care about?

--
nosy: +eric.smith

___
Python tracker 

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



[issue41178] Registry writes on Windows Store - workaround

2020-06-30 Thread DataGhost


New submission from DataGhost :

I just installed the Windows Store version of Python (v3.8.3:6f8c832) on 
Windows 10.0.18362.900 (1903, old VM) and quickly ran into the issue that 
registry writes aren't visible system-wide. I later found a remark about this 
in the Known Issues section of the Using Python on Windows page. Real-world 
scenario: running "python -m pip install --user pipx" and subsequently "python 
-m pipx ensurepath" says it changed the PATH variable, but it does not take 
effect even after a reboot. I'd say this is one of the cases where a user might 
not know about what's going on and why it fails, even after reading the known 
issues, and the developer might not have thought of the existence or 
incompatibility of the Windows Store version of Python at all.

I have found a workaround to do this, though, and I figured the best place to 
do that is in the actual winreg module so that users and developers don't need 
to worry about this. Calling reg.exe allows registry variables to be written in 
the "normal" registry, and these changes are system-wide rather than in the 
private copy Store apps use. Some functions could be changed to use the reg.exe 
binary instead of the system calls on Windows Store builds. Other functions, 
such as for querying, don't need any changes.

I realise this is an ugly workaround so I'm just suggesting it in hopes of 
improving compatibility, so that users and developers don't need to worry about 
these issues anymore. I did some basic tests on this, by executing reg.exe 
through the subprocess module, and testing for a Windows Store instance by 
checking sys.base_exec_prefix. There are probably better ways but at least this 
shows that it should be possible in just Python.

--
components: Windows
messages: 372726
nosy: DataGhost, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Registry writes on Windows Store - workaround
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-06-30 Thread Wator Sead


Wator Sead  added the comment:

I did not build it, just download the Windows pre-built releases.

Can make a consistent behave via constraints it? socket.socket accepted it, but 
socket.inet_pton did not.

--

___
Python tracker 

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



[issue41177] ConvertingList and ConvertingTuple lack iterators and ConvertingDict lacks items()

2020-06-30 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +20398
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21248

___
Python tracker 

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



[issue41177] ConvertingList and ConvertingTuple lack iterators and ConvertingDict lacks items()

2020-06-30 Thread Brett Hannigan


New submission from Brett Hannigan :

The logging.config module uses three internal data structures to hold items 
that may need to be converted to a handler or other object: ConvertingList, 
ConvertingTuple, and ConvertingDict.

These three objects provide interfaces to get converted items using the 
__getitem__ methods. However, if a user tries to iterate over items in the 
container, they will get the un-converted entries.

--
components: Library (Lib)
messages: 372724
nosy: Brett Hannigan
priority: normal
severity: normal
status: open
title: ConvertingList and ConvertingTuple lack iterators and ConvertingDict 
lacks items()
type: enhancement
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



[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-06-30 Thread Christian Heimes


Christian Heimes  added the comment:

I can reproduce the problem with 3.6 and even Python versions as old as 3.4:

Python 3.4.10rc1+ (default, Jun 30 2020, 23:15:25) 
[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.inet_pton(socket.AF_INET6,'[::]')
Traceback (most recent call last):
  File "", line 1, in 
OSError: illegal IP address string passed to inet_pton

Python is just mapping inet_pton(3) return value 0 to an exception. It might be 
possible that your libc has changed behavior.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue38782] Convert importlib.abc to use typing.Protocol

2020-06-30 Thread Zackery Spytz


Change by Zackery Spytz :


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

___
Python tracker 

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



[issue41176] revise Tkinter mainloop dispatching flag behavior

2020-06-30 Thread Richard Sheridan


New submission from Richard Sheridan :

This could also be considered a "behavior" type issue.

`TkappObject` has a member `dispatching` that could usefully be exposed by a 
very simple read-only method for users to determine at runtime if the tkinter 
mainloop is running. Matplotlib and I'm sure other packages rely on fragile 
hacks 
(https://github.com/matplotlib/matplotlib/blob/a68562aa230e5895136120f5073dd01f124d728d/lib/matplotlib/cbook/__init__.py#L65-L71)
 to determine this state. I ran into this in 
https://github.com/matplotlib/matplotlib/pull/17802. All these projects would 
be more reliable with a new "dispatching()" method on the TkappObject, 
tkinter.Misc objects, and possibly the tkinter module itself.

Internally, `dispatching` is used to, yes, determine if the mainloop is 
running. However, this determination is always done within the 
`WaitForMainloop` function 
(https://github.com/python/cpython/blob/bd4a3f21454a6012f4353e2255837561fc9f0e6a/Modules/_tkinter.c#L363-L380),
 which waits up to 1 second for the mainloop to come up. Apparently, this 
function allows a thread to implicitly wait for the loop to come up by calling 
any `TkappObject` method. This is a bad design choice in my opinion, because if 
client code wants to start immediately and the loop is not started by mistake, 
there will be a meaningless, hard-to-diagnose delay of one second before 
crashing. Instead, if some client code in a thread needs to wait for the 
mainloop to run, it should explicitly poll `dispatching()` on its own. This 
waiting behavior should be deprecated and, after a deprecation cycle perhaps, 
all `WaitForMainloop()` statements should be converted to inline 
`self->dispatching`.

The correctness of the `dispatching` flag is dampened by the currently 
existing, undocumented `willdispatch` method which simply arbitrarily sets the 
`dispatching` to 1. It seems `willdispatch` was added 18 years ago to 
circumvent a bug building pydoc caused by `WaitForMainloop` not waiting long 
enough, as it tricks `WaitForMainloop` into... not waiting for the mainloop. 
This was in my opinion a bad choice in comparison to adding a dispatching flag: 
again, if some thread needs to wait for the mainloop, it should poll 
`dispatching()`, and avoid adding spurious 1 second waits. `willdispatch` 
currently has no references in CPython and most GitHub references are to 
Pycharm stubs for the CPython method. It should be deprecated and removed to 
preserve the correctness of `dispatching`.

Happy to make a PR about this, except I don't understand clinic at all, nor the 
specifics of deprecation cycles in CPython.

--
components: Tkinter
messages: 372722
nosy: Richard Sheridan
priority: normal
severity: normal
status: open
title: revise Tkinter mainloop dispatching flag behavior
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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Ned Deily


Ned Deily  added the comment:


New changeset cfc7ff8d05f7a949a88b8a8dd506fb5c1c30d3e9 by Tapas Kundu in branch 
'3.6':
[3.6] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface 
(GH-21033) (GH-21232)
https://github.com/python/cpython/commit/cfc7ff8d05f7a949a88b8a8dd506fb5c1c30d3e9


--

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Ned Deily


Ned Deily  added the comment:


New changeset b98e7790c77a4378ec4b1c71b84138cb930b69b7 by Tapas Kundu in branch 
'3.7':
[3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface 
(GH-21033) (GH-21231)
https://github.com/python/cpython/commit/b98e7790c77a4378ec4b1c71b84138cb930b69b7


--

___
Python tracker 

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



[issue41161] libmpdec-2.5.0 update is missing news entry

2020-06-30 Thread Stefan Krah


Change by Stefan Krah :


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



[issue41161] libmpdec-2.5.0 update is missing news entry

2020-06-30 Thread Stefan Krah


Stefan Krah  added the comment:


New changeset c84d3fe6b3301c7fd4a82e63fb4d545a7b9df84b by Miss Islington (bot) 
in branch '3.9':
bpo-41161 Add news entry for libmpdec-2.5.0  (GH-21243) (#21244)
https://github.com/python/cpython/commit/c84d3fe6b3301c7fd4a82e63fb4d545a7b9df84b


--

___
Python tracker 

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



[issue41161] libmpdec-2.5.0 update is missing news entry

2020-06-30 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +20396
pull_request: https://github.com/python/cpython/pull/21244

___
Python tracker 

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



[issue41161] libmpdec-2.5.0 update is missing news entry

2020-06-30 Thread Stefan Krah


Stefan Krah  added the comment:


New changeset 1648c99932f39f1c60972bb114e6a7bd65523818 by Stefan Krah in branch 
'master':
bpo-41161 Add news entry for libmpdec-2.5.0  (GH-21243)
https://github.com/python/cpython/commit/1648c99932f39f1c60972bb114e6a7bd65523818


--

___
Python tracker 

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



[issue33346] Syntax error with async generator inside dictionary comprehension

2020-06-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Yeah, I am +1 on moving this and on the current solution in PR6766

--

___
Python tracker 

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



[issue41161] libmpdec-2.5.0 update is missing news entry

2020-06-30 Thread Stefan Krah


Change by Stefan Krah :


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

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Lawrence D'Anna


Lawrence D'Anna  added the comment:

I've created 3 patches for ctypes

* use system libffi instead of vendored one on Mac OS 10.15 and up
* use correct ABI for variadic functions on arm64
* check for libs in the dyld shared cache

With those, test_ctypes should all pass on arm64

--

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Lawrence D'Anna


Change by Lawrence D'Anna :


--
pull_requests: +20394
pull_request: https://github.com/python/cpython/pull/21242

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Lawrence D'Anna


Change by Lawrence D'Anna :


--
pull_requests: +20393
pull_request: https://github.com/python/cpython/pull/21241

___
Python tracker 

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



[issue41175] Static analysis issues reported by GCC 10

2020-06-30 Thread Charalampos Stratakis


Change by Charalampos Stratakis :


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

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

first case -> second case

--

___
Python tracker 

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



[issue41175] Static analysis issues reported by GCC 10

2020-06-30 Thread Charalampos Stratakis

Charalampos Stratakis  added the comment:

First issue in Objects/bytearrayobject.c [0].

warning: use of NULL ‘’ where non-null expected [CWE-690] 
[-Wanalyzer-null-argument]
  277 | memcpy(result->ob_bytes, va.buf, va.len);

[0] https://github.com/python/cpython/blob/master/Objects/bytearrayobject.c#L277

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> At least the fact that the SyntaxError message is some for both of

Well, is the same because the semantics are the same: a symbol is missing in 
the expected scopes. The only difference is that in the first case is not even 
possible to "fix it" because that scope cannot exist if the function is not 
'nested'. But I do agree that it may be some value on specializing the error 
message to that case (but is not enough to have the nesting, you would need 
also to add a variable - the error is really 'you need a symbol in an 
intermediate scope' -> 'Oh, i don't even have an intermediate scope' -> 'then 
*first* you need to add an intermediate scope). Although this particular 
problem is indeed different from the main one (the one about codeop).

--

___
Python tracker 

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



[issue40223] Add -fwrapv for new icc versions

2020-06-30 Thread Stefan Krah


Stefan Krah  added the comment:

It looks like a compiler bug (line numbers are after macro expansion):


#0  0x006ea678 in _PyEval_EvalFrameDefault (f=0x886d20 
<_PyRuntime+352>, throwflag=-8) at Python/ceval.c:35554
#1  0x0057167b in _PyEval_EvalCodeWithName (_co=0x886d20 
<_PyRuntime+352>, globals=0xfff8, locals=0x, 
args=0x1, argcount=9370836, kwnames=0x0, kwargs=0x90bd90, kwcount=0, kwstep=1, 
defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x8f05a0, 
qualname=0x8f05a0) at Python/ceval.c:33634
#2  0x0043a693 in _PyFunction_FastCallKeywords (func=0x886d20 
<_PyRuntime+352>, stack=0xfff8, nargs=-1, kwnames=0x1) at 
Objects/call.c:433
#3  0x006e65f5 in call_function (pp_stack=0x886d20 <_PyRuntime+352>, 
oparg=-8, kwnames=0x) at Python/ceval.c:37762
#4  0x006eb7a8 in _PyEval_EvalFrameDefault (f=0x886d20 
<_PyRuntime+352>, throwflag=-8) at Python/ceval.c:36385
#5  0x0057167b in _PyEval_EvalCodeWithName (_co=0x886d20 
<_PyRuntime+352>, globals=0xfff8, locals=0x, 
args=0x1, argcount=9370836, kwnames=0x0, kwargs=0x0, kwcount=0, kwstep=2, 
defs=0x0, 
defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at 
Python/ceval.c:33634
#6  0x00571e41 in PyEval_EvalCodeEx (_co=0x886d20 <_PyRuntime+352>, 
globals=0xfff8, locals=0x, args=0x1, 
argcount=9370836, kws=0x0, kwcount=2, defs=0x0, defcount=0, kwdefs=0x0, 
closure=0x0)
at Python/ceval.c:37166
#7  0x006bdb95 in builtin___build_class__ (self=0x886d20 
<_PyRuntime+352>, args=0xfff8, nargs=-1, kwnames=0x1) at 
Python/bltinmodule.c:221
#8  0x0043a41e in _PyMethodDef_RawFastCallKeywords (method=0x886d20 
<_PyRuntime+352>, self=0xfff8, args=0x, nargs=1, 
kwnames=0x8efcd4) at Objects/call.c:656
#9  0x0043ada6 in _PyCFunction_FastCallKeywords (func=0x886d20 
<_PyRuntime+352>, args=0xfff8, nargs=-1, kwnames=0x1) at 
Objects/call.c:730
#10 0x006e6a64 in call_function (pp_stack=0x886d20 <_PyRuntime+352>, 
oparg=-8, kwnames=0x) at Python/ceval.c:37714
#11 0x006eb7a8 in _PyEval_EvalFrameDefault (f=0x886d20 
<_PyRuntime+352>, throwflag=-8) at Python/ceval.c:36385
#12 0x0057167b in _PyEval_EvalCodeWithName (_co=0x886d20 
<_PyRuntime+352>, globals=0xfff8, locals=0x, 
args=0x1, argcount=9370836, kwnames=0x0, kwargs=0x0, kwcount=0, kwstep=2, 
defs=0x0, 
defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at 
Python/ceval.c:33634
#13 0x00570c52 in PyEval_EvalCodeEx (_co=, 
globals=, locals=, args=, 
argcount=, kws=, kwcount=, 
defs=, defcount=, kwdefs=, 
closure=) at Python/ceval.c:37166
#14 PyEval_EvalCode (co=0x886d20 <_PyRuntime+352>, globals=0xfff8, 
locals=0x) at Python/ceval.c:33611
#15 0x005b20ba in exec_code_in_module (name=, 
module_dict=, code_object=) at Python/import.c:952
#16 PyImport_ImportFrozenModuleObject (name=) at 
Python/import.c:1357
#17 PyImport_ImportFrozenModule (name=0x886d20 <_PyRuntime+352> "\020\023\216") 
at Python/import.c:1376
#18 0x005ca1f7 in _Py_InitializeCore_impl (interp_p=0xfff8, 
core_config=0x) at Python/pylifecycle.c:197
#19 0x005c9be5 in _Py_InitializeCore (interp_p=0xfff8, 
src_config=0x) at Python/pylifecycle.c:745
#20 0x00429859 in pymain_init (pymain=0x886d20 <_PyRuntime+352>, 
interp_p=0xfff8) at Modules/main.c:1733
#21 0x00428ddf in pymain_main (pymain=) at 
Modules/main.c:1753
#22 _Py_UnixMain (argc=8940832, argv=0xfff8) at Modules/main.c:1792
#23 0x77c90f43 in __libc_start_main () from /lib64/libc.so.6
#24 0x0042652e in _start ()


In frame 13 argcount is still 0:

#13 0x00570c52 in PyEval_EvalCodeEx (_co=, 
globals=, locals=, args=, 
argcount=, kws=, kwcount=, 
defs=, defcount=, kwdefs=, 
closure=) at Python/ceval.c:37166
37166   return _PyEval_EvalCodeWithName(_co, globals, locals,
(gdb) l
37161 PyObject *const *kws, int kwcount,
37162 PyObject *const *defs, int defcount,
37163 PyObject *kwdefs, PyObject *closure)
37164   {
37165   if (argcount != 0) abort();
37166   return _PyEval_EvalCodeWithName(_co, globals, locals,
37167   args, argcount,
37168   kws, kws != ((void*)0) ? kws + 1 : 
((void*)0),
37169   kwcount, 2,
37170   defs, defcount,


In frame 12 it looks uninitialized:

(gdb) f 12
#12 0x0057167b in _PyEval_EvalCodeWithName (_co=0x886d20 
<_PyRuntime+352>, globals=0xfff8, locals=0x, 
args=0x1, argcount=9370836, kwnames=0x0, kwargs=0x0, kwcount=0, 

[issue41175] Static analysis issues reported by GCC 10

2020-06-30 Thread Charalampos Stratakis


New submission from Charalampos Stratakis :

GCC added a static analysis tool recently [0].

Running it under for CPython code base produces some interesting results.

Reproducer: ./configure --with-pydebug && CFLAGS='-fanalyzer' make

Attaching the log.

[0] https://developers.redhat.com/blog/2020/03/26/static-analysis-in-gcc-10/

--
files: debugstaticanalysis.txt
messages: 372711
nosy: cstratak
priority: normal
severity: normal
status: open
title: Static analysis issues reported by GCC 10
versions: Python 3.10, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49281/debugstaticanalysis.txt

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

some -> same

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

That's right, but the SyntaxError message is somewhat confusing. At least the 
fact that the SyntaxError message is some for both of

def a():
def b():
nonlocal x

and 

def a():
nonlocal x

seems a bit misleading. No?

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

>1) We should alter code in symtable.c to check whether the namespace in which 
>the nonlocal statement appears in is a function block and whether it is nested 
>or not.

Also, the 'nesting' has very specific meanings in the symbol table: scoping. 
The validity of the keyword translates there if is able to find a variable in 
the enclosing intermediate scope (when its not the global one).

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> 1) We should alter code in symtable.c to check whether the namespace in which 
> the nonlocal statement appears in is a function block and whether it is 
> nested or not.

We already raise in this case. Consider this 'test.py' file:

x = 34
def f():
nonlocal x
x = 24

f()

Executing python test.py:


  File "test.py", line 3
nonlocal x
^
SyntaxError: no binding for nonlocal 'x' found

--

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Lawrence D'Anna


Change by Lawrence D'Anna :


--
pull_requests: +20391
pull_request: https://github.com/python/cpython/pull/21239

___
Python tracker 

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



[issue41174] asyncio.coroutine decorator returns a non-generator function when using PYTHONASYNCIODEBUG

2020-06-30 Thread Allan Feldman


New submission from Allan Feldman :

This code behaves differently when PYTHONASYNCIODEBUG=1

import asyncio
import inspect


@asyncio.coroutine
def foo():
yield from asyncio.sleep(0)


print("isgeneratorfunction:", inspect.isgeneratorfunction(foo))


PYTHONASYNCIODEBUG:
isgeneratorfunction: False

non-debug mode:
isgeneratorfunction: True


When in debug mode, the `asyncio.coroutine` decorator returns a function that 
is not a generator function 
(https://github.com/python/cpython/blob/bd4a3f21454a6012f4353e2255837561fc9f0e6a/Lib/asyncio/coroutines.py#L144)

The result is that introspection of functions is changed when 
PYTHONASYNCIODEBUG is enabled.

--
components: asyncio
messages: 372706
nosy: a-feld, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.coroutine decorator returns a non-generator function when using 
PYTHONASYNCIODEBUG
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



[issue40893] tkinter: integrate TkDND support

2020-06-30 Thread E. Paine


E. Paine  added the comment:

I think I have fixed the problem with the 'data' attribute (and related 
getlist_event method) by exposing two event data attributes. One of these is a 
'data_raw' attribute intended for use with text-based drops and the other is a 
'data_split' intended for file drops (see the new docs for details).

My original idea was to expose the 'tkapp.splitlist' method and just give them 
the content of what is now the 'data_raw' attribute. However, 
I decided that should be avoided and so settled on the current implementation 
of two new attributes.

Thanks everyone for the effort you have already put into this and I know that 
there is a lot added in this PR but I would really appreciate some reviews to 
get it to a more commit-ready state (there is inevitably lots to be improved - 
I also apologise for saying 'appreciate' in almost every message :-).

--

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:

I reported the issue to Sphinx:
"C domain changes of Sphinx 3 prevent to write doc compatible with Sphinx 2 and 
Sphinx 3"
https://github.com/sphinx-doc/sphinx/issues/7899

--

___
Python tracker 

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



[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard


Change by William Pickard :


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

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

I feel that I wasn't clear at all in my previous responses, so let me try to 
have another go at explaining how I see this:

We have two distinct problems, that are totally unrelated to one another:

1) nonlocal should raise when it's not in a nested function (question for the 
more experienced here: is this the *only* place where nonlocal is allowed?)

2) comc should return None, signifying an incomplete input, when presented with 
the bloack:

def a():
def b():
nonlocal c

because c, the variable, could be declared in a, the function, some time after 
the definition of b, the function, is done.

The way I see this, like I have expressed in my previous comments, is that 
whatever solution we come up with should not involve the parser, because it 
should not care about statement semantics. I'm not really sure what the best 
solutions are, but I'd propose the following for the problems I listed above:

1) We should alter code in symtable.c to check whether the namespace in which 
the nonlocal statement appears in is a function block and whether it is nested 
or not.

2) A check for the SyntaxError message to see if it comes from a nonlocal 
statement surely sounds like a hack, but I don't think that's a dealbreaker. 
I'd probably go with this rather than undergoing the effort of exposing the 
indentation stack in Python and then examining it in codeop.

Thoughts?

--

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:

In short, the current status is that IMHO it is not acceptable to support 
Sphinx 3. We cannot afford to break support with Sphinx 2.

--

___
Python tracker 

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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:

Making the Python documentation compatible with Sphinx 3.0 is causing multiple 
blocker issues.


(*) The first major problem is that new C domain markup like :c:struct: and 
:expr: are not recognized by Sphinx 2.4.4, but Sphinx 3.0 requires them. For 
example, a ".. c:struct:" section is completely hidden: treated as a comment.

I don't think that we can afford to drop Sphinx < 3 support since no Linux 
distribution uses Sphinx 3 yet. I see two options:

* Stay at Sphinx forever
* Backport the ":c:struct:" and ":c:expr:" markups somehow in Sphinx 2 using 
our CPython Sphinx extensions
* Update Sphinx 3 to tolerate our "incorrect" documentation using :c:type: and 
:c:type:`PyObject\*` (invalid C syntax), maybe as an opt-in option
* Update Sphinx 2 to support Sphinx 3 new syntax: something like Python 2.7 
which backported a few Python 3 features like b"bytes string" syntax


(*) The second major question is: should we backport these changes to Python 
3.8 and 3.9 branches? I consider that "supporting Sphinx 3" is a fix in the 
Python build system, and usually we do backport such changes, even if they can 
be seen as "new features". For me, it falls into the same category than 
supporting a newer version of C compiler.

PR 19397 makes tons of small changes. If we don't backport it, it will be very 
likely very painful to backport documentation changes. Julien Palard (who works 
on the documentation) suggests to backport the change. Usually, documentation 
changes are applied to all branches, not only master.

Again, right now, if we backport these changes, we would drop Sphinx 2 support.

--

___
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-06-30 Thread Julien Palard


Change by Julien Palard :


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

___
Python tracker 

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



[issue41173] Windows ARM buildbots cannot upload results

2020-06-30 Thread Steve Dower


New submission from Steve Dower :

Sample build: https://buildbot.python.org/all/#/builders/182/builds/773

The second last step is failing for some reason, probably because it doesn't 
have the file it needs.

--
components: Build, Windows
messages: 372700
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows ARM buildbots cannot upload results
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



[issue41172] test_peg_generator C tests fail on Windows ARM

2020-06-30 Thread Steve Dower


New submission from Steve Dower :

These tests rely on MSVC to do some building, but Windows ARM devices do not 
currently have a compiler toolset (you need to cross-compile).

We should skip these tests.

Sample build: https://buildbot.python.org/all/#/builders/182/builds/773

Sample traceback: 
==
ERROR: test_error_in_rules (test.test_peg_generator.test_c_parser.TestCParser)
--
Traceback (most recent call last):
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 404, in 
test_error_in_rules
self.run_test(grammar_source, test_source)
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 83, in 
run_test
self.build_extension(grammar_source)
  File "C:\python\lib\test\test_peg_generator\test_c_parser.py", line 80, in 
build_extension
generate_parser_c_extension(grammar, Path(self.tmp_path))
  File "C:\python\Tools\peg_generator\pegen\testutil.py", line 104, in 
generate_parser_c_extension
compile_c_extension(str(source), build_dir=str(path))
  File "C:\python\Tools\peg_generator\pegen\build.py", line 90, in 
compile_c_extension
cmd.run()
  File "C:\python\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
  File "C:\python\lib\distutils\command\build_ext.py", line 449, in 
build_extensions
self._build_extensions_serial()
  File "C:\python\lib\distutils\command\build_ext.py", line 474, in 
_build_extensions_serial
self.build_extension(ext)
  File "C:\python\lib\distutils\command\build_ext.py", line 529, in 
build_extension
objects = self.compiler.compile(sources,
  File "C:\python\lib\distutils\_msvccompiler.py", line 323, in compile
self.initialize()
  File "C:\python\lib\distutils\_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
  File "C:\python\lib\distutils\_msvccompiler.py", line 122, in _get_vc_env
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat

--
components: Tests, Windows
messages: 372699
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_peg_generator C tests fail on Windows ARM
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



[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:

This issue prevents to upgrade Sphinx to Sphinx 3 in Fedora Rawhide, at least 
it breaks the python3-docs package which is Python 3.9 documentation:
https://bugzilla.redhat.com/show_bug.cgi?id=1823898

--

___
Python tracker 

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



[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard


William Pickard  added the comment:

Another thing I thought of, if this is accepted, we can turn the "PyType" 
methods into header static inline methods.

--

___
Python tracker 

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



[issue41171] Create companion methods of "PyType_FromSpec*" to allow setting metaclass.

2020-06-30 Thread William Pickard


New submission from William Pickard :

The current goal from what I can tell for Python is to have all C based modules 
move away from static types and instead use "PyType_FromSpec" and the variant 
that specifies base classes.

The only problem is, PyType_FromSpec and it's variant makes the assumption the 
caller wants "PyType_Type" as the type's metaclass.

Why not add companion methods to them prefixed with "PyMetaType" and have the 
"PyType" ones internally invoke these new methods with "PyType_Type" as the 
metaclass (to keep existing behavior and backwards compatibility)

--
components: C API
messages: 372696
nosy: WildCard65
priority: normal
severity: normal
status: open
title: Create companion methods of "PyType_FromSpec*" to allow setting 
metaclass.
type: enhancement
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



[issue41170] Use strnlen instead of strlen when the size i known.

2020-06-30 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +20388
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21236

___
Python tracker 

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



[issue41170] Use strnlen instead of strlen when the size i known.

2020-06-30 Thread Niclas Larsson


Change by Niclas Larsson :


--
components: C API
nosy: Niclas Larsson
priority: normal
severity: normal
status: open
title: Use strnlen instead of strlen when the size i known.
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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Ned Deily


Ned Deily  added the comment:

A legitimate CVE should certainly be backported to all applicable releases, so, 
yes.  However, I think that it is important for the CVE to be mentioned in the 
NEWS blurbs for each commit.  So please update the NEWS items in each open PR 
to include the CVE. For master and 3.9 (if you hurry), you can update the 
original blurb file.  For 3.8, the blurb file is in the process of being merged 
into the blurb for the release; for it, wait until the v3.8.4rc1 has been 
merged back into the main cpython repo and then update the merged the blob, 
please.  Thanks!

--

___
Python tracker 

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



[issue38980] Compile libpython with -fno-semantic-interposition

2020-06-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-06-30 Thread Wator Sead


New submission from Wator Sead :

3.6:

>>> import socket
>>> socket.inet_pton(socket.AF_INET6,'[::]')
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'


3.7 and above:

>>> import socket
>>> socket.inet_pton(socket.AF_INET6,'[::]')
Traceback (most recent call last):
  File "", line 1, in 
OSError: illegal IP address string passed to inet_pton


Both:

>>> import socket
>>> addr = '[::1]', 888
>>> ls = socket.socket(socket.AF_INET6)
>>> cs = socket.socket(socket.AF_INET6)
>>> ls.bind(addr)  # no raise
>>> ls.listen(1)
>>> cs.connect(addr)  # no raise

--
components: Library (Lib)
messages: 372694
nosy: seahoh
priority: normal
severity: normal
status: open
title: socket.inet_pton raised when pass an IPv6 address like "[::]" to it
type: behavior
versions: 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



[issue38980] Compile libpython with -fno-semantic-interposition

2020-06-30 Thread hai shi


Change by hai shi :


--
nosy: +shihai1991

___
Python tracker 

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



[issue41073] [C API] PyType_GetSlot() should accept static types

2020-06-30 Thread hai shi


hai shi  added the comment:

> bpo-17162 added PyType_GetSlot(), but static types were not discussed there.
Thanks to correct my info. I paste this bpo just Larry have mentioned the 
static type in PyType_GetSlot() :)

--

___
Python tracker 

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



[issue39314] (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all

2020-06-30 Thread Dong-hee Na


Change by Dong-hee Na :


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



[issue39314] (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all

2020-06-30 Thread Dong-hee Na

Dong-hee Na  added the comment:


New changeset bd4a3f21454a6012f4353e2255837561fc9f0e6a by Rémi Lapeyre in 
branch 'master':
bpo-39314: Closes parenthesis when autocompleting for functions that take no 
arguments (GH-20562)
https://github.com/python/cpython/commit/bd4a3f21454a6012f4353e2255837561fc9f0e6a


--
nosy: +corona10

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0c4f0f3b29d84063700217dcf90ad6860ed71c70 by Hai Shi in branch 
'master':
bpo-40275: Use new test.support helper submodules in tests (GH-21169)
https://github.com/python/cpython/commit/0c4f0f3b29d84063700217dcf90ad6860ed71c70


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3ddc634cd5469550c0c2dc5a6051a70739995699 by Hai Shi in branch 
'master':
bpo-40275: Use new test.support helper submodules in tests (GH-21219)
https://github.com/python/cpython/commit/3ddc634cd5469550c0c2dc5a6051a70739995699


--

___
Python tracker 

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



[issue41129] Python extension modules fail to build on Mac 10.15.1 (Catalina)

2020-06-30 Thread Andrew


Andrew  added the comment:

The build steps were, unpack source, ./configure, make, using default settings 
on a company machine.

The configure_and_make_output.txt I attached should show the whole ./configure 
output. The only difference is that I was using xcode 11.0 for that output- the 
errors and behavior are identical though.

The error only seems to occur when building to a network location. This is most 
of our user space because we oftentimes do builds across platforms with the 
same source. Buliding at locations or out of source builds to /tmp or 
/Users/Shared works fine though. /mathworks is a network location which was 
originally mounted at root, but now we have it mounted at 
/System/Volumes/Data/mathworks. From there, all other network locations are 
available through other mount points. We also have some related symlinks at 
/System/Volumes/Data. I think I need to see how the network access move to 
/Systems/Volumes/Data might have changed and broken things for the python 
build. Likely, something deep in the python build is not working well with our 
new network setup. I will see if I can debug deeper into setup.py and 
PyBuildExt.build_extensions() to see if it's not working right with our network 
setup and to get you a way to reproduce this behavior. It's hard to see exactly 
how the paths get passed to 
 xcode and the compiler though. I'll see what I can get you.

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

_maybe_compile currently compiles the possibly complete statement up to 3 times 
-- with C-coded compile.  Without doing any timing tests, I wondered if 3 times 
is really necessary.  Nick suggested that using the tokenize module to 
determine the number of hanging indents, combined with some yet to be 
determined logic, might be an alternative.  But since tokenize is written in 
Python, the result might not be any faster.

Checking the error message aims at specifically fixing this issue.  But I am 
not sure if the check is sufficient or if more logic is needed.
  "def a():\n   nonlocal c\n" should ideally raise.
  "def a():\n   def b():\nnonlocal c\n" must not.

At least the second should be used for a new test.

I would start by adding debug prints to see the result of each compile and then 
testing with those two lines.

--
type:  -> behavior
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



[issue38980] Compile libpython with -fno-semantic-interposition

2020-06-30 Thread STINNER Victor


STINNER Victor  added the comment:

We wrote an article about -fno-semantic-interposition flag that we use with GCC 
on RHEL8 and Fedora:
https://developers.redhat.com/blog/2020/06/25/red-hat-enterprise-linux-8-2-brings-faster-python-3-8-run-speeds/
"Enabling this flag disables semantic interposition, which can increase run 
speed by as much as 30%."

In short, the flag allows the compiler to inline code and so make further 
optimizations, when Python is built with --enable-shared.

--

___
Python tracker 

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



[issue41158] IDLE: rewrite the code for handling file encoding

2020-06-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Is there any reason the patch would not work with 3.9/3.8?

--

___
Python tracker 

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



[issue40971] Documentation still mentions 'u' string formatting option

2020-06-30 Thread Petr Viktorin


Petr Viktorin  added the comment:

I'm closing the issue. Please comment or reopen if I missed something.

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue41152] IDLE: make sys.stdxxx.encoding always be utf-8

2020-06-30 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thank you for this and the next patch.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: IDLE: revise setting of iomenu.encoding and .errors -> IDLE: make 
sys.stdxxx.encoding always be utf-8
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



[issue41168] Lack of proper checking in PyObject_SetAttr leads to segmentation fault

2020-06-30 Thread Iman Sharafodin


New submission from Iman Sharafodin :

I was testing the latest release of Python 3.6 (June 27, 2020) 
(https://www.python.org/ftp/python/3.6.11/Python-3.6.11.tgz) and I found that 
there is lack of enough checks on line number 956 in Objects/object.c file 
which can cause a segmentation fault. It could lead to security related issues. 
I've attached the PoC.pyc.


Program received signal SIGSEGV, Segmentation fault.
PyObject_SetAttr (v=v@entry=0x6d7373616c637463, name=0x77f75730, 
value=value@entry=0x0) at Objects/object.c:956
956 PyTypeObject *tp = Py_TYPE(v);

--
components: Interpreter Core
files: PoC.pyc
messages: 372683
nosy: Iman Sharafodin
priority: normal
severity: normal
status: open
title: Lack of proper checking in PyObject_SetAttr leads to segmentation fault
type: security
versions: Python 3.6
Added file: https://bugs.python.org/file49280/PoC.pyc

___
Python tracker 

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



[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-06-30 Thread Kyle Evans


Kyle Evans  added the comment:

Ah, sorry, I meant to update this- I submitted our fix for review a day or two 
ago, got approval for commit and will poke koobs to rebuild the FreeBSD 
-CURRENT buildbot with it after that.

--

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Rahul Jha


Rahul Jha  added the comment:

>  Note that these are two solution that take very different approaches. What 
> Nick is suggesting with "checking for two or more hanging INDENTS" would 
> drastically change how codeop._maybe_compile does its thing, while his other 
> proposed solution, ""hardcoding a check for nonlocal SyntaxErrors in 
> codeop._maybe_compile", would just fix this issue.

Got it!

> If there's consensus around one proposed approach, you could certainly take 
> this up. I'd be glad to help out with workflow stuff or provide a first 
> review. Let me know if you've got more questions.

Thank you so much Lysandros!

--

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

A first testrun on the arm-mac resulted in test failures in test_distutils (in 
particular test_deployment_target_default in the distutils test).  That's 
something I have to investigate further.

--

___
Python tracker 

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



[issue41013] test_os.test_memfd_create() fails on AMD64 FreeBSD Shared 3.x

2020-06-30 Thread Łukasz Langa

Łukasz Langa  added the comment:

As a regression this would have been a release blocker, this also fails on 3.9 
and 3.8. However, given that this has only been surfaced by Christian's fix to 
the testing machinery in GH-20942, I'll mark this as deferred blocker instead 
for visibility.

--
nosy: +lukasz.langa
priority: normal -> deferred blocker
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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Dong-hee Na


Dong-hee Na  added the comment:

> https://nvd.nist.gov/vuln/detail?vulnId=CVE-2020-14422

As Eric said, this issue is assigned a CVE-2020-14422.
I re-open PRs for 3.5 - 3.7 and waiting for other core developers guide.

I am +1 on merge this PRs as the security patch.

--
nosy: +corona10

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Dong-hee Na


Change by Dong-hee Na :


--
status: closed -> open
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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Eric V. Smith


Eric V. Smith  added the comment:

Ned: what are your thoughts on backporting this as a security issue?

https://nvd.nist.gov/vuln/detail?vulnId=CVE-2020-14422

--
nosy: +ned.deily

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Tapas Kundu


Change by Tapas Kundu :


--
pull_requests: +20387
pull_request: https://github.com/python/cpython/pull/21233

___
Python tracker 

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



[issue41164] allow python to build for macosx-11.0-arm64

2020-06-30 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

FYI I have as of a couple of minutes ago received a developer transition kit 
and can, and will, test on the new hardware.

--

___
Python tracker 

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



[issue40971] Documentation still mentions 'u' string formatting option

2020-06-30 Thread Petr Viktorin


Petr Viktorin  added the comment:

AFAICS, Python 3 suports '%u' for printf-style formatting:

Python 3.8.3 (default, May 29 2020, 00:00:00) 
[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '%u' % 6
'6'


What am I missing?

--
nosy: +petr.viktorin

___
Python tracker 

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



[issue41167] Add new formats to PyArg_ParseTuple for "str or None"

2020-06-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I think it is more common to use the general "O" format. In any case you need 
to write separate code for None and str in the body of function.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue18233] SSLSocket.getpeercertchain()

2020-06-30 Thread Chris Burr


Chris Burr  added the comment:

Hi Zack, I've already opened a PR that is loosely based on this patch. If you 
have time to give it a review I'd appreciate the extra set of eyes.

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

--
versions: +Python 3.9 -Python 3.8

___
Python tracker 

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



[issue41100] Build failure on macOS 11 (beta)

2020-06-30 Thread Stefan Krah


Stefan Krah  added the comment:


New changeset 604d95e235d86465b8c17f02095edcaf18464d4c by Lawrence D'Anna in 
branch 'master':
bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)
https://github.com/python/cpython/commit/604d95e235d86465b8c17f02095edcaf18464d4c


--
nosy: +skrah

___
Python tracker 

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



[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> From what I understand, "checking for two or more hanging INDENTS" and, 
> "hardcoding a check for nonlocal SyntaxErrors in codeop._maybe_compile" are 
> two different solutions, right?  If yes, do we have an answer to which one of 
> them is more cleaner, and henceforth, the preferable solution?

Note that these are two solution that take very different approaches. What Nick 
is suggesting with "checking for two or more hanging INDENTS" would drastically 
change how codeop._maybe_compile does its thing, while his other proposed 
solution, ""hardcoding a check for nonlocal SyntaxErrors in 
codeop._maybe_compile", would just fix this issue.


> I, personally, like the idea of checking INDENTS primarily because of it's 
> reduced specificity, but I am in no position to comment on this (I already 
> kinda did ':D), and you folks know better! For all we know, we should be 
> optimizing for specificity.

You're right that this idea is more general. It would require significantly 
more effort from whoever tackles this though.

> Also, reading Nick's comments and the comc's code, gives me the feeling that 
> a fix for this wouldn't require drastic changes.

That really depends on what solution is chosen out of the two.

> I'm slowly starting my journey with CPython, and I'd like to contribute a 
> patch if that is the case. Thanks!

If there's consensus around one proposed approach, you could certainly take 
this up. I'd be glad to help out with workflow stuff or provide a first review. 
Let me know if you've got more questions.

--
keywords: +3.3regression

___
Python tracker 

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



[issue41167] Add new formats to PyArg_ParseTuple for "str or None"

2020-06-30 Thread Inada Naoki


New submission from Inada Naoki :

PyArg_ParseTuple has 'U' format for getting Unicode as PyObject*.
But when user want accept "str or None", they are forced to use 'O&' and write 
a custom converter. It is not convenient.

I am proposing to add 'U?' for "str or None" variants of 'U'. Does it make 
sense?

--
components: C API
messages: 372670
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Add new formats to PyArg_ParseTuple for "str or None"
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



[issue41142] msilib.CAB doesnot support non-ASCII files

2020-06-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue41142] msilib.CAB doesnot support non-ASCII files

2020-06-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset ba67d7386edf20bcc0f878a518de0894cb574e9f by Serhiy Storchaka in 
branch 'master':
bpo-41142: Add support of non-ASCII paths for CAB files. (GH-21195)
https://github.com/python/cpython/commit/ba67d7386edf20bcc0f878a518de0894cb574e9f


--

___
Python tracker 

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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread ABELARDO


ABELARDO  added the comment:

Steven D'Aprano:

Yes, my fault. I will give an url where it is located.
https://docs.python.org/3/tutorial/classes.html

--

___
Python tracker 

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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread ABELARDO


ABELARDO  added the comment:

Sorry, I don't have any doc where "class value" / "instance value" are 
mentioned. This idea is original from me originally based on my personal 
interpretation about OOP basic concepts. But it doesn't mean I'm wrong with my 
proposal. 

When you use the following notation:
"foo.a" you are accessing to the value of that attribute. In Python, you would 
write: print(foo.a) to print the value of that attribute, being 'foo' an 
instance of the Foo class. Right.

All attributes are inheriting from a class; so, any attribute inside an 
instance is a "class attribute" but here I am not discussing this but the value 
itself.

This confusion could be caused because Python could implement a mechanism 
different than other OOP programming languages and I'm not sure if Python 
strictly follows this paradigm. 

I am a newbie in Python but not in OOP paradigm, where my discussion is 
focused. 

If Python doesn't strictly follow the OOP paradigm, you could gently delete 
this issue because we wouldn't talk about the same concept.

Otherwise, let's explain why I think the concept "class attribute" is wrong 
from my viewpoint.

IMHO, a "class attribute" doesn't exist in OOP as is. Really, a "class value" 
exists instead. A "class value" is a value (pay attention, please: not an 
attribute) shared among all instances from a class. You can do this by tagging 
an attribute as "static" (in Java and PHP, for example). The value of that 
attribute is, again, shared among all instances of that class. 

Nevertheless, when you don't declare an attribute with the tag "static" you are 
requiring the value (!) is not being shared among their instances.

It's not applied to attributes but values.

The attribute always is a class level property (all instances share this 
property still when the instances don't contain the same value for it).

Disclaimer: I'm not an English native. I made all my best to decently express 
in English but since it is not my native language I could have made typos which 
could twist my words.

Best regards.

--

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-30 Thread miss-islington


miss-islington  added the comment:


New changeset 41d6e3fbb8bcfd41db37782523caac47e7c8ad23 by Miss Islington (bot) 
in branch '3.8':
bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)
https://github.com/python/cpython/commit/41d6e3fbb8bcfd41db37782523caac47e7c8ad23


--

___
Python tracker 

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



[issue38891] ShareableList read and write access is O(N), should be O(1)

2020-06-30 Thread Dirk Roorda


Dirk Roorda  added the comment:

I can see that the performance of ShareableList is much better now.
Still the performance of list operations on a ShareableList may be degraded by 
a factor 200-300 with respect to a normal list.

If this is unavoidable then the docs should clearly mention this degradation, 
because this will, in many use cases, cancel the performance gain that shared 
memory offers!

--
nosy: +dirkroorda
Added file: https://bugs.python.org/file49279/report.py

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Tapas Kundu


Change by Tapas Kundu :


--
pull_requests: +20386
pull_request: https://github.com/python/cpython/pull/21232

___
Python tracker 

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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

By the way, for future reports, it is much better to give the URL of the page 
and copy and paste the exact quote than to give a screen shot. Using a screen 
shot is inconvenient for us (we have to try to guess what URL you are referring 
to, there are *lots* of pages in the documentation) and discriminates against 
the visually impaired and blind, who may be using screen readers. (They 
typically do not work with images.)

Thank you.

--

___
Python tracker 

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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

"Class attribute" and "instance attribute" are the usual terms used in the 
Python documentation and community. I have heard other terms used in other 
language communities, in particular "members" and "variables", but I've never 
come across one that uses "value". Do you mind if you tell us where you have 
seen this used?

We have 30 years of talking about class and instance attributes, we're not 
going to change now. 

Java has ClassValue:

https://docs.oracle.com/javase/7/docs/api/java/lang/ClassValue.html

and Scala talks about "value classes", but neither seem to be what you are 
talking about.

See also:

https://stackoverflow.com/questions/11350423/terminology-of-class-attribute-vs-member-vs-variable-vs-field

--
nosy: +steven.daprano
resolution:  -> rejected
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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

I think the word "attribute" is preferred over "value" because "value" can mean 
just about anything, whereas, according to 
https://docs.python.org/3/glossary.html?highlight=glossary , an attribute is 
specifically:

"""A value associated with an object which is referenced by name using dotted 
expressions. For example, if an object `o` has an attribute `a` it would be 
referenced as `o.a`."""

The phrase "class attribute" is used throughout the documentation to mean an 
attribute of a class. To reference the class attribute called `foo` of the 
class called `MyClass`, we write `MyClass.foo`.

Unless I misunderstand you, I don't think there is an issue.

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-30 Thread Tapas Kundu


Change by Tapas Kundu :


--
nosy: +tapakund
nosy_count: 7.0 -> 8.0
pull_requests: +20385
pull_request: https://github.com/python/cpython/pull/21231

___
Python tracker 

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



[issue41155] Tkinter -postoffset not working for TCombobox

2020-06-30 Thread Svetoslav Inkolov


Svetoslav Inkolov  added the comment:

Thanks to E. Paine's reply:

This is a strange bug, as the fix is simply to explicitly give the style 
(`style='TCombobox'`)

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



[issue41166] CLASS ATTRIBUTES

2020-06-30 Thread ABELARDO


New submission from ABELARDO :

Hi there,
I have encountered a possible bug inside the documentation.

In the attached picture you can see a portion of text highlighted ("Class 
attribute").

I think it's a typo since there is not "class attributes" nor "instance 
attributes" but "class value" and "instance value".

A "class value" is a value which is shared among instances and an "instance 
value" is a specific value of an attribute of an instance.

Best regards.

--
assignee: docs@python
components: Documentation
files: Captura de pantalla de 2020-06-30 08-50-39.png
messages: 372660
nosy: ABELARDOLG, docs@python
priority: normal
severity: normal
status: open
title: CLASS ATTRIBUTES
versions: Python 3.8
Added file: https://bugs.python.org/file49278/Captura de pantalla de 2020-06-30 
08-50-39.png

___
Python tracker 

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



[issue41158] IDLE: rewrite the code for handling file encoding

2020-06-30 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue41158] IDLE: rewrite the code for handling file encoding

2020-06-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 694d31e714074176f0c324f95948b75dc768c091 by Serhiy Storchaka in 
branch 'master':
bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215)
https://github.com/python/cpython/commit/694d31e714074176f0c324f95948b75dc768c091


--

___
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-06-30 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 038dd0f79dc89566b01ba66a5a018266b2917a19 by Inada Naoki in branch 
'master':
bpo-36346: Raise DeprecationWarning when creating legacy Unicode (GH-20933)
https://github.com/python/cpython/commit/038dd0f79dc89566b01ba66a5a018266b2917a19


--

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-30 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20384
pull_request: https://github.com/python/cpython/pull/21230

___
Python tracker 

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



[issue41123] Remove Py_UNICODE APIs except PEP 623

2020-06-30 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 2ea6a9928e4fa135888cc8f4733c28d93e642301 by Inada Naoki in branch 
'3.9':
bpo-41123: Remove PyUnicode_AsUnicodeCopy in 3.10 (GH-21227)
https://github.com/python/cpython/commit/2ea6a9928e4fa135888cc8f4733c28d93e642301


--

___
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-06-30 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 349f76c6aace5a4a2b57f6b442a532faf0027d6b by Serhiy Storchaka in 
branch 'master':
bpo-36346: Prepare for removing the legacy Unicode C API (AC only). (GH-21223)
https://github.com/python/cpython/commit/349f76c6aace5a4a2b57f6b442a532faf0027d6b


--

___
Python tracker 

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



  1   2   >