[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2022-03-30 Thread Logan Jones
Logan Jones added the comment: Ok I now have a PR up with the features requested. Let me know if you need anything else! -- ___ Python tracker <https://bugs.python.org/issue44

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2022-03-29 Thread Logan Jones
Change by Logan Jones : -- pull_requests: +30264 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/32187 ___ Python tracker <https://bugs.python.org/issu

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2022-03-29 Thread Logan Jones
Logan Jones added the comment: Okay, I'm actually able to work on this again. What is the best way to make this change real. Should I be working off of main? -- ___ Python tracker <https://bugs.python.org/issue44

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2022-01-24 Thread Logan Jones
Logan Jones added the comment: Based on my reading I’m hopeful that this change can make it in quickly once I find the time. The previous implementation didn’t care how the processes were created. I will look as soon as I can -- ___ Python

[issue45518] Invalid example for typing

2021-10-18 Thread Logan Jones
Logan Jones added the comment: Hi Bozhi. The syntax that you're referencing was added in 3.9. So if you're trying the syntax in earlier versions of Python, it won't work. The standard collections were added in PEP 585 (https://www.python.org/dev/peps/pep-0585/) I think the reason

[issue44920] Support UUIDv6, UUIDv7, and UUIDv8 from the new version of RFC4122

2021-08-16 Thread Logan Jones
Change by Logan Jones : -- nosy: +loganasherjones ___ Python tracker <https://bugs.python.org/issue44920> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44744] [security] Open redirect attack due to insufficient validation in Urlparse

2021-07-27 Thread Logan Jones
Logan Jones added the comment: If I've understood what you've written correctly, what you want is to change urlparse to use the WHATWG URL Standard (https://url.spec.whatwg.org/). I'm not a committer or anything, but that seems like a large API change and is not likely to happen quickly

[issue44744] [security] Open redirect attack due to insufficient validation in Urlparse

2021-07-26 Thread Logan Jones
Logan Jones added the comment: I don't know if urlparse is actually "mishandling" these URLs. Looking over RFC 1808 (https://datatracker.ietf.org/doc/html/rfc1808.html) the BNF (https://datatracker.ietf.org/doc/html/rfc1808.html#section-2.2) seems to support what urlparse is

[issue44744] [security] Open redirect attack due to insufficient validation in Urlparse

2021-07-26 Thread Logan Jones
Change by Logan Jones : -- nosy: +loganasherjones ___ Python tracker <https://bugs.python.org/issue44744> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-26 Thread Logan Jones
Change by Logan Jones : -- keywords: +patch pull_requests: +25911 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27373 ___ Python tracker <https://bugs.python.org/issu

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-26 Thread Logan Jones
Logan Jones added the comment: I think I have a solution for this, but I'm pretty new to contributing. Still writing up some tests. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-25 Thread Logan Jones
Change by Logan Jones : -- nosy: +loganasherjones ___ Python tracker <https://bugs.python.org/issue44733> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44734] turtle: tests for Vec2D.__abs__ are too strict

2021-07-24 Thread Logan Jones
Change by Logan Jones : -- keywords: +patch nosy: +loganasherjones nosy_count: 1.0 -> 2.0 pull_requests: +25885 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27343 ___ Python tracker <https://bugs.p

[issue5396] os.read not handling O_DIRECT flag

2019-12-06 Thread Logan Gunthorpe
Logan Gunthorpe added the comment: Paul's solution works in 3.7 if you set the buffer size to zero when calling fdopen. fd = os.open("my_file", os.O_DIRECT | os.O_RDWR) f = os.fdopen(fd, "rb+", 0) m = mmap.mmap(-1, 4096) f.readinto(m) This is according to a

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2019-05-06 Thread Logan Jones
Logan Jones added the comment: After speaking with Lukasz about this, it seems like the unparser is using the normal unicode repr to determine what should be returned. The default unicode repr will escape quotes if necessary. This is not allowed for f-strings and is the root cause

[issue15305] Test harness unnecessarily disambiguating twice

2019-05-06 Thread Logan Jones
Logan Jones added the comment: I'm working on this in the PyCon 2019 sprints. Near as I can tell, while this issue still seems relevant, I think it might actually be for the best that this multiple disambiguation is left in the test suite. I removed the pid reference in the TESTFN

[issue36022] [Security] logging.config should not use eval()

2019-05-06 Thread Logan Jones
Logan Jones added the comment: I'd like to work on this during the Pycon sprints -- nosy: +loganasherjones ___ Python tracker <https://bugs.python.org/issue36

[issue36798] f-strings do not support top-level :=

2019-05-06 Thread Logan Jones
Change by Logan Jones : -- keywords: +patch pull_requests: +13021 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36798] f-strings do not support top-level :=

2019-05-06 Thread Logan Jones
Logan Jones added the comment: I'm going to try to tackle this. I'm not exactly sure how to go about updating the PEP, but the docs should have a PR in the next 15 minutes or so. -- nosy: +Logan Jones ___ Python tracker <https://bugs.python.

[issue27497] csv module: Add return value to DictWriter.writeheader

2016-07-14 Thread Logan
Logan added the comment: @berker.peksag: Good catch, thank you. In my code base I'm using a slightly different implementation which does use an iterator, so I didn't even catch that the default django example was incorrect. @skip.montanaro: That is exactly the one-liner I'm currently using

[issue27497] csv module: Add return value to DictWriter.writeheader

2016-07-12 Thread Logan
New submission from Logan: Currently, DictWriter.writeheader() is defined like: def writeheader(self): header = dict(zip(self.fieldnames, self.fieldnames)) self.writerow(header) It would be useful to have it return the value of writerow(): def writeheader(self

[issue18096] bad library order returned by python-config.in

2014-10-01 Thread Logan Chien
Logan Chien added the comment: It seems that this is still reproducible with Python 3.5 (dev) by running: $ gcc test.c `python3-config --includes --ldflags` cpython-install/lib/python3.5/config-3.5m/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToTime_t': cpython-build/../cpython

[issue11434] Python 3.2 input() does not remove \r at the end of returned string.

2011-03-07 Thread Joshua Logan
New submission from Joshua Logan dear.jay.lo...@gmail.com: Hello, It is mentioned in the documentation for input() ( http://docs.python.org/py3k/library/functions.html#input ) that the newline is stripped from the end of the returned string. However, on Windows, it used to trim '\r\n'. Now

[issue3742] Parsing XML file with Unicode characters causes problem

2008-08-31 Thread Joshua Logan
New submission from Joshua Logan [EMAIL PROTECTED]: Python 3.0b2 will not parse the XML file located at http://rubyquiz.com/SongLibrary.xml.gz It complains of a UnicodeEncodeError 'charmap' codec can't encode character '\xc8' in position 45: ch aracter maps to undefined I included a sample