[issue38519] Internal include files missing on Windows

2019-10-24 Thread Zackery Spytz
Zackery Spytz added the comment: Hi, Steve. I've created a PR for this. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue38519] Internal include files missing on Windows

2019-10-24 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16453 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16921 ___ Python tracker

[issue38582] re: backreference number in replace string can't >= 100

2019-10-24 Thread Ma Lin
Ma Lin added the comment: @veaba Post only in English is fine. > Is this actually needed? Maybe very very few people dynamically generate some large patterns. > However, \g<...> is not accepted in a pattern. > in the "regex" module I added support for it in a pattern too. Yes, backreference

[issue38587] __set_name__ missing from descriptor howto documentation

2019-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the note. I've already go this in my pending edits. -- assignee: docs@python -> rhettinger nosy: +rhettinger resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Descriptors HowTo doesn't mention

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan
Change by Batuhan : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16452 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16920 ___ Python tracker

[issue38582] re: backreference number in replace string can't >= 100

2019-10-24 Thread veaba
veaba <908662...@qq.com> added the comment: 这里来自实际我的一个项目(https://github.com/veaba/tensorflow-docs/blob/master/scripts/spider_tensorflow_docs.py#L39-L56),当然也许我这个方法不是正确的,它只是我刚学python的一个尝试。 这个项目步骤是这样:根据HTML tag 提取文本转为markdown格式。 标签,需要用符号“`”包围,然后循环里面将匹配的字符通过\\* 替换出来。 所以,你们见到了,我发现这样的一个正则溢出错误。

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread paul j3
paul j3 added the comment: Just today on SO someone found a similar bug in the help format with metavars, that involved an unpacking the expected only one value, but got 2. https://stackoverflow.com/questions/58541460/tuple-metavar-value-for-positional-argument-with-nargs-1 This had be

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread Lucas Cimon
Lucas Cimon added the comment: Thanks for the feedbacks paul.j3 ! I totally agree it would be best to test all formatter classes. I modified the new test to do so. I think I should probably place this test somewhere else in test_argparse.py, but I'm having trouble figuring out where

[issue38438] argparse "usage" overly-complex with nargs="*"

2019-10-24 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38569] Unknown distribution option: 'license_files'

2019-10-24 Thread Brett Cannon
Brett Cannon added the comment: Why do you think the warning can be removed? Is it documented as supported in distutils? If setuptools supports that argument but not distutils then that would be a bug against them. -- nosy: +brett.cannon ___

[issue38587] __set_name__ missing from descriptor howto documentation

2019-10-24 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue38582] re: backreference number in replace string can't >= 100

2019-10-24 Thread Vedran Čačić
Vedran Čačić added the comment: Is this actually needed? I can't remember ever needing more than 4 (in a pattern). I find it very hard to believe someone might actually have such a regex with more than a hundred backreferences. Probably it's just a misguided attempt to parse a nested

[issue38587] __set_name__ missing from descriptor howto documentation

2019-10-24 Thread Mike Driscoll
New submission from Mike Driscoll : I noticed that __set_name__ is not mentioned in https://docs.python.org/3/howto/descriptor.html even though it was added in https://www.python.org/dev/peps/pep-0487/ and mentioned here

[issue38558] Data Structures documentation out of sync with new Walrus operator

2019-10-24 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +16451 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16919 ___ Python tracker ___

[issue38092] environment variables not passed correctly using new virtualenv launching in windows and python3.7+

2019-10-24 Thread Steve Dower
Steve Dower added the comment: You're right, the logic to actually launch _base_executable is in there twice now, and the second one (that never gets used) is more important. -- ___ Python tracker

[issue38582] re: backreference number in replace string can't >= 100

2019-10-24 Thread Matthew Barnett
Matthew Barnett added the comment: A numeric escape of 3 digits is an octal (base 8) escape; the octal escape "\100" gives the same character as the hexadecimal escape "\x40". In a replacement template, you can use "\g<100>" if you want group 100 because \g<...> accepts both numeric and

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread paul j3
paul j3 added the comment: So the error occurs in HelpFormatter._format_action when 'help_lines' is an empty list: if action.help: help_text = self._expand_help(action) help_lines = self._split_lines(help_text, help_width) >>

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2019-10-24 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm marking this fixed, technically it still exists in 2.7. it'll be up to someone who cares about making a change to 2.7 to make a PR to go in there for the final release. It has existed so long, I doubt it matters there. -- resolution: ->

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: (read that as: feel free to keep the behavior for co_filename and path[0] and lets see what happens :) -- ___ Python tracker ___

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think sys.argv[0] is the important one as program logic often tends to use that as an input. I'm honestly unsure of if this will be as much of a problem for .co_filename or sys.path[0]. -- ___ Python tracker

[issue38586] logging: handlers names are not set when using fileConfig

2019-10-24 Thread Lucas Cimon
Change by Lucas Cimon : -- keywords: +patch pull_requests: +16450 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16918 ___ Python tracker ___

[issue38586] logging: handlers names are not set when using fileConfig

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38586] logging: handlers names are not set when using fileConfig

2019-10-24 Thread Lucas Cimon
New submission from Lucas Cimon : The logging.Handler .name property is not set when the logging configuration is loaded with logging.fileConfig -- components: Library (Lib) messages: 355338 nosy: Lucas Cimon priority: normal severity: normal status: open title: logging: handlers

[issue38585] defusedexpat not supported past python 3.3/3.4

2019-10-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38585] defusedexpat not supported past python 3.3/3.4

2019-10-24 Thread Avi Kelman
New submission from Avi Kelman : https://docs.python.org/3/library/xml.html continues to recommend defusedexpat, but that package won't install for any Python versions after 3.4 because the package isn't being maintained. https://bitbucket.org/tiran/defusedexpat/src/default/ linked from

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread Lucas Cimon
Change by Lucas Cimon : -- keywords: +patch pull_requests: +16448 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16917 ___ Python tracker ___

[issue38584] argparse: Specifying a whitespace-only help message to a positional arg triggers an IndexError when displaying --help

2019-10-24 Thread Lucas Cimon
New submission from Lucas Cimon : The test I am going to add to test_argparse.py: def test_whitespace_help(self): parser = self._get_parser() parser.add_argument( '--foo2', action='store_true', help=' ') parser.add_argument( 'bar2',

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: > To help address the original report filing issue, we could add a notion of > .co_cwd to code objects for use in resolving co_filename. Allow it to be '' > if getcwd failed at source load time. Code could check if co_cwd exists and > join it with the

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: > Please revert. Ok ok, I will revert my change, but only on sys.argv[0]. > A getcwd() call doesn't even have to succeed. A single file python program > should still be able to run in that environment rather than fail to start. The current implementation

[issue38583] The activate script in Windows is not correct for venvs created in git-bash

2019-10-24 Thread Mo
New submission from Mo : When creating a virtual environment on Windows from git-bash (using python -m venv), VIRTUAL_ENV in the activate script is set using a windows style path (C:\some\path) instead of the bash style (/c/some/path). This means the system python and pip get used, despite

[issue38582] re: backreference number in replace string can't >= 100

2019-10-24 Thread Ma Lin
Ma Lin added the comment: Backreference number in replace string can't >= 100 https://github.com/python/cpython/blob/v3.8.0/Lib/sre_parse.py#L1022-L1036 If none take this, I will try to fix this issue tomorrow. -- nosy: +serhiy.storchaka title: Regular match overflow -> re:

[issue38581] Crash on distutils/util.py when header variable isn't a string

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure of the status of bzr. Is it still maintained? It sounds like Breezy is the new upstream. I don't think that it's worth it to bother with modifying distutils. Especially because it will take weeks or months until your system will get the fix. I

[issue38582] Regular match overflow

2019-10-24 Thread Ma Lin
Ma Lin added the comment: An simpler reproduce code: ``` import re NUM = 99 # items = [ '(001)', '(002)', '(003)', ..., '(NUM)'] items = [r'(%03d)' % i for i in range(1, 1+NUM)] pattern = '|'.join(items) # repl = '\1\2\3...\NUM' temp = ('\\' + str(i) for i in range(1, 1+NUM)) repl =

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38582] Regular match overflow

2019-10-24 Thread Ma Lin
Change by Ma Lin : -- nosy: +Ma Lin type: security -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38340] ERROR WHILE BUILDING pyworld for x86_64-linux-gnu-gcc

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38581] Crash on distutils/util.py when header variable isn't a string

2019-10-24 Thread Lealinux
Lealinux added the comment: bzr (2.7) fail on install with pip3.7/pip3.8 breezy (3.x) success on install with pip3.7/pip3.8 We can forget the patch and close the report issue; Sorry for the disturb :( -- ___ Python tracker

[issue38582] Regular match overflow

2019-10-24 Thread veaba
New submission from veaba <908662...@qq.com>: Regular match overflow code: ```python import re # list => str def list_to_str(str_list, code=""): if isinstance(str_list, list): return code.join(str_list) else: return '' def fn_parse_code(list_str, text):

[issue38581] Crash on distutils/util.py when header variable isn't a string

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: That sounds like a bug in bzr. You may try Breezy which supports Python 3. https://launchpad.net/brz -- nosy: +vstinner ___ Python tracker

[issue38581] Crash on distutils/util.py when header variable isn't a string

2019-10-24 Thread Lealinux
New submission from Lealinux : Hello, With some pip3 package, distutils could crash if variable "header" isn't a real string variable : $ pip3 install bzr Collecting bzr Using cached

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2019-10-24 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2019-10-24 Thread Jakub Stasiak
New submission from Jakub Stasiak : Excerpt from the documentation: """This is a straightforward interface to the Unix select() system call. The first three arguments are sequences of ‘waitable objects’: either integers representing file descriptors or objects with a parameterless method

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread STINNER Victor
Change by STINNER Victor : -- title: CVE-2019-18348 CRLF injection via the host part of the url passed to urlopen() -> CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen() ___ Python tracker

[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: Yeah, that's a duplicate of bpo-29571 which has been fixed by: New changeset 279657bac2856039ba422c18a3d7f227b455e9d6 by Victor Stinner in branch '3.7': [3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)

[issue33384] Build does not work with closed stdin on NetBSD

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: > I can confirm that I can no longer reproduce this problem with Python 3.7.5 on NetBSD Great! -- ___ Python tracker ___

[issue36338] urlparse of urllib returns wrong hostname

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: OMG parsing an URL is a can of worms... There are so many open issues related to URL parsing! * bpo-18191: urllib.parse.splitport("::1") * bpo-20271: urllib.parse.urlparse('http://[::1]spam:80') * bpo-28841: urlparse.urlparse() parses invalid URI without

[issue33384] Build does not work with closed stdin on NetBSD

2019-10-24 Thread Leonardo Taccari
Leonardo Taccari added the comment: Hello Victor, I can confirm that I can no longer reproduce this problem with Python 3.7.5 on NetBSD and according a double-check to Python/pylifecycle.c:is_valid_fd() now fstat() is always used on NetBSD. Thanks for the update and for looking at it!

[issue23505] [CVE-2015-2104] Urlparse insufficient validation leads to open redirect

2019-10-24 Thread STINNER Victor
Change by STINNER Victor : -- title: Urlparse insufficient validation leads to open redirect -> [CVE-2015-2104] Urlparse insufficient validation leads to open redirect ___ Python tracker

[issue27657] urlparse fails if the path is numeric

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: This issue got fixes, so I close it. -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38579] 'u' formatted arrays mostly prevent appends of 4 byte characters

2019-10-24 Thread Dan Snider
New submission from Dan Snider : Unicode characters with code points above u+ can only be added to the end of an array, and only from a call to the "fromunicode" method. This is because "fromunicode" uses a different procedure to modify the array compared to __new__, __setitem__, append,

[issue13131] FD leak in urllib2

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of bpo-12133 which has been fixed in Python 2.7 by: commit c74a6ba2d6c1f331896cf8dacc698b0b88c7e670 Author: Victor Stinner Date: Fri Jun 17 14:06:27 2011 +0200 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-10-24 Thread Christian Heimes
Christian Heimes added the comment: --with-openssl only sets the header location for the pre-processor and library path for the dynamic linker. It does *not* affect the search and lookup paths of the dynamic loader! If you have installed OpenSSL in a non-standard location then you need to

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-10-24 Thread Malek Ghantous
Malek Ghantous added the comment: Thanks for your responses. Yum is not an option as I'm on a machine without root privileges. OK, so I have to be a bit contrite here, I tried everything you suggested, but in the end the solution goes back to this comment, and the LDFLAGS environment

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: With Victor's PR 16780, "http://[::1]spam:80; would raise a ValueError. ValueError: Invalid network location: '[::1]spam:80' -- ___ Python tracker

[issue38577] OPENSSL_* flags not propagated to extensions during build

2019-10-24 Thread Björn Pollex
Björn Pollex added the comment: Thanks for the response, that clarifies it! In that case this issue is invalid. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue38577] OPENSSL_* flags not propagated to extensions during build

2019-10-24 Thread Christian Heimes
Christian Heimes added the comment: '--with-openssl' purpose is to override the OpenSSL location for Python's internal _ssl and _hashlib module. It is not designed to interfere with 3rd party extensions that are built with distutils or setuptools. It is the decision of a 3rd party package

[issue37911] Minor error in PEP567 code example

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2019-10-24 Thread Kyle Stanley
Change by Kyle Stanley : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38546] test_concurrent_futures: reap_children() warnings on RHEL7 and RHEL8 buildbots

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-38448 as duplicate of this issue. Copy of its only message: AMD64 RHEL8 Refleaks 3.x: https://buildbot.python.org/all/#/builders/272/builds/23 0:27:13 load avg: 4.88 [416/419/1] test_concurrent_futures failed (env changed) (17 min 11 sec) --

[issue38448] test_concurrent_futures: reap_children() reaped child process 26487 on AMD64 RHEL8 Refleaks 3.x

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as a duplicate of bpo-38546. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_concurrent_futures: test_interpreter_shutdown() warning "reap_children() reaped child process" on AMD64 RHEL7

[issue38546] test_concurrent_futures: test_interpreter_shutdown() warning "reap_children() reaped child process" on AMD64 RHEL7 3.x

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: New warning on AMD64 RHEL8 LTO + PGO 3.x: https://buildbot.python.org/all/#/builders/284/builds/171 ... test_killed_child (test.test_concurrent_futures.ProcessPoolSpawnProcessPoolExecutorTest) ... 0.26s ok test_map

[issue38578] test_concurrent_futures failed on AMD64 FreeBSD Shared 3.8

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: Logs around the first failure: ... test_zero_timeout (test.test_concurrent_futures.ThreadPoolAsCompletedTest) ... 2.24s ok test_default_workers (test.test_concurrent_futures.ThreadPoolExecutorTest) ... 0.96s ok test_free_reference

[issue38578] test_concurrent_futures failed on AMD64 FreeBSD Shared 3.8

2019-10-24 Thread STINNER Victor
New submission from STINNER Victor : On AMD64 FreeBSD Shared 3.8 which is know to be very slow, different test_concurrent_futures tests failed. https://buildbot.python.org/all/#builders/374/builds/3 test_concurrent_futures was run twice. Once in parallel of other tests, then alone in

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as duplicate of issue35113. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect.getsource returns incorrect source for classes when class definition is part of

[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Looking at the traceback in the screenshot this seems to be same as issue29571 happening on en_IN locale. -- nosy: +vstinner ___ Python tracker

[issue34792] Tutorial doesn''t discuss / and * function arguments

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: With PEP 570 implementation docs were expanded : https://github.com/python/cpython/commit/b76302ddd0896cb39ce69909349b53db6e7776e2#diff-d764089fca21fdc70d55804714b1cba5 -- nosy: +pablogsal ___ Python

[issue31670] Associate .wasm with application/wasm

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed superseder: -> http.server module sets incorrect mimetype for WebAssembly files versions: -Python 2.7, Python 3.7 ___ Python

[issue27992] Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Manjusaka added the comment: Yes, you are right, we shouldn't consider about the unstandard using way. I will update my PR BTW, what're means for the "make_key" parameter? -- ___ Python tracker

[issue25430] speed up ipaddress __contain__ method

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as resolved since the optimization was merged in 3.8.0 . Thanks @gescheit for the report and patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-10-24 Thread STINNER Victor
STINNER Victor added the comment: I will do it differently. Nobody managed to reproduce the bug. The upstream CI looks to be fine. So I close the issue. If someone sees a crash, please open a new issue with more context, like explain how to reproduce it ;-) -- resolution: -> fixed

[issue35293] make doctest (Sphinx) emits a lot of warnings

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant docutils upstream issue : https://sourceforge.net/p/docutils/bugs/373/ . Also the SyntaxWarning was changed to DeprecationWarning with msg349335. -- ___ Python tracker

[issue38577] OPENSSL_* flags not propagated to extensions during build

2019-10-24 Thread Björn Pollex
Change by Björn Pollex : -- assignee: -> christian.heimes components: +Extension Modules, SSL, macOS nosy: +christian.heimes, ned.deily, ronaldoussoren ___ Python tracker ___

[issue38172] Python 3.8 Segfult with Bandersnatch pytest Suite

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems now bandersnatch is tested with python 3.8.0 stable release and passes : https://travis-ci.org/pypa/bandersnatch/builds/599806554 . @cooperlees, can you please confirm and close the issue? --

[issue38577] OPENSSL_* flags not propagated to extensions during build

2019-10-24 Thread Björn Pollex
New submission from Björn Pollex : When building Python 3.7.2 using pyenv on MacOS, it will use `--with-openssl` to configure OpenSSL. With that option, the compiler options for OpenSSL will be passed via `OPENSSL_*` variables, rather than normal compiler flags (e.g. `OPENSSL_LDFLAGS` vs.

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-10-24 Thread Riccardo Schirone
Riccardo Schirone added the comment: I have created https://bugs.python.org/issue38576 to address CVE-2019-18348. @gregory.p.smith if you have particular complains about these CVEs feel free to let me know (even privately). I think the security impact of these flaws is: an application that

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Change by Manjusaka : -- pull_requests: +16446 pull_request: https://github.com/python/cpython/pull/16916 ___ Python tracker ___

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The rule used in the lru_cache implementation is: do not write in C that can be written in Python. -- ___ Python tracker ___

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Manjusaka added the comment: I have already make a new function like this static PyObject * lru_cache_cache_parameters(lru_cache_object *self) { PyObject *cache_parameters = PyDict_New(); PyDict_SetItemString(cache_parameters, "maxsize", PyLong_FromSsize_t(self->maxsize));

[issue38566] Description of '\w' behavior is vague in `re` documentation

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue38576] CVE-2019-18348 CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38573] Not Implemented Error in stdLib HTMLParser

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue32876 and https://bugs.python.org/issue31844 -- nosy: +berker.peksag, ezio.melotti, xtreak ___ Python tracker

[issue38576] CVE-2019-18348 CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Riccardo Schirone
New submission from Riccardo Schirone : Copy-pasted from https://bugs.python.org/issue30458#msg347282 The commit b7378d77289c911ca6a0c0afaf513879002df7d5 is incomplete: it doesn't seem to check for control characters in the "host" part of the URL, only in the "path" part of

[issue35745] Add import statement in dataclass code snippet

2019-10-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue36661 -- nosy: +eric.smith, xtreak ___ Python tracker ___

[issue38574] Dataclasses documentation should show the necessary imports

2019-10-24 Thread Eric V. Smith
Eric V. Smith added the comment: This is a duplicate of issue 36661. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing dataclass decorator import in dataclasses module docs ___ Python

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Manjusaka added the comment: I think to modify in lru_cache should be good in normal circumstance But here's maybe some people modify the wrapped object that underlying in lru_cache So I prefer to add a new function in _functools.c? -- ___

[issue38575] Child process deadlock in subprocess.Popen

2019-10-24 Thread Zhipeng Xie
New submission from Zhipeng Xie <775350...@qq.com>: Hi, we had a child process deadlock on _disabling_gc_lock in subprocess.Popen. It seems that after https://github.com/python/cpython/commit/5e8e371364ee58dadb9a4e4e51c7e9cf6bedbfae, subprocess.Popen no longer support to be called in

[issue38574] Dataclasses documentation should show the necessary imports

2019-10-24 Thread Leon Matthews
New submission from Leon Matthews : In the code sample documentation for other modules we show the necessary imports, we should do the same for dataclasses. For example, the very first example uses the `dataclass` decorator without importing it first. It should read:: from dataclasses

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy: diff --git a/Lib/functools.py b/Lib/functools.py index 3192bd02d9..52c07db749 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -499,7 +499,9 @@ def lru_cache(maxsize=128, typed=False): # The user_function was passed in directly

[issue38573] Not Implemented Error in stdLib HTMLParser

2019-10-24 Thread Yevgeny Pats
New submission from Yevgeny Pats : Not implemented error in built-in HTMLParser from html.parser import HTMLParser parser = HTMLParser() parser.feed(bytearray.fromhex('3c215b63612121').decode('ascii')) # This will throw (found by https://github.com/fuzzitdev/pythonfuzz): Traceback (most

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Manjusaka added the comment: I think add new function would be a better way I will make a new PR -- ___ Python tracker ___ ___

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm fine with adding a new function: >>> f.cache_parameters() {'maxsize': 200, 'typed'=False} -- assignee: -> rhettinger ___ Python tracker

[issue38565] Expose the value passed of typed passed to functools.lru_cache

2019-10-24 Thread Manjusaka
Manjusaka added the comment: I have already make a PR for this issue but here's a problem. add a new field to cache_info maybe cause some special problem for the third-party libs what're dependent the cache_info -- ___ Python tracker

  1   2   >