[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26410
pull_request: https://github.com/python/cpython/pull/27963

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 806e25fd3173a80021e6df87b81263b5f6056f38 by Objectivitix in 
branch 'main':
bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951)
https://github.com/python/cpython/commit/806e25fd3173a80021e6df87b81263b5f6056f38


--

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2021-08-25 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

It did get added to the correct docs:

https://docs.python.org/3.10/c-api/typeobj.html#c.PyAsyncMethods.am_send

(the 3.10 and 3.11 docs, not the 3.9 docs ;-)

But as I mentioned, I feel that there could be more details about the 
semantics/contract.

--

___
Python tracker 

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



[issue45008] asyncio.gather should not "dedup" awaitables

2021-08-25 Thread William Fisher


New submission from William Fisher :

asyncio.gather uses a dictionary to de-duplicate futures and coros. However, 
this can lead to problems when
you pass an awaitable object (implements __await__ but isn't a future or coro).

1. Two or more awaitables may compare for equality/hash, but still expect to 
produce different results (See the RandBits class in gather_test.py)

2. If an awaitable doesn't support hashing, asyncio.gather doesn't work.

Would it be possible for non-future, non-coro awaitables to opt out of the 
dedup logic?

The attached file shows an awaitable RandBits class. Each time you await it, 
you should get a different
result. Using gather, you will always get the same result.

--
components: asyncio
files: gather_test.py
messages: 400309
nosy: asvetlov, byllyfish, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.gather should not "dedup" awaitables
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50236/gather_test.py

___
Python tracker 

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



[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-25 Thread Ned Deily


Ned Deily  added the comment:

> I guess we could wrap this functionality with some preprocessor conditionals, 
> and/or adjust the configure script to not accept 
> --enable-loadable-sqlite-extensions for macOS 11.5.1 (11.5.x?).

FTR, this is only a problem if you link with the Apple-supplied system 
libsqlite3. So any change would need need to take into account the possibility 
of using your own or other third-party copy of libsqlite3, for example, like 
the python.org macOS binary installers do.

--
nosy: +ned.deily

___
Python tracker 

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



[issue45007] OpenSSL 1.1.1l is released

2021-08-25 Thread Ned Deily


New submission from Ned Deily :

OpenSSL 1.1.1l was released on 2021-08-24 so the Windows build and macOS binary 
installers should be updated to it.

https://www.openssl.org/source/

However, it appears that 1.1.1l introduced a build failure on older macOS 
systems that would affect some python.org macOS installer builds so we should 
wait for an official fix before updating the macOS builds. I will take care of 
that part.

https://github.com/openssl/openssl/issues/16407

--
assignee: christian.heimes
components: SSL, Windows, macOS
messages: 400307
nosy: christian.heimes, ned.deily, paul.moore, ronaldoussoren, steve.dower, 
tim.golden, zach.ware
priority: high
severity: normal
stage: needs patch
status: open
title: OpenSSL 1.1.1l is released
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue45006] Add data_offset field to ZipInfo

2021-08-25 Thread Kelvin Zhang


Change by Kelvin Zhang :


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

___
Python tracker 

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



[issue45006] Add data_offset field to ZipInfo

2021-08-25 Thread Kelvin Zhang


New submission from Kelvin Zhang :

Currently python's zipfile module does not have a way query starting offset of 
compressed data. This might be handy when the user wants to copy compressed 
data as is. Therefore I propose adding a data_offset field to zipfile.ZipInfo, 
which stores the offset to beginning of compressed data.

--
components: Library (Lib)
messages: 400306
nosy: zhangxp1998
priority: normal
severity: normal
status: open
title: Add data_offset field to ZipInfo
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue45002] won't match correct version of tcl/tk

2021-08-25 Thread Ned Deily


Ned Deily  added the comment:

It is difficult to offer suggestions based on minimal information. You may be 
running into an arch mismatch: since you are requesting a universal2 build 
(x86_64 and arm64), all the third-party libraries your build links with must 
also be built with both architectures. Or it still could be a mismatched path 
problem. You can use the otool -L command I suggested before on the renamed 
_tkinter.so file left in your build/lib.macosx-11.5-universal2-3.11 directory 
to determine what path to the Tcl and Tk libraries it is using; it should be an 
absolute path to the Homebrew libraries.  You can also use the "file" command 
on the _tkinter file and on the Tcl and Tk library files to determine which 
archs are present in each. If this is your first attempt at building Python on 
macOS, I suggest you start with a simpler ./configure command and then consider 
adding other options after you have that working. To start with you should only 
need something like:

./configure --prefix=... --with-openssl=... --with-tcltk-includes=... 
--with-tcltk-libs=...

--

___
Python tracker 

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



[issue45002] won't match correct version of tcl/tk

2021-08-25 Thread 郑之为

郑之为  added the comment:

now it's more like:
*** WARNING: renaming "_tkinter" since importing it failed: 
dlopen(/Users/jett/cpython/build/lib.macosx-11.5-universal2-3.11/_tkinter.cpython-311-darwin.so,
 2): Symbol not found: _TclBN_mp_clear
  Referenced from: 
/Users/jett/cpython/build/lib.macosx-11.5-universal2-3.11/_tkinter.cpython-311-darwin.so
  Expected in: flat namespace
 in 
/Users/jett/cpython/build/lib.macosx-11.5-universal2-3.11/_tkinter.cpython-311-darwin.so

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_gdbm ossaudiodev   spwd   
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc  pwd   time   


Following modules built successfully but were removed because they could not be 
imported:
_tkinter  


and this:
jett@zhengzhweidembp iucn % /Users/jett/python311/bin/python3.11 guimain.py 
 Traceback (most recent call last):  File 
"/Users/jett/Desktop/GitHub/Repos/iucn/guimain.py", line 1, in 
from tkinter import *
^
  File "/Users/jett/python311/lib/python3.11/tkinter/__init__.py", line 37, in 

import _tkinter # If this fails your Python may not be configured for Tk
^^^
ModuleNotFoundError: No module named '_tkinter'

ans this.

--

___
Python tracker 

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



[issue28474] WinError(): Python int too large to convert to C long

2021-08-25 Thread Adam Meily


Change by Adam Meily :


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

___
Python tracker 

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



[issue39218] Assertion failure when calling statistics.variance() on a float32 Numpy array

2021-08-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue39218] Assertion failure when calling statistics.variance() on a float32 Numpy array

2021-08-25 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

The rounding correction in _ss() looks mathematically incorrect to me:

   ∑ (xᵢ - x̅ + εᵢ)² = ∑ (xᵢ - x̅)² - (∑ εᵢ)² ÷ n

If we drop this logic (which seems completely bogus), all the tests still pass 
and the code becomes cleaner:

def _ss(data, c=None):
if c is None:
c = mean(data)
T, total, count = _sum((y := x - c) * y for x in data)
return (T, total)


-- Algebraic form of the current code --

from sympy import symbols, simplify

x1, x2, x3, e1, e2, e3 = symbols('x1 x2 x3 e1 e2 e3')
n = 3

# high accuracy mean
c = (x1 + x2 + x3) / n

# sum of squared deviations with subtraction errors
total = (x1 - c + e1)**2 + (x2 - c + e2)**2 + (x3 - c + e3)**2

# sum of subtraction errors = e1 + e2 + e3
total2 = (x1 - c + e1) + (x2 - c + e2) + (x3 - c + e3)

# corrected sum of squared deviations
total -= total2 ** 2 / n

# exact sum of squared deviations
desired = (x1 - c)**2 + (x2 - c)**2 + (x3 - c)**2

# expected versus actual
print(simplify(desired - total))

This gives:

(e1 + e2 + e3)**2/3
+ (-2*x1 + x2 + x3)**2/9
+ (x1 - 2*x2 + x3)**2/9
+ (x1 + x2 - 2*x3)**2/9
- (3*e1 + 2*x1 - x2 - x3)**2/9
- (3*e2 - x1 + 2*x2 - x3)**2/9
- (3*e3 - x1 - x2 + 2*x3)**2/9

-- Substituting in concrete values --

x1, x2, x3, e1, e2, e3 = 11, 17, 5, 0.3, 0.1, -0.2

This gives:

75.740001  uncorrected total
75.726667  "corrected" total
72.0   desired result

--

___
Python tracker 

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



[issue27484] Some Examples in Format String Syntax are incorrect or poorly worded

2021-08-25 Thread Adam Meily


Change by Adam Meily :


--
nosy: +meilyadam
nosy_count: 5.0 -> 6.0
pull_requests: +26405
pull_request: https://github.com/python/cpython/pull/27959

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +26404
pull_request: https://github.com/python/cpython/pull/27958

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset c764dfbcbc12c4653fc8ab39773cf973c9db2757 by Dong-hee Na in branch 
'main':
bpo-45000: Update whatsnews about deleting __debug__ (GH-27956)
https://github.com/python/cpython/commit/c764dfbcbc12c4653fc8ab39773cf973c9db2757


--

___
Python tracker 

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



[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2021-08-25 Thread Andrew Nelson


Andrew Nelson  added the comment:

Just to mention that we have seen similar issues whilst importing scipy in a 
multiprocessing context.
See https://github.com/scipy/scipy/issues/11479 and 
https://stackoverflow.com/questions/68911221/python-runtimeerror-dictionary-changed-size-during-iteration-popping-out-rand.

--
nosy: +Andrew Nelson

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +26403
pull_request: https://github.com/python/cpython/pull/27957

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +26402
pull_request: https://github.com/python/cpython/pull/27956

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Change by Dong-hee Na :


--
versions: +Python 3.11

___
Python tracker 

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



[issue22764] object lifetime fragility in unittest tests

2021-08-25 Thread Irit Katriel


Irit Katriel  added the comment:

I don't think this test still exists - I tried to search for it and found 
nothing. In any case, from the discussion it seems that that is left is to 
tweak the skip mechanism (assuming the patches were applied).

I'll close this soon if nobody objects.

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

___
Python tracker 

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



[issue44963] anext_awaitable is not a collections.abc.Generator

2021-08-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I am reopening this issue since am_send never got documented here: 
https://docs.python.org/3/c-api/typeobj.html#async-structs

--
nosy: +pablogsal
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue40772] module 'resource' has no attribute 'RLIMIT_VMEM'

2021-08-25 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

Also note that according to 
https://edwards.sdsu.edu/research/memory-and-core-usage-on-sge/,

Linux systems use RLIMIT_AS instead of RLMIMIT_VMEM.

My system (MacOS), also has RLIMIT_AS defined but not RLIMIT_VMEM.

--

___
Python tracker 

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



[issue44963] anext_awaitable is not a collections.abc.Generator

2021-08-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue40772] module 'resource' has no attribute 'RLIMIT_VMEM'

2021-08-25 Thread Andrei Kulakov

Andrei Kulakov  added the comment:

The docs for resource module state:

This module does not attempt to mask platform differences — symbols not defined 
for a platform will not be available from this module on that platform.

Therefore I think this can be closed.

--
nosy: +andrei.avk
type: crash -> behavior

___
Python tracker 

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



[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr


Change by Mjbmr :


--
resolution: wont fix -> 
status: closed -> open

___
Python tracker 

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



[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr


Mjbmr  added the comment:

Is there any public document about this or can you give me an example? I can't 
figure it out what's the incoming and outgoing.

--

___
Python tracker 

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



[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset b34ca7e0515e6726cf5e938f7239de41df710cfd by Erlend Egeberg 
Aasland in branch '3.10':
[3.10] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922). 
(GH-27953)
https://github.com/python/cpython/commit/b34ca7e0515e6726cf5e938f7239de41df710cfd


--

___
Python tracker 

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



[issue44381] Allow enabling control flow guard in Windows build

2021-08-25 Thread Steve Dower


Steve Dower  added the comment:

That looks to me like no impact at all, which is great to see!

--

___
Python tracker 

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



[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Christian Heimes


Christian Heimes  added the comment:

You cannot wrap an SSLSocket in another SSLSocket. It doesn't work due to the 
way how OpenSSL's BIO layer wraps the system socket. You have to use  SSLObject 
and SSLContext.wrap_bio() for the inner layer.

--
resolution:  -> wont fix
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



[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 0ec17a2494412ea7d76f7d0567b73c1fffa88c18 by Erlend Egeberg 
Aasland in branch '3.9':
[3.9] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922) 
(GH-27952)
https://github.com/python/cpython/commit/0ec17a2494412ea7d76f7d0567b73c1fffa88c18


--

___
Python tracker 

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



[issue45005] Two Layers of SSL/TLS

2021-08-25 Thread Mjbmr


New submission from Mjbmr :

A simple script, trying connect to second ssl through first sever doesn't work:

import socket, ssl

sock = socket.socket()
sock.connect(('', 443))
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
sock = ctx.wrap_socket(sock)
sock.send(b'CONNECT :443 HTTP/1.1\r\n\r\n')
print(sock.recv(1024))
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
sock = ctx.wrap_socket(sock)
sock.do_handshake()
sock.send(b'CONNECT ifconf.me:80 HTTP/1.1\r\n\r\n')
print(sock.recv(1024))


b'HTTP/1.1 200 Connection established\r\n\r\n'
Traceback (most recent call last):
  File "C:\Users\Javad\Desktop\4.py", line 15, in 
sock = ctx.wrap_socket(sock)
  File "E:\Categories\Python\Python3.9.6\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
  File "E:\Categories\Python\Python3.9.6\lib\ssl.py", line 1040, in _create
self.do_handshake()
  File "E:\Categories\Python\Python3.9.6\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly 
closed by the remote host

--
assignee: christian.heimes
components: SSL
messages: 400291
nosy: christian.heimes, mjbmr
priority: normal
severity: normal
status: open
title: Two Layers of SSL/TLS
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



[issue44993] enum.auto() starts with one instead of zero

2021-08-25 Thread Ethan Furman


Ethan Furman  added the comment:

David, I added a PR for the Enum handling/creation in the ics library.  Syncing 
values with external libraries is definitely *not* what `auto` is intended for.

As for why enum members evaluate as True:  most objects in Python evaluate to 
True, unless they have a reason not to (such as an empty container or the 
number 0).  One of the main ideas behind the creation of Enum is that the exact 
values didn't usually matter,  but when they did they would be specified.  
`auto()` was added later to make the "doesn't usually matter" case easier.

---

Vedran, or `cEnum`?  ;-)

One concern is should cEnum be Python's `int`, or a c_type int?  That should be 
in a new issue, though.

Okay, it's Issue45004.

--
stage:  -> resolved

___
Python tracker 

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



[issue45004] add Enum to ctypes

2021-08-25 Thread Ethan Furman


New submission from Ethan Furman :

In issue44993 it was suggested to add a cEnum whose main purpose would be to 
start counting at 0 instead of 1.

Issues to consider:

- should such an enum subclass `int`, or a C type?

- should there be an enum for each C type?

- will mixing Enum and c_types even work?

--
messages: 400289
nosy: amaury.forgeotdarc, belopolsky, ethan.furman, meador.inge
priority: normal
severity: normal
status: open
title: add Enum to ctypes
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +26400
pull_request: https://github.com/python/cpython/pull/27953

___
Python tracker 

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



[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +26399
pull_request: https://github.com/python/cpython/pull/27952

___
Python tracker 

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



[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7903a1096343d8018e889029f025d39bdd077170 by Erlend Egeberg 
Aasland in branch 'main':
bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922)
https://github.com/python/cpython/commit/7903a1096343d8018e889029f025d39bdd077170


--

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 52702e8ba0d777ac92ec36038213976545c4759e by Erlend Egeberg 
Aasland in branch '3.9':
[3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to 
commit (GH-26202) (GH-27944)
https://github.com/python/cpython/commit/52702e8ba0d777ac92ec36038213976545c4759e


--

___
Python tracker 

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



[issue44524] __name__ attribute in typing module

2021-08-25 Thread miss-islington


miss-islington  added the comment:


New changeset 06e9a35169e125488d4ae9228626eb95375f3a14 by Miss Islington (bot) 
in branch '3.10':
bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)
https://github.com/python/cpython/commit/06e9a35169e125488d4ae9228626eb95375f3a14


--

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Change by Calo :


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

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Calo  added the comment:

Got it, thank you very much! I found 
https://github.com/python/cpython/blob/main/Doc/reference/expressions.rst, I 
guess that's where I fork and edit

--

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

https://github.com/python/cpython

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Calo  added the comment:

I'd like to! Wait, so is this approved now? I'd simply need to open a PR? If 
so, on which repository do I do it?

--

___
Python tracker 

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



[issue44524] __name__ attribute in typing module

2021-08-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +26397
pull_request: https://github.com/python/cpython/pull/27950

___
Python tracker 

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



[issue44524] __name__ attribute in typing module

2021-08-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 23384a1749359f0ae7aaae052073d44b59e715a1 by Ken Jin in branch 
'main':
bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841)
https://github.com/python/cpython/commit/23384a1749359f0ae7aaae052073d44b59e715a1


--

___
Python tracker 

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



[issue44381] Allow enabling control flow guard in Windows build

2021-08-25 Thread neonene


neonene  added the comment:

I'd like to leave my pyperformance (x64) results here.
cpython: ae5259171b8ef62165e061b9dea7ad645a5131a2 (2021-8-23)

1) release + CFG  : 1.00x

2) release + CFG,/Ob3 : 1.05x faster | 41 faster
 |  9 slower
 |  8 not significant

3) release (default)  : 1.07x faster | 52 faster
 |  4 slower (regex_v8,
 |regex_effbot,
 |nbody,
 |hexiom)
 |  2 not significant

4) release + /Ob3 : 1.11x faster | 56 faster
 |  1 slower (regex_v8)
 |  1 not significant (regex_dna)

5) PGO + CFG  : 1.15x faster | 53 faster
 |  2 slower (regex_dna,
 |pidigits)
 |  3 not significant

6) PGO + CFG,/Ob3 : 1.15x faster | 54 faster
 |  1 slower (regex_dna)
 |  3 not significant

7) PGO (default)  : 1.21x faster | 56 faster
 |  1 slower (regex_dna)
 |  1 not significant (regex_effbot)

8) PGO + /Ob3 : 1.21x faster | 57 faster
 |  1 slower (regex_dna)
 |  0 not significant

--
nosy: +neonene

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Would you like to submit a PR?

--
nosy: +rhettinger

___
Python tracker 

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



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


New submission from Calo :

The Python Language Reference, Chapter 6 (Expressions), Section 7 (Binary 
arithmetic operations) in Python version 3.9 has a sentence which reads:

"This operation can be customized using the special __div__() and 
__floordiv__() methods."

To my knowledge, when Python 3 was released, true division became the default, 
and __div__ became useless as well. Thus, I believe this part of the 
documentation should be changed to "[...] __truediv__() and __floordiv__() 
methods." to avoid misleading others.

P.S. This is my first time submitting a Python bug report, I'm just a Python 
enthusiast and I'm not familiar at all with these official bug reports (I have 
read https://docs.python.org/3/bugs.html though!), so please let me know and 
correct me if I've done something incorrectly! Thanks!

--
assignee: docs@python
components: Documentation
messages: 400279
nosy: docs@python, objectivitix
priority: normal
severity: normal
status: open
title: Documentation wrote __div__ instead of __truediv__
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



[issue44993] enum.auto() starts with one instead of zero

2021-08-25 Thread Vedran Čačić

Vedran Čačić  added the comment:

And CEnum is probably the best name for it. "Int" part is pretty much implied 
in "C" part.

--

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread miss-islington


miss-islington  added the comment:


New changeset 551da597a0996b0fb3af425f48aa5bc63ea6b963 by Dong-hee Na in branch 
'main':
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)
https://github.com/python/cpython/commit/551da597a0996b0fb3af425f48aa5bc63ea6b963


--
nosy: +miss-islington

___
Python tracker 

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



[issue44993] enum.auto() starts with one instead of zero

2021-08-25 Thread Ethan Furman


Ethan Furman  added the comment:

Putting an enum in the ctypes module is a decent idea.

--

___
Python tracker 

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



[issue43976] Allow Python distributors to add custom site install schemes

2021-08-25 Thread jakirkham


Change by jakirkham :


--
nosy: +jakirkham

___
Python tracker 

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



[issue45002] won't match correct version of tcl/tk

2021-08-25 Thread Ned Deily


Ned Deily  added the comment:

Can you be more specific about what you mean by "executable" and "library"?

In particular, please show the results of, where /path/to/python is replaced by 
the path to the python you have built or installed:

otool -L $(/path/to/python -c 'import _tkinter;print(_tkinter.__file__)')

Most likely the issue is that you need to use additional ./configure arguments 
rather than trying to modify CFLAGS et al:

  --with-tcltk-includes='-I...'
  override search for Tcl and Tk include files
  --with-tcltk-libs='-L...'
  override search for Tcl and Tk libs

or set up the path to pkg-config info for Homebrew's Tcl and Tk packages.  See 
the comments in setup.py for more info:

https://github.com/python/cpython/blob/main/setup.py#L1898

--
nosy: +ned.deily

___
Python tracker 

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



[issue44993] enum.auto() starts with one instead of zero

2021-08-25 Thread David Rebbe


David Rebbe  added the comment:

Thank you for referencing the PEP, I just managed to read through it and I 
still don't have a very good understanding why it needs to default to 1. PEP 
435 states:

"The reason for defaulting to 1 as the starting number and not 0 is that 0 is 
False in a boolean sense, but enum members all evaluate to True."

I can't find anything in the PEP that states why enum members need to evaluate 
to True. What am I missing here?

I was specifically tripped up with the generator I wrote that takes a C header 
and converts it to python ctype/enum objects. I have fixed the issue so its not 
a show stopper by any means its just not expected behavior for anyone with 
programming experience with enums outside Python. 

Here is the project in question where I discovered this:
https://github.com/intrepidcs/python_ics/issues/105

enum in question:
https://github.co/intrepidcs/python_ics/blob/master/ics/structures/e_device_settings_type.py
which is generated from this:
https://github.com/intrepidcs/python_ics/blob/master/include/ics/icsnVC40.h#L3410


Maybe it would be better to have an Enum type in the ctypes module instead to 
match all other language enums?

--

___
Python tracker 

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



[issue11479] Add discussion of trailing backslash in raw string to tutorial

2021-08-25 Thread Hanan Basheer


Change by Hanan Basheer <20b030...@iitb.ac.in>:


--
nosy: +dancinglightning
nosy_count: 10.0 -> 11.0
pull_requests: +26396
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/27949

___
Python tracker 

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



[issue42527] UnicodeEncode error in BaseHttpRequestHandler class when send unicode data.

2021-08-25 Thread Carlos


Change by Carlos :


--
versions: +Python 3.11

___
Python tracker 

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



[issue42527] UnicodeEncode error in BaseHttpRequestHandler class when send unicode data.

2021-08-25 Thread Carlos


Change by Carlos :


--
versions: +Python 3.10, Python 3.8

___
Python tracker 

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



[issue42527] UnicodeEncode error in BaseHttpRequestHandler class when send unicode data.

2021-08-25 Thread Carlos


Change by Carlos :


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

___
Python tracker 

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



[issue14613] time.time can return NaN

2021-08-25 Thread Irit Katriel


Irit Katriel  added the comment:

The versions field includes 3.2 and 3.3, but from the discussion it seems the 
problem was only observed in 2.7, and went away after a third party upgrade.

It seems unlikely that we will be ably to make more progress on this issue. I 
propose we close it and investigate if a similar problem is reported on a 
current version.

--
components: +Library (Lib)
nosy: +iritkatriel
resolution:  -> third party
status: open -> pending

___
Python tracker 

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



[issue45002] won't match correct version of tcl/tk

2021-08-25 Thread 郑之为

New submission from 郑之为 :

I used the following config:
./configure --prefix=/Users/jett/python311 --enable-optimizations --enable-ipv6 
--enable-big-digits=30 --with-lto=full 
--with-experimental-isolated-subinterpreters --with-static-libpython 
--enable-universalsdk --with-universal-archs=universal2 
--with-openssl=/opt/homebrew/opt/openssl@1.1

export CFLAGS="-I/opt/homebrew/opt/xz/include 
-I/opt/homebrew/opt/tcl-tk/include"
export CPPFLAGS="-I/opt/homebrew/opt/xz/include 
-I/opt/homebrew/opt/tcl-tk/include"
export LDFLAGS="-L/opt/homebrew/opt/tcl-tk/lib"

and got a version mismatch error: the executable is 8.6 and the library is 8.5

--
components: Build
messages: 400272
nosy: jett8998
priority: normal
severity: normal
status: open
title: won't match correct version of tcl/tk
type: behavior
versions: Python 3.11

___
Python tracker 

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



[issue42527] UnicodeEncode error in BaseHttpRequestHandler class when send unicode data.

2021-08-25 Thread Carlos


Change by Carlos :


--
nosy: +jcarlosgalvezm

___
Python tracker 

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



[issue44929] Some RegexFlag cannot be printed in the repr

2021-08-25 Thread Ethan Furman


Ethan Furman  added the comment:


New changeset 24da544014f78e6f1440d5ce5c2d14794a020340 by Pablo Galindo Salgado 
in branch 'main':
bpo-44929: [Enum] Fix global repr (GH-27789)
https://github.com/python/cpython/commit/24da544014f78e6f1440d5ce5c2d14794a020340


--

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Looking again, I think code is correct as-is (am not sure about the depth 
adjustment though).

Stylistically, it is different from the other blocks w_complex_object() that 
always have a "return" after setting p->error.  The new code jumps to 
"anyset_done" and then falls through the "elif" block rather than issuing a 
"return".

Since nothing else happens below the if-elif-else chain, this is without 
consequence.

--
status: open -> closed

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 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



[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-08-25 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

We'll do the changes Petr proposed first, and then I'll see how invasive the 
other changes will be. If the diffs end up being concise, I'll put them up for 
review :)

--

___
Python tracker 

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



[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-25 Thread 郑之为

郑之为  added the comment:

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_gdbm ossaudiodev   spwd   
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc  pwd   time   

running build_scripts
creating build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/pydoc3 -> 
build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/idle3 -> 
build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/2to3 -> 
build/scripts-3.11
changing mode of build/scripts-3.11/pydoc3 from 644 to 755
changing mode of build/scripts-3.11/idle3 from 644 to 755
changing mode of build/scripts-3.11/2to3 from 644 to 755
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
touch profile-gen-stamp
# Next, run the profile task to generate the profile information.
/Library/Developer/CommandLineTools/usr/bin/make run_profile_task
LLVM_PROFILE_FILE="code-%p.profclangr"  ./python.exe -m test --pgo 
--timeout=1200 || true
0:00:00 load avg: 7.14 Run tests sequentially (timeout: 20 min)
0:00:00 load avg: 7.14 [ 1/44] test_array
0:00:00 load avg: 7.14 [ 2/44] test_base64
0:00:00 load avg: 7.14 [ 3/44] test_binascii -- test_base64 failed (env changed)
0:00:00 load avg: 7.14 [ 4/44] test_binop
0:00:00 load avg: 7.14 [ 5/44] test_bisect
0:00:00 load avg: 7.14 [ 6/44] test_bytes
0:00:02 load avg: 6.73 [ 7/44] test_bz2 -- test_bytes failed (env changed)
0:00:02 load avg: 6.73 [ 8/44] test_cmath
0:00:02 load avg: 6.73 [ 9/44] test_codecs
0:00:03 load avg: 6.73 [10/44] test_collections
0:00:03 load avg: 6.73 [11/44] test_complex
0:00:04 load avg: 6.73 [12/44] test_dataclasses
0:00:04 load avg: 6.73 [13/44] test_datetime
0:00:07 load avg: 6.27 [14/44] test_decimal
--
 NOTICE 
--
test_decimal may generate "malloc can't allocate region"
warnings on macOS systems. This behavior is known. Do not
report a bug unless tests are also failing. See bpo-40928.

python.exe(70362,0x102aafd40) malloc: can't allocate region
:*** mach_vm_map(size=842105263157903360, flags: 100) failed (error code=3)
python.exe(70362,0x102aafd40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(70362,0x102aafd40) malloc: can't allocate region
:*** mach_vm_map(size=842105263157903360, flags: 100) failed (error code=3)
python.exe(70362,0x102aafd40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(70362,0x102aafd40) malloc: can't allocate region
:*** mach_vm_map(size=421052631578951680, flags: 100) failed (error code=3)
python.exe(70362,0x102aafd40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(70362,0x102aafd40) malloc: can't allocate region
:*** mach_vm_map(size=421052631578951680, flags: 100) failed (error code=3)
python.exe(70362,0x102aafd40) malloc: *** set a breakpoint in 
malloc_error_break to debug
0:00:09 load avg: 6.27 [15/44] test_difflib
0:00:10 load avg: 6.27 [16/44] test_embed
test test_embed failed
0:00:12 load avg: 5.85 [17/44] test_float -- test_embed failed (33 failures)
0:00:12 load avg: 5.85 [18/44] test_fstring
0:00:13 load avg: 5.85 [19/44] test_functools
0:00:13 load avg: 5.85 [20/44] test_generators
0:00:13 load avg: 5.85 [21/44] test_hashlib
0:00:14 load avg: 5.85 [22/44] test_heapq
0:00:14 load avg: 5.85 [23/44] test_int
0:00:14 load avg: 5.85 [24/44] test_itertools
0:00:16 load avg: 5.85 [25/44] test_json
0:00:17 load avg: 5.54 [26/44] test_long -- test_json failed (env changed)
0:00:19 load avg: 5.54 [27/44] test_lzma
0:00:19 load avg: 5.54 [28/44] test_math
0:00:21 load avg: 5.73 [29/44] test_memoryview
0:00:21 load avg: 5.73 [30/44] test_operator
0:00:22 load avg: 5.73 [31/44] test_ordered_dict
0:00:22 load avg: 5.73 [32/44] test_patma
0:00:22 load avg: 5.73 [33/44] test_pickle
0:00:25 load avg: 5.73 [34/44] test_pprint
0:00:25 load avg: 5.73 [35/44] test_re
0:00:26 load avg: 5.35 [36/44] test_set
0:00:27 load avg: 5.35 [37/44] test_sqlite
Fatal Python error: drop_gil: drop_gil: GIL is not locked
Python runtime state: initialized

Current thread 0x000102aafd40 (most recent call first):
  File "/Users/jett/cpython/Lib/sqlite3/test/userfunctions.py", line 524 in 
test_aggr_exception_in_finalize
  

[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-08-25 Thread Dong-hee Na


Dong-hee Na  added the comment:

Obviously, this case could be code churn(we don't accept normally), but if 
other core-dev agree with the changes. I am fine.

--
nosy: +corona10

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset a3c11cebf174e0c822eda8c545f7548269ce7a25 by Erlend Egeberg 
Aasland in branch 'main':
bpo-27334: Fix reference leak introduced by GH-26202 (GH-27942)
https://github.com/python/cpython/commit/a3c11cebf174e0c822eda8c545f7548269ce7a25


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue44991] [sqlite3] cleanup callbacks (GIL handling, naming, ...)

2021-08-25 Thread Petr Viktorin


Petr Viktorin  added the comment:

The general policy is to only improve style for code you touch for some other 
reasons. You're changing lots of the callback code in bpo-42064, so I reckon 
making things more readable is fine.

--

___
Python tracker 

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-25 Thread Brandt Bucher

Brandt Bucher  added the comment:

Hm, not quite sure what you mean. Are you talking about just replacing each of 
the new gotos with “Py_DECREF(pairs); return;”?

Error handling for this whole module is a bit unconventional. Some of the error 
paths in this function decrement the recursion depth counter, but I *think* 
that’s actually incorrect here… it looks like it’s our caller’s (w_object) 
responsibility to do that, error or no error.

--

___
Python tracker 

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



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

2021-08-25 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 15d50d7ed8afd3ab26b00210b5b4feaaadd5af51 by Mark Shannon in 
branch 'main':
bpo-44946: Streamline operators and creation of ints for common case of single 
'digit'. (GH-27832)
https://github.com/python/cpython/commit/15d50d7ed8afd3ab26b00210b5b4feaaadd5af51


--

___
Python tracker 

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



[issue45001] Date parsing helpers in email module incorrectly raise IndexError for some malformed inputs

2021-08-25 Thread wouter bolsterlee


wouter bolsterlee  added the comment:

pull request with fix at https://github.com/python/cpython/pull/27946

--
keywords: +patch
message_count: 1.0 -> 2.0
pull_requests: +26392
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27946

___
Python tracker 

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



[issue45001] Date parsing helpers in email module incorrectly raise IndexError for some malformed inputs

2021-08-25 Thread wouter bolsterlee

New submission from wouter bolsterlee :

Various date parsing utilities in the email module, such as 
email.utils.parsedate(), are supposed to gracefully handle invalid input, 
typically by raising an appropriate exception or by returning None.

The internal email._parseaddr._parsedate_tz() helper used by some of these date 
parsing routines tries to be robust against malformed input, but unfortunately 
it can still crash ungracefully when a non-empty but whitespace-only input is 
passed. This manifests as an unexpected IndexError.

In practice, this can happen when parsing an email with only a newline inside a 
‘Date:’ header, which unfortunately happens occasionally in the real world.

Here's a minimal example:

$ python
Python 3.9.6 (default, Jun 30 2021, 10:22:16) 
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email.utils
>>> email.utils.parsedate('foo')
>>> email.utils.parsedate(' ')
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
t = parsedate_tz(data)
  File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
res = _parsedate_tz(data)
  File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
if data[0].endswith(',') or data[0].lower() in _daynames:
IndexError: list index out of range


The fix is rather straight-forward; will open a pull request shortly.

--
components: email
messages: 400261
nosy: barry, r.david.murray, wbolster
priority: normal
severity: normal
status: open
title: Date parsing helpers in email module incorrectly raise IndexError for 
some malformed inputs
type: crash
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue39218] Assertion failure when calling statistics.variance() on a float32 Numpy array

2021-08-25 Thread Tal Einat


Change by Tal Einat :


--
nosy:  -taleinat

___
Python tracker 

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Should the error paths decref the key and return NULL as they do elsewhere in 
the function?

--
status: closed -> open

___
Python tracker 

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



[issue42238] Deprecate suspicious.py?

2021-08-25 Thread Julien Palard


Julien Palard  added the comment:

10 false positives today, see: 
https://github.com/python/cpython/pull/27945/files

I think I now need to put a deadline on this issue, let's say: one year without 
true positives and I drop it, so 2021-07-19 for now.

(In the meantime, I continue to convert each true positives to rstlint, I 
converted 3 of them so far.)

--

___
Python tracker 

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



[issue42238] Deprecate suspicious.py?

2021-08-25 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +26391
pull_request: https://github.com/python/cpython/pull/27945

___
Python tracker 

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



[issue44990] Change layout of frames back to specials-locals-stack (from locals-specials-stack)

2021-08-25 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset f9242d50b18572ef0d584a1c815ed08d1a38e4f4 by Mark Shannon in 
branch 'main':
bpo-44990: Change layout of evaluation frames. "Layout B" (GH-27933)
https://github.com/python/cpython/commit/f9242d50b18572ef0d584a1c815ed08d1a38e4f4


--

___
Python tracker 

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



[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-25 Thread Erlend E. Aasland


Erlend E. Aasland  added the comment:

IIRC, macOS deprecated this functionality some releases ago. Seems like they've 
now removed it completely.

I guess we could wrap this functionality with some preprocessor conditionals, 
and/or adjust the configure script to not accept 
--enable-loadable-sqlite-extensions for macOS 11.5.1 (11.5.x?).

--

___
Python tracker 

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



[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue44997] [sqlite3] build fails on macOS 11.5.1

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
title: _sqlite3 extention failed to build -> [sqlite3] build fails on macOS 
11.5.1

___
Python tracker 

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



[issue44997] _sqlite3 extention failed to build

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +26390
pull_request: https://github.com/python/cpython/pull/27944

___
Python tracker 

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



[issue45000] del __debug__ should be a SyntaxError

2021-08-25 Thread Andre Roberge


New submission from Andre Roberge :

Consider the following:

Python 3.10.0rc1  ...
>>> __debug__
True
>>> del __debug__
Traceback (most recent call last):
  File "", line 1, in 
NameError: name '__debug__' is not defined
>>> __debug__
True
>>> __debug__ = False
  File "", line 1
SyntaxError: cannot assign to __debug__

I suggest that attempting to delete __debug__ should be a SyntaxError, similar 
to attempting to delete None and other constants.

>>> del None
  File "", line 1
del None

SyntaxError: cannot delete None

= = =
The same NameError exception is raised for Python 3.9 when attempting to delete 
__debug__.  For Python 3.8, attempting to delete __debug__ silently fails, so 
the current behaviour is at least an improvement.

--
components: Parser
messages: 400256
nosy: aroberge, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: del __debug__ should be a SyntaxError
type: behavior
versions: Python 3.10

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +26389
pull_request: https://github.com/python/cpython/pull/27943

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +26388
pull_request: https://github.com/python/cpython/pull/27942

___
Python tracker 

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-25 Thread Łukasz Langa

Łukasz Langa  added the comment:

This is a bona fide enhancement and thus out of scope for backports. Since this 
is merged for 3.11, I'm closing the issue.

Thanks, everyone, this was some non-trivial design and implementation effort!

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



[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-25 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 33d95c6facdfda3c8c0feffa7a99184e4abc2f63 by Brandt Bucher in 
branch 'main':
bpo-37596: Make `set` and `frozenset` marshalling deterministic (GH-27926)
https://github.com/python/cpython/commit/33d95c6facdfda3c8c0feffa7a99184e4abc2f63


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7ecd3425d45a37efbc745788dfe21df0286c785a by Erlend Egeberg 
Aasland in branch 'main':
bpo-27334: roll back transaction if sqlite3 context manager fails to commit 
(GH-26202)
https://github.com/python/cpython/commit/7ecd3425d45a37efbc745788dfe21df0286c785a


--
nosy: +pablogsal

___
Python tracker 

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



[issue44999] Argparse missing translates

2021-08-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy:  -pablogsal

___
Python tracker 

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



[issue44999] Argparse missing translates

2021-08-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
components:  -Parser

___
Python tracker 

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



[issue44976] [sqlite3] lazy creation of result rows

2021-08-25 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



[issue44976] [sqlite3] lazy creation of result rows

2021-08-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3df0fc89bc2714f5ef03e36a926bc795dcd5e05a by Erlend Egeberg 
Aasland in branch 'main':
bpo-44976: Lazy creation of sqlite3 result rows (GH-27884)
https://github.com/python/cpython/commit/3df0fc89bc2714f5ef03e36a926bc795dcd5e05a


--
nosy: +pablogsal

___
Python tracker 

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



[issue44999] Argparse missing translates

2021-08-25 Thread santhosh


New submission from santhosh :

Dear all,

There are a few strings in the `argparse` module which are not translatable 
through the `gettext` API.

Some have already been reported:
- the "--version" help text at Lib/argparse.py:1105 (reported in issue 16786, 
fixed by PR 12711);
- the "default" help text at Lib/argparse.py:697 (reported in 33775, fixed by 
PR 12711).

However, some others remain:
- the "default" help text for `BooleanOptionalAction` at Lib/argparse.py:878 
(which, incidentally, will be duplicated when used with 
`ArgumentDefaultsHelpFormatter`);
- the "argument %(argument_name)s: %(message)s" error message at 
Lib/argparse.py:751;
- the formatted section heading at Lib/argparse.py:225: if the heading itself 
is translatable, the string "%(heading)s:" is not. More precisely, the colon 
right after the heading might also require localization, as some languages 
(e.g., French) typeset colons with a preceding non-breaking space (i.e., 
"%(heading)s :"). (Okay, I'll admit that this is nitpicking!)

I'll submit a pull request with proposed fixes for these strings.

Kind regards,
Santhosh

--
components: Parser
messages: 400251
nosy: lys.nikolaou, pablogsal, santhu_reddy12
priority: normal
severity: normal
status: open
title: Argparse missing translates
type: performance
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



[issue44998] tests failed

2021-08-25 Thread 郑之为

New submission from 郑之为 :

running build_scripts
creating build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/pydoc3 -> 
build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/idle3 -> 
build/scripts-3.11
copying and adjusting /Users/jett/cpython/Tools/scripts/2to3 -> 
build/scripts-3.11
changing mode of build/scripts-3.11/pydoc3 from 644 to 755
changing mode of build/scripts-3.11/idle3 from 644 to 755
changing mode of build/scripts-3.11/2to3 from 644 to 755
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
touch profile-gen-stamp
# Next, run the profile task to generate the profile information.
/Library/Developer/CommandLineTools/usr/bin/make run_profile_task
LLVM_PROFILE_FILE="code-%p.profclangr"  ./python.exe -m test --pgo 
--timeout=1200 || true
0:00:00 load avg: 5.31 Run tests sequentially (timeout: 20 min)
0:00:00 load avg: 5.31 [ 1/44] test_array
0:00:00 load avg: 5.31 [ 2/44] test_base64
0:00:00 load avg: 5.31 [ 3/44] test_binascii -- test_base64 failed (env changed)
0:00:00 load avg: 5.31 [ 4/44] test_binop
0:00:00 load avg: 5.31 [ 5/44] test_bisect
0:00:00 load avg: 5.31 [ 6/44] test_bytes
0:00:02 load avg: 5.31 [ 7/44] test_bz2 -- test_bytes failed (env changed)
0:00:02 load avg: 5.31 [ 8/44] test_cmath
0:00:02 load avg: 5.31 [ 9/44] test_codecs
0:00:03 load avg: 5.31 [10/44] test_collections
0:00:03 load avg: 5.31 [11/44] test_complex
0:00:04 load avg: 5.31 [12/44] test_dataclasses
0:00:04 load avg: 5.31 [13/44] test_datetime
0:00:07 load avg: 4.97 [14/44] test_decimal
--
 NOTICE 
--
test_decimal may generate "malloc can't allocate region"
warnings on macOS systems. This behavior is known. Do not
report a bug unless tests are also failing. See bpo-40928.

python.exe(34042,0x100a27d40) malloc: can't allocate region
:*** mach_vm_map(size=842105263157903360, flags: 100) failed (error code=3)
python.exe(34042,0x100a27d40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(34042,0x100a27d40) malloc: can't allocate region
:*** mach_vm_map(size=842105263157903360, flags: 100) failed (error code=3)
python.exe(34042,0x100a27d40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(34042,0x100a27d40) malloc: can't allocate region
:*** mach_vm_map(size=421052631578951680, flags: 100) failed (error code=3)
python.exe(34042,0x100a27d40) malloc: *** set a breakpoint in 
malloc_error_break to debug
python.exe(34042,0x100a27d40) malloc: can't allocate region
:*** mach_vm_map(size=421052631578951680, flags: 100) failed (error code=3)
python.exe(34042,0x100a27d40) malloc: *** set a breakpoint in 
malloc_error_break to debug
0:00:09 load avg: 4.73 [15/44] test_difflib
0:00:10 load avg: 4.73 [16/44] test_embed
test test_embed failed
0:00:12 load avg: 4.73 [17/44] test_float -- test_embed failed (33 failures)
0:00:12 load avg: 4.73 [18/44] test_fstring
0:00:13 load avg: 4.73 [19/44] test_functools
0:00:13 load avg: 4.73 [20/44] test_generators
0:00:13 load avg: 4.73 [21/44] test_hashlib
0:00:13 load avg: 4.73 [22/44] test_heapq
0:00:14 load avg: 4.73 [23/44] test_int
0:00:14 load avg: 4.59 [24/44] test_itertools
0:00:16 load avg: 4.59 [25/44] test_json
0:00:17 load avg: 4.59 [26/44] test_long -- test_json failed (env changed)
0:00:19 load avg: 4.59 [27/44] test_lzma
0:00:19 load avg: 4.59 [28/44] test_math -- test_lzma skipped
0:00:20 load avg: 4.30 [29/44] test_memoryview
0:00:21 load avg: 4.30 [30/44] test_operator
0:00:21 load avg: 4.30 [31/44] test_ordered_dict
0:00:21 load avg: 4.30 [32/44] test_patma
0:00:22 load avg: 4.30 [33/44] test_pickle
0:00:24 load avg: 4.04 [34/44] test_pprint
0:00:24 load avg: 4.04 [35/44] test_re
0:00:25 load avg: 4.04 [36/44] test_set
0:00:26 load avg: 4.04 [37/44] test_sqlite
0:00:26 load avg: 4.04 [38/44] test_statistics -- test_sqlite skipped
0:00:27 load avg: 4.04 [39/44] test_struct
0:00:28 load avg: 4.04 [40/44] test_tabnanny -- test_struct failed (env changed)
0:00:28 load avg: 4.04 [41/44] test_time -- test_tabnanny failed (env changed)
0:00:30 load avg: 3.88 [42/44] test_unicode
0:00:31 load avg: 3.88 [43/44] test_xml_etree -- test_unicode failed (env 
changed)
0:00:31 load avg: 3.88 [44/44] test_xml_etree_c

Total duration: 32.5 sec
Tests result: FAILURE
/Library/Developer/CommandLineTools/usr/bin/make build_all_merge_profile
/usr/local/bin/llvm-profdata merge -output=code.profclangd *.profclangr
warning: code-34042.profclangr: unsupported instrumentation 

[issue44997] _sqlite3 extention failed to build

2021-08-25 Thread 郑之为

New submission from 郑之为 :

building '_sqlite3' extension
creating 
build/temp.macosx-11.5-universal2-3.11/Users/jett/cpython/Modules/_sqlite
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv 
-O3 -Wall -arch arm64 -arch x86_64 -fno-semantic-interposition -flto -std=c99 
-Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Wstrict-prototypes 
-Werror=implicit-function-declaration -fvisibility=hidden 
-fprofile-instr-generate -I./Include/internal -IModules/_sqlite 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I./Include 
-I. -I/usr/local/include -I/Users/jett/cpython/Include -I/Users/jett/cpython -c 
/Users/jett/cpython/Modules/_sqlite/connection.c -o 
build/temp.macosx-11.5-universal2-3.11/Users/jett/cpython/Modules/_sqlite/connection.o
/Users/jett/cpython/Modules/_sqlite/connection.c:1179:10: error: implicit 
declaration of function 'sqlite3_enable_load_extension' is invalid in C99 
[-Werror,-Wimplicit-function-declaration]
rc = sqlite3_enable_load_extension(self->db, onoff);
 ^
/Users/jett/cpython/Modules/_sqlite/connection.c:1215:10: error: implicit 
declaration of function 'sqlite3_load_extension' is invalid in C99 
[-Werror,-Wimplicit-function-declaration]
rc = sqlite3_load_extension(self->db, extension_name, 0, );
 ^
/Users/jett/cpython/Modules/_sqlite/connection.c:1215:10: note: did you mean 
'sqlite3_auto_extension'?
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sqlite3.h:6551:16:
 note: 'sqlite3_auto_extension' declared here
SQLITE_API int sqlite3_auto_extension(void(*xEntryPoint)(void));
   ^
2 errors generated.


This is the error message from clang on macOS 11.5.1
configure options: ./configure --prefix=/Users/jett/python311 
--enable-optimizations --enable-loadable-sqlite-extensions --enable-ipv6 
--enable-big-digits=30 --with-lto=full 
--with-experimental-isolated-subinterpreters --with-static-libpython 
--enable-universalsdk --with-universal-archs=universal2

--
components: Build
messages: 400249
nosy: jett8998
priority: normal
severity: normal
status: open
title: _sqlite3 extention failed to build
type: compile error
versions: Python 3.11

___
Python tracker 

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



[issue44996] tarfile missing TarInfo.offset_data member in documentation

2021-08-25 Thread Nils


New submission from Nils :

The title says it all: `TarInfo` objects are missing their `offset_data` member 
in all documentation versions.

--
assignee: docs@python
components: Documentation
messages: 400248
nosy: docs@python, nilsnolde
priority: normal
severity: normal
status: open
title: tarfile missing TarInfo.offset_data member in documentation
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



  1   2   >