[issue36336] test_httplib, test_multiprocessing_forkserver leaks on x86 Gentoo

2019-03-18 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : See this build report: https://buildbot.python.org/all/#/builders/72/builds/523 test_multiprocessing_forkserver leaked [1, 1, 1] memory blocks, sum=3 test_httplib leaked [1, 1, 1] memory blocks, sum=3 Re-running failed tests in verbose mode Re-running test '

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread kmiku7
New submission from kmiku7 : In file Modules/socketmodule.c, sock_send/sock_sendall use int to keep array length need be sent and has sent. -- components: Library (Lib) messages: 338166 nosy: kmiku7 priority: normal severity: normal status: open title: Use socket.sendall()/send() send

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 23581c018fceb607fe829a41c6fbe81b4d502cab by Raymond Hettinger in branch 'master': bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) https://github.com/python/cpython/commit/23581c018fceb607fe829a41c6fbe81b4d502cab -- _

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +12350 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36336] test_httplib, test_multiprocessing_forkserver leaks on x86 Gentoo

2019-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have tested on my laptop (fedora 29) and I can't reproduce these memory leaks. I suppose we can not debug on the builder... -- ___ Python tracker

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset bedfbc790e18f14cfdd59cf27d27bb86518dc3fc by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395) https://github.com/python/cpython/commit/bedfbc790e18f14cfdd59cf27

[issue36321] Fix misspelled attribute name in namedtuple()

2019-03-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related issue : issue18100 . Seems this was fixed in 3.x . -- nosy: +xtreak ___ Python tracker ___

[issue36336] test_httplib, test_multiprocessing_forkserver leaks on x86 Gentoo

2019-03-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Xianbo Wang
New submission from Xianbo Wang : The urlparse function in Python urllib returns the wrong hostname when parsing URL crafted by the malicious user. This may be caused by incorrect handling of IPv6 addresses. The bug could lead to open redirect in web applications which rely on urlparse to ext

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I can confirm with 3.7.2 on fedora 29 -- nosy: +matrixise, orsenthil ___ Python tracker ___ ___ P

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is a unittest where you can test this issue and the result on Python 3.8.0a2 and 3.7.2 >>> 3.8.0a2 ./python /tmp/test_bug_36338.py /tmp/test_bug_36338.py:8: SyntaxWarning: invalid escape sequence \[ url = 'http://demo.com\[attacker.com]' 3.8.0a2+ (head

[issue36320] typing.NamedTuple to switch from OrderedDict to regular dict

2019-03-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12351 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread kmiku7
kmiku7 added the comment: Can we fix it in 2.7? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36281] OSError: handle is closed for ProcessPoolExecutor and run_in_executor

2019-03-18 Thread Bas Nijholt
Change by Bas Nijholt : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-18 Thread Géry
Géry added the comment: Actually people do this all the time, to deactivate the logging of some third-party libraries (me included). For instance: * https://stackoverflow.com/questions/24344045/how-can-i-completely-remove-any-logging-from-requests-module-in-python * https://stackoverflow.com

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue36338] urlparse of urllib returns wrong hostname

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36339] test_ttk_guionly: test_traversal() fails randomly on AMD64 Windows8.1 Refleaks 2.7

2019-03-18 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Refleaks 2.7: https://buildbot.python.org/all/#/builders/33/builds/538 Previous related issues: * bpo-8445 * bpo-11925 Extract of the test code: def test_traversal(self): self.nb.pack() self.nb.wait_visibility()

[issue36336] test_httplib, test_multiprocessing_forkserver leaks on x86 Gentoo

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6 no longer accept bugfixes, I don't think that it's worth it to investigate such flaky tests. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: David Edelsohn: Would you mind to have a look at this issue? -- ___ Python tracker ___ ___ Python

[issue36340] 3.7.3rc1 Install Certificates fails on macOS

2019-03-18 Thread Dima Tisnek
New submission from Dima Tisnek : I've just installed Python 3.7.3rc1 for macOS 10.9 or later from the macOS 64-bit installer. I've clicked the `Install Certificates.command`, which opened a Terminal, ran and failed with: ``` Last login: Mon Mar 18 16:36:21 on ttys010 Welcome to fish, the fri

[issue35813] shared memory construct to avoid need for serialization between processes

2019-03-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: After changeset e895de3e7f3cc2f7213b87621cfe9812ea4343f0, test_all fails on platforms that lack the _posixshmem extension module (Android for example): == FAIL: test_all (test.test___all__.Al

[issue36340] 3.7.3rc1 Install Certificates fails on macOS

2019-03-18 Thread Dima Tisnek
Dima Tisnek added the comment: More system info: I've had 3.7.2 installed from official installer prior to this. Before that, I had 3.7.1 installed from official installer. I also have 3.8a2. 3.6.8, 2.7.15 on the system, as well as an odd version from Homebrew. My system site-packages for 3.7

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12352 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: 2.7 is in bugfix mode, but I have created a PR (not yet completed, need to be tested with real unittest). Could you try my PR and why not produce a script for the tests. Thank you. -- nosy: +matrixise ___ Python

[issue36340] 3.7.3rc1 Install Certificates fails on macOS

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36341] bind() on AF_UNIX socket may fail in tests run as non-root

2019-03-18 Thread Xavier de Gaye
New submission from Xavier de Gaye : This happens on Android where a SELinux policy prevents a plain user to bind() a pathname AF_UNIX socket (abstract and unnamed sockets are not constrained by this policy). The errors are: test_asyncio: =

[issue36332] compile() error on AST object with assignment expression

2019-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12353 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36332] compile() error on AST object with assignment expression

2019-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36297] Remove unicode_internal codec

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: Thanks INADA-san. IMHO Python has too many codecs, it's painful to maintain them. So it's nice to see deprecate ones to be removed. Next step: remove all deprecated APIs using Py_UNICODE* :-D (I know that Serhiy is working on that.) --

[issue36333] memory leaks detected with valgrind for python -V

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: I assign the issue to myself, since I'm currently working on the code: bpo-36301. -- assignee: -> vstinner ___ Python tracker ___ _

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread kmiku7
kmiku7 added the comment: Thanks for your contribute! I just have read your PR on github. Because I am not familiar about how to contribute a patch, I doubt it's reasonable to write a test which will consuming more than 2GB memory space? Because if write a test to cover this case, we will bui

[issue36341] bind() on AF_UNIX socket may fail in tests run as non-root

2019-03-18 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +12354 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue36333] memory leaks detected with valgrind for python -V

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +12355 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @kmiku7, it's possible to write tests that use a large amount of memory and to run them only when asked to with bigmemtest: https://docs.python.org/3/library/test.html#test.support.bigmemtest There is some tests that use it in the codebase like https://gith

[issue36342] test_multiprocessing fails on platforms lacking a functioning sem_open

2019-03-18 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_multiprocessing fails on platforms lacking a functioning sem_open (Android for example) with: == ERROR: test_multiprocessing (test.test_venv.BasicTest)

[issue36342] test_multiprocessing fails on platforms lacking a functioning sem_open

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: Are you sure that multiprocessing is the issue? On bpo-35978, the test fails because of venv, not because of multiprocessing. Can it be the same issue? -- nosy: +vstinner ___ Python tracker

[issue36297] Remove unicode_internal codec

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: I tried to remove all legacy API and wchar_t cache in unicodeobject. This is experimental branch. https://github.com/methane/cpython/pull/18/files I'm thinking about adding configure option to remove them from 3.8. * It may help people to find third party ext

[issue36333] memory leaks detected with valgrind for python -V

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: -> vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36333] memory leaks detected with valgrind for python -V

2019-03-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I close the PR 12389 because it superseded by PR 12400 (only the fix for _PyRuntimeState_Fini). -- assignee: vstinner -> ___ Python tracker ___

[issue36342] test_venv fails on Android with clang

2019-03-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: You are right, this is a duplicate of bpo-35978. Closing as duplicate. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed title: test_multiprocessing fails on platforms lacking a functioning sem_open -> test_venv fails

[issue23984] Documentation error: Descriptors

2019-03-18 Thread Carl Bordum Hansen
Change by Carl Bordum Hansen : -- keywords: +patch pull_requests: +12356 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue23984] Documentation error: Descriptors

2019-03-18 Thread Carl Bordum Hansen
Carl Bordum Hansen added the comment: I submitted a PR that addresses this and the next example, which also uses print unnecessarily. To answer your last comment rhettinger; the preceding text tells you /why/ one might want to use a staticmethod: """ Good candidates for static methods are m

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: New changeset 74ae50e53e59bbe39d6287b902757f0cd01327dc by Inada Naoki (CAM Gerlach) in branch 'master': bpo-36307: Travis: upgrade to Xenial environment (GH-12356) https://github.com/python/cpython/commit/74ae50e53e59bbe39d6287b902757f0cd01327dc -- nos

[issue36329] use the right python "make -C Doc/ serve"

2019-03-18 Thread Julien Palard
Julien Palard added the comment: New changeset 09a9f1799c8c58f573c50cb2d526422436b8658b by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-36329: Declare the version of Python to use for Tools/scripts/serve.py (#12385) https://github.com/python/cpython/commit/09a9f1799c8c58f573c50cb2d

[issue36317] Typo in documentation of _PyObject_FastCallDict

2019-03-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +12357 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30040] Speedup empty dict creation and reduce its memory usage

2019-03-18 Thread Inada Naoki
Change by Inada Naoki : -- title: new empty dict can be more small -> Speedup empty dict creation and reduce its memory usage ___ Python tracker ___ __

[issue30040] Speedup empty dict creation and reduce its memory usage

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: New changeset 2ddc7f6d6223840c9971b36b30da4b3371d6e52b by Inada Naoki in branch 'master': bpo-30040: optimize inserting into empty dict (GH-12307) https://github.com/python/cpython/commit/2ddc7f6d6223840c9971b36b30da4b3371d6e52b -- ___

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: The new test added by changeset 454b3d4ea246e8751534e105548d141ed7b0b032 fails on Android: == FAIL: test_strftime_trailing_percent (test.datetimetester.TestDate_Pure)

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36343] Certificate added to Win Store not available

2019-03-18 Thread Christian Herdtweck
New submission from Christian Herdtweck : I have created a self-signed certificate as my fake CA, used it to sign the certificate of my test server. I added the fake CA to the client (Windows 7) certificate store (System settings > Internet Settings > Content > Certificates), imported it there

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: Chih-Hsuan Yen: After this patch, test_distutils failed if $CPPFLAGS is not empty when building CPython. Aha, more sysconfig configuration variables and environment variables should be mocked. I wrote PR 12403 to mock all variables. Would you mind to test an

[issue36343] Certificate added to Win Store not available

2019-03-18 Thread Christian Herdtweck
Christian Herdtweck added the comment: I should have added the behavioral result: (1) opening my server's web (https, port 443) page using IE works fine without certificate questions/errors (2) creating a ssl-wrapped socket to the server on the same port (443) fails with a Certificat error

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: INADA-san: I would prefer to use the same OS to test Python 2.7 and 3.7. Are you ok to backport this change? (if it didn't break the CI yet? :-)) -- ___ Python tracker

[issue30040] Speedup empty dict creation and reduce its memory usage

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: I merged PR-12307 instead of PR-12308 because: * PR-12308 adds much code, it makes difficult to maintain dict (I faced many SEGV while creating PR-12308) * PR-12308 is based on PR-12307. So they are not mutually exclusive. And I close this issue because there

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: Ah, miss-islington is still broken... I'll create backport PR manually if travis succeed to build master branch. https://travis-ci.org/python/cpython/builds/507808242 -- ___ Python tracker

[issue36317] Typo in documentation of _PyObject_FastCallDict

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 67294f64256a5cb29ca3c22d1a8d324e7ea177c6 by Victor Stinner (Rémi Lapeyre) in branch '3.7': bpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402) https://github.com/python/cpython/commit/67294f64256a5cb29ca3c22d1a8d324

[issue36317] Typo in documentation of _PyObject_FastCallDict

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/12383 has been merged into master: commit b4b97af8bed21e32eb77e7f7497acde1f8af4e70 Author: Rémi Lapeyre Date: Mon Mar 18 11:07:53 2019 +0100 Fix typo in _PyObject_FastCallDict documentation (GH-12383) Thanks Rémi

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: > Ah, miss-islington is still broken... Right: https://github.com/python/miss-islington/issues/219 -- ___ Python tracker ___ ___

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: Xavier de Gaye: That's why I asked to stop relying on the exact behavior of strftime() of the libc to get portable behavior :-/ See my previous comments. IMHO the correct fix is to strip trailing % from the format string, call strftime() and then concatenate

[issue31603] Please add argument to override stdin/out/err in the input builtin

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: For reference, here's the link to the Python ideas thread: https://mail.python.org/pipermail/python-ideas/2017-September/047230.html -- nosy: +cheryl.sabella ___ Python tracker

[issue36236] Python crash on macOS when CWD is invalid

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: > Omitting it from sys.path in that case makes sense to me, but I'm not sure > what sys.argv[0] should be set to. I propose to use ".". It would be consistent with platforms which doesn't implement realpath: if (have_module_arg) { #if defined(HA

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12359 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12360 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23984] Documentation error: Descriptors

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: @carlbordum, thank you for the PR, but the original PR already addresses the issues. In a code review message on that PR (https://github.com/python/cpython/pull/1034#pullrequestreview-32006381), @rhettinger commented on the removal of the print statement in

[issue36344] install_certificates.command too complicated, copy from pip's dir instead

2019-03-18 Thread Dmitrii Pasechnik
New submission from Dmitrii Pasechnik : Currently (e.g. on the released Python 2.7.16) Mac/BuildScript/resources/install_certificates.command does install certifi module from the net and symlinks its cacert.pem to provide openssl with a working certificate. The same task may be accomplished m

[issue33875] Allow dynamic password evaluation in pypirc configuration file.

2019-03-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think there might be a need for a new function in the getpass module that fetch it from the operating system secure enclave, like KeyChain on OSX. Currently there is no facility for storing secrets securely, the documentation of secrets says: > Applications

[issue36085] Enable better DLL resolution

2019-03-18 Thread Łukasz Langa
Łukasz Langa added the comment: Personally I am fine with Python 3.8 dropping Windows 7 support entirely if this makes it work better in Windows 8+. However, the 3 month overlap here would set a precedent that we don't have to adhere to self-imposed timing restrictions which is dangerous terr

[issue12622] failfast argument to TextTestRunner not documented

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: I agree with @xtreak. Closing this as a duplicate. -- nosy: +cheryl.sabella resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Wrong signature of TextTestRunner's init function

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-18 Thread Steve Dower
Steve Dower added the comment: For this one you're probably waiting on me to get time. I try to find an hour or two each week, depending on what releases are going on, but it can be a little unpredictable. Zachary could also review and merge if he gets time first. I don't think anyone else

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread Michael Saah
Michael Saah added the comment: While I agree with Victor that reworking time.strftime to be more portable is a great idea, this issue was never about that; it was about making exception throwing behavior consistent across datetime's two strftime implementations (python and C), and also bringin

[issue36333] memory leaks detected with valgrind for python -V

2019-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12361 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27432] Unittest truncating of error message not works

2019-03-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: This one is a little more complicated, but I'm going to assign to @Mariatta for the sprints. -- assignee: -> Mariatta nosy: +Mariatta, cheryl.sabella stage: -> needs patch versions: +Python 3.8 -Python 3.6 ___ Py

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-18 Thread Inada Naoki
Inada Naoki added the comment: https://travis-ci.org/python/cpython/jobs/507821992 "pyenv: python3.7: command not found" Hmm, `dist: xenial; group beta` seems not stable yet. I'll try removing "group: beta" for stable build. -- ___ Python tracker

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread Paul Ganssle
Paul Ganssle added the comment: I think the proposed change to the test will work, or we can mark the test as an expected failure on Android (on the theory that the test *should* work because we want the behavior normalized, but we are not living up to that). In either case, I think a separa

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: > or we can mark the test as an expected failure on Android No please, don't do that :-( -- ___ Python tracker ___ _

[issue36327] Remove EOLed Py34 from "Status of Python branches"

2019-03-18 Thread Larry Hastings
Larry Hastings added the comment: Python 3.4.10 has not been released yet, and so it hasn't reached EOL yet, so this is jumping the gun a little. All things in time. -- ___ Python tracker _

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-03-18 Thread Paul Ganssle
Paul Ganssle added the comment: > No please, don't do that :-( Interesting, I don't feel terribly strongly about it, but I would have thought that you'd be more in favor of that solution, maybe we have a different definition of "expected failure"? Usually in my projects, I use xfail if I ha

[issue36332] compile() error on AST object with assignment expression

2019-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0c9258a6d299e0484538ef8d4b23f30515283db2 by Pablo Galindo in branch 'master': bpo-36332: Allow compile() to handle AST objects with assignment expressions (GH-12398) https://github.com/python/cpython/commit/0c9258a6d299e0484538ef8d4b23f3

[issue36332] compile() error on AST object with assignment expression

2019-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-18 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : The Makefile of Doc/ has a `serve` target. Currently, this one uses `Tools/scripts/serve.py`. But since 3.7, this script could be replaced by `python -m http.server -d directory`. @mdk and myself thinking we could deprecate `Tools/scripts/serve.py` with a

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: @kmiku7: Did you find this issue in production or while testing Python? Or did you spot the idea while reading Python source code? -- nosy: +vstinner ___ Python tracker ___

[issue36337] Use socket.sendall()/send() send data larger than 2GB will be truncated and return None, without exception raised.

2019-03-18 Thread STINNER Victor
STINNER Victor added the comment: > Because I am not familiar about how to contribute a patch, I doubt it's > reasonable to write a test which will consuming more than 2GB memory space? > Because if write a test to cover this case, we will build a string larger > than 2GB, and use socket to

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12362 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36272] Recursive logging crashes Interpreter in Python 3

2019-03-18 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6a7a9f1d83cef628d2bacd71ee568b93f53fd6b4 by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391) https://github.com/python/cpython/commit/6a7a9f1d83cef628d2bacd71ee568b93f53fd6b4

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The legacy Unicode C API was deprecated in 3.3. Its support consumes resources: more memory usage by Unicode objects, additional code for handling Unicode objects created with the legacy C API. Currently every Unicode object has a cache for the wchar_t r

[issue36272] Recursive logging crashes Interpreter in Python 3

2019-03-18 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6 ___ Python tracker ___ __

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-18 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: STINNER Victor: Thank you very much for that much better fix! I've tested it on Arch Linux. With that patch, test_distutils passes as usual. The pull request looks good, too. Just a question: I think it should be backported to 3.7 and 2.7 branches like https

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12363 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36211] show full url when execute "make -C Doc/ serve"

2019-03-18 Thread Julien Palard
Change by Julien Palard : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Deprecate Tools/scripts/serve.py in favour of python -m http.server -d ___ Python tracker

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2019-03-18 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'd like to move forward with this in order to fix issue17561. If there are no complaints I'm gonna merge this in ~ a week. -- ___ Python tracker ___

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-18 Thread Vinay Sajip
Vinay Sajip added the comment: > Actually people do this all the time, to deactivate the logging of some > third-party libraries (me included). It would be better to set the level of those loggers to e.g. ERROR or CRITICAL rather than disabling them altogether - presumably if something bad h

[issue36347] Add the constant READWRITE for PyMemberDef

2019-03-18 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : When we define some members with PyMemberDef, we have to specify the flag for read-write or read-only. static PyMemberDef members[] = { {"name", T_OBJECT, offsetof(MyObject, name), 0, "Name object"}, {NULL} // Sentinel }; For a newcomer, when you

[issue36347] Add the constant READWRITE for PyMemberDef

2019-03-18 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12364 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-03-18 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/21/builds/2512 == FAIL: test_logout (test.test_imaplib.RemoteIMAP_STARTTLSTest) ---

[issue36349] Including parentheses in a regular expression pattern enclosed by literal square bracket characters cause the square brackets not to be matched

2019-03-18 Thread Farbod Safe
New submission from Farbod Safe : Below two print statements should give the same results but they don't: import re s = '[a]' print(*re.findall(r'\[.*]',s)) [a] print(*re.findall(r'\[(.*)]',s)) a -- messages: 338234 nosy: Farbod Safe2 priority: normal severity: normal status: open t

  1   2   3   >