[issue12004] PyZipFile.writepy gives internal error on syntax errors

2011-05-05 Thread Ben Morgan
Ben Morgan added the comment: I've attached a patch to test_zipfile.py. I noticed that it writes out the error to stdout not stderr; I don't know if this is the desired behaviour. -- Added file: http://bugs.python.org/file21903/test-zip

[issue12014] str.format parses replacement field incorrectly

2011-05-05 Thread Ben Wolfson
New submission from Ben Wolfson : As near as I can make out from <http://docs.python.org/library/string.html#formatstrings>, the following should return the string "hi": "{0[!]}".format({"!":"hi"}) We have a "{", followed by a field n

[issue12014] str.format parses replacement field incorrectly

2011-05-05 Thread Ben Wolfson
Changes by Ben Wolfson : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue12014> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Ben Wolfson
Ben Wolfson added the comment: The semantics the docs suggest for index fields (namely that whatever is in the index field is just passed to getitem) do seem to be right, no other processing is done here, for instance: >>> d = {"{0}":"hi"} >>> "

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Ben Wolfson
Ben Wolfson added the comment: My last examples were actually just attempting to figure out what triggered the unexpected behavior. I don't want to do expansion inside the field_name part! (I'll have a reply to your previous comment about use-cas

[issue12014] str.format parses replacement field incorrectly

2011-05-06 Thread Ben Wolfson
Ben Wolfson added the comment: Here's my use case. I'm writing a python version of the ruby library HighLine for CLI interaction, to be called, uncreatively, PyLine. One of the moderately neat things about the library is that it allows for color information to be embedded in the st

[issue12014] str.format parses replacement field incorrectly

2011-05-10 Thread Ben Wolfson
Ben Wolfson added the comment: Actually, that's the wrong place in MarkupIterator_next to include that loop. The attached diff has it in the right place. The results of "make test" here are: 328 tests OK. 1 test failed: test_unicode 25 tests skipped: te

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2010-12-27 Thread Ben Gamari
New submission from Ben Gamari : Configure.in assumes that %lld is not supported by printf if cross-compiling. This causes build errors in pyport.h, In file included from Include/Python.h:58:0, from Parser/parser.c:8: Include/pyport.h:243:13: error: #error "This platf

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2011-01-01 Thread Ben Gamari
Ben Gamari added the comment: Well, I'm not convinced that overriding config.cache is the best solution, but I am not really sure what else can be done. So far I've just been carrying a patch which changes configure.in, but this is clearly an

[issue3244] multipart/form-data encoding

2011-02-15 Thread Ben Gamari
Ben Gamari added the comment: Has there been any progress here? -- nosy: +bgamari ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list m

[issue2271] msi installs to the incorrect location (C drive)

2008-07-15 Thread Ben Beasley
Ben Beasley <[EMAIL PROTECTED]> added the comment: Apparent duplicates are at http://bugs.python.org/issue1298962 and http://bugs.python.org/issue1565468. This bug seems to have something to do with "power user" user privileges. I can duplicate this problem with the MSI insta

[issue1298962] MSI installer does not pass values as SecureProperty from UI

2008-07-15 Thread Ben Beasley
Ben Beasley <[EMAIL PROTECTED]> added the comment: http://bugs.python.org/issue1298962 appears to be a duplicate, with some more recent activity. -- nosy: +music ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1565468] Install on WinXP always goes to C:\

2008-07-15 Thread Ben Beasley
Ben Beasley <[EMAIL PROTECTED]> added the comment: http://bugs.python.org/issue2271 and http://bugs.python.org/issue1298962 appear to be duplicates of this issue, with the former having the most recent activity. -- nosy: +music ___ Python t

[issue1298962] MSI installer does not pass values as SecureProperty from UI

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1565468] Install on WinXP always goes to C:\

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- versions: +Python 2.4, Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1298962] MSI installer does not pass values as SecureProperty from UI

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1298962> ___ ___

[issue1565468] Install on WinXP always goes to C:\

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1565468> ___ ___

[issue1298962] MSI installer does not pass values as SecureProperty from UI

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- components: +Windows ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1298962> ___ __

[issue1565468] Install on WinXP always goes to C:\

2008-07-15 Thread Ben Beasley
Changes by Ben Beasley <[EMAIL PROTECTED]>: -- components: +Windows ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1565468> ___ __

[issue3710] Reference leak in thread._local

2008-08-27 Thread Ben Cottrell
New submission from Ben Cottrell <[EMAIL PROTECTED]>: This is a copy of a message I sent to the python-dev mailing list; it was suggested in a reply that I file a bug for this issue. I'm filing it against Python 2.5 because that's where I noticed it, but it doesn't lo

[issue3710] Reference leak in thread._local

2008-08-27 Thread Ben Cottrell
Ben Cottrell <[EMAIL PROTECTED]> added the comment: But then if there is a context switch during the last Py_XDECREF, then it could be the case that self->dict is not set properly on return from _ldict(). Functions like local_setattro() use _ldict() more for its side effect (setting s

[issue3710] Reference leak in thread._local

2008-08-27 Thread Ben Cottrell
Ben Cottrell <[EMAIL PROTECTED]> added the comment: The specific thing that was happening for me is that an _sqlite3.Connection object was in the dictionary. In Modules/_sqlite/connection.c, in pysqlite_connection_dealloc(), it uses Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS. So it'

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-08-28 Thread Ben Cottrell
Ben Cottrell <[EMAIL PROTECTED]> added the comment: I like this patch, too! I think it's a much cleaner way of implementing the thread._local type. However, when I test it, I have problems with subclasses of thread._local; using the class itself seems to work. I've attached a t

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-08-28 Thread Ben Cottrell
Ben Cottrell <[EMAIL PROTECTED]> added the comment: Christian, Your patch works for me -- thanks!! I made a slight modification to your patch to allow "del" to work, and have attached my modified version. I agree that allowing subclassing makes thread._local harder to get rig

[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread Ben Artin
New submission from Ben Artin : Running the following script crashes my 2.6.1 interpreter on two different platforms: from warnings import warn class TestWarning(Warning): def __str__(self): return u'\u00ae' warn(TestWarning()) Platforms I tried this o

[issue1550] help('modules') broken by several 3rd party libraries (svn patch attached)

2007-12-03 Thread Ben Hayden
New submission from Ben Hayden: Instead of listing installed modules, help('modules') prints a "please wait" message, then a traceback noting that a module raised an exception during import, then nothing else. This happens in 2.5 and 2.6a0, but not in 2.4, which apparentl

[issue1767511] SocketServer.DatagramRequestHandler

2008-01-23 Thread Ben Bass
Ben Bass added the comment: I've just bumped into this issue. In my opinion the finish() method should only do anything if wfile is not empty, i.e: temp = self.wfile.getvalue() if temp: self.socket.sendto(temp, self.client_address) -- nosy:

[issue1767511] SocketServer.DatagramRequestHandler

2008-01-23 Thread Ben Bass
Ben Bass added the comment: Main issue here (as I see it) is that StreamRequestHandler and DatagramRequestHandler should behave in the same way. This is not the case in Python 2.5.1 for the case where the handle method does not respond to the request socket (e.g. in my case it is forwarding

[issue2029] "python -m pydoc -g" fails

2008-02-07 Thread Ben Bass
New submission from Ben Bass: To quickly open a PyDoc browser, I want to be able to run the following: python -m pydoc -g This works fine on Python2.4, but fails on 2.5(.1), with following traceback (tested on both WinXP and Solaris 8, same result): Traceback (most recent call last): File

[issue2252] "continue" documentation

2008-03-07 Thread Ben Pfaff
Changes by Ben Pfaff: -- assignee: georg.brandl components: Documentation nosy: blp, georg.brandl severity: normal status: open title: "continue" documentation versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue2253] "continue" documentation internally inconsistent

2008-03-07 Thread Ben Pfaff
New submission from Ben Pfaff: The "continue" documentation says: "continue may only occur syntactically nested in a for or while loop, but not nested in a function or class definition or finally statement within that loop." In a footnote to that documentation, it says:

[issue2252] "continue" documentation

2008-03-07 Thread Ben Pfaff
New submission from Ben Pfaff: Apologies for filing this issue report: I hit "Enter" at the wrong time. Issue 2253 was what I really meant to file. You can close this issue. Sorry about that. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue2320] Race condition in subprocess using stdin

2008-10-24 Thread Ben Creech
Ben Creech <[EMAIL PROTECTED]> added the comment: You can trigger this bug without use of stdin=subprocess.PIPE, or for that matter any subprocess.PIPE's, although that makes it worse. (So the name for this issue may be overly specific.) I have seen this happening intermitte

[issue4696] email module does not fold headers

2008-12-18 Thread Ben Artin
New submission from Ben Artin : RFC 2822 allows for certain headers to be spread across multiple lines (section 2.2.3). In particular, subject, comments, and keywords headers behave this way (section 3.6.5). I think the email module should unfold such headers. See attached patch

[issue5121] PyRun_InteractiveLoop disagrees with documentation?

2009-01-31 Thread Ben Kuhn
New submission from Ben Kuhn : The description of PyRun_InteractiveLoop(FILE * file, const char * filename) states that if filename is NULL, "???" will be used instead. In actuality, if the method is called with a NULL filename, it will segfault after the first command is entered

[issue5121] PyRun_InteractiveLoop disagrees with documentation?

2009-01-31 Thread Ben Kuhn
Changes by Ben Kuhn : -- versions: +Python 3.0 ___ Python tracker <http://bugs.python.org/issue5121> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
New submission from Ben Bangert : OSX 10.5 has a broken poll, this is an already known issue as I noticed there's even a HAVE_BROKEN_POLL option that is in the source: http://mail.python.org/pipermail/python-checkins/2006-April/051710.html However, this run-time check apparently does not

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert added the comment: I don't know specifically, Phil Jenvey probably would as he's the one that told me it is. Apple apparently knows this an turns it off in their version of Python that is supplied. ___ Python tracker <http://bu

[issue5154] OSX broken poll testing doesn't work

2009-02-04 Thread Ben Bangert
Ben Bangert added the comment: Ah, sorry, misunderstanding. I'm not recommending that Python copy Apple's patch. I was pointing out that the HAVE_BROKEN_POLL test apparently doesn't work, and that *all* manually compiled copies of Python done on OSX will suffer this socket 3

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
New submission from Ben North : The functools module includes a 'partial' class, which allows partial function application either by positional arguments or keyword arguments. However, it cannot be used to create, for example, a function splitting a string on commas, or a function t

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
Changes by Ben North : -- keywords: +patch Added file: http://bugs.python.org/file12991/_functoolsmodule.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Ben North
Changes by Ben North : Added file: http://bugs.python.org/file12992/test_functools.patch ___ Python tracker <http://bugs.python.org/issue5191> ___ ___ Python-bugs-list m

[issue46824] use AI_NUMERICHOST | AI_NUMERICSERV to skip getaddrinfo thread in asyncio

2022-03-18 Thread Ben Darnell
Ben Darnell added the comment: To summarize the justification, this patch does two things: it moves an optimization from create_connection to getaddrinfo, which makes it apply to more callers (including Tornado), and it makes the code simpler and less redundant (net reduction of 47 non-test

[issue46824] use AI_NUMERICHOST | AI_NUMERICSERV to skip getaddrinfo thread in asyncio

2022-03-18 Thread Ben Darnell
Ben Darnell added the comment: On MacOS in 2015, getaddrinfo was found to be much slower than inet_pton. Unless that's changed, this patch would be a performance regression on that platform. Data and benchmark script in https://groups.google.com/g/python-tulip/c/-SFI8kkQEj4/m/m1-oCMS

[issue28584] ICC compiler check is too permissive

2022-03-21 Thread Ben Boeckel
Change by Ben Boeckel : -- nosy: +mathstuf ___ Python tracker <https://bugs.python.org/issue28584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-08-28 Thread Ben Hsing
Change by Ben Hsing : -- keywords: +patch pull_requests: +15240 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15565 ___ Python tracker <https://bugs.python.org/issu

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-09-11 Thread Ben Hsing
Ben Hsing added the comment: Agreed. I've submitted a new commit with the call chaining behavior now generalized for all dunder methods by delegating the resolution of all attributes not directly in the _Call object's __dict__ keys to the getattr method. -- status: open

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-09-11 Thread Ben Hsing
Change by Ben Hsing : -- status: pending -> open ___ Python tracker <https://bugs.python.org/issue37972> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-09-11 Thread Ben Hsing
Ben Hsing added the comment: Correction. I've now done this by delegating the resolution of attributes belonging to the tuple class to _Call.__getattr__ instead. Passed all build tests. -- ___ Python tracker <https://bugs.python.org/is

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread Ben Spiller
New submission from Ben Spiller : In performance-critical python code, it's quite common to need to get an item from a dictionary, falling back on a default (e.g. None, 0 etc) if it doesn't yet exist. The obvious way to do this based on the documentation is to call the dict.ge

[issue38278] Need a more efficient way to perform dict.get(key, default)

2019-09-25 Thread Ben Spiller
Ben Spiller added the comment: Thanks... yep I realise method calls are slower than operators, am hoping we can still find a cunning way to speed up this use case nonetheless. :D For example by having a configuration option on dict (or making a new subclass) that gives the (speedy

[issue36356] Failure to build with address sanitizer

2019-10-05 Thread Ben Harper
Change by Ben Harper : -- pull_requests: +16186 pull_request: https://github.com/python/cpython/pull/16598 ___ Python tracker <https://bugs.python.org/issue36

[issue36253] Use after free in ctypes test suite

2019-10-08 Thread Ben Harper
Ben Harper added the comment: Changes merged -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue36356] Failure to build with address sanitizer

2019-10-08 Thread Ben Harper
Ben Harper added the comment: The default build of python with ASAN builds successfully. Test suite and PGO build are currently blocked, but that can be separated if it makes more sense to handle them individually. Would it make sense to add an ASAN build to the CI pipeline to make

[issue38607] Document that cprofile/profile only profile the main thread

2019-10-27 Thread Ben Spiller
New submission from Ben Spiller : The built-in profiling modules only provide information about the main thread (at least when invoked as documented). To avoid user confusion we should state this in the documentation at https://docs.python.org/3/library/profile.html. Potentially we could

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
New submission from Ben Reilly : mock.create_autospec is meant to create a mock that will ensure, among other things, that method calls on the mock correspond to real methods on the original object and that the arguments match the signature of the original method. However, if the original

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-06 Thread Ben Reilly
Change by Ben Reilly : -- components: +Tests ___ Python tracker <https://bugs.python.org/issue38729> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30587] Mock with spec object does not ensure method call signatures

2019-11-07 Thread Ben Reilly
Change by Ben Reilly : -- nosy: +breilly_box ___ Python tracker <https://bugs.python.org/issue30587> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Ben Finney
Ben Finney added the comment: > tempfile.mktemp() still exists and works without raising a deprecation > warning. Of course it's still marked as deprecated in the docs. Right. So, the issue is not resolved: Functionality to create a temporary file path is maintained in the stand

[issue40894] asyncio.gather() cancelled() always False

2021-03-20 Thread Ben Buchwald
Ben Buchwald added the comment: Hopefully I'm not too late to comment on this. I also just hit this issue, but I do not agree with the proposed PR. Only modifying _GatheringFuture.cancelled() just fixes one of the side-effects of the problem. The state of the future is still FINISHE

[issue32958] socket module calls with long host names can fail with idna codec error

2021-05-09 Thread Ben Darnell
Ben Darnell added the comment: [I'm coming here from https://github.com/tornadoweb/tornado/pull/3010) UnicodeError is a subclass of ValueError, so I don't see what value that change would provide. The thing that's surprising to me is that it's not a `socket.herror

[issue37373] Configuration of windows event loop for libraries

2021-05-15 Thread Ben Darnell
Ben Darnell added the comment: > It's even slightly easier for tornado, which can reasonably set the > proactor-wrapper policy at IOLoop start time, which means > `asyncio.get_event_loop()` returns a loop with add_reader. But pyzmq doesn't > get invoked until an

[issue39529] Deprecate get_event_loop()

2021-05-29 Thread Ben Darnell
Ben Darnell added the comment: > The maintenance burden of the introduced deprecation should be pretty low. This is going to cause an unpleasant amount of churn in the Tornado community. It's been idiomatic (going back 12 years now) to do all your setup in synchronous code before

[issue44695] asdict use deep copy to dataclass instances

2021-07-21 Thread Ben Avrahami
Change by Ben Avrahami : -- nosy: +avrahami.ben ___ Python tracker <https://bugs.python.org/issue44695> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44832] Compiler detection is not strict enough

2021-08-04 Thread Ben Boeckel
New submission from Ben Boeckel : Generally, the `configure.ac` script tries to detect compilers based on the path to the compiler. This is mostly fine, but trips up when using `mpicc` as the compiler. Even if the underlying compiler is `gcc`, this gets detected as `icc` in various

[issue45239] email.utils.parsedate_tz raises UnboundLocalError if time has more than 2 dots in it

2021-09-18 Thread Ben Hoyt
New submission from Ben Hoyt : In going through some standard library code, I found that the email.utils.parsedate_tz() function (https://docs.python.org/3/library/email.utils.html#email.utils.parsedate_tz) has a bug if the time value is in dotted format and has more than 2 dots in it, for

[issue45239] email.utils.parsedate_tz raises UnboundLocalError if time has more than 2 dots in it

2021-09-18 Thread Ben Hoyt
Ben Hoyt added the comment: For reference, here's a repro case: $ python3.10 -c 'import email.utils; \ email.utils.parsedate_tz("Wed, 3 Apr 2002 12.34.56.78+0800")' Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/

[issue45239] email.utils.parsedate_tz raises UnboundLocalError if time has more than 2 dots in it

2021-09-18 Thread Ben Hoyt
Change by Ben Hoyt : -- keywords: +patch pull_requests: +26853 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28452 ___ Python tracker <https://bugs.python.org/issu

[issue39529] Deprecate get_event_loop()

2021-12-03 Thread Ben Darnell
Ben Darnell added the comment: > In IPython, I think you could use new_event_loop() for getting a new loop > instance. > Then, save the loop reference somewhere as a direct attribute, > threading.local or ContextVar. > Calling loop.run_until_complete() looks pretty normal in

[issue46017] Tutorial incorrectly refers to skits rather than sketches.

2021-12-08 Thread Ben Ricketts
New submission from Ben Ricketts : https://docs.python.org/3/tutorial/appetite.html 4th paragraph from bottom refers to "skits" where as Monty Python in fact perform sketch comedy.It is a minor but important differentiation. -- assignee: docs@python components: Documentatio

[issue38729] mock.create_autospec generates incorrect signature for some decorated methods

2019-11-08 Thread Ben Reilly
Ben Reilly added the comment: Yes, your description sounds right, and I had zero-ed in on the same park of the mock code when I was doing my investigation. I know that this is a peculiar situation, but one thing to note is that `inspect.signature` gets the signature right on these wrapped

[issue38759] Python 2.7.9 x64 for Windows version is 2.7.13

2019-11-09 Thread Ben Barbour
New submission from Ben Barbour : When downloading Python 2.7.9 x64, the actual python executable is Python 2.7.13. The 32-bit version has the correct executable. -- messages: 356307 nosy: Ben Barbour priority: normal severity: normal status: open title: Python 2.7.9 x64 for Windows

[issue38728] Update PC/pyconfig.h to support disabling auto linking

2019-11-14 Thread Ben Boeckel
Change by Ben Boeckel : -- nosy: +mathstuf ___ Python tracker <https://bugs.python.org/issue38728> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-14 Thread Ben Caller
New submission from Ben Caller : The regex http.cookiejar.LOOSE_HTTP_DATE_RE iss vulnerable to regular expression denial of service (REDoS). LOOSE_HTTP_DATE_RE.match is called when using http.cookiejar.CookieJar to parse Set-Cookie headers returned by a server. Processing a response from a

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-14 Thread Ben Caller
Change by Ben Caller : -- keywords: +patch pull_requests: +1 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17157 ___ Python tracker <https://bugs.python.org/issu

[issue38826] Regular Expression Denial of Service in urllib.request.AbstractBasicAuthHandler

2019-11-16 Thread Ben Caller
New submission from Ben Caller : The regular expression urllib.request.AbstractBasicAuthHandler.rx is vulnerable to malicious inputs which cause denial of service (REDoS). The regex is: rx = re.compile('(?:.*,)*[ \t]*([^ \t]+)[ \t]+' 'realm=(["\&#x

[issue38826] Regular Expression Denial of Service in urllib.request.AbstractBasicAuthHandler

2019-11-17 Thread Ben Caller
Ben Caller added the comment: I have been advised that DoS issues can be added to the public bug tracker since there is no privilege escalation, but should still have the security label. -- ___ Python tracker <https://bugs.python.org/issue38

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-12-11 Thread Ben Brown
Change by Ben Brown : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37226> ___ ___ Python-bugs-list

[issue39066] Expose SOABI setting in the header

2019-12-16 Thread Ben Boeckel
New submission from Ben Boeckel : Currently, the SOABI suffix is only available by running the Python interpreter to ask `sysconfig` about the setting. This complicates cross compilation because the target platform's Python may not be runnable on the build platform. Exposing this i

[issue39066] Expose SOABI setting in the header

2019-12-16 Thread Ben Boeckel
Ben Boeckel added the comment: Ah, that does look like it is suitable (since it is a shell script). I assume it is a batch script on Windows (though I feel cross-compilation is far rarer there). Thanks. -- stage: -> resolved status: open ->

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-02-04 Thread Ben Caller
Ben Caller added the comment: Isn't this a duplicate of bpo-38826 ? -- nosy: +bc ___ Python tracker <https://bugs.python.org/issue39503> ___ ___ Pytho

[issue21016] trace: $prefix and $exec_prefix improperly replaced on Fedora

2020-02-12 Thread Ben Boeckel
Ben Boeckel added the comment: Thanks! Should I file a new issue for the other (less urgent) problem mentioned at the bottom or is it not really worth fixing? > It also erroneously replaces things like '$prefixpath'. It should probably do > split the path on the path sep

[issue39624] Trace greedy replaces $prefix and $exec_prefix

2020-02-13 Thread Ben Boeckel
New submission from Ben Boeckel : Previously reported as a sidenote in Issue21016. The `--ignore-dir` option in trace.py replaces `$prefix` and `$exec_prefix` *anywhere* in the path when it really should just replace it in the start of the path and if it is followed by nothing or a path

[issue39624] Trace greedy replaces $prefix and $exec_prefix

2020-02-13 Thread Ben Boeckel
Ben Boeckel added the comment: `\b` is a bit too loose. That example should *not* have it replaced because it is not a full path component. (Granted, any of these conflicting paths are "dumb" in general; I'm fine with just leaving this as a low priority, but if it does g

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-02-16 Thread Ben Darnell
Ben Darnell added the comment: I just spent some time digging into this. Each call to `run_forever` starts a call to `_loop_self_reading`, then attempts to cancel it before returning: https://github.com/python/cpython/blob/1ed61617a4a6632905ad6a0b440cd2cafb8b6414/Lib/asyncio

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-02-16 Thread Ben Darnell
New submission from Ben Darnell : Proactor and selector event loops behave differently when call_soon_threadsafe races with a concurrent call to loop.close(). In a selector event loop, call_soon_threadsafe will either succeed or raise a RuntimeError("Event loop is closed"). In

[issue39624] Trace greedy replaces $prefix and $exec_prefix

2020-02-17 Thread Ben Boeckel
Ben Boeckel added the comment: > The paths are not user provided: they are hardcoded paths from the sysconfig > module: No, those paths are the *replacement* values, not the input. From the trace docs: > trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs This

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2020-02-19 Thread Ben Sokol
Change by Ben Sokol : -- type: behavior -> crash versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue29298> ___ ___ Python-

[issue37373] Configuration of windows event loop for libraries

2020-02-22 Thread Ben Darnell
Ben Darnell added the comment: I have an implementation of the selector-in-another-thread solution in https://github.com/tornadoweb/tornado/pull/2815. Is something like this worth considering for Python 3.9, or was Tornado the only project experiencing this pain and a tornado-specific

[issue37373] Configuration of windows event loop for libraries

2020-02-25 Thread Ben Darnell
Ben Darnell added the comment: I considered using the `selectors` module directly, but it's not as simple as it sounds. Using the low-level interface means you need to also use a self-waker-pipe (or socket on windows) and manage a queue analogous to that used by `call_soon_threadsafe

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2020-03-05 Thread Ben Griffin
New submission from Ben Griffin : While there is now support for a single default group, mysql documentation is clear that there is a cascade of groups for option settings, normally starting with [client], and including version numbers.. This allows generic settings to be overridden by

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2020-03-05 Thread Ben Griffin
Ben Griffin added the comment: Having looked at the code, I believe that it is best NOT to interfere with the 'default_section' value of the class, as it is used as a proxy to _defaults, whereas the section parameter of get() is easily extended. The actual changes are all to

[issue39791] New `files()` api from importlib_resources.

2020-03-07 Thread Ben Thayer
Change by Ben Thayer : -- nosy: +benthayer ___ Python tracker <https://bugs.python.org/issue39791> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37588] Py_DEPRECATED and unavoidable warnings

2020-03-10 Thread Ben Boeckel
Ben Boeckel added the comment: I believe this to be a clang bug. I've filed an issue with upstream here: https://bugs.llvm.org/show_bug.cgi?id=45170 -- nosy: +mathstuf ___ Python tracker <https://bugs.python.org/is

[issue38633] shutil.copystat fails with PermissionError in WSL

2020-03-31 Thread Ben Spiller
Ben Spiller added the comment: Looks like on WSL the errno is errno.EACCES rather than EPERM, so we just need to change the shutil._copyxattr error handler to also cope with that error code: except OSError as e: - if e.errno not in (errno.EPERM, errno.ENOTSUP

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread Ben Caller
Ben Caller added the comment: Instead of repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + simple in the benchmark, try repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + 'A' -- Added file: https://bugs.python.org/file49022/bench_parser2.

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread Ben Caller
Change by Ben Caller : Added file: https://bugs.python.org/file49023/bench_parser2.py ___ Python tracker <https://bugs.python.org/issue39503> ___ ___ Python-bugs-list m

[issue39503] [security][CVE-2020-8492] Denial of service in urllib.request.AbstractBasicAuthHandler

2020-04-01 Thread Ben Caller
Change by Ben Caller : Removed file: https://bugs.python.org/file49022/bench_parser2.py ___ Python tracker <https://bugs.python.org/issue39503> ___ ___ Python-bugs-list m

[issue37373] Configuration of windows event loop for libraries

2020-04-19 Thread Ben Darnell
Ben Darnell added the comment: > Would it be acceptable for you to *require* use of uvloop when Tornado is > used with AsyncIO? How, exactly? Adding the dependency is no problem, but AFAIK I'd still be stuck with an import-time side effect to set the event loop policy (or a .pth

[issue39651] Exceptions raised by EventLoop.call_soon_threadsafe

2020-04-20 Thread Ben Darnell
Ben Darnell added the comment: No, this is unrelated to bpo-39010. -- ___ Python tracker <https://bugs.python.org/issue39651> ___ ___ Python-bugs-list mailin

<    1   2   3   4   5   6   >