[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Library (Lib) nosy: +serhiy.storchaka versions: +Python 3.9 ___ Python tracker ___

[issue37580] Markup typo in http.cookiejar doc

2019-07-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : CookieJar.add_cookie_header in Doc/library/http.cookiejar.rst contains the below statement where .. is present that causes the markup to not link to the correct docs. The fix would be to remove extra dot in the docs and verify the rendered doc

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: s/help/dir/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +14522 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14726 ___ Python tracker

[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : As reported by Serhiy on https://bugs.python.org/issue37555#msg347733 there is a difference in __eq__ definition in datetime module's C and Python implementation for timedelta and time. When the other in __eq__ is not of the same type

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: For people using "import calendar", the __all__ variable has no effect. Running help(calendar) shows the functions as if they were public functions. The module historically hid its private details with the leading underscores. The patch in question

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two ways to indicate that a function is not public: either make its name underscored, or add __all__ and do not include the function name in it. The purpose of __all__ is to avoid mass renaming of internal functions whis is a code churn and

[issue37347] Reference-counting problem in sqlite

2019-07-12 Thread miss-islington
miss-islington added the comment: New changeset 36101c2c5daf692d1716e17720c6c5197f28e25d by Miss Islington (bot) in branch '3.8': closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268) https://github.com/python/cpython/commit/36101c2c5daf692d1716e17720c6c5197f28e25d -- nosy:

[issue37347] Reference-counting problem in sqlite

2019-07-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14521 pull_request: https://github.com/python/cpython/pull/14725 ___ Python tracker ___

[issue37347] Reference-counting problem in sqlite

2019-07-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b9a0376b0dedf16a2f82fa43d851119d1f7a2707 by Benjamin Peterson (gescheit) in branch 'master': closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268) https://github.com/python/cpython/commit/b9a0376b0dedf16a2f82fa43d851119d1f7a2707

[issue37576] SSL Malloc Error w/OpenSSL 1.1.1c-fips & FIPS_mode_set(1)

2019-07-12 Thread Scott Sturdivant
Scott Sturdivant added the comment: Thank you for your input; I wasn't sure where to place the bug. Redhat it will be then! And no worries, I get the FIPS validated vs compliant nuances. My target system has OpenSSL compiled per their directions, I just mentioned Fedora since it's

[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-12 Thread Kalev Maricq
New submission from Kalev Maricq : First, sorry if this isn't in the correct place or correctly labeled. I'm new to this platform. Feel free to edit this (if that's even possible on this platform). In the glob.py module, _ishidden(pattern) is used to determine whether to show hidden files

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-12 Thread Luis Alejandro Martínez Faneyth
Luis Alejandro Martínez Faneyth added the comment: New information on this: python3-distutils for 3.8 exists on Debian (experimental) but python3 (which is kind of a meta-package) for 3.8 doesn't exist. It depends on python3.8 or python3.7, resulting in the installation on python3.7.

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-12 Thread Luis Alejandro Martínez Faneyth
New submission from Luis Alejandro Martínez Faneyth : Hello everyone, I've been building some minimal python docker images for a while and a few days ago an error popped out in my CI when building python 3.8 on debian sid. The error happens when trying to install pip with the usual: curl

[issue37576] SSL Malloc Error w/OpenSSL 1.1.1c-fips & FIPS_mode_set(1)

2019-07-12 Thread Christian Heimes
Christian Heimes added the comment: The issue is out of scope for Python's ssl module. FIPS mode is not supported by Python and I have no intention to start supporting FIPS mode in Python upstream. Any FIPS related bug is most likely related to Fedora's FIPS patches. Please open a Red Hat

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the report, Benjamin! -- resolution: -> fixed stage: patch review -> needs patch status: open -> closed ___ Python tracker ___

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread miss-islington
miss-islington added the comment: New changeset bfb709b771230e7e466961b5ddf4852962602450 by Miss Islington (bot) in branch '3.8': [3.8] bpo-37521: No longer treat insertion into sys.modules as optional in importlib examples (GH-14723) (GH-14724)

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +14520 pull_request: https://github.com/python/cpython/pull/14724 ___ Python tracker ___

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread miss-islington
miss-islington added the comment: New changeset 0827064c955f88df8ba5621d8e3d81be3cfc26a9 by Miss Islington (bot) (Brett Cannon) in branch 'master': bpo-37521: No longer treat insertion into sys.modules as optional in importlib examples (GH-14723)

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +14519 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14723 ___ Python tracker

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: I will have a PR up shortly to fix the docs. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: So the issue is the lines assigning to sys.modules and loader.exec_module() are reversed. Had you not done an import in your testext.__init__ you never would have noticed, but since you are then the normal import system is noticing there's nothing in

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please mark all the non-public helper functions as being private by using a leading underscore for their names. The __all__ listing is correct but is insufficient. Note, the module already used the leading underscore convention for the some of the

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-12 Thread miss-islington
miss-islington added the comment: New changeset a65c977552507dd19d2cc073fc91ae22cc66bbff by Miss Islington (bot) (Kyle Stanley) in branch 'master': bpo-19696: Move threaded_import_hangers (GH-14655) https://github.com/python/cpython/commit/a65c977552507dd19d2cc073fc91ae22cc66bbff

[issue37575] Python Documentation on strings (tutorial section 3.1.2.)

2019-07-12 Thread Mark Dickinson
Change by Mark Dickinson : -- title: Python Documentation on strings ( section 3.1.2.) -> Python Documentation on strings (tutorial section 3.1.2.) ___ Python tracker ___

[issue37575] Python Documentation on strings ( section 3.1.2.)

2019-07-12 Thread Mark Dickinson
Mark Dickinson added the comment: The documentation is correct here; none of the examples you show demonstrates implicit concatenation of string-valued expressions. The tutorial documentation is referring to two strings placed directly next to each other with no other syntax (other than

[issue33944] Deprecate and remove pth files

2019-07-12 Thread Ned Batchelder
Change by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37576] SSL Malloc Error w/OpenSSL 1.1.1c-fips & FIPS_mode_set(1)

2019-07-12 Thread Scott Sturdivant
New submission from Scott Sturdivant : Using Py3{5,6,7} and OpenSSL 1.1.1b-fips, I have not encountered this error. Once OpenSSL has been upgraded to 1.1.1c-fips, the SSL Malloc Error rears its ugly head. Setup: Fedora 30 has openssl-fips by default. Install cryptography with 'pip install

[issue37575] Python Documentation on strings ( section 3.1.2.)

2019-07-12 Thread Srikanth
New submission from Srikanth : In section 3.1.2 of the python documentation, its mentioned as below: Two or more string literals (i.e. the ones enclosed between quotes) next to each other are automatically concatenated. This feature is particularly useful when you want to break long strings:

[issue37549] os.dup() fails for standard streams on Windows 7

2019-07-12 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37565] test_faulthandler failure

2019-07-12 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can take it, please. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35941] ssl.enum_certificates() regression

2019-07-12 Thread neonene
neonene added the comment: I meant 12609. (x86,x64 Py374rc1,Py380a4 and later) And though I tried merging 12610 and Py374, memory usage still increases. Sorry, I can't find out the cause. -- ___ Python tracker

[issue37571] Incorrect use of c_char_p in example code

2019-07-12 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +14518 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14721 ___ Python tracker

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

2019-07-12 Thread Fred L. Drake, Jr.
Change by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37572] email lib bug

2019-07-12 Thread Michele Angrisano
Michele Angrisano added the comment: Hi and thank you for opening this issue. What is the behaviour? What is the test you used to reproduce this bug? -- nosy: +mangrisano ___ Python tracker

[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-07-12 Thread Eric Snow
New submission from Eric Snow : When writing an importer, the finder (either MetaPathFinder or PathEntryFinder) must implement `find_spec()`. A useful tool for that is the existing `spec_from_loader()`. [1] The docs for `MetaPathFinder.find_spec()` and `PathEntryFinder.find_spec()` should

[issue37570] `distutils.util.byte_compile` fails indirect byte compiling with non-ASCII full-path.

2019-07-12 Thread Suzumizaki
Suzumizaki added the comment: Thanks, but Those cannot resolve this issue. This is install time problem. In other words, whatever the default encoding is, even some users change it, `distutils.util.byte_compile` must always succeed. There's no relation between using non-ASCII path and the

[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see the traceback I reported on #37524, whichever way I close. In both cases, EditorWindow.close is called and we get an AttributeError because a file has become None. close() calls maybesave before _close, so the exception I see happens before _close is

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Possible sweep-more-under-the-rug fix for both current issues: add links and, after current 'except tkinter.TclError', except AttributeError: pass -- ___ Python tracker

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Exception ignored" is not produced by IDLE, and we have seen this before. multicall, line 29 says: # In 3.4, if no shell window is ever open, the underlying Tk widget is # destroyed before .__del__ methods here are called. The following # is used to

[issue37524] IDLE error on closing 3.8+ debug build

2019-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I still see it after update and rebuild. What could be different? An error in one of my files? -- ___ Python tracker ___

[issue35941] ssl.enum_certificates() regression

2019-07-12 Thread Christian Heimes
Christian Heimes added the comment: Which patch do you mean? Are you referring to the landed PR or my fix for performance regression https://github.com/python/cpython/pull/12610? -- ___ Python tracker

[issue37573] asyncio: freeze when using MultiLoopChildWatcher on Solaris

2019-07-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2019-07-12 Thread João Eiras
Change by João Eiras : -- nosy: -João Eiras ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37573] asyncio: freeze when using MultiLoopChildWatcher on Solaris

2019-07-12 Thread Jakub Kulik
New submission from Jakub Kulik : Hi, since the 3.8.0b2 test_asyncio freezes in test_subprocess when MultiLoopChildWatcher is being used as a watcher (new in b2). All other watchers are working as expected. This is all on Solaris. I tried to find out the reason for these issues and it seems

[issue9625] argparse: Problem with defaults for variable nargs when using choices

2019-07-12 Thread João Eiras
João Eiras added the comment: Another workaround for who might ever need it. The benefit of this solution comparing to a custom type is that argparse will generate the help string properly with the choices, and this solution does workaround the place when the bug happens: class

[issue37572] email lib bug

2019-07-12 Thread famu xu
famu xu added the comment: python 3.7 same -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37572] email lib bug

2019-07-12 Thread famu xu
New submission from famu xu : file: email\_header_value_parser.py line : encoded_part = part.fold(policy=policy)[:-1] # strip nl modify to: encoded_part = part.fold(policy=policy)[:-2] # strip nl because the nl is "\r\n" -- components: email messages: 347740 nosy: barry, famu xu,

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I can see difference in time.__eq__ and timedelta.__eq__ C and Python implementations. Serhiy, are you planning to fix them or shall I raise an issue with PR for these? -- ___ Python tracker

[issue37568] Misleading UnBoundLocalError on assignment to closure variable

2019-07-12 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the great explanation, Steven. And I agree with Josh that changing the exception text would lead to blindly adding nonlocal or global in a superficial attempt to get the code to work. The much more likely problem is already mentioned: reference

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Good catch, commenting out the c implementation of datetime in setup.py I can see the following difference. ➜ cpython git:(master) ✗ ./python.exe Python 3.9.0a0 (heads/master-dirty:c8e7146de2, Jul 12 2019, 15:51:00) [Clang 7.0.2 (clang-700.1.81)]

[issue37563] Documentation - default for StreamHandler

2019-07-12 Thread Vinay Sajip
Vinay Sajip added the comment: The devil is in the detail. If stream=sys.stderr is specified, that takes effect at import time. If stream=None is specified and the implementation chooses to treat that as sys.stderr, that takes effect at the time of the call. The two are not equivalent. It

[issue37562] PEP 590 implementation may have introduced a performance regression

2019-07-12 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I will certainly have a look and try a few things, but it will probably be next week. -- ___ Python tracker ___

[issue37541] get_python_lib() returns incorrect path for site-packages

2019-07-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: You say this is a problem affecting *Mac* users, but all of your examples show *Windows* paths. How do you know it affects Macs? You say that get_python_lib() returns the incorrect path, but you don't show us the output of calling get_python_lib(). If the

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, see timedelta.__eq__ for example. datetime.__eq__ looks correct. -- ___ Python tracker ___

[issue37570] `distutils.util.byte_compile` fails indirect byte compiling with non-ASCII full-path.

2019-07-12 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: FYI, PEP597 is created to avoid these issues (i think), target Python 3.9. https://www.python.org/dev/peps/pep-0597/ https://discuss.python.org/t/use-utf-8-as-default-text-file-encoding/1785 -- ___ Python

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/unittest.mock.html#any mock.ANY doesn't make any guarantees that this is a generic implementation that can be used to test equality against any object irrespective of the order to return True. It's documented only

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Though some __eq__ implementations in the stdlib should be fixed too. -- ___ Python tracker ___

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then I think the problem is with DjangoModel. I suggest to close this issue as "third party". -- ___ Python tracker ___

[issue37498] request.urlopen(), memory leak?

2019-07-12 Thread neonene
neonene added the comment: issue35941 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37571] Incorrect use of c_char_p in example code

2019-07-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Looks like a valid issue to me. Would you like to create a PR? -- components: +ctypes nosy: +amaury.forgeotdarc, belopolsky, meador.inge, xtreak versions: +Python 3.7, Python 3.8

[issue35941] ssl.enum_certificates() regression

2019-07-12 Thread neonene
neonene added the comment: After this patch applied, memory usage increases every https-access and is not released in my Win7x64SP1. I hope this will be fixed or reverted. (case sample) from urllib import request from time import sleep import gc while True:

[issue37571] Incorrect use of c_char_p in example code

2019-07-12 Thread Reuben Thomas
New submission from Reuben Thomas : The CTypes documentation has this example: >>> s = c_char_p() >>> s.value = "abc def ghi" >>> s.value 'abc def ghi' >>> s.value is s.value False >>> It appears not to have been updated since Python 2: in Python 3, you can't assign a str to a c_char_p. If