[issue18309] Make python slightly more relocatable

2019-10-01 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Ok, so far. But what shall I do now? It would be nice that python is a bit smarter in finding its increasing important module files when being embedded into an application. Anybody out there who wants to look at that contribution? best Mathias --

Re: pymysql.err.InterfaceError after some hours of usage

2019-10-01 Thread Inada Naoki
MySQL connection can be closed automatically by various reasons. For example, `wait_timeout` is the most common but not only reason for closing the connection. You should connect and close MySQL connection for each HTTP request. Or you can use more smart connection pool (e.g. Engine in

pymysql.err.InterfaceError after some hours of usage

2019-10-01 Thread Νίκος Βέργος
Hello, i use 'module pymysql' for connectivity in my wsgi scripts. For some reason after some hours of i.e. 'http://superhost.gr/files' i get the following error when the script tries to run: Do you know why this is happening?! Error: 500 Internal Server Error Sorry, the requested URL

Re: Recursive method in class

2019-10-01 Thread ast
Le 01/10/2019 à 20:56, Timur Tabi a écrit : Could you please fix your email software so that it shows a legitimate email address in the From: line? Your emails all show this: From: ast All of your emails are being caught in my spam filter because of this address. I would email you

[RELEASE] Python 3.7.5rc1 is now available for testing

2019-10-01 Thread Ned Deily
Python 3.7.5rc1 is now available for testing. 3.7.5rc1 is the release preview of the next maintenance release of Python 3.7, the latest feature release of Python. Assuming no critical problems are found prior to 2019-10-14, no code changes are planned between now and the final release. This

[RELEASE] Python 3.7.5rc1 is now available for testing

2019-10-01 Thread Ned Deily
Python 3.7.5rc1 is now available for testing. 3.7.5rc1 is the release preview of the next maintenance release of Python 3.7, the latest feature release of Python. Assuming no critical problems are found prior to 2019-10-14, no code changes are planned between now and the final release. This

python socket dns query will get the correct result while the dig will not.

2019-10-01 Thread Hongyi Zhao
Hi, See my following test: With ipython: In [1]: import socket In [2]: socket.gethostbyname ('www.vpngate.net') Out[2]: '130.158.75.44' With dig: $ dig www.vpngate.net @114.114.114.114 +short

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16121 pull_request: https://github.com/python/cpython/pull/16530 ___ Python tracker ___

[issue38332] invalid content-transfer-encoding in encoded-word causes KeyError

2019-10-01 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi Andrei sorry for my last message. Now I understand perfectly your idea and your PR. IMO this is a correct patch. -- ___ Python tracker

[issue38334] zipfile: Seeking encrypted file breaks after seeking backwards

2019-10-01 Thread Daniel Hillier
Change by Daniel Hillier : -- keywords: +patch pull_requests: +16120 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16529 ___ Python tracker ___

[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-10-01 Thread Eric Snow
Change by Eric Snow : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread miss-islington
miss-islington added the comment: New changeset a11df75269b5d47248be617ed02e96c1d1938fd1 by Miss Islington (bot) in branch '3.8': bpo-38343: Fixes version handling for nuget packages (GH-16527) https://github.com/python/cpython/commit/a11df75269b5d47248be617ed02e96c1d1938fd1 --

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
Steve Dower added the comment: I already republished correctly-versioned files and unlisted the wrong ones (as well as contacting support to see whether they can delete them completely so they don't impact the final release). The change above fixes the issue. It will need cherry-picking for

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
Steve Dower added the comment: New changeset b9a8b8296cd7be22f8b5bf92af686a788c47c7bf by Steve Dower in branch 'master': bpo-38343: Fixes version handling for nuget packages (GH-16527) https://github.com/python/cpython/commit/b9a8b8296cd7be22f8b5bf92af686a788c47c7bf --

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +16119 pull_request: https://github.com/python/cpython/pull/16528 ___ Python tracker ___

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +16118 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16527 ___ Python tracker

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
Change by Steve Dower : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38343] Version name in PC/layout read incorrectly for RC

2019-10-01 Thread Steve Dower
New submission from Steve Dower : I noticed that when the nuget.org packages published for 3.8.0rc1, they were given the version "3.8.0". 3.7.5rc1 was okay because it's still using the old approach to setting the version. This needs to be fixed before any more RCs are released. I'll see if

[issue38227] Setting a signal handler gets multiprocessing.Pool stuck

2019-10-01 Thread Ionel Cristian Mărieș
Change by Ionel Cristian Mărieș : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

2019-10-01 Thread Anthony Tuininga
New submission from Anthony Tuininga : Running the suggested code found at https://docs.python.org/3.8/whatsnew/3.8.html regarding the new importlib.metadata module from importlib.metadata import version, requires, files version('requests') yields the error Traceback (most recent call

Re: Recursive method in class

2019-10-01 Thread Grant Edwards
On 2019-10-01, Timur Tabi wrote: > Could you please fix your email software so that it shows a legitimate > email address in the From: line? Your emails all show this: > > From: ast > > All of your emails are being caught in my spam filter because of this > address. I would email you

Re: Announcing colour-text and colour-print

2019-10-01 Thread Barry
> On 1 Oct 2019, at 10:12, Gisle Vanem wrote: > > Barry Scott wrote: > >> Here is an example: >> from colour_text import ColourText >> ct = ColourText() >> ct.initTerminal() >> print( ct( "The next section is in green: <>green example<>." ) ) > > Looking at the sources, it seems 'win32'

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-10-01 Thread Neil Schemenauer
Neil Schemenauer added the comment: Łukasz, is there some reason you removed old versions (2.7, 3.6, etc)? The bug is present on those versions of Python and it should be trivial to backport the fix. If those branches are maintained, I think we should fix it. Attached is a small test

[issue38341] Add SMTPNotSupportedError in the exports of smtplib

2019-10-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16116 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16525 ___ Python tracker ___

[RELEASE] Python 3.8.0rc1 is now available

2019-10-01 Thread Łukasz Langa
Python 3.8.0 is almost ready. After a rather tumultuous few days, we are very happy to announce the availability of the release candidate: https://www.python.org/downloads/release/python-380rc1/ This release, 3.8.0rc1, is the final

[issue38341] Add SMTPNotSupportedError in the exports of smtplib

2019-10-01 Thread Norman Denayer
New submission from Norman Denayer : Long story short: smtplib.SMTPNotSupportedError seems the only exception not present in __all__ variable exposed by smtplib.py Context: I currently face an issue running mypy on one of my module: ...tools/email.py:46: error: Module has no attribute

Re: Recursive method in class

2019-10-01 Thread Timur Tabi
Could you please fix your email software so that it shows a legitimate email address in the From: line? Your emails all show this: From: ast All of your emails are being caught in my spam filter because of this address. I would email you privately, but I know n...@gmail.com isn't your

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2019-10-01 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38331] Exec not recognizing global variables inside function

2019-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bug. def func(): print(var) This captures the globals at the time of definition, that is "global" references are resolved using the func.__globals__ attribute which is the globals dictionary at the time the function is created

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > I'm still seeing hangs with subprocess.run() in Python 3.7.4 That's not surprising, the fix has been pushed at 2019-09-11. Python 3.7.5 will include the fix and it will be released soon: https://www.python.org/dev/peps/pep-0537/ --

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > checking whether to enable large file support... no That's only at the C level to decide how to pass a file position. It's unrelated to the regrtest "largefile" resource. -- ___ Python tracker

[RELEASE] Python 3.8.0rc1 is now available

2019-10-01 Thread Łukasz Langa
Python 3.8.0 is almost ready. After a rather tumultuous few days, we are very happy to announce the availability of the release candidate: https://www.python.org/downloads/release/python-380rc1/ This release, 3.8.0rc1, is the final

Re: How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?

2019-10-01 Thread Michael Torrie
On 10/1/19 9:51 AM, Spencer Du wrote: > Hi > How can I set the value of the textedit box and slider of ui with the value > from a config file when it has been created meaning if a configuration file > exists then set the UI with value from the config file otherwise load ui with > nothing set to

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-10-01 Thread Tim Peters
Tim Peters added the comment: Neil, about this comment: # - ct is not yet trash (it actually is but the GC doesn't know because of # the missing tp_traverse method). I believe gc should know ct is trash. ct is in the cf list, and the latter does have tp_traverse. What gc won't know

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-10-01 Thread Tony Cappellini
Tony Cappellini added the comment: Using Python 3.7.4, I'm calling subprocess.run() with the following arguments. .run() still hangs even though a timeout is being passed in. subprocess.run(cmd_list, stdout=subprocess.PIPE,

[issue38333] add type signatures to library function docs

2019-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: I'm sorry, but that's unacceptable. On Mon, Sep 30, 2019 at 23:42 Vedran Čačić wrote: > > Vedran Čačić added the comment: > > > Many docs are ... vague about types. > > ... and I consider that a feature. At least if you do that, make an > explicit

[issue37424] subprocess.run timeout does not function if shell=True and capture_output=True

2019-10-01 Thread Tony Cappellini
Tony Cappellini added the comment: I'm still seeing hangs with subprocess.run() in Python 3.7.4 Unfortunately, it involves talking to an NVME SSD on Linux, so I cannot easily submit code to duplicate it. -- nosy: +cappy ___ Python tracker

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: It seems that the -uall argument is passed to regrtest invocation for the buildbot run [0] which invokes the largefile tests (including all the resource intensive tests). However when configure is run you can see: checking whether to enable large

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Should we decorate the new files with @requires('largefile', '...')? Documentation: largefile - It is okay to run some test that may create huge files. These tests can take a long time and may consume >2 GiB of disk space

[issue38313] Crash/No start

2019-10-01 Thread Zachary Ware
Zachary Ware added the comment: Feel free to reopen if you can answer the questions in my previous message. -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker

Re: Recursive method in class

2019-10-01 Thread ast
Le 01/10/2019 à 13:18, Rhodri James a écrit : On 01/10/2019 08:37, ast wrote: The problem is that "factorial" in line "return n * factorial(self, n - 1)" should not have been found because there is no factorial function defined in the current scope. Not so.  "factorial" is in the global

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry about that. I'm attaching a patch which skips those tests if there's not enough free disk space. If you confirm it works I'll make a PR. -- Added file: https://bugs.python.org/file48636/disk-space.patch

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-10-01 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2019-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: > It seems like nobody came up with a solution for the debug mode since June. I > close the issue. Reopen it if you would like to propose a solution. I think the only solution is to have a flag to disable optimizations, inlcluding this one. --

How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?

2019-10-01 Thread Spencer Du
Hi How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created meaning if a configuration file exists then set the UI with value from the config file otherwise load ui with nothing set to any value. ui.py import sys from

attrs 19.2.0 released

2019-10-01 Thread Hynek Schlawack
Hi everyone, I’m happy to announce attrs 19.2.0! If you haven’t heard of attrs: it’s the package that inspired dataclasses, works on Python 2.7, 3.4 and later, and has over 17 million PyPI downloads per month. Highlights: – cmp is now split into eq and order (like in dataclasses). Using cmp

[issue37096] Add large-file tests for modules using sendfile(2)

2019-10-01 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: After this change I get some disk space issues on the Fedora rawhide buildbot for the clang installed build only (and strangely enough not for the other jobs). There are currently around 9GB of free space there:

Re: Recursive method in class

2019-10-01 Thread Rhodri James
On 01/10/2019 08:37, ast wrote: I understood your example, but it doesn't answer my initial question. I try to rewrite my question: The following code is working well and I don't really understand why def factorial(self, n):     if not n:     return 1     else:     return n *

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Sanjay
Sanjay added the comment: the issue happens in 2.7 as well -- nosy: +Sanjay versions: +Python 2.7 ___ Python tracker ___ ___

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 16522 to update Sphinx from version 1.6.1 to 1.8.2. -- ___ Python tracker ___ ___

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

2019-10-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is an issue tracker for CPython. The build log seems like an issue with pyworld package. I would suggest creating an issue in their tracker. -- nosy: +xtreak ___ Python tracker

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16115 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16522 ___ Python tracker ___

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I suggest to backport https://github.com/python/cpython/pull/10676 to 3.5: use Sphinx 1.8.2 in .travis.yml. Commit in the 3.6 branch: commit 23a98abd4256f931ed89b65ec6babd4f06dbff97 Author: Miss Islington (bot)

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

2019-10-01 Thread ECAS India
New submission from ECAS India : creating build/temp.linux-x86_64-3.7/lib/World creating build/temp.linux-x86_64-3.7/lib/World/src x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: This issue prevents to merge the following 3.5 pull requests: https://github.com/python/cpython/pulls?utf8=%E2%9C%93=is%3Apr+is%3Aopen+base%3A3.5+ -- nosy: +larry ___ Python tracker

[issue38339] [3.5] The doc job of Travis CI fails on Python 3.5: needs at least Sphinx v1.8

2019-10-01 Thread STINNER Victor
New submission from STINNER Victor : Example: https://travis-ci.org/python/cpython/jobs/590339147 $ python --version Python 3.6.3 $ pip --version pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6) Could not locate requirements.txt. Override the

[issue38338] [2.7] test_ssl fails on RHEL8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- title: [2.7] test_ssl fails -> [2.7] test_ssl fails on RHEL8 ___ Python tracker ___ ___

[issue38338] [2.7] test_ssl fails

2019-10-01 Thread STINNER Victor
New submission from STINNER Victor : SSLv23 and TLS v1.0 are disabled by RHEL8 crypto policy. AMD64 RHEL8 2.7: https://buildbot.python.org/all/#/builders/245/builds/5 test_protocol_sslv23 (test.test_ssl.ThreadedTests) Connecting to an SSLv23 server with various client options ... Could not

[issue38338] [2.7] test_ssl fails

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36054] On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container)

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- title: Way to detect CPU count inside docker container -> On Linux, os.count() should read cgroup cpu.shares and cpu.cfs (CPU count inside docker container) ___ Python tracker

[issue36054] Way to detect CPU count inside docker container

2019-10-01 Thread Mike
Mike added the comment: Is this issue still being worked on as a core feature? I needed a solution for this using 2.7.11 to enable some old code to work properly/nicely in a container environment on AWS Batch and was forced to figure out what OpenJDK was doing and came up with a solution.

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread Dong-hee Na
Dong-hee Na added the comment: > I prefer to keep it open until the 3.5 backport is merged. Sorry, I didn't find it. Yes, we should let it open until the PR is merged. -- ___ Python tracker

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
Change by Jonas Drotleff : -- keywords: +patch pull_requests: +16113 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16521 ___ Python tracker ___

[issue38337] inspect: getmembers calls properties

2019-10-01 Thread Jonas Drotleff
New submission from Jonas Drotleff : When calling inspect.getmembers on a class that has a property (@property), the property will be called by the getattr call in getmembers. Example: import inspect class Example: def __init__(self, var): self._var = var

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
New submission from Géry : The [language documentation](https://docs.python.org/3/reference/datamodel.html#invoking-descriptors) states: > Data descriptors with __set__() and __get__() defined always override a > redefinition in an instance dictionary. In contrast, non-data descriptors can

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Géry added the comment: I have opened a PR here: https://github.com/python/cpython/pull/16520 -- ___ Python tracker ___ ___

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Can this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e (oops, I made a typo in the bpo

[issue38336] Remove the __set__ method restriction on data descriptors for attribute lookup precedence

2019-10-01 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +16112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16520 ___ Python tracker ___

Re: pathlib

2019-10-01 Thread Rhodri James
On 01/10/2019 06:03, DL Neil via Python-list wrote: On 30/09/19 9:28 PM, Barry Scott wrote: On 30 Sep 2019, at 05:40, DL Neil via Python-list wrote: Should pathlib reflect changes it has made to the file-system? I think it should not. The term "concrete" is applied to Path(),

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, most warnings have been fixed in 3.8 and master. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oops, the previous comment should be for bpo-38321. -- ___ Python tracker ___ ___

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue38248] inconsistency in asyncio.Task between cancellation while running vs. cancellation immediately after it finishes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e -- nosy: +vstinner

[issue22273] abort when passing certain structs by value using ctypes

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset bfe1f74e39d0049a829962050e86a6a2d2a2781e by Victor Stinner in branch '3.8': [3.8] bpo-3832: Fix compiler warnings (GH-16518) https://github.com/python/cpython/commit/bfe1f74e39d0049a829962050e86a6a2d2a2781e --

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: I prefer to keep it open until the 3.5 backport is merged. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16111 pull_request: https://github.com/python/cpython/pull/16518 ___ Python tracker ___

Re: Recursive method in class

2019-10-01 Thread Terry Reedy
On 10/1/2019 3:37 AM, ast wrote: The following code is working well and I don't really understand why def factorial(self, n):     if not n:     return 1     else:     return n * factorial(self, n - 1) This creates a function that looks up 'factorial' in the global (module) scope

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
Change by Sanjay : -- pull_requests: +16110 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16519 ___ Python tracker ___

[issue38335] simplify overlaps function in ipaddress.py

2019-10-01 Thread Sanjay
New submission from Sanjay : the current implementation of overlaps function tests either network or broadcast address is in other but we can skip checking broadcast address is in other because we anyway check if other.network_address in self without loss of generality if we assume self has

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16109 pull_request: https://github.com/python/cpython/pull/16518 ___ Python tracker ___

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6314abcc08f5d0f3d3a915dc9455ea223fa65517 by Victor Stinner in branch 'master': bpo-37802: Fix a compiler warning in longobject.c (GH-16517) https://github.com/python/cpython/commit/6314abcc08f5d0f3d3a915dc9455ea223fa65517 --

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6314abcc08f5d0f3d3a915dc9455ea223fa65517 by Victor Stinner in branch 'master': bpo-37802: Fix a compiler warning in longobject.c (GH-16517) https://github.com/python/cpython/commit/6314abcc08f5d0f3d3a915dc9455ea223fa65517 -- nosy:

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38331] Exec not recognizing global variables inside function

2019-10-01 Thread Krishna Oza
Krishna Oza added the comment: adding self to nosy list. -- nosy: +Krishna Oza ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37474] Should Py_Initialize() control the floating point mode?

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5e0ea7540f577c9684e272000fdfc80d29bb78a2 by Victor Stinner in branch 'master': bpo-37474: Don't call fedisableexcept() on FreeBSD (GH-16515) https://github.com/python/cpython/commit/5e0ea7540f577c9684e272000fdfc80d29bb78a2 --

[issue37474] Should Py_Initialize() control the floating point mode?

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I failed to find time to convert attached tests to tests in the Python test suite. But I understood that existing tests should be enough to control the rounding mode. I removed the call. If something goes wrong, we can add it back. --

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16107 pull_request: https://github.com/python/cpython/pull/16517 ___ Python tracker ___

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16108 pull_request: https://github.com/python/cpython/pull/16517 ___ Python tracker ___

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: > We could avoid typeperf command by accessing directly performance counters: > (...) Honestly, it sounds very complicated. I don't think that it's worth it. With Lorenz's fix, regrtest now "just works". So I think that it's good enough. --

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16106 pull_request: https://github.com/python/cpython/pull/16516 ___ Python tracker ___

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread miss-islington
miss-islington added the comment: New changeset d6a92b55944bf1ef4992e4375f02a7132717bf53 by Miss Islington (bot) in branch '3.7': bpo-36670: Multiple regrtest bugfixes (GH-16511) https://github.com/python/cpython/commit/d6a92b55944bf1ef4992e4375f02a7132717bf53 --

[issue38243] A reflected XSS in python/Lib/DocXMLRPCServer.py

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8eb64155ff26823542ccf0225b3d57b6ae36ea89 by Victor Stinner (Dong-hee Na) in branch '2.7': [2.7] bpo-38243: Escape the server title of DocXMLRPCServer (GH-16447) https://github.com/python/cpython/commit/8eb64155ff26823542ccf0225b3d57b6ae36ea89

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks Lorenz Mende for the nice bug report, investigating the issue and proposing fix. I wrote a PR based on your work with some minor changes. I included it in a large regrtest change to fix other bugs. regrtest should work again with locales other than

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: It seems like nobody came up with a solution for the debug mode since June. I close the issue. Reopen it if you would like to propose a solution. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue38321] Compiler warnings when building Python 3.8

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2f90261280e36a179831d72ce794115be31c88bb by Victor Stinner in branch 'master': bpo-38321: Fix compiler warning in _randommodule.c (GH-16512) https://github.com/python/cpython/commit/2f90261280e36a179831d72ce794115be31c88bb --

[issue37474] Should Py_Initialize() control the floating point mode?

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16105 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16515 ___ Python tracker ___

  1   2   >