[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-13 Thread David K.
New submission from David K. : Unable to establish SSL connections using company's private certificates where their SANs (Subject Alternative Names) contain at least one DNS Name that starts with white spaces. Attempting to establish SSL connection would result in Exce

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-13 Thread David K.
Change by David K. : -- keywords: +patch pull_requests: +14979 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15260 ___ Python tracker <https://bugs.python.org/issu

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-14 Thread David K.
David K. added the comment: Hi, Judging by your comment, I think there is a an unfortnate misunderstanding. If you'd be kind enough, please let me explain: 1. The issue I had was indeed on Python 3.7, using the highly used "requests" library. Also my change was -not-

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-14 Thread David K.
David K. added the comment: OK, I see your point :) Modification of the original certificiation is legally problematic. Much thanks for the patience and time to explain, D.K On Wed, Aug 14, 2019, 17:23 Christian Heimes wrote: > > Christian Heimes added the comment: > > O

[issue28747] Expose SSL_CTX_set_cert_verify_callback

2019-09-02 Thread David Peall
Change by David Peall : -- nosy: +David Peall ___ Python tracker <https://bugs.python.org/issue28747> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36876] Global C variables are a problem.

2019-09-11 Thread David Bolen
David Bolen added the comment: The new test_check_c_globals.ActualChecks test is failing with an "unexpected success" on the bolen-ubuntu buildbot (under Ubuntu 18.04.3). I can reproduce the failure in a manually built tree. -- n

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2019-09-18 Thread David Cuthbert
David Cuthbert added the comment: I'm seeing this on a rebuild now of Python 3.7.4 on Ubuntu 18.04 (in my case against _ssl.c). What's happening is there's coverage/profiling data being generated in the build chain (somewhere), which spits out files named *.gcda. Interesting

[issue34820] binascii.c:1578:1: error: the control flow of function ‘binascii_crc32’ does not match its profile data (counter ‘arcs’)

2019-09-18 Thread David Cuthbert
Change by David Cuthbert : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-09-19 Thread David Hilton
New submission from David Hilton : If a python piece of code imports cython code with async defs, `asyncio.iscoroutinefunction` cannot determine that the code is async. https://github.com/cython/cython/issues/2273#issuecomment-531537624 scoder is open to marking async defs so that they can

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-09-19 Thread David Hilton
Change by David Hilton : -- keywords: +patch pull_requests: +15877 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16292 ___ Python tracker <https://bugs.python.org/issu

[issue38229] ClientConnectionError exception doesn't serialize propertly

2019-09-19 Thread David Parks
New submission from David Parks : Original question posted here: https://stackoverflow.com/questions/58019939/attributeerror-str-object-has-no-attribute-errno?noredirect=1#comment102443264_58019939 The following exception is encountered when placing an

[issue38229] ClientConnectionError exception doesn't serialize propertly

2019-09-19 Thread David Parks
David Parks added the comment: Minor correction to the minimal reproducible test case: ``` import multiprocessing import aiohttp connection_key = aiohttp.client_reqrep.ConnectionKey ose = OSError('test') e = aiohttp.client_exceptions.ClientConnectorError(connection_k

[issue38229] ClientConnectionError exception doesn't serialize property

2019-09-19 Thread David Parks
David Parks added the comment: Oh yes, this belongs to aiohttp. I thought that was handled here. I'll move this to a git issue on that page, and I'm closing this. https://github.com/aio-libs/aiohttp/issues/4077 -- resolution: -> rejected stage: -> resolved status

[issue38254] Pickle not deserializing an OSError exception as expected

2019-09-22 Thread David Parks
New submission from David Parks : Below is a minimum reproducible test case of what appears to be an issue in pickle. Before pickling the exception ClientConnectionError, from aiohttp, the property ClientConnectionError._os_error is a PermissionError object (a subclass of OSError). After

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-22 Thread David Parks
Change by David Parks : -- title: Pickle not deserializing an OSError exception as expected -> Pickle not deserializing an aiohttp ClientConnectorError exception as expected ___ Python tracker <https://bugs.python.org/issu

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-23 Thread David Parks
David Parks added the comment: I may be wrong here, but the issue appears to be a problem in pickle, which is why I brought it over here. From the looks of the very simple code in the Exception I can't see that there's any way that this exception is possible unless pickle itself

[issue38254] Pickle not deserializing an aiohttp ClientConnectorError exception as expected

2019-09-24 Thread David Parks
David Parks added the comment: An answer came in over the stack overflow question. https://stackoverflow.com/questions/58019939/attributeerror-str-object-has-no-attribute-errno/58084380#58084380 The issue is that OSError implements a custom __reduce__ function which needs to be override by

[issue38311] macOS sqlite 3 module build fix

2019-09-28 Thread David CARLIER
Change by David CARLIER : -- components: Build nosy: devnexen priority: normal pull_requests: 16052 severity: normal status: open title: macOS sqlite 3 module build fix type: compile error versions: Python 3.9 ___ Python tracker <ht

[issue24464] Got warning when compiling sqlite3 module on Mac OS X

2019-09-28 Thread David CARLIER
Change by David CARLIER : -- pull_requests: +16055 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16469 ___ Python tracker <https://bugs.python.org/issu

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-02 Thread David Bolen
David Bolen added the comment: Just an FYI that this change is generating warnings on my Windows 10 buildbot with some regularity about a failure to parse testperf output, such as: Warning -- Failed to parse typeperf output: '"10/01/2019 07:58:50.056"' from https://bui

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-02 Thread David Bolen
David Bolen added the comment: Oh, I agree it's just a warning, and I suspect few people look into warnings, but since it's not from an actual test, I'm not sure the overall build should be flagged. The manual typeperf looks fine, but there's no way I could tell visu

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-02 Thread David Bolen
David Bolen added the comment: I've confirmed the partial read with some local modifications, and the failures are always split between time stamp and value: Warning -- Failed to parse typeperf output: '"10/02/2019 17:42:26.229"' 0.0 Warning -- Missing first field

[issue38421] email.utils.parsetime_tz does not return "None"

2019-10-09 Thread David Kernan
Change by David Kernan : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue38421> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38421] email.utils.parsetime_tz does not return "None"

2019-10-09 Thread David Kernan
New submission from David Kernan : email.utils.parsetime_tz() is a function which attempts to parse a date, and returns a 10-item tuple. The first 9 items represents a time, and the last item represents the timezone offset from UTC. In Python 2, the original behavior was to return the date

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-10-09 Thread David Kernan
Change by David Kernan : -- title: email.utils.parsetime_tz does not return "None" -> email.utils.parsetime_tz does not return "None" as the tz offset ___ Python tracker <https://

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-10-09 Thread David Kernan
David Kernan added the comment: Ah yes, thanks, this does seem pretty intentional. I'll submit a PR for the documentation for this method for the affected version. -- ___ Python tracker <https://bugs.python.org/is

[issue38421] email.utils.parsetime_tz does not return "None" as the tz offset

2019-10-09 Thread David Kernan
Change by David Kernan : -- assignee: -> docs@python components: +Documentation -email nosy: +docs@python ___ Python tracker <https://bugs.python.org/issu

[issue38413] Remove or change "Multithreading" section

2019-10-09 Thread David Kernan
Change by David Kernan : -- keywords: +patch pull_requests: +16262 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16678 ___ Python tracker <https://bugs.python.org/issu

[issue38413] Remove or change "Multithreading" section

2019-10-09 Thread David Kernan
Change by David Kernan : -- pull_requests: -16262 ___ Python tracker <https://bugs.python.org/issue38413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38502] regrtest: use process groups

2019-10-18 Thread David Bolen
David Bolen added the comment: I don't know for sure that this is the cause but both 3.x builds following this commit on my bolen-ubuntu worker (Ubuntu 18.04.3) have had test_pty crash in the first attempt, with the retry succeeding. For example https://buildbot.python.org/all/#/bui

[issue38502] regrtest: use process groups

2019-10-18 Thread David Bolen
David Bolen added the comment: I can recreate this manually by running regrtest.py against test_pty. Crashes with any "-j#" option, but fine when run sequentially. Removing the process group change avoids the crash. With the process group change in place, the trigger point app

[issue38547] test_pty fails when using setsid()

2019-10-21 Thread David Bolen
Change by David Bolen : -- nosy: +db3l ___ Python tracker <https://bugs.python.org/issue38547> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12806] argparse: Hybrid help text formatter

2019-10-22 Thread David Steele
David Steele added the comment: I came across this thread after making a simple argparse formatter for preserving paragraphs. The submissions here look better than that effort. Here is a quick, hacky look at the patches from one perspective. I wanted to prefer ParagraphFormatterML, but

[issue34776] Postponed annotations break inspection of dataclasses

2019-10-23 Thread David Hagen
David Hagen added the comment: This PR has been sitting for a while. Any chance we can bring it over the finish line? -- ___ Python tracker <https://bugs.python.org/issue34

[issue38649] tkinter messagebox is sloppy

2019-10-30 Thread David Lambert
New submission from David Lambert : Does aksokcancel return "true" or True ? The docstring should say True This is pervasive throughout the module. tkinter has such a mishmash of numbers supplied as strings, strings supplied as constants making this carelessness egregious. On

[issue38675] Sug. for the scope example in TPT Cjapter 9

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : In The Python Tutorial, at the end of Section 9.2.1 "Scopes and Namespaces Example," there occurs the statement: "You can also see that there was no previous binding for spam before the global assignment." Indeed, one can &qu

[issue38675] Sug. for the scope example in TPT Chapter 9

2019-11-03 Thread David Goldsmith
Change by David Goldsmith : -- title: Sug. for the scope example in TPT Cjapter 9 -> Sug. for the scope example in TPT Chapter 9 ___ Python tracker <https://bugs.python.org/issu

[issue38678] TypeError raised trying to run TPT 10.3 Example 2 in Python 3.4.3

2019-11-03 Thread David Goldsmith
New submission from David Goldsmith : When I run the second example code of Section 10.3 of The Python Tutorial: import argparse from getpass import getuser parser = argparse.ArgumentParser(description='An argparse example.') parser.add_argument('name', nargs='?'

[issue43519] access python private variable

2021-03-16 Thread David Elmakias
New submission from David Elmakias : It might be my lack of knowledge in python, however I find this behavior a bit strange. By declaring a private variable in a class, python creates an attribute with the name '___'. Both are located on a different location in memory. I fou

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
New submission from David Lukeš : I recently came across a non-testing use case for `tempfile.mktemp()` where I struggle to find a viable alternative -- temporary named pipes (FIFOs): ``` import os import tempfile import subprocess as sp fifo_path = tempfile.mktemp() os.mkfifo(fifo_path

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
David Lukeš added the comment: > A secure `mktemp` could be as simple as ... Though in practice, I'd rather be inclined to make the change in `tempfile._RandomNameSequence`, so as to get the same behavior across the entire module, instead of special-casing `mktemp`. As Guido va

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
David Lukeš added the comment: > You can use TemporaryDirectory. That was actually the first approach I tried :) I even thought this could be used to make `mktemp` safe -- just create the name in a `TemporaryDirectory`. However, after reading through the mailing list thread, I realized t

[issue22239] asyncio: nested event loop

2021-03-24 Thread David Brochart
David Brochart added the comment: Regarding the initial message in this issue, and enabling recursive event loops, this has proved to be very useful when an event loop is already running and some non-async code needs to run async code. This situation is very frequent when e.g. a library is

[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

2021-03-28 Thread David Bolen
David Bolen added the comment: The test has also begun failing on the Win10 buildbot (after updating to 20H2 from an older 1803). -- nosy: +db3l ___ Python tracker <https://bugs.python.org/issue37

[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

2021-03-29 Thread David Bolen
David Bolen added the comment: I don't have much of a horse in the race, but since the test has historically been skipped on Windows, and the test hasn't and doesn't work on Windows, modifications to restore the skip behavior seem reasonable to me. The trigger for this is

[issue37945] [Windows] test_locale.TestMiscellaneous.test_getsetlocale_issue1813() fails

2021-03-30 Thread David Bolen
David Bolen added the comment: In lieu of the patch in #25191, what about a pair of skips to deal with the issues at hand without killing the test entirely? I'm including OpenBSD since those issues were closed in favor of this one, and am assuming that skipping there is also approp

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Note that this commit appears to be causing exceptions for the Win10 buildbot, failing the PyCode_Addr2Line assertion in codeobject.c line 1252. The assertion seems to pop up at differing points during each test run, but the builder has yet to complete a full

[issue27129] Wordcode, part 2

2021-04-01 Thread David Bolen
David Bolen added the comment: Unfortunately, not at the moment - what's in the buildbot log is what's available. The RTL assertion aborts the process. The tests involved (such as test_clinic) do seem reproducible in a few separate tries, though again, all they do is terminat

[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen
David Bolen added the comment: Ah, Victor, that helps. I was having trouble reproducing the problem on a different system. I was suspecting a small difference in compiler version, but I hadn't considered it being because I started fresh. >From what I can see, a particular build

[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen
David Bolen added the comment: I'm out of time for a bit, but it appears that the root issue is old pyc files in Tools/clinic/__pycache__ that aren't removed during a clean process, and appear to be the source of all of the errors. Manually pruning that folder fixes things. I b

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-02 Thread David Bolen
New submission from David Bolen : The Tools\buildbot\clean.bat script used on Windows only removes pyc/pyo files from the Lib tree, leaving some files beneath Tools (clinic and peg_generator) and Parser (asdl). This can cause failures following commits that affect those files, such as

[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen
David Bolen added the comment: I've opened issue #43709 for fixing the buildbot clean script under Windows. It needs to clean the Tools and Parser trees, not just Lib (and there are a few other folders involved besides clinic) -- ___ P

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-02 Thread David Bolen
David Bolen added the comment: Something like this is a quick 'n dirty minimal fix - at least it seems to solve the problem that arose in issue #27129 on the Win10 buildbot: --- a/Tools/buildbot/clean.bat +++ b/Tools/buildbot/clean.bat @@ -11,6 +11,8 @@ call "%pcbuild%\build.bat&qu

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-02 Thread David Bolen
Change by David Bolen : -- keywords: +patch pull_requests: +23904 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25157 ___ Python tracker <https://bugs.python.org/issu

[issue27129] Wordcode, part 2

2021-04-03 Thread David Bolen
David Bolen added the comment: I don't think reverting the commit at this point would necessarily be helpful. While it might fix some systems, it could newly break anyone who happened to do their first build since the commit was in place. I didn't want to bug anyone over the we

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread David Bolen
David Bolen added the comment: Terry, it's not clear to me if this is the same issue (at first blush it appears different) but could you see if you have any pyc files in __pycache__ folders within the Tools or Parser directories in your tree that could be from prior builds? If so, r

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread David Bolen
David Bolen added the comment: Dennis, just to make sure I wasn't too literal, some of the __pycache__ folders are in subdirectories (at least in Tools), so just to double check, you did a recursive search beneath Tools and Parser

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-03 Thread David Bolen
David Bolen added the comment: Based on further information in issue #27129 as well as issue #43719 it appears a source of the problem prompting this fix was a failure to update the magic number in the original commit for #27129. The windows clean script does still leave more artifacts than

[issue43726] regex module fails with a quantified backref but succeeds with repeated backref

2021-04-04 Thread David Ellsworth
New submission from David Ellsworth : The regex /^((x*)\2{3}(?=\2$))*x$/ matches powers of 5 in unary, expressed as strings of "x" characters whose length is the number. The following command line should print "1", but prints nothing: python -c 'import regex; regex

[issue43726] regex module fails with a quantified backref but succeeds with repeated backref

2021-04-04 Thread David Ellsworth
David Ellsworth added the comment: Thanks, I didn't realize. I thought it was an official module that wasn't included as part of the main package due to being unfinished. Reported the bug here: https://bitbucket.org/mrabarnett/mrab-regex/issues/408/regex-fails-with-a-

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-04 Thread David Bolen
David Bolen added the comment: No longer needed after commit c368ce74d2c9bcbf1ec320466819c2d4768252f7 -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2021-04-09 Thread David Mandelberg
Change by David Mandelberg : -- nosy: +dseomn ___ Python tracker <https://bugs.python.org/issue24959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-16 Thread David Heffernan
David Heffernan added the comment: @Steve as a user of Python rather than a Python developer, I don't know what the process here. I understand the need for a test, and then a fix. And I would not be surprised if the act of fixing the issue led to a broadening of the test if the scope o

[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2021-04-20 Thread David Goncalves
Change by David Goncalves : -- keywords: +patch nosy: +dpg nosy_count: 6.0 -> 7.0 pull_requests: +24204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25480 ___ Python tracker <https://bugs.python.org/i

[issue19023] ctypes docs: Unimplemented and undocumented features

2021-04-20 Thread David Goncalves
Change by David Goncalves : -- nosy: +dpg nosy_count: 11.0 -> 12.0 pull_requests: +24205 pull_request: https://github.com/python/cpython/pull/25480 ___ Python tracker <https://bugs.python.org/issu

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2021-04-21 Thread David Felsen
Change by David Felsen : -- nosy: +davfelsen ___ Python tracker <https://bugs.python.org/issue38119> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44155] Race condition when using multiprocessing BaseManager and Pool in Python3

2021-05-17 Thread David Chen
New submission from David Chen : could someone help me out? i spent a lot of time to debug a race condition i have encountered when using BaseManager, Pool within multiprocessing library. here is the simplified code: ``` import sys, time from multiprocessing.managers import BaseManager

[issue44190] Dictionary assignment shorthand

2021-05-20 Thread David Hariri
New submission from David Hariri : In some languages, one may declare a dictionary's key and its value like so: ``` foo = "bar" my_dict = { foo } >> { "foo" : "bar" } ``` In Python, one must instead write: ``` foo = "bar" my_dict = {

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-05-20 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker <https://bugs.python.org/issue40092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2021-05-22 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker <https://bugs.python.org/issue40068> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-05-23 Thread David Edelsohn
David Edelsohn added the comment: How could release_sentinel() be structured to not call PyThread_release_lock()? This seems to be a situation where _PyThreadState_DeleteExcept() is deleting all thread states. thread__set_sentinel() sets release_sentinel() as its on_delete hook. The thread

[issue44155] Race condition when using multiprocessing BaseManager and Pool in Python3

2021-05-24 Thread David Chen
David Chen added the comment: After some investigation, i almost finally identified the root cause - it was caused by the following line in `Server` class in `manager.py` file: ``` self.listener = Listener(address=address, backlog=16) ``` i'm not sure where the magic number `16` came

[issue43665] AIX: test_importlib regression (ENV change)

2021-05-24 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker <https://bugs.python.org/issue43665> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2021-05-24 Thread David Edelsohn
David Edelsohn added the comment: It seems that PyOS_AfterFork_Child() needs to do something like PyThreadState *tstate = PyThreadState_Get(); PyObject *wr = _PyObject_CAST(tstate->on_delete_data); PyObject *obj = PyWeakref_GET_OBJECT(wr); lockobject *lock; if (obj != Py_None) { l

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-28 Thread David Bolen
David Bolen added the comment: The win10 buildbot appears to have this failure consistently (100%) on the 3.10 branch. The first such failure appears to be yesterday (https://buildbot.python.org/all/#/builders/600/builds/79), following commit da8097aaf5a55c23f5b5ddbeffc2d90d06e00d93 - GC

[issue44252] test_ssl and test_httplib.HTTPSTest crash randomly with "Windows fatal exception: access violation" on Windows

2021-05-28 Thread David Bolen
David Bolen added the comment: Oddly, it turns out it's the "--junit-xml" parameter during buildbot tests that is making it reproducible there. Pass: python_d -m test.regrtest test_ssl Fail: python_d -m test.regrtest --junit-xml out.xml test_ssl The latter consistently f

[issue44264] Add descriptive error message when environment variable not detected

2021-05-29 Thread David Gene
New submission from David Gene : Using os.environ[KEY] with a non-existent environment variable key only gives a simple KeyError, which may be fine for a developer to understand, but if a user of a Python program were to come across it, it may not indicate what they needed to do to avoid the

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
New submission from David Lambert : math.fabs returns float. The documentation should say so, and help(math.fabs) should include the expected return type -> float fabs(x, /) -> float Return the absolute value of the float x. I did not check, but expect these annotations recommend

[issue44519] help(math.fabs)

2021-06-27 Thread David Lambert
David Lambert added the comment: Hi Ray, I'm glad this was a conscious choice.  I found a person confused by the output of print(abs(3), math.fabs(3)) Perhaps the manual would mention return values->that's not an annotation. Thanks for considering, Dave On 6/27/21 12:4

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-10 Thread David Hoyes
Change by David Hoyes : -- nosy: +David Hoyes ___ Python tracker <https://bugs.python.org/issue44594> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2021-07-12 Thread David Goncalves
David Goncalves added the comment: PR 25480 passes checks and awaits core review. All comments thus far have been addressed. -- ___ Python tracker <https://bugs.python.org/issue33

[issue44755] cpython Lib bisect.py overflow (lo + hi) // 2 a problem?

2021-07-27 Thread David Duffy
New submission from David Duffy : https://ai.googleblog.com/2006/06/extra-extra-read-all-about-it-nearly.html led me to change to lo+(lo+hi)/2 - would this affect bisect.py??? -- components: Library (Lib) messages: 398337 nosy: David.Duffy priority: normal severity: normal status

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
New submission from David Gilman : Note that this is a different approach from the one taken in https://bugs.python.org/issue35517 although the issue is still the same. I've written a patch that allows users of selector.EpollSelector to enable EPOLLEXCLUSIVE on their file descriptors.

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
Change by David Gilman : -- keywords: +patch pull_requests: +26284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27819 ___ Python tracker <https://bugs.python.org/issu

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-18 Thread David Gilman
David Gilman added the comment: I also played with making another whole subclass that has it on by default, see this package https://github.com/dgilman/selector-epoll-exclusive That class could have EPOLLEXCLUSIVE on by default but could raise NotImplemented if you try and modify() it

[issue44951] selector.EpollSelector: EPOLLEXCLUSIVE, round 2

2021-08-19 Thread David Gilman
David Gilman added the comment: Reflecting on this a bit I wonder if the best of all worlds is to have an EpollExclusiveSelector whose modify() implementation just unregisters and registers the file descriptor. -- ___ Python tracker <ht

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

2021-08-24 Thread David Rebbe
New submission from David Rebbe : enum.auto() By default, the initial value starts at 1. Per the documentation here: https://docs.python.org/3/library/enum.html#enum.auto This doesn't really follow expected behavior in majority of programming languages nor python. Most will expect sta

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

2021-08-24 Thread David Rebbe
David Rebbe added the comment: Understandable and I do believe IntEnum should default as zero as its the default type most will choose when trying to mimic other languages. C/C++ has the same problem where the value isn't suppose to matter but as soon as you go across the com

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

2021-08-24 Thread David Rebbe
David Rebbe added the comment: I only created this issue because its a deviation from any standard that exists AFAIK. Nothing I know of starts at 1 in programming and I more than likely won't be the last one to make this mistake. If indexing in Python started at 1 or any other accesso

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

2021-08-24 Thread David Rebbe
David Rebbe added the comment: Welcome to enums, they don't matter until they do. I'm personally not a fan of enums for APIs but they exist all the time. Indexing was an example case that nothing starts at 1. See the attached file to demonstrate differences. -- Added f

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

2021-08-24 Thread David Rebbe
David Rebbe added the comment: Definition of equivalent 1: equal in force, amount, or value Are you referring to memory space as what is actually stored in RAM? If so, that seems to be outside the scope here. I don't think anyone expected an interpreted language to have the same m

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

2021-08-24 Thread David Rebbe
David Rebbe added the comment: Seems like there is a misunderstanding here as to why this is an issue. I can write an example up that would expand on the file I attached, but I feel like anyone that has experience in the above situations would identify this as an issue. Can I ask why

[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

[issue45133] Open functions in dbm submodule should support path-like objects

2021-09-07 Thread David Mertz
New submission from David Mertz : Evan Greenup via Python-ideas Currently, in Python 3.9, `dbm.open()`, `dbm.gnu.open()` and `dbm.ndbm.open()` doesn't support path-like object, class defined in `pathlib`. It would be nice to add support with it. -- components: Library

[issue45133] Open functions in dbm submodule should support path-like objects

2021-09-07 Thread David Mertz
David Mertz added the comment: Oops... I missed prior closely related or identical issue at: https://bugs.python.org/issue40563 -- resolution: -> duplicate ___ Python tracker <https://bugs.python.org/issu

[issue40563] Support pathlike objects on dbm/shelve

2021-09-08 Thread David Mertz
David Mertz added the comment: I've made the few additional changes to those in this PR. When I work out the issues, I'll make a new PR. I took out an attempt with `path_t`. However, here is why I think argument clinic (or something else?!) is actually intercepting the atte

[issue40563] Support pathlike objects on dbm/shelve

2021-09-08 Thread David Mertz
David Mertz added the comment: If anyone wants to look at my not-yet-complete changes (see other comment), it's https://github.com/DavidMertz/cpython/tree/bpo-45133. It has a different bpo because I filed a duplicate before realizing. I can change the branch name before a PR, but m

[issue45156] mock.seal has infinite recursion with int class attributes

2021-09-09 Thread David Mandelberg
New submission from David Mandelberg : The code below seems to have infinite recursion in the mock.seal call with python 3.9.2. from unittest import mock class Foo: foo = 0 foo = mock.create_autospec(Foo) mock.seal(foo) -- components: Library (Lib) messages: 401525 nosy: dseomn

[issue45163] Haiku build fix

2021-09-10 Thread David CARLIER
Change by David CARLIER : -- components: Library (Lib) nosy: devnexen priority: normal pull_requests: 26689 severity: normal status: open title: Haiku build fix type: compile error versions: Python 3.11 ___ Python tracker <https://bugs.python.

[issue45172] netbsd CAN protocol flags addition

2021-09-11 Thread David CARLIER
Change by David CARLIER : -- components: Library (Lib) nosy: devnexen priority: normal pull_requests: 26704 severity: normal status: open title: netbsd CAN protocol flags addition type: enhancement versions: Python 3.11 ___ Python tracker <ht

<    3   4   5   6   7   8   9   10   11   12   >