[issue12178] csv writer doesn't escape escapechar

2020-09-20 Thread Tal Einat
Tal Einat added the comment: After a great deal of delay, a fix for this has finally been merged, and will be available in Python 3.10. Thanks to everyone involved! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 2.7,

[issue21261] Teach IDLE to Autocomplete dictionary keys

2020-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current patch completes both strings keys and bytes keys mixed together. I want to challenge this. 0. What is the use case? The current patch nearly doubles the autocomple code, which handle user actions up to creation of a completion list. I would

[issue29526] Documenting format() function

2020-09-20 Thread Irit Katriel
Irit Katriel added the comment: It looks like this is complete and can be closed. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-20 Thread john_miller
New submission from john_miller : I noticed some beeping when printing data to the console (cmd), so I narrowed down the problem to three specific Unicode-characters somehow producing beeps when printed to the Windows console (CMD). This also works in interactive mode. (I checked every

[issue12178] csv writer doesn't escape escapechar

2020-09-20 Thread Tal Einat
Tal Einat added the comment: New changeset 5c0eed7375fdd791cc5e19ceabfab4170ad44062 by Berker Peksag in branch 'master': bpo-12178: Fix escaping of escapechar in csv.writer() (GH-13710) https://github.com/python/cpython/commit/5c0eed7375fdd791cc5e19ceabfab4170ad44062 --

[issue21261] Teach IDLE to Autocomplete dictionary keys

2020-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: > the PR allows using either type of quote when typing completions. Only if one types a quote before the box pops up. In this case, there is no auto popup and one must request completions. The box then uses the quote typed. Thereafter, there is no

[issue41819] Fix some compiler warnings

2020-09-20 Thread Samuel Marks
New submission from Samuel Marks : https://github.com/SamuelMarks/cpython/tree/3.9-compiler-fixes -- components: Build messages: 377205 nosy: samuelmarks priority: normal pull_requests: 21373 severity: normal status: open title: Fix some compiler warnings type: compile error versions:

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Anudeep Balla
New submission from Anudeep Balla : https://docs.python.org/3.8/library/ipaddress.html import ipaddress ADDRESSES = [ '172.16.254.00' ] for ip in ADDRESSES: addr = ipaddress.ip_address(ip) if addr.version==4: { print("true") } else: {

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-09-20 Thread Stefan Behnel
Stefan Behnel added the comment: Closing again since GH-21528 has been merged in issue 41295. -- status: open -> closed ___ Python tracker ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2020-09-20 Thread Tal Einat
Tal Einat added the comment: People still get confused between bytes and strings, even with Python 3, especially novice programmers who are a major target audience of IDLE. I simply thought it would be confusing if string dict keys did appear in the completion list, but bytes keys did not.

[issue21261] Teach IDLE to Autocomplete dictionary keys

2020-09-20 Thread Tal Einat
Tal Einat added the comment: Also, please note that the PR allows using either type of quote when typing completions. -- ___ Python tracker ___

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +21374 pull_request: https://github.com/python/cpython/pull/22330 ___ Python tracker ___

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 22330 refactors gen_send_ex(), making it similar to the new PyGen_Send(). -- status: closed -> open ___ Python tracker ___

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Anudeep Balla
Anudeep Balla added the comment: That was the whole point I was trying to make that there were no references that state .00 is equivalent to .0 and if you would try any IP validator or would check by any means you would find that the IP address is invalid. I truly understand the point that

[issue35247] test.test_socket.RDSTest.testPeek hangs indefinitely

2020-09-20 Thread Jáchym Barvínek
Jáchym Barvínek added the comment: I am experiencing the same issue when trying to build the ArchLinux python package. Not sure how to reproduce, but I can provide specific details of my system if requested. -- nosy: +Jáchym Barvínek ___ Python

[issue40407] Zipfile couldn`t recognized character set rightly.

2020-09-20 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___

[issue1207613] Idle Editor: Bottom Scroll Bar

2020-09-20 Thread Tal Einat
Tal Einat added the comment: We've run into a significant technical hurdle in trying to implement a horizontal scrollbar: The Tk text widget sets the horizontal scroll position only according to the currently visible lines! If the text was scrolled to the right, scrolling down to where

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Christian Heimes
Christian Heimes added the comment: What happens if you modify both contexts? -- ___ Python tracker ___ ___ Python-bugs-list

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Christian Heimes
Christian Heimes added the comment: Does "test_min_max_version_mismatch" pass on your system when you add client_context.set_ciphers("@SECLEVEL=1:HIGH") ? -- ___ Python tracker

[issue41819] Fix some compiler warnings

2020-09-20 Thread Irit Katriel
Irit Katriel added the comment: Can you give more details about what you're fixing: what were the compiler warnings, which compiler (and which version of the compiler), which system? Also, why did you create the PR against the 3.9 branch rather than master? -- nosy: +iritkatriel

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2020-09-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Simplified: >>> import ipaddress >>> print(ipaddress.ip_address('172.16.254.00').version) 4 So your concern is that you think '172.16.254.00' (or equivalently, '172.16.254.0') shouldn't be treated as a valid IPv4 address. Is that correct? Can you tell us why

[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-20 Thread Eryk Sun
Eryk Sun added the comment: If you've selected an OEM raster font in the console properties instead of a TrueType font (Consolas, Lucida Console, etc), then the console implements some magic to support the OEM character mapping in the raster font. The following shows that encoding to

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Christian Heimes
Christian Heimes added the comment: Four times 'True' means that OpenSSL is compiled with TLS 1.0, 1,1, 1.2, and 1.3 support. SSLContext().minium_version == MINIMUM_SUPPORTED and maximum_version == MAXIMUM_SUPPORTED mean that no crypto policy setting or OpenSSL security level setting has

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Please do not include screen shots in bug reports. They've unfriendly to people who use screen readers or other accessibility software. Instead, please copy and paste (or retype, if needed) the text into the comment section. > '172.16.254.00' *is not*

[issue29526] Documenting format() function

2020-09-20 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: Vladimir, could you please submit a PR to update 3.10/whatsnew? Need to mention both the new C API and the new perf boost in relevant sections. -- ___ Python tracker

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why do you think it is invalid? What formal document specify this? In contrary, there are examples of using 0-padded notation for IPv4 addresses (000.rrr.rrr.rrr, 128.000.rrr.rrr, 192.000.001.rrr and 224.000.000.000) in RFC 790. -- nosy:

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Given that RFC 790 uses 000 as an octet (thanks Serhiy), I think the bug here, if there is one, is in the other validator that you're using. Without a standard saying not to accept 00 or 000, I think we won't make any change here. --

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Tal Einat
Tal Einat added the comment: Same. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Tal Einat
Tal Einat added the comment: No, adding that after the first line of test_min_max_version_mismatch() still results in the same error: ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1122) -- ___ Python tracker

[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-20 Thread john_miller
john_miller added the comment: It is set to use an OEM raster font. (Should the information about the font and possible unwanted beeping be mentioned on https://docs.python.org/3/using/windows.html ? Perhaps even a short link regarding "Windows issues" under the print()-entry?) Thanks for

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Anudeep Balla
Anudeep Balla added the comment: Greetings, Any Ip address containing 2 zeros or more are considered to be an invalid IP address. '172.16.254.00' *is not* equivalent to '172.16.254.0' I guess this small logic is causing the error I hope it makes it clear from the below images. Regards,

[issue41684] argparse: unexpected subparser behaviour on parse_args with namespace option

2020-09-20 Thread paul j3
Change by paul j3 : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-20 Thread Bug Reporter
Bug Reporter added the comment: I added client_context.set_ciphers("@SECLEVEL=1:HIGH"), then added server_context.set_ciphers("@SECLEVEL=1:HIGH"). The test failed in both cases. I did not have problem with python 3.7.x. in Ubuntu 18.04. I have just tried compiling 3.7.5 in Ubuntu 20.04 and

[issue33085] *** Error in `python': double free or corruption (out): 0x00007ff5254d50d0 ***

2020-09-20 Thread Irit Katriel
Change by Irit Katriel : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34199] Add support for delete logger in log module.

2020-09-20 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___

[issue41822] Document the mean of values for sys.float_info.rounds

2020-09-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +mark.dickinson, serhiy.storchaka, tim.peters ___ Python tracker ___ ___ Python-bugs-list

[issue41819] Fix some compiler warnings

2020-09-20 Thread Samuel Marks
Samuel Marks added the comment: Okay I'll redo it on master, here is my config, on macOS 10.15.6: ``` $ export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig" $ export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" $ export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" $ export

[issue41819] Fix some compiler warnings

2020-09-20 Thread Samuel Marks
Change by Samuel Marks : -- keywords: +patch pull_requests: +21376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22332 ___ Python tracker ___

[issue41769] Positional arguments with boolean actions behave differently

2020-09-20 Thread paul j3
paul j3 added the comment: 'store_true/false' are subclasses of 'store_const'. All have a 'nargs=0' value. It's that value which explains their behavior. ('append_const' would also fall in this category) In [2]: parser = argparse.ArgumentParser() In [3]: parser.add_argument('foo',

[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

2020-09-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +21375 pull_request: https://github.com/python/cpython/pull/22331 ___ Python tracker ___

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-09-20 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +21378 pull_request: https://github.com/python/cpython/pull/22333 ___ Python tracker ___

[issue41822] Document the mean of values for sys.float_info.rounds

2020-09-20 Thread Raymond Hettinger
New submission from Raymond Hettinger : The current docs unnecessarily refer readers to the C99 standard. "integer constant representing the rounding mode used for arithmetic operations. This reflects the value of the system FLT_ROUNDS macro at interpreter startup time. See section 5.2.4.2.2

[issue41823] Add more fields to sys.float_info

2020-09-20 Thread Raymond Hettinger
New submission from Raymond Hettinger : Consider adding new non-sequence fields to sys.float_info: doubling_rounding and ieee_754. The code in test_math defines a useful constant: # detect evidence of double-rounding: fsum is not always correctly # rounded on machines that suffer from

[issue41821] Printing specific Unicode characters causes unwanted beeping in Windows 7 console

2020-09-20 Thread Eryk Sun
Eryk Sun added the comment: > It is set to use an OEM raster font. Okay, then the issue can either be closed as third-party or changed to a documentation enhancement. It could be documented that Unicode support requires selecting a TrueType font in the console properties. "Raster Fonts" uses

[issue24403] Missing fixer for changed round() behavior

2020-09-20 Thread Irit Katriel
Irit Katriel added the comment: Looks like this issue can be closed as rejected. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41513] High accuracy math.hypot()

2020-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset bc6b7fa6d7fb8957eb4ff809366af40dfb12b8cd by Raymond Hettinger in branch 'master': bpo-41513: Add accuracy tests for math.hypot() (GH-22327) https://github.com/python/cpython/commit/bc6b7fa6d7fb8957eb4ff809366af40dfb12b8cd --