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

2020-05-12 Thread Ben Boeckel
Ben Boeckel added the comment: > Presumably you looked around for ideas before figuring out the issue Usually when "could not find foo.lib" popping up without any mention of "foo.lib" on the link line points directly to these "autolinking" "features&qu

[issue41962] Make threading._register_atexit public?

2021-01-24 Thread Ben Darnell
Ben Darnell added the comment: > IMO, a better practice would be providing those potentially infinite running > tasks a direct method of escape and invoking it before calling > executor.shutdown(), it would be a more reliable approach. Agreed, but the problem is that I'm in a

[issue41962] Make threading._register_atexit public?

2021-01-25 Thread Ben Darnell
Ben Darnell added the comment: I have resolved my issue here by moving from ThreadPoolExecutor to a plain threading.Thread that I manage by hand (https://github.com/tornadoweb/tornado/commit/15832bc423c33c9280564770046dd6918f3a31b4). Therefore I no longer need this for myself and I leave it

[issue36517] typing.NamedTuple does not support mixins

2021-02-09 Thread Ben Avrahami
Ben Avrahami added the comment: The patch PR blocks out a useful idiom: generic Nametuple >>> class LLNode(NamedTuple, Generic[T]): ... value :T ... next: Optional[LLNode[T]] I put forward that, at the least, NamedTuple should accept do-nothing bases like Generic. --

[issue40687] Windows py.exe launcher interacts badly with Windows store python.exe shim

2020-05-19 Thread Ben Spiller
New submission from Ben Spiller : The py.exe launcher doc states "If no relevant options are set, the commands python and python2 will use the latest Python 2.x version installed" ... which was indeed working reliably until Microsoft added their weird python.exe shim (which either

[issue40687] Windows py.exe launcher interacts badly with Windows store python.exe shim

2020-05-19 Thread Ben Spiller
Change by Ben Spiller : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue40687> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17005] Add a topological sort algorithm

2020-05-31 Thread Ben Mares
Ben Mares added the comment: It's great to have this feature in the standard library, but it really seems to clutter the functools documentation. Everything else in functools applies directly to functions and methods. Suddenly reading graph theory terminology was disorienting for me.

[issue17005] Add a topological sort algorithm

2020-05-31 Thread Ben Mares
Ben Mares added the comment: dependencytools? But I don't think it qualifies yet for the plural... -- ___ Python tracker <https://bugs.python.org/is

[issue40973] platform.platform() in Python 3.8 does not report detailed Linux platform information

2020-06-13 Thread Ben Du
New submission from Ben Du : The function platform.platform() does not report detailed Linux platform information (Ubuntu, Debain, CentOS, etc). This information is reported in Python 3.7 and earlier. -- components: Library (Lib) messages: 371488 nosy: legendu priority: normal

[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread Ben Griffin
New submission from Ben Griffin : https://stackoverflow.com/questions/62713741/tkinter-and-32-bit-unicode-duplicating-any-fix Emoji are doubling up when using canvas.create_text() This is reported to work on tcl/tk 8.6.10 but there’s no. Way to upgrade tcl/tk using the standard installs from

[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-05 Thread Ben Griffin
Ben Griffin added the comment: Erm, I don’t rightly know how to parse epaine’s comment, as it seems to relate to a version of Unicode from over a decade ago, and a wiki page that was written 12 years ago. IIRC Python 3 was (IMO rightly) developed to default to UTF-8, and according to a much

[issue41212] Emoji Unicode failing in standard release of Python 3.8.3 / tkinter 8.6.8

2020-07-06 Thread Ben Griffin
Ben Griffin added the comment: Wow, well if you are right, then TCL/TK is a showstopper for us, and we will have to consider an alternative to tkinter. Frankly, I am aghast that any active software would be limited to fixed width characters. We moved our languages over to multiwidth (utf-8

[issue39017] Infinite loop in the tarfile module

2020-07-08 Thread Ben Caller
Ben Caller added the comment: I've attached a minimal tar file which reproduces this. I think the minimum length is 516 bytes. We need a 512 byte PAX format header block as normal. Then we need a pax header which matches the regex in https://github.com/python/cpython

[issue39017] Infinite loop in the tarfile module

2020-07-08 Thread Ben Caller
Ben Caller added the comment: A smaller bug: If instead of 0 you use a large number (> 2^63) e.g. 999 you get `OverflowError: Python int too large to convert to C ssize_t` rather than the expected `tarfile.ReadError` regardless of errorle

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-30 Thread Ben Darnell
Change by Ben Darnell : -- pull_requests: +21117 pull_request: https://github.com/python/cpython/pull/22017 ___ Python tracker <https://bugs.python.org/issue39

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-08-30 Thread Ben Darnell
Ben Darnell added the comment: I've posted a pull request with a test and fix: https://github.com/python/cpython/pull/22017. It's a more targeted fix than cmeyer's PR (which I didn't even notice until now due to unfamiliar

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-01 Thread Ben Darnell
Ben Darnell added the comment: I can confirm that those warnings appear to be coming from the test I added here. I'm not sure how to interpret them, though - what does it mean for the main thread to be dangling? -- ___ Python tracker &

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-02 Thread Ben Darnell
Change by Ben Darnell : -- pull_requests: +21156 pull_request: https://github.com/python/cpython/pull/22066 ___ Python tracker <https://bugs.python.org/issue39

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2020-09-02 Thread Ben Darnell
Ben Darnell added the comment: I've fixed the test and added some commentary about the different levels of clean shutdown we must do to quiet all the warnings: https://github.com/python/cpython/pull/22066 -- ___ Python tracker &

[issue41852] Inconsistent errors for JSON-encoding NaNs with allow_nan=False

2020-09-24 Thread Ben Kurtovic
New submission from Ben Kurtovic : json.dump vs. json.dumps have inconsistent error messages when encoding NaN with allow_nan=False: >>> json.dumps(float('nan'), allow_nan=False) ValueError: Out of range float values are not JSON compliant >>> json.dump(float(&

[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
New submission from Ben Wolsieffer : The distutils.sysconfig.get_python_inc() function finds headers relative to sys.base_prefix or sys.base_exec_prefix. This causes problems when cross-compiling extension modules because Python's headers are not platform independent. In

[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
Change by Ben Wolsieffer : -- keywords: +patch pull_requests: +21469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22440 ___ Python tracker <https://bugs.python.org/issu

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-01 Thread Ben Avrahami
New submission from Ben Avrahami : python-ideas discussion: https://mail.python.org/archives/list/python-id...@python.org/thread/6BNJ3YSEBPHEPGXSAZGBW3TJ64ZGZIHE/ In order to allow "decorator mixins" (most notably dataclass and total_ordering) to implement ABCs, new functionality is

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-01 Thread Ben Avrahami
Ben Avrahami added the comment: for the functionality to work, `total_ordering` needs to change to also override abstract methods. I believe this is an OK change since total_ordering implicitly dictates that the comparison methods are interchangable. Thus, implementing some comparison

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Ben Avrahami
Ben Avrahami added the comment: Good points all, that I will try to address one by one: Firstly, this function is by no means mandatory for "post-creation mixins". Such tools can still be used without calling it (and remain ABC unaware), with absolutely no change in functionali

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-02 Thread Ben Avrahami
Ben Avrahami added the comment: This is a behavior that the PR changes. total_ordering should be able to override/implement abstract methods (in my opinion). If this ends up a strickling point then we can exclude total_ordering from this issue. Regardless, I think that this behavior is

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Ben Avrahami
Ben Avrahami added the comment: > I would prefer the isinstance(cls, ABCMeta) check to be inside that helper I had a little debate about this in my mind, I'll change it. > it's totally clear to me what @total_ordering should do -- it should define > __le__, __gt__ and

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-03 Thread Ben Avrahami
Ben Avrahami added the comment: > Maybe you misunderstand what I tried to say? Possibly, right now, total_ordering avoids overriding any method that is declared, either in the class or its superclasses (except for object), regardless of whether or not it is abstract. For it to be ABC-aw

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-04 Thread Ben Avrahami
Ben Avrahami added the comment: Implementing this behavior automatically would be more complicated since you would also have to take subclasses into account. Current implementation enforces that the class is unused (as much as can be reasonably done) when its abstraction status is re

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

2020-10-04 Thread Ben Avrahami
Ben Avrahami added the comment: > Adding a function to recalculate will require everyone to use it I'd argue that this is akin to `functools.update_wrapper`. It too is a function that must be called in virtually every function decorator (the only function decorators that don't

[issue41962] Make threading._register_atexit public?

2020-10-06 Thread Ben Darnell
New submission from Ben Darnell : I'm dealing with a subtle deadlock involving concurrent.futures.ThreadPoolExecutor, and my solution that worked in Python 3.8 broke with 3.9. I'm running some long-running (possibly infinite) tasks in the thread pool, and I cancel them in

[issue42088] types.SimpleNamespace.__repr__ documentation inconsistency

2020-10-19 Thread Ben Avrahami
New submission from Ben Avrahami : According to the documentation for types.SimpleNamespace, `repr(SimpleNamespace())` should return `"SimpleNamespace()"`, but in actuality returns `"namespace()"`. This is because SimpleNamespace is an alias for the C implemented type

[issue27495] Pretty printing sorting for set and frozenset instances

2020-10-25 Thread Ben Bonenfant
Change by Ben Bonenfant : -- nosy: +bbonenfant nosy_count: 6.0 -> 7.0 pull_requests: +21894 pull_request: https://github.com/python/cpython/pull/22977 ___ Python tracker <https://bugs.python.org/issu

[issue42228] Activate.ps1 clears PYTHONHOME

2020-11-01 Thread Ben Boeckel
New submission from Ben Boeckel : On Windows, we are extracting a tarball of a Python installation for CI (to avoid needing to juggle umpteen Python installs on umpteen machines). This requires `PYTHONHOME` to be set to use properly since there is no registry entry for the "install

[issue42228] Activate.ps1 clears PYTHONHOME

2020-11-02 Thread Ben Boeckel
Ben Boeckel added the comment: We build our own applications which run Python interpreters internally, so the auto-discovery won't work. It also doesn't seem to work for venvs either since the venv's `python.exe` is under `Scripts` which makes it not able to find things ei

[issue13937] multiprocessing.ThreadPool.join() blocks indefinitely.

2012-02-03 Thread Ben Timby
New submission from Ben Timby : If you instantiate a ThreadPool, then call map() with an empty list, the join() method will block indefinitely on self._result_handler.join() $ python > from multiprocessing.pool import ThreadPool > t = ThreadPool(1) > t.map_async(lambda x: x, [])

[issue14208] No way to recover original argv with python -m

2012-03-05 Thread Ben Darnell
New submission from Ben Darnell : I have a script which attempts to re-invoke itself using sys.argv, but it fails when run with "python -m package.module". The problem is that the handling of -m (via the runpy module) rewrites sys.argv as if it were run as "python package/modu

[issue12014] str.format parses replacement field incorrectly

2012-03-13 Thread Ben Wolfson
Ben Wolfson added the comment: just curious if there are any developments here since the first 3.3 alpha has been released. -- ___ Python tracker <http://bugs.python.org/issue12

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ben Hayden
New submission from Ben Hayden : When running the test suite on Linux 3.2.9-1, I get the following error on the test_os suite: test test_os crashed -- Traceback (most recent call last): File "/home/benhayden/Documents/cpython/Lib/test/regrtest.py", line 1229, in run

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ben Hayden
Ben Hayden added the comment: That was my thought, but again, I didn't really know if it was 'safe' to snuff the OSError all together. This patch just returns False if any OSError is raised. -- ___ Python tracker <http

[issue14358] test_os failing with errno 61: No Data Available

2012-03-18 Thread Ben Hayden
Changes by Ben Hayden : Added file: http://bugs.python.org/file24934/test_os_support_ext_return_false.patch ___ Python tracker <http://bugs.python.org/issue14

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

2019-06-11 Thread Ben Brown
New submission from Ben Brown : I have been getting an intermittent errors when using asyncio with SSL. The error always occurs in the _process_write_backlog method in asyncio's sslproto.py file. I have looked at lots of possibilities as to what the cause is and found that for some r

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

2019-06-11 Thread Ben Brown
Ben Brown added the comment: The OpenSSL version is OpenSSL 1.1.0j 20 Nov 2018 -- ___ Python tracker <https://bugs.python.org/issue37226> ___ ___ Python-bug

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

2019-06-11 Thread Ben Brown
Ben Brown added the comment: That's a shame, which version should it work on I don't mind downgrading for now to fix the issue as a workaround. -- ___ Python tracker <https://bugs.python.o

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

2019-06-11 Thread Ben Brown
Ben Brown added the comment: I am using the version I mentioned above 1.1.0 and TLS 1.2, I am sorry I can't be of more help. -- ___ Python tracker <https://bugs.python.org/is

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

2019-06-11 Thread Ben Brown
Ben Brown added the comment: I tested an older version of OpenSSL 1.0.2g and I get the same error on that -- ___ Python tracker <https://bugs.python.org/issue37

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

2019-06-12 Thread Ben Brown
Ben Brown added the comment: I have created a minimal example if that helps to show the issue https://gist.github.com/bobthemac/031213b8e37960ee805f2ae1e6990b60 -- ___ Python tracker <https://bugs.python.org/issue37

[issue35185] Logger race condition - loses lines if removeHandler called from another thread while logging

2019-06-20 Thread Ben Spiller
Ben Spiller added the comment: I'd definitely suggest we go for a solution that doesn't hit performance of normal logging when you're not adding/removing things, being as that's the more common case. I guess that's the reason why callHandlers was originally impleme

[issue35185] Logger race condition - loses lines if removeHandler called from another thread while logging

2019-06-20 Thread Ben Spiller
Ben Spiller added the comment: Interesting conversation. :) Yes I agree correctness is definitely top priority. :) I'd go further and say I'd prefer correctness to be always there automatically, rather than something the user must remember to enable by setting a fl

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Ben Darnell
New submission from Ben Darnell : On Windows there are two event loop implementions with different interfaces: The proactor event loop is missing the file descriptor family of methods (add_reader()), while the selector event loop has other limitations including missing support for pipes and

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Ben Darnell
Ben Darnell added the comment: > From my understanding, there is no issue for Tornado itself. If Jupiter > Notebook needs Tornado, Tornado needs selector event loop on Windows -- > Jupiter can install the proper loop. Right. I'm just advocating for something that would make

[issue37373] Configuration of windows event loop for libraries

2019-06-23 Thread Ben Darnell
Ben Darnell added the comment: Yeah, it's definitely a hack. The argument for it, at best, is "practicality beats purity". The solution is two simple lines, but those lines need to be repeated in every project that depends on Tornado and cares about Windows, now or in the f

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

2019-06-24 Thread Ben Brown
Ben Brown added the comment: Hi is there any update on this issue, were you able to replicate the error with the minimal example I provided or is there any additional information I can provide. -- ___ Python tracker <https://bugs.python.

[issue37409] relative import_from without parent

2019-06-26 Thread Ben Lewis
New submission from Ben Lewis : >>> from curses import ascii >>> from . import ascii The second line should raise an ImportError but instead succeeds (tested cpython 3.6.7, 3.7.0 and 3.7.3, and from interactive interpreter and scripts). Specifically, builtins.__import__

[issue37409] relative import without parent

2019-06-26 Thread Ben Lewis
Ben Lewis added the comment: >>> foo = 'oops' >>> from . import foo as fubar # should raise ImportError >>> fubar 'oops' After further investigation, the problem is that builtins.__import__ (the c port version) does not replicate the behaviour

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Ben Lewis
Ben Lewis added the comment: I'll look into this further and open a PR initially for the regression tests. -- ___ Python tracker <https://bugs.python.org/is

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-29 Thread Ben Lewis
Change by Ben Lewis : -- keywords: +patch pull_requests: +14282 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/14465 ___ Python tracker <https://bugs.python.org/issu

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

2019-07-09 Thread Ben Brown
Ben Brown added the comment: Maayan Keshet do you have a minimal example it would be interesting to compare against our code and see if there is something we are both doing that could help narrow down the issue. -- ___ Python tracker <ht

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

2019-07-19 Thread Ben Brown
Ben Brown added the comment: With some more research it looks like the issue is flow related, I experimented with the StreamWriter in a simple server and using that plus drain() appears to have worked an I no longer get the error. I have added my new server to the gist I posted above

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

2019-07-22 Thread Ben Brown
Ben Brown added the comment: I can fully confirm the issue is due to flow control or lack of in my code the system runs out of resources and this is when it errors, I have implemented flow control in my protocol and it now works without errors. One thing I did find is that the documentation

[issue37409] relative import without parent succeeds with builtins.__import__

2019-07-26 Thread Ben Lewis
Change by Ben Lewis : -- pull_requests: +14724 pull_request: https://github.com/python/cpython/pull/14956 ___ Python tracker <https://bugs.python.org/issue37

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-13 Thread Ben Hoyt
New submission from Ben Hoyt: The documentation for namedtuple._replace() needs a tweak: currently its signature shows "kwargs" without the ** notation, indicating it's a single, positional argument. It should have the ** to indicate it's actually any number of keyword ar

[issue30748] Upgrade tuples in socket to named tuple like

2017-06-24 Thread Ben Lewis
New submission from Ben Lewis: Within the socket module, there are various tuples that are used for different representations of a socket address. There are also other tuples returned by other functions in the socket module. As suggested on Python-ideas(https://mail.python.org/pipermail

[issue30898] SSL cert failure running make test during Python 3.6 install

2017-07-10 Thread Ben Johnston
New submission from Ben Johnston: Installing Python 3.6.1 from Python-3.6.1.tar.xz on Ubuntu 16.04.2 LTS, the following tests are failing: ERROR: test_logincapa_with_client_certfile (test.test_imaplib.RemoteIMAP_SSLTest) ERROR: test_logincapa_with_client_ssl_context

[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term

2018-11-30 Thread Ben Finney
Ben Finney added the comment: The library documentation (e.g. file:///usr/share/doc/python3/html/library/functools.html#functools.reduce ) also has this dissonance: > functools.reduce(`function`, `iterable` [, `initializer` ]) > >Apply function of two arguments cumulative

[issue33130] functools.reduce signature uses `iterable`, documentation should use the same term

2018-11-30 Thread Ben Finney
Ben Finney added the comment: Hah, sorry to use a local-filesystem URL. (Hooray for locally-installed developer documentation!) The same section is online at https://docs.python.org/3/library/functools.html#functools.reduce . -- ___ Python

[issue35915] re.search livelock/hang, searching for patterns starting .* in a large string

2019-02-06 Thread Ben Spiller
New submission from Ben Spiller : These work fine and return instantly: python -c "import re; re.compile('.*x').match('y'*(1000*100))" python -c "import re; re.compile('x').search('y'*(1000*100))" python -c "import re

[issue35915] re.search extreme slowness (looks like hang/livelock), searching for patterns containing .* in a large string

2019-02-06 Thread Ben Spiller
Ben Spiller added the comment: Correction to original report - it doesn't hang indefinitely, it just takes a really long time. Specifically, looks like it's quadratic in the length of the input string. Increase the size of the input string to 1000*1000 and it's really really

[issue35915] re.search extreme slowness (looks like hang/livelock), searching for patterns containing .* in a large string

2019-02-06 Thread Ben Spiller
Ben Spiller added the comment: Running this command: time python -c "import re; re.compile('y.*x').search('y'*(N))" It's clearly quadratic: N=100,000 time=7s N=200,000 time=18s N=400,000 time=110s N=1,000,000 time=690s This illustrates how a simple p

[issue29540] Add compact=True flag to json.dump/dumps

2017-03-14 Thread Ben Hoyt
Ben Hoyt added the comment: Agreed. Seems much the same as other argument constants, like pickle.HIGHEST_PROTOCOL for the "protocol" argument. These are not changing the API, just adding a helper constant to avoid the magic values. -Ben On Tue, Mar 14, 2017 at 12:24 PM, Brett Can

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Ben Finney
New submission from Ben Finney: The docstring of a test case is not correctly parsed for display. The attached ‘test_foo.py’ module contains two test case functions. Both docstrings conform to PEP 257 <https://www.python.org/dev/peps/pep-0257/>: they have a single-line synopsis and some

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Ben Finney
Ben Finney added the comment: > This is because unittest.TestCase method `shortDescription()` will only > return the first line of docstring Yes, that is the “docstring synopsis” I referred to. PEP 257 has a section specifically about how tools should parse a docstring:

[issue30181] Correct the parsing of a test case docstring.

2017-05-01 Thread Ben Finney
Ben Finney added the comment: Howdy R. David, Okay, I have put together a series of commits to address this bug. The changes are in my personal fork of the ‘cpython’ repository, so this is a pull request from ‘wip/issue/issue30181_parse-docstring-using-pydoc’ in that repository. The following

[issue30181] Correct the parsing of a test case docstring.

2017-05-01 Thread Ben Finney
Ben Finney added the comment: On 2017-05-01 17:45, Louie Lu wrote: > Ben, the process of submitting PR was migrated to GitHub Thank you. I'll re-base my branch onto the master branch found at the GitHub repository. > you will need to use a GitHub account to do it I don

[issue26362] Approved API for creating a temporary file path

2017-05-01 Thread Ben Finney
Ben Finney added the comment: On 01-May-2017, R. David Murray wrote: > You are depending on a non-portable feature of os.rename there What's the non-portable dependency? If you mean the expectation that ‘os.rename’ will be atomic on success: the documentation promises “If success

[issue26362] Approved API for creating a temporary file path

2017-05-01 Thread Ben Finney
Ben Finney added the comment: On 01-May-2017, Serhiy Storchaka wrote: > tempfile.mktemp() is not much more useful that just a function that > generates some names which unlikely matches the names of existing > files the directory. Yes. That is already useful enough to be in the

[issue30181] Correct the parsing of a test case docstring.

2017-05-11 Thread Ben Finney
Ben Finney added the comment: Apparently there is some consternation about my bugs.python.org identity. This is Ben Finney of WSP Digital, in Melbourne, Australia. A GitHub account is wholly irrelevant to this account. A GitHub account is wholly irrelevant to accepting the PSF CLA. This

[issue30181] Correct the parsing of a test case docstring.

2017-05-11 Thread Ben Finney
Ben Finney added the comment: > No, your contribution will not be rejected by "you don't maintain the repo on > GitHub", everyone can send the patch (PR) to python/cpython. I am glad to know that. I won't be maintaining a GitHub account because I disagree with the te

[issue30181] Correct the parsing of a test case docstring.

2017-05-12 Thread Ben Finney
Ben Finney added the comment: > if you upload a patch generated from your branch here, someone else will > create the github PR so we can get it processed. The branch has several commits. I have generated the patches, and am now uploading them as a tarball. It may be easier to simply

[issue30181] Correct the parsing of a test case docstring.

2017-05-14 Thread Ben Finney
Ben Finney added the comment: > I have already created such a pull requests. It is bidirectionally linked to > this ticket. I hope the PSF can start accepting contributions without that laundering, but until then: thank you for taking t

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Ben Wainwright
New submission from Ben Wainwright: The findall method for ElementTree.Element handles namespace prefixes by tokenising the path and inserting the full namespace in braces based on entries in a dictionary. Unfortunately, this does not work for a namespace without a prefix, so if you have

[issue36253] Use after free in ctypes test suite

2019-03-09 Thread Ben Harper
New submission from Ben Harper : When running the builtin test suite with address sanitizer enabled, one of the ctypes tests causes a use after free demonstrating the danger of using a reference to the inside of a deallocated buffer. This use is detected as an error by the address sanitizer

[issue36253] Use after free in ctypes test suite

2019-03-09 Thread Ben Harper
Change by Ben Harper : -- keywords: +patch pull_requests: +12243 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36253> ___ ___ Py

[issue36356] Failure to build with address sanitizer

2019-03-18 Thread Ben Harper
New submission from Ben Harper : Trying to run make after './configure --with-address-sanitizer --with-pydebug' fails with leak of locale string -- components: Build messages: 338315 nosy: btharper priority: normal severity: normal status: open title: Failure to build wi

[issue36356] Failure to build with address sanitizer

2019-03-18 Thread Ben Harper
Change by Ben Harper : -- keywords: +patch pull_requests: +12380 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36356> ___ ___ Py

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Ben Harper
Ben Harper added the comment: I'm on Ubuntu 18.10/amd64 compiling with Ubuntu's GCC 8.2.0, I know there's some libraries that are missing dependencies (including bz2 and sqlite) so I may have missed the ipv6 dependencies as well. My eventual goal was to be able to build

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Ben Harper
Change by Ben Harper : -- pull_requests: +12399 ___ Python tracker <https://bugs.python.org/issue36356> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36356] Failure to build with address sanitizer

2019-03-24 Thread Ben Harper
Ben Harper added the comment: I'm not sure about the change from 3.7 to master, but that assertion may be more likely to happen while instrumented with ASAN due to the extra space reserved between heap objects. As far as I can tell it's just expecting that the offset of two poi

[issue13282] the table of contents in epub file is too long

2019-04-10 Thread Ben Creasy
Change by Ben Creasy : -- nosy: +jcrben ___ Python tracker <https://bugs.python.org/issue13282> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13282] the table of contents in epub file is too long

2019-04-11 Thread Ben Creasy
Ben Creasy added the comment: Not sure if this is filed elsewhere, but the contents on the page at https://docs.python.org/3/contents.html could really use a collapse button, and could start automatically collapsed. The first half of the page is "What's new" for the past few

[issue23297] Clarify error when ‘tokenize.detect_encoding’ receives text

2019-04-28 Thread Ben Finney
Ben Finney added the comment: On 28-Apr-2019, Berker Peksag wrote: > The original problem has already been solved by making > tokenize.generate_tokens() public in issue 12486. I don't understand how that would affect the resolution of this issue. Isn't the correct resoluti

[issue32547] csv.DictWriter emits strange errors if fieldnames is an iterator

2018-01-13 Thread Ben Cummings
New submission from Ben Cummings : If I pass an iterator to csv.DictWriter as the fieldname field, then DictWriter consumes that iterator pretty quickly, emitting strange errors such as the following when trying to write the headers. >>> import csv >>> fields = iter(

[issue32626] Subscript unpacking raises SyntaxError

2018-01-22 Thread Ben Burrill
New submission from Ben Burrill : PEP 448 defines unpacking generalizations for tuples. However, this does not currently work for subscripted tuples that are not delimited by parentheses. Current behavior (Tested on 3.6/3.7a4): >>> class Subscriptable: ... def __getitem__(s

[issue32626] Subscript unpacking raises SyntaxError

2018-01-26 Thread Ben Burrill
Ben Burrill added the comment: Yeah, but in this case, you don't need parentheses unless you use unpacking. That is unexpected behavior. -- ___ Python tracker <https://bugs.python.org/is

[issue18533] Avoid error from repr() of recursive dictview

2018-01-27 Thread Ben North
Change by Ben North : -- pull_requests: +5203 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue18533> ___ ___ Python-bugs-lis

[issue18533] Avoid error from repr() of recursive dictview

2018-01-27 Thread Ben North
Ben North added the comment: Terry in msg310785: > As I expected from the fact that Ben once did a separate 2.7 > version, the auto backport for 2.7 failed. Ben, since you know what > code changes are needed, can you prepare a backport (cherry pick) > PR? Yes, that's right

[issue33020] Tkinter old style classes

2018-03-07 Thread Ben Kirshenbaum
New submission from Ben Kirshenbaum : Tkinter objects cannot handle the super() function, and probably other functions (I only found a problem with super()) -- components: Tkinter messages: 313397 nosy: benkir07 priority: normal severity: normal status: open title: Tkinter old style

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
New submission from Ben Feinstein : In logging.Manager, the logRecordFactory attribute is never used. One would expect that makeRecord() (in logging.Logger) would generate a record using its manager's logRecordFactory, or fallback to the global _logRecordFactory (if has no manage

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
Change by Ben Feinstein : -- keywords: +patch pull_requests: +5848 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33057> ___ ___ Py

[issue33057] logging.Manager.logRecordFactory is never used

2018-03-12 Thread Ben Feinstein
Change by Ben Feinstein : Removed file: https://bugs.python.org/file47478/issue_logRecordFactory.py ___ Python tracker <https://bugs.python.org/issue33057> ___ ___ Pytho

<    1   2   3   4   5   6   >