[issue1079] decode_header does not follow RFC 2047

2010-04-10 Thread Oliver Martin
Oliver Martin added the comment: I got bitten by this too. In addition to not decoding encoded words without whitespace after them, it throws an exception if there is a valid encoded word later in the string and the first encoded word is followed by something that isn't a hex n

[issue2554] test_ioctl failed Python 2.6a2 Solaris 10 SUN C

2010-04-13 Thread Martin Ducár
Changes by Martin Ducár : -- versions: +Python 2.5 ___ Python tracker <http://bugs.python.org/issue2554> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1679] tokenizer permits invalid hex integer

2007-12-21 Thread Martin Rinehart
New submission from Martin Rinehart: The tokenizer accepts '0x' as an integer zero. The documentation says: hexinteger ::= 0x|Xhexdigit+ Stumbled on this testing a tokenizer I wrote in Python for another language. Expected an Error on "int( '0x',

[issue1758] Wrong link in documentation

2008-01-07 Thread Martin Marcher
New submission from Martin Marcher: In this site: http://www.python.org/doc/current/inst/about.html under "Comments and Questions" the link to the python bugtracker is still pointing to the sourceforge bugtracker. -- components: Documentation messages: 59502 nosy: mart

[issue1679] tokenizer permits invalid hex integer

2008-01-22 Thread Martin Rinehart
Martin Rinehart added the comment: re 0x == 0 Thanks! Added file: http://bugs.python.org/file9268/unnamed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1679> __re 0

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-06 Thread Martin Wilck
Martin Wilck added the comment: I think this is a major issue because urllib2 is widely used, and any application using it is useless behind a HTTPS proxy. A Prominent example in the Linux world is yum, the Fedora Linux package management tool. HTTPS proxies are a extermely common in the

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-06 Thread Martin Wilck
Martin Wilck added the comment: The recipe in its current form doesn't work with urllib2 in python 2.5 The reason it fails is that the HTTPConnection.request() method isn't passed the request itself (with the proxy host and port info). No easy solution to be seen. -- nos

[issue2485] Traceback changed in 2.6 for unhashable objects

2008-03-25 Thread Martin Geisler
New submission from Martin Geisler <[EMAIL PROTECTED]>: The traceback message given when trying to hash unhashable objects has changed from Python 2.5 to 2.6: Python 2.5.2a0 (r251:54863, Feb 10 2008, 01:31:28) >>> hash([]) Traceback (most recent call last): File "&quo

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: RFC2617 says that the authentication scheme should be case insensitive. Included is a patch which changes the string to uppercase before comparison. -- keywords: +patch nosy: +BitTorment Added file: http://bugs.python.org/fil

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-05 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: I can see that there will be a problem in this case. However, it may be that the authors found it more intuitive to always set the Content-Type to application/x-www-form-urlencoded when data is set. Their implementation is incons

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-05 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: Sorry, the first example should read: #--- request = urllib2.Request('http://www.whompbox.com/headertest.php') request.add_data(data) f = urllib2.urlopen(request) re

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-06 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: I decided that the user should have full control over the headers sent. Any call to add_header() or add_redirected_header() will now check if a header with that same name has been set in the Request before (in both the header a

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-06 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10200/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-06 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10201/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2275] urllib2 header capitalization

2008-05-06 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: This looks good. I would suggest that the unredirected_hdrs would use the CaseInsensitiveDict too. There is still the problem (from the test documentation) that accessing .headers directly will only show a subset of headers i.e. it

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: The problem lines are in AbstractHTTPHandler.do_request(): scheme, sel = splittype(request.get_selector()) sel_host, sel_path = splithost(sel) if not request.has_header('Host'): request.add_unredirec

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-06 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: -- components: +Library (Lib) -Extension Modules versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10280/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10201/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4224] ** operating incorrectly for negative bases?

2008-10-28 Thread Martin Green
New submission from Martin Green <[EMAIL PROTECTED]>: I suspect that the following behavior is incorrect: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 >>> -1**2 -1 >>> -2**2 -4 >>> -1**0.5 -1.0 The same happens whe

[issue1109963] bdist_wininst ignores build_lib from build command

2008-11-01 Thread Nick Martin
Nick Martin <[EMAIL PROTECTED]> added the comment: This is exactly the same problem I was having with bdist_msi. -- nosy: +nick.martin ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue4488] Python Documentation not Newb Friendly

2008-12-02 Thread Martin Meredith
New submission from Martin Meredith <[EMAIL PROTECTED]>: I'm a new python user (developing in python) and I recently had a discussion with someone that my main issue with python is finding where the functions are that I need to use. An example (probably not the best) - I need

[issue4488] Python Documentation not Newb Friendly

2008-12-02 Thread Martin Meredith
Martin Meredith <[EMAIL PROTECTED]> added the comment: Well, I can't offer a patch (as I said - I'm a python n00b) - but I can offer suggestions. 1) show the functions as where they are - for example - splitext would be shown as os.path.splitext(arguments) 2) header titles f

[issue4528] test_httpservers consistently fails on OS X

2008-12-04 Thread Martin Diers
New submission from Martin Diers <[EMAIL PROTECTED]>: Test was run with sudo. All other tests passed. Here is the verbose output of test_httpservers: Re-running test 'test_httpservers' in verbose mode test_command (test.test_httpservers.BaseHTTPServerTestCase) ...

[issue4528] test_httpservers consistently fails on OS X

2008-12-05 Thread Martin Diers
Martin Diers <[EMAIL PROTECTED]> added the comment: A couple more notes: I am building using a fink installation: --prefix=/sw, in order to gain readline support. The only modules that are not installed are ossaudiodev and spwd. Next, I just did a build from a checkout of the r30 tag

[issue4528] test_httpservers consistently fails on OS X

2008-12-05 Thread Martin Diers
Martin Diers <[EMAIL PROTECTED]> added the comment: A couple more notes: I am building using a fink installation: --prefix=/sw, in order to gain readline support. The only modules that are not installed are ossaudiodev and spwd. Next, I just did a build from a checkout of the r30 tag

[issue4528] test_httpservers consistently fails on OS X using tarball, but not svn tag r30

2008-12-06 Thread Martin Diers
Changes by Martin Diers <[EMAIL PROTECTED]>: -- title: test_httpservers consistently fails on OS X -> test_httpservers consistently fails on OS X using tarball, but not svn tag r30 ___ Python tracker <[EMAIL PROTECTED]> <http

[issue4925] Improve error message of subprocess

2009-01-12 Thread Martin Mokrejs
New submission from Martin Mokrejs : I think the following error output unsatisfactory as it does not give me any hint what file was not found: $ fetch_quals.py blah.txt Traceback (most recent call last): File "/home/mmokrejs/bin/fetch_quals.py", line 15, in _p1 = subpro

[issue4960] askdirectory from tkinter.filedialog does not work

2009-01-15 Thread Martin Saturka
New submission from Martin Saturka : Directory selection from Tkinter part of Python 3.0, i.e. "askdirectory" function from tkinter.filedialog does not work. It works for 2.x Python, other Tkinter functions (askopenfilename, asksaveasfilename) work well at both 2.x and 3.

[issue4960] askdirectory from tkinter.filedialog does not work

2009-01-15 Thread Martin Saturka
Martin Saturka added the comment: When I do in Python 2.x (e.g. 2.6) next: import Tkinter as T import tkFileDialog as F t = T.Tk() dn = F.askdirectory() It pop-ups the dialog, it is OK. Analogical case for Python 3.0 does not work, at

[issue5206] with context object for unittest assertRaises()

2009-02-10 Thread Martin Blais
New submission from Martin Blais : Here is a useful trick to restore the normal call syntax for delayed evaluation for assertRaises(): from contextlib import contextmanager @contextmanager def raised(exctype): try: yield raise AssertionError

[issue5206] with context object for unittest assertRaises()

2009-02-10 Thread Martin Blais
Changes by Martin Blais : -- components: +Library (Lib) type: -> feature request ___ Python tracker <http://bugs.python.org/issue5206> ___ ___ Python-bugs-lis

[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-26 Thread Martin Dengler
Change by Martin Dengler : -- nosy: +mdengler ___ Python tracker <https://bugs.python.org/issue43323> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43818] Email does not apply policy to multipart messages with defects

2022-03-26 Thread Martin Dengler
Change by Martin Dengler : -- nosy: +mdengler ___ Python tracker <https://bugs.python.org/issue43818> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43818] Email does not apply policy to multipart messages with defects

2022-03-28 Thread Martin Dengler
Martin Dengler added the comment: Possible related to https://github.com/python/cpython/pull/32137 and https://bugs.python.org/issue43323 -- ___ Python tracker <https://bugs.python.org/issue43

[issue47188] ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3

2022-04-01 Thread Martin Liška
New submission from Martin Liška : Note -D_FORTIFY_SOURCE=3 will come newly with GCC12. So I noticed the following error: demo.py: ```python import curses curses.initscr() curses.unget_wch('a') ``` Error message: *** buffer overflow detected ***: terminated Bac

[issue47188] ncurses: *** buffer overflow detected ***: terminated with -D_FORTIFY_SOURCE=3

2022-04-06 Thread Martin Liška
Martin Liška added the comment: So the issue is ncurses, closing here. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue38306] High level API for loop.run_in_executor(None, ...)?

2019-09-28 Thread Paul Martin
Paul Martin added the comment: run_in_executor doesn't necessarily create a new thread each time so create_thread would be misleading. run_in_thread might be better. -- nosy: +primal ___ Python tracker <https://bugs.python.org/is

[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2019-09-29 Thread Martin Panter
Martin Panter added the comment: Looks like the change causing this is revision cc3fa20. I would remove the reference to pdict['CONTENT-LENGTH']. -- keywords: +3.7regression nosy: +martin.panter ___ Python tracker <https://bu

[issue37759] Polish whatsnew for 3.8

2019-10-14 Thread Paul Martin
Paul Martin added the comment: Should singledispatchmethod and cached_property be added? -- nosy: +primal ___ Python tracker <https://bugs.python.org/issue37

[issue38471] _ProactorDatagramTransport: If close() is called when write buffer is not empty, the remaining data is not sent and connection_lost is not called

2019-10-14 Thread Paul Martin
New submission from Paul Martin : Expected behaviour for DatagramTransport (from_SelectorDatagramTransport): transport.close() called. If there is data in the write buffer, don't call connection_lost. When all data is written and the buffer is empty, check if connection has been lost a

[issue38471] _ProactorDatagramTransport: If close() is called when write buffer is not empty, the remaining data is not sent and connection_lost is not called

2019-10-14 Thread Paul Martin
Change by Paul Martin : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue38471> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38471] _ProactorDatagramTransport: If close() is called when write buffer is not empty, the remaining data is not sent and connection_lost is not called

2019-10-14 Thread Paul Martin
Change by Paul Martin : -- keywords: +patch pull_requests: +16341 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16779 ___ Python tracker <https://bugs.python.org/issu

[issue38471] _ProactorDatagramTransport: If close() is called when write buffer is not empty, the remaining data is not sent and connection_lost is not called

2019-10-20 Thread Paul Martin
Change by Paul Martin : -- pull_requests: +16408 pull_request: https://github.com/python/cpython/pull/16863 ___ Python tracker <https://bugs.python.org/issue38

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-01 Thread Paul Martin
Paul Martin added the comment: I don't think changing the default executor is a good approach. What happens, if two or more thread pools are running at the same time? In that case they will use the same default executor anyway, so creating a new executor each time seems like a

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-01 Thread Paul Martin
Paul Martin added the comment: Run method should be: async def run(self, func, *args, **kwargs): call = functools.partial(func, *args, **kwargs) return await self._loop.run_in_executor(None, call) -- ___ Python tracker <ht

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-01 Thread Paul Martin
Paul Martin added the comment: Good points. I made a mistake in run Should be: async def run(self, func, *args, **kwargs): call = functools.partial(func, *args, **kwargs) return await self._loop.run_in_executor(self._executor, call) Also in this case run awaits and

[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Martin Cooper
Martin Cooper added the comment: I think you are confusing the perspective of the implementor with that of the typical developer _using_ the toolkit without reading through its source code. In my tkinter applications, I pretty much always use ttk widgets where they are available. This is

[issue34915] LWPCookieJar.save() creates *.lwp file in 644 mode

2021-03-13 Thread Martin Panter
Martin Panter added the comment: I don't have a strong opinion, but it does seem a sensible change that matches the high-level nature of the "cookiejar" module, with low risk of users relying on the current file permissions. On the other hand, the "curl" command

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-04-03 Thread Martin Panter
Martin Panter added the comment: Anselm's pull request PR 15175 looked hopeful to me. I've been using those changes in our builds at work for a while. -- ___ Python tracker <https://bugs.python.o

[issue44007] urlparse("host:123", "http") inconsistent between 3.8 and 3.9

2021-05-01 Thread Martin Panter
Martin Panter added the comment: I suspect this comes from Issue 27657. Consider how similar URLs like tel:123 or javascript:123 should be parsed. -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue44

[issue37334] Add a cancel method to asyncio Queues

2021-05-12 Thread Martin Teichmann
Martin Teichmann added the comment: This is a years old issue, unfortunately it never got neither merged nor rejected. I just rebased it and hope somebody could finish the review. -- versions: +Python 3.11 -Python 3.8 ___ Python tracker <ht

[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann
New submission from Martin Teichmann : Currently, fraction.Fractions can be generated from floats via their as_integer_ratio method. This had been extended to also work with the Decimals class. It would be more generic - and IMHO more Pythonic - to just allow any data type, as long as it has

[issue44115] Improve conversions for fractions

2021-05-12 Thread Martin Teichmann
Change by Martin Teichmann : -- keywords: +patch pull_requests: +24705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26064 ___ Python tracker <https://bugs.python.org/issu

[issue44228] [urllib] Error with handling of urllib.parse.quote. Terminates halfway

2021-05-25 Thread Martin Panter
Martin Panter added the comment: I presume this is because you are running a Unix shell, and it's nothing to do with Python. Look up how quoting and variable substitution with dollar signs $ works. $ set -o nounset $ python3 -c "import urllib.parse; print (urllib.parse.quote(

[issue44146] Format string fill not handling brace char

2021-06-09 Thread Martin Panter
Martin Panter added the comment: Another workaround: >>> '{:{brace}>10d}'.format(5, brace='{') '{5' -- nosy: +martin.panter ___ Python tr

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread Martin Ortner
Martin Ortner added the comment: > This bug report starts with "a malicious user with direct access to > `smtplib.SMTP(..., local_hostname, ..)", which is a senseless supposition. > Anyone with "access to" the SMTP object could just as well be talking > di

[issue44663] Possible bug in datetime utc

2021-07-18 Thread Paul Martin
Paul Martin added the comment: The difference between the two is the difference between your local time and utc. datetime.now(timezone.utc) This returns the current time in utc and is timezone aware. So the timestamp can figure out the seconds since epoch taking into account the timezone

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Ross Martin
Ross Martin added the comment: I would like to fix this, if it hasnt been assigned already. -- nosy: +MrRBM97 ___ Python tracker <https://bugs.python.org/issue45

[issue45170] tarfile missing cross-directory checking

2021-09-19 Thread Martin Panter
Martin Panter added the comment: Issue 21109 has been open for a while and is the same as this, if I am not mistaken. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> tarfile: Traversal attack v

[issue45349] configparser.ConfigParser: 2 newlines at end of file (EOF)

2021-10-02 Thread Martin Panter
Martin Panter added the comment: Looks like the same as Issue 32917. I presume there are two newlines at the end of the file because there are two newlines following every config section. IMO this is a minor cosmetic annoyance, just like writing a key with an empty value gets you a trailing

[issue45387] GzipFile.write should be buffered

2021-10-06 Thread Marcel Martin
Change by Marcel Martin : -- nosy: +marcelm ___ Python tracker <https://bugs.python.org/issue45387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45523] Python3 ThreadingHTTPServer fails to send chunked encoded response

2021-10-19 Thread Martin Panter
Martin Panter added the comment: Looks like you forgot to encode the length of ten in hexadecimal. I don't think the HTTP server module has any special handling for chunked responses, so this up to the user and isn't a bug in Python. -- nosy: +martin.panter resolution: -&

[issue45544] Close 2to3 issues and list them here

2021-10-20 Thread Martin DeMello
Change by Martin DeMello : -- nosy: +martindemello nosy_count: 4.0 -> 5.0 pull_requests: +27384 pull_request: https://github.com/python/cpython/pull/10618 ___ Python tracker <https://bugs.python.org/issu

[issue45585] Gzipping subprocess output produces invalid .gz file

2021-10-23 Thread Martin Panter
Martin Panter added the comment: The subprocess module only uses the file object to get a file handle by calling the "fileno" method. See Issue 19992 about documenting this. For Python to compress the output of the child process, you would need a pipe. Gzip file objects provide t

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-25 Thread Martin Rueckl
Martin Rueckl added the comment: Can confirm for 3.9.7 as well. -- nosy: +martinitus ___ Python tracker <https://bugs.python.org/issue45438> ___ ___ Python-bug

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-25 Thread Martin Rueckl
Change by Martin Rueckl : -- keywords: +patch pull_requests: +27476 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29212 ___ Python tracker <https://bugs.python.org/issu

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-25 Thread Martin Rueckl
Martin Rueckl added the comment: I just created a PR and signed the contributor agreement. Waiting for it to update :-) Comments welcome! -- ___ Python tracker <https://bugs.python.org/issue45

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-26 Thread Martin Rueckl
Martin Rueckl added the comment: Just my two cents as a new contributor but long time user: - isinstance(list[int], type) returning False seems incredibly un-intuitive to me. I always see generics (e.g. list without type parameter) as higher kinded types, where passing a type argument via

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-11-01 Thread Martin Rueckl
Martin Rueckl added the comment: One thing that probably should be considered in this context: isinstance(arg, type) == issubclass(type(arg), type) Holds True for arg in (Optional[X], Union[X, Y]). Both sides evaluate to False. (v3.10.0) While I still think both sides evaluating to True

[issue45665] Problems caused by isinstance(list[int], type) returning True

2021-11-01 Thread Martin Rueckl
Martin Rueckl added the comment: Sorry for the noise: - Literal['a', 'b'], - TypeVar('T') Behave like Optional/Union -- ___ Python tracker <h

[issue29979] cgi.parse_multipart is not consistent with FieldStorage

2019-11-17 Thread Martin Panter
Change by Martin Panter : -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue29979> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38831] urllib.request header characters being changed to lowercase

2019-11-17 Thread Martin Panter
Martin Panter added the comment: I suggest to keep the discussion with Issue 12455 -- nosy: +martin.panter superseder: -> urllib2 forces title() on header names, breaking some requests ___ Python tracker <https://bugs.python.org/issu

[issue38710] unsynchronized write pointer in io.TextIOWrapper in 'r+' mode

2019-11-17 Thread Martin Panter
Martin Panter added the comment: Previously Issue 12215 and a couple of other duplicates were opened about this. Writing after reading with TextIOWrapper doesn't work as people expect. The report was closed apparently because Victor thought there wasn't enough interest in it. FWI

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Martin Teichmann
Martin Teichmann added the comment: Hi Andrew, I still don't get your point. First, this is an extension to the asyncio library, so concurrency is not an issue. And sure, if you call random methods of an object without any reason the outcome won't be anything useful, why, in yo

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Martin Teichmann
Martin Teichmann added the comment: Yes, in the one-producer-many-consumers situation on can indeed to the trick with the None. But this is just a clumsy hack, cancelling the tasks is IMHO more in line with asyncio. In the many-producers-one-consumer scenario this does not work. The one

[issue37334] Add a cancel method to asyncio Queues

2019-11-23 Thread Martin Teichmann
Martin Teichmann added the comment: I do not think that exposing the lists of futures does any good. I cannot come up with a semantics that could be implemented with that other than the one proposed. Also I think that close() or cancel() is something a reader intuitively understands, while

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2019-12-04 Thread Martin Liška
New submission from Martin Liška : The test-case is stuck after update to GCC 10. I've got a patch for that. -- messages: 357778 nosy: Martin Liška priority: normal severity: normal status: open title: test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2019-12-04 Thread Martin Liška
Change by Martin Liška : -- keywords: +patch pull_requests: +16942 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17462 ___ Python tracker <https://bugs.python.org/issu

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2019-12-15 Thread Martin Panter
Martin Panter added the comment: Another workaround might be to set the new "block_on_close" flag (Issue 33540) to False on the server subclass or instance. Victor: Replying to <https://bugs.python.org/issue37193#msg345817> "What do I think of also using a weakref

[issue39083] Dictionary get(key, default-expression) not short circuit behavior

2019-12-17 Thread Martin Meo
New submission from Martin Meo : """ Unexpected behavior report Dictionary get(key, default-expression) not short circuit behavior MacOS 10.14.6 sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0) BACKGROUND A python dictionary is a data st

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2019-12-18 Thread Martin Panter
Change by Martin Panter : -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue37788> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2019-12-18 Thread Martin Panter
Martin Panter added the comment: FTR I have been trialling a patched Python 3.7 based on Maru's changes (revision 6ac217c) + review suggestions, and it has reduced the size of the leak (hit 1 GB over a couple days, vs only 60 MB increase over three days). The remaining leak cou

[issue39194] asyncio.open_connection returns a closed client when server fails to authenticate client certificate

2020-01-02 Thread Jonathan Martin
New submission from Jonathan Martin : I'm trying to use SSL to validate clients connecting a an asyncio socket server by specifying CERT_REQUIRED and giving a `cafile` containing the client certificate to allow. client and server code attached. Certificates are generated with: openss

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in Python code, or use a particular external module? -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue39

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Building and verifying the checksum in "RTA protocol" that uses this: <https://rms.nsw.gov.au/business-industry/partners-suppliers/documents/specifications/tsi-sp-003.pdf>. But I understand CRC-CCITT is one of the two popular 16-bit CRC polyn

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-24 Thread Martin Panter
Martin Panter added the comment: Of course I would prefer “crc_hqx” to stay, because we use it at work. But I understand if you think it is not popular enough to justify maintaining it. But I was more asking if the deprecation notice should point the way forward. This function is no longer

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-30 Thread Martin Panter
Martin Panter added the comment: Thanks Victor -- ___ Python tracker <https://bugs.python.org/issue39353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35318] Check accuracy of str() doc string for its encoding argument

2020-02-07 Thread Martin Panter
Martin Panter added the comment: Closing in favour of Issue 39574 where a new wording is proposed -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> str.__doc__ is misleading __

[issue39717] Fix exception causes in tarfile module

2020-02-21 Thread Martin Panter
Martin Panter added the comment: Please don’t use “from None” in library code. It hides exceptions raised by the calling application that would help debugging. E.g. <https://bugs.python.org/issue30097#msg293185> -- nosy: +martin.panter ___

[issue39780] Add HTTP Response code 103

2020-02-27 Thread Martin Panter
Martin Panter added the comment: See also Issue 39509, proposing to add 103 and "425 Too Early" -- nosy: +martin.panter ___ Python tracker <https://bugs.python.o

[issue33347] zlibmodule undefined reference

2020-03-05 Thread Martin Ni
Martin Ni added the comment: Hello sir! I got exactly same issue when compile some ipk in Openwrt. Would tell how to add "-lz" to python-config? I am not so familiar with Python coding. Thanks! -- nosy: +Martin Ni ___ Python track

[issue26527] CGI library - Using unicode in header fields

2020-03-21 Thread Martin Panter
Martin Panter added the comment: I’m not an expert on the topic, but it sounds like this might be a duplicate of Issue 23434, which has more discussion. -- nosy: +martin.panter resolution: -> duplicate status: open -> pending superseder: -> support encoded filename i

[issue40299] os.dup seems broken with execvp (LINUX)

2020-04-16 Thread Martin Panter
Martin Panter added the comment: The file descriptor created by "os.dup" is not inherited by child processes by default since Python 3.4. https://docs.python.org/3/library/os.html#os.dup Does it work if you use "os.set_inheritable" or "os.dup2" (which appa

[issue38884] __import__ is not thread-safe on Python 3

2020-04-17 Thread Martin Laus
Change by Martin Laus : -- nosy: +Martin Laus ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

2020-04-30 Thread Paul Martin
New submission from Paul Martin : According to the docs: " There are several ways to enable asyncio debug mode. Setting the PYTHONASYNCIODEBUG environment variable to 1. Using the -X dev Python command line option. Passing debug=True to asyncio.run(). Calling loop.set_debug().

[issue42306] wrong exception handling in case asyncio.shiled usage

2020-12-14 Thread Martin Natano
Martin Natano added the comment: I just verified that this is not an issue in python 3.8.6 and python 3.9.0. In those versions a normal stacktrace is generated, as expected. -- nosy: +natano ___ Python tracker <https://bugs.python.org/issue42

[issue42636] shielded task exception never retrieved when outer task cancelled

2020-12-14 Thread Martin Natano
New submission from Martin Natano : A task created with asyncio.shield() never retrieves the task exception, which results in a log message being generated. See the attached script for a minimal example. Output looks something like this: Task exception was never retrieved future: exception

[issue42636] shielded task exception never retrieved when outer task cancelled

2020-12-14 Thread Martin Natano
Martin Natano added the comment: I'm not sure how to fix this, but here is a regression test for the issue. (failing on the current master branch) -- keywords: +patch Added file: https://bugs.python.org/file49680/regression-test.patch ___ P

[issue42636] shielded task exception never retrieved when outer task cancelled

2020-12-15 Thread Martin Natano
Martin Natano added the comment: How would calling `outer.exception()` suppress the message? This happens when the outer task is cancelled while the inner task is still running. In that case the exception is never set on outer. -- ___ Python

<    1   2   3   4   5   6   7   8   9   10   >