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

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

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

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

[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

[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

[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

[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

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

[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

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

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

[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

[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

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

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

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

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

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

[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

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

[issue44995] "Hide the prompts and output" works abnormal

2021-08-25 Thread Julian Berman
Change by Julian Berman : -- keywords: +patch nosy: +Julian nosy_count: 2.0 -> 3.0 pull_requests: +26384 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27939 ___ Python tracker

[issue44986] Date formats in help messages of argparse

2021-08-25 Thread Julian Berman
Julian Berman added the comment: This is documented already I believe: https://docs.python.org/3/library/argparse.html#help > As the help string supports %-formatting, if you want a literal % to appear > in the help string, you must escape it as %%. -- nosy: +Julian

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

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

[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

[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

[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

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

2021-08-25 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.11 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44864] [argparse] Do not translate user-provided strings in `ArgumentParser.add_subparsers()`

2021-08-25 Thread Jérémie Detrey
Jérémie Detrey added the comment: Hi, Thank you for the clarification! In fact, I'm afraid the localization feature of `argparse` is undocumented. (At least, I couldn't find anything about it in the documentation.) A hint that modules should only take care of their own strings can however

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

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

[issue43612] zlib.compress should have a wbits argument

2021-08-25 Thread Ruben Vorderman
Change by Ruben Vorderman : -- pull_requests: +26387 pull_request: https://github.com/python/cpython/pull/27941 ___ Python tracker ___

[issue43613] gzip.compress and gzip.decompress are sub-optimally implemented.

2021-08-25 Thread Ruben Vorderman
Change by Ruben Vorderman : -- keywords: +patch pull_requests: +26386 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27941 ___ Python tracker ___

[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

[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

[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

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

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

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-08-25 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +26385 pull_request: https://github.com/python/cpython/pull/27940 ___ Python tracker ___

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

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

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

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

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

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

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

[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

[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

[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

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

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

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

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

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

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

[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()

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

[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

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

[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

[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

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

[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

[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

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

[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

[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

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

[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

[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

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

[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

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

[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

[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

[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

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

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

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

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

[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

[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

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

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

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

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

[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

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

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

[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

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

[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

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

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

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

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

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

[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

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

  1   2   >