[issue36860] Inconsistent/Undocumented behavior with pathlib resolve and absolute on Windows

2019-05-09 Thread Eryk Sun
Eryk Sun added the comment: Windows resolve() is based on ntpath._getfinalpathname, which requires that the file exists and is accessible. resolve() defaults to non-strict behavior, which tries to resolve as much as possible by traversing the path in reverse and trying _getfinalpathname unti

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
anthony shaw added the comment: thanks, your code example zero-pads the socket address, and looking at the socketmodule.c code it does some padding under certain circumstances. https://github.com/python/cpython/blob/master/Modules/socketmodule.c#L1318-L1330 The Unix man page specify the same

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
Change by anthony shaw : -- versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list ma

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
anthony shaw added the comment: The existing tests in place add the null-termination bytes in the test string: def testLinuxAbstractNamespace(self): address = b"\x00python-test-hello\x00\xff" with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s1: s1.bind(

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) -Argument Clinic stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread rhubarbdog x
New submission from rhubarbdog x : I've found a bug with argparse and reported it upstream. `command --option source destination` works `command soucre destination --option` works but `command source --option destination` doesn't outputting the usage text block associated `do_command` method an

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread rhubarbdog x
rhubarbdog x added the comment: This is when running is a shell which inherits from cmd.Cmd -- ___ Python tracker ___ ___ Python-bu

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We can return to this issue if make the invocation of __length_hint__ much much faster. For example by adding the tp_length_hint slot. But currently it is too large change and his has negative effects. -- ___ Py

[issue12178] csv writer doesn't escape escapechar

2019-05-09 Thread Alex Shpilkin
Change by Alex Shpilkin : -- nosy: +Alex Shpilkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30271] Make sqlite3 statement cache optional

2019-05-09 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30271] Make sqlite3 statement cache optional

2019-05-09 Thread Aviv Palivoda
Aviv Palivoda added the comment: I think we can close this issue and open a different one that will disable the cache implicitly on `set_authorizer()`. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2019-05-09 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13128 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue36864] Double Spaces in the documentation

2019-05-09 Thread Jules Lasne
New submission from Jules Lasne : Hello, I've come to open this issue today because of the apparent split there is in the documentation about double spaces after a period. Here is a link to an article explaining some of the issue https://www.writing-skills.com/one-space-two-full-stop Anyway,

[issue36863] argparse doesn't like options in the middle of arguments

2019-05-09 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36864] Double Spaces in the documentation

2019-05-09 Thread Jules Lasne
Change by Jules Lasne : -- nosy: +matrixise, mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36859] sqlite3 dml statement detection does not account for CTEs

2019-05-09 Thread Ma Lin
Change by Ma Lin : -- nosy: +Ma Lin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue36865] FileInput does not allow 'rt' mode, but all its existing delegates do

2019-05-09 Thread Nathaniel Gaertner
New submission from Nathaniel Gaertner : While looking at https://bugs.python.org/issue5758 I noticed that 'rt' support had been added to gzip and bz2 in 3.3, but FileInput still limited its mode options to 'r', 'rb', 'rU', and 'U'. It seems like 'rt' should be just fine here as well, and wou

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-09 Thread Michael Blahay
Michael Blahay added the comment: For those that are wondering what is going on with PR 13181 and PR 13203, those are both for back porting the change to 3.7. The auto generated PR 13181 failed for an unknown reason and then the bot deleted the branch so the PR could not be taken any further

[issue36864] Double Spaces in the documentation

2019-05-09 Thread Julien Palard
Julien Palard added the comment: Some people are liking the double space thing. Some are not. It's in the documentation style guide [1] and there's arond 20k use of it. I don't think we want to change it: modifing 18900 lines in the docs will make most opened PRs conflict, we don't want that

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-05-09 Thread Julien Palard
Julien Palard added the comment: New changeset afd1e6d2f0f5aaf4030d13342809ec0915dedf81 by Julien Palard in branch 'master': bpo-36239: Skip comments in gettext infos (GH-12255) https://github.com/python/cpython/commit/afd1e6d2f0f5aaf4030d13342809ec0915dedf81 -- ___

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-05-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +13129 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32679] concurrent.futures should store full sys.exc_info()

2019-05-09 Thread Brian Quinlan
Brian Quinlan added the comment: My understanding is that tracebacks have a pretty large memory profile so I'd rather not keep them alive. Correct me if I'm wrong about that. -- ___ Python tracker _

[issue24554] GC should happen when a subinterpreter is destroyed

2019-05-09 Thread Eric Snow
Eric Snow added the comment: FYI, issue #36854 is about moving GC runtime state from _PyRuntimeState to PyInterpreterState. However, that doesn't trigger any collection when the interpreter is finalized. So there is more to be done here. -- ___

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2019-05-09 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Eric, I'm CC'ing you on this issue because I'm not sure if you've considered f-strings and gettext and figured out a way to make them work together. If you have, I can look into adding support for extracting the strings to pygettext but at the moment, I'm

[issue36854] GC operates out of global runtime state.

2019-05-09 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +13130 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36866] Certificate verification errors in urllib.request become URLError

2019-05-09 Thread Matt Martz
New submission from Matt Martz : The behavior of how SSL certificate validation is handled was changed in https://bugs.python.org/issue31399 This introduced a new exception, ssl.SSLCertVerificationError, which is raised for any certificate validation error, instead of the previous exception

[issue36851] Frame stack is not cleaned after execution is finished with return

2019-05-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f00828a742d2e88c910bdfd00f08fcd998554ba5 by Pablo Galindo in branch 'master': bpo-36851: Clean the frame stack if the execution ends with a return and the stack is not empty (GH-13191) https://github.com/python/cpython/commit/f00828a742d

[issue36851] Frame stack is not cleaned after execution is finished with return

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

[issue36865] FileInput does not allow 'rt' mode, but all its existing delegates do

2019-05-09 Thread Nathaniel Gaertner
Change by Nathaniel Gaertner : -- keywords: +patch pull_requests: +13131 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2019-05-09 Thread Brian Quinlan
Change by Brian Quinlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36867] Make semaphore_tracker track other system resources

2019-05-09 Thread Pierre Glaser
New submission from Pierre Glaser : Hi all, Olivier Grisel, Thomas Moreau and myself are currently working on increasing the range of action of the semaphore_tracker in Python. multiprocessing.semaphore_tracker is a little known module, that launches a server process used to track the life cyc

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2019-05-09 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for adding me, Toshio. foo = f'{_(f"{first}, bar, and {last}")}' Wow, that's extremely creative. I agree that this isn't the best we can do. PEP 501 has some ideas, but it might be too general purpose and powerful for this. Let me think about the

[issue30262] Don't expose sqlite3 Cache and Statement

2019-05-09 Thread Berker Peksag
Berker Peksag added the comment: New changeset e6576248e5174ca5daa362cfd610c07e7eb3a2ae by Berker Peksag (Aviv Palivoda) in branch 'master': bpo-30262: Don't expose private objects in sqlite3 (GH-1440) https://github.com/python/cpython/commit/e6576248e5174ca5daa362cfd610c07e7eb3a2ae ---

[issue30262] Don't expose sqlite3 Cache and Statement

2019-05-09 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ _

[issue36867] Make semaphore_tracker track other system resources

2019-05-09 Thread Pierre Glaser
Change by Pierre Glaser : -- keywords: +patch pull_requests: +13132 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36868] New behavior of OpenSSL hostname verification not exposed, incorrectly documented

2019-05-09 Thread Josh Rosenberg
New submission from Josh Rosenberg : The What's New in 3.7 docs mention the change from #31399 to use OpenSSL's built-in hostname verification ( https://docs.python.org/3/whatsnew/3.7.html#ssl ), but aside from that, information about the change is largely undiscoverable and/or wrong. Specif

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2019-05-09 Thread Allie Fitter
Allie Fitter added the comment: Just as context, my use case for this is interpolating translated strings into HTML. html = f'''\ {_("Some Title")} {_("Some longer text")} ''' -- ___ Python tracker

[issue36780] Interpreter exit blocks waiting for futures of shut-down ThreadPoolExecutors

2019-05-09 Thread Brian Quinlan
Brian Quinlan added the comment: We can bike shed over the name in the PR ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2019-05-09 Thread Eric V. Smith
Eric V. Smith added the comment: I was going to say "use eval()", but maybe we need some sort of "eval_fstring()" that basically only understood f-strings and produced a callable that captured all of the variables (like a closure), maybe that would help. --

[issue36868] New behavior of OpenSSL hostname verification not exposed, incorrectly documented

2019-05-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36866] Certificate verification errors in urllib.request become URLError

2019-05-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-09 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset a076e4f5e42b85664693191d04cfb33e2f9acfa5 by Andrew Svetlov in branch 'master': bpo-36802: Drop awrite()/aclose(), support await write() and await close() instead (#13099) https://github.com/python/cpython/commit/a076e4f5e42b85664693191d04cfb33e

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-05-09 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-09 Thread Julien Palard
Julien Palard added the comment: Hi Jaraco, We're using sphinx 1.8 in production (docs.python.org) but we're ready for sphinx 2 so we should upgrade, and when we'll upgrade, we'll upgrade it everywhere. You're right, `make venv` does not specify a version, at the sphinx 2 bump we'll have t

[issue32523] inconsistent spacing in changelog.html

2019-05-09 Thread Julien Palard
Julien Palard added the comment: New changeset 137be34180a20dba53948d126b961069f299f153 by Julien Palard in branch 'master': bpo-32523: Simplifying news entries with multiple paragraphs. (GH-8154) https://github.com/python/cpython/commit/137be34180a20dba53948d126b961069f299f153 --

[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2019-05-09 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +13133 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue10536] Enhancements to gettext docs

2019-05-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +13134 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-05-09 Thread SilentGhost
SilentGhost added the comment: > Second, we should probably determine why the doc builds are failing on Sphinx > 2 and update the `suspicious` code to support Sphinx 2. They're failing because in sphinx 2 old and deprecated (since 1.6) custom logging API was removed. So all Builder.warn call

[issue10536] Enhancements to gettext docs

2019-05-09 Thread miss-islington
miss-islington added the comment: New changeset 98b360e27b0be4646ed24c5a7ac07112ca020982 by Miss Islington (bot) in branch '3.7': [3.7] bpo-10536: Enhancements to gettext docs (GH-10324) (GH-13224) https://github.com/python/cpython/commit/98b360e27b0be4646ed24c5a7ac07112ca020982 --

[issue10536] Enhancements to gettext docs

2019-05-09 Thread Julien Palard
Change by Julien Palard : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2019-05-09 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +13135 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-05-09 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +13136 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36837] Make il8n tools available from `python -m`

2019-05-09 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Note, I've been doing some tests of how our gettext module differs from GNU gettext and run into a few bugs and lack of features which make msgfmt unusable and limit pygettext's usefulness. * msgfmt doesn't seem to store the charset from the .po file into t

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: too_late_unraisable.py is an example where PyErr_WriteUnraisable() is called very lated during Python finalization to be handled by user code. A destructor (__del__) fails on print() because the stream has been closed. PyErr_WriteUnraisable() is called by _P

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, let me come back to the initial issue: Thomas Grainger: > Currently it's quite easy for these errors to go unnoticed. I'd like a way to > easily detect these in CI. nedbat suggested piping the process output to > another tool, and looking for 'Exception

[issue33303] ElementTree Comment text isn't escaped

2019-05-09 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36239] gettext: GNUTranslations doesn't parse properly comments in description

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: Julien: Why not fixing Python 3.7? You approved https://github.com/python/cpython/pull/13218 (Python 3.7 backport) but then you closed it. Only Azure Pipelines PR failed on "ERROR: test_drain_raises (test.test_asyncio.test_streams.StreamTests)" which is unr

[issue36866] Certificate verification errors in urllib.request become URLError

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36868] New behavior of OpenSSL hostname verification not exposed, incorrectly documented

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33303] ElementTree Comment text isn't escaped

2019-05-09 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- keywords: +patch pull_requests: +13137 stage: needs patch -> patch review ___ Python tracker ___ __

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread Thomas Grainger
Thomas Grainger added the comment: The point for me is that CI will fail if it happens, then I can use gdb to find out the cause On Thu, 9 May 2019, 23:17 STINNER Victor, wrote: > > STINNER Victor added the comment: > > Ok, let me come back to the initial issue: > > Thomas Grainger: > > Cur

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 13230 to remove Lib/encodings/cp65001.py and simply reuse Lib/encodings/utf_8.py. -- ___ Python tracker ___ _

[issue36837] Make il8n tools available from `python -m`

2019-05-09 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: A note about the msgfmt problem. It looks like GNU gettext's msgfmt has a similar problem but the msgfmt from pybabel does not. This may mean that we need to change the gettext *Translation objects to be more tolerant of non-ascii encodings (perhaps defau

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: My PR 13110 (avoid functools) makes codecs.lookup('cp65001').encode() made 2.7x slower: https://github.com/python/cpython/pull/13110#issuecomment-491095964 417 ns +- 17 ns My PR 13230 (remove cp65001.py) makes it 1.5x faster :-) https://github.com/python/cpyt

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-05-09 Thread Laurie Opperman
Laurie Opperman added the comment: Would this change also have to copy implemented in the new ZipFile Pathlib API? https://bugs.python.org/issue36832 -- ___ Python tracker __

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: > Python could similarly special case CP_UTF8 as "utf-8" in > _locale._getdefaultlocale. I dislike lying in the locale module. This change is basically useless with my PR 13230. -- ___ Python tracker

[issue36843] AIX build fails with failure to get random numbers

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: Robert Boehne: pyurandom() uses _Py_open_noraise("/dev/urandom", O_RDONLY) which uses O_CLOEXEC if available. If this flag available? Does it work? Please try to build attached urandom.c. Example on my Fedora 29: open O_RDONLY succeeded read(16) -> 16 open

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-09 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread Eryk Sun
Eryk Sun added the comment: > I dislike lying in the locale module. This change is basically useless > with my PR 13230. Yes, functionally it's no different than using 'cp65001' as an alias. That said, the CRT special cases 65001 as "utf8": >>> locale.setlocale(locale.LC_CTYPE, '')

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: > The point for me is that CI will fail if it happens, then I can use gdb to > find out the cause I'm not comfortable with forcing users to use a low-level debugger to debug "unraisable exceptions". I tried PR 13175 on the test suite by forcing the option t

[issue34975] start_tls() difficult when using asyncio.start_server()

2019-05-09 Thread Ian Good
Ian Good added the comment: I added start_tls() to StreamWriter. My implementation returns a new StreamWriter that should be used from then on, but it could be adapted to modify the current writer in-place (let me know). I've added docs, an integration test, and done some additional "real-wo

[issue36719] regrtest --findleaks should fail if an uncollectable object is found

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13140 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36725] Reference leak regression with Python3.8a3

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread Thomas Grainger
Thomas Grainger added the comment: > I'm not comfortable with forcing users to use a low-level debugger to debug "unraisable exceptions". Defaulting to noop when the hook fails means I'll never notice the failure to be able to debug it On Fri, 10 May 2019, 00:42 STINNER Victor, wrote: > > S

[issue36829] CLI option to make PyErr_WriteUnraisable abort the current process

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: > Defaulting to noop when the hook fails means I'll never notice the failure to > be able to debug it I'm not sure that I understood what you mean here. My PR 13187 logs a message into stderr is custom hook fails with a new exception. Well, then you have to

[issue36869] Avoid warning of unused variables

2019-05-09 Thread Emmanuel Arias
New submission from Emmanuel Arias : When run ./configure && make -j4 there are two warnings on Object/dictobject.c file about ix and hash variable are not used. Zachary Ware make me note that when _PyObject_ASSERT is call and NDEBUG is defined that expand to ((void)0). So this PR add a #ifnde

[issue24263] unittest cannot load module whose name starts with Unicode

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: What is the current error on test_dir.tar.gz? I'm not sure which problem is trying to be solved here. Why does PR 13149 use str.isidentifier() method? unittest doesn't allow arbitrary Unicode in filenames? -- ___

[issue36858] f-string '=' debugging output needs to be documented

2019-05-09 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Related issue where the '=' debug mode was implemented: https://bugs.python.org/issue36817 -- nosy: +Mariatta stage: -> needs patch ___ Python tracker ___

[issue35723] Add "time zone index" cache to datetime objects

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: Paul started a discussion on python-dev: https://mail.python.org/pipermail/python-dev/2019-May/157337.html -- ___ Python tracker ___

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread Paul Monson
Paul Monson added the comment: I can verify that PR 13110 fixes the issue with test_startup_imports on Windows IoT Core ARM32 -- ___ Python tracker ___ __

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread Paul Monson
Paul Monson added the comment: Sorry that was supposed to say: I can verify that PR 13230 fixes the issue with test_startup_imports on Windows IoT Core ARM32 -- ___ Python tracker __

[issue24538] os.setxattr PermissionError on panfs propagates up causing `copystat`, `copytree`, and `pip install .` to fail unhepfully

2019-05-09 Thread Olexa Bilaniuk
Olexa Bilaniuk added the comment: This old bug now has a PR on Github authored by myself that may be reviewed. -- nosy: +giampaolo.rodola, obilaniu, tarek ___ Python tracker _

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-09 Thread STINNER Victor
New submission from STINNER Victor : https://ci.appveyor.com/project/python/cpython/builds/24376676 ERROR: test_drain_raises (test.test_asyncio.test_streams.StreamTests) -- Traceback (most recent call last): File "C:\projects

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: It seems like the feature is only supported by a few operating systems and only if required functions are available: #ifdef __APPLE__ volatile uint64_t tid; pthread_threadid_np(NULL, &tid); #elif defined(__linux__) volatile pid_t tid; tid = sy

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread Inada Naoki
Inada Naoki added the comment: > I dislike lying in the locale module. This change is basically useless with > my PR 13230. Note that Python produce "cpNNN" encoding name, not Windows. https://github.com/python/cpython/blob/137be34180a20dba53948d126b961069f299f153/Modules/_localemodule.c#L39

[issue36601] signals can be caught by any thread

2019-05-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset d267ac20c309e37d85a986b4417aa8ab4d05dabc by Victor Stinner in branch 'master': bpo-36778: cp65001 encoding becomes an alias to utf_8 (GH-13230) https://github.com/python/cpython/commit/d267ac20c309e37d85a986b4417aa8ab4d05dabc -- _

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-05-09 Thread Gregory P. Smith
New submission from Gregory P. Smith : Thing: mock_thing.method sig=(a=None, b=0) F == FAIL: test_has_calls_on_thing (__main__.MockCallTest) -- Traceback (most

[issue36601] signals can be caught by any thread

2019-05-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: PR is approved with automerge, just awaiting CI to give it the green light now. -- ___ Python tracker ___ _

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: About the ANSI code page, Lib/encodings/__init__.py calls _winapi.GetACP() to avoid relying on locale.getpreferredencoding() which lies when UTF-8 Mode is enabled: import _winapi ansi_code_page = "cp%s" % _winapi.GetACP()

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-05-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: If you use a debugger on this, you'll discover that what is happening inside of mock's assert_has_calls is that it is catching and swallowing an exception around the inspect.Signature instances bind() call complaining about 'b' being an unexpected keyword

[issue36310] pygettext3.7 Does Not Recognize gettext Calls Within fstrings

2019-05-09 Thread Eric V. Smith
Eric V. Smith added the comment: Of course, this wouldn't be any safer than eval'ing arbitrary user provided code. -- ___ Python tracker ___ _

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: Paul Monson: Your initial issue has been fixed in the master branch. I'm not sure what are Windows IoT Core and Windows Nano Server. Do you care of Python 3.7? If someone wants to support running test_site with ANSI code page set to 65001, I suggest to fix t

[issue36601] signals can be caught by any thread

2019-05-09 Thread miss-islington
miss-islington added the comment: New changeset d237b3f0f61990c972b84c45eb4fe137db51a6a7 by Miss Islington (bot) (Jeroen Demeyer) in branch 'master': bpo-36601: clarify signal handler comment and remove unnecessary pid check. (GH-12784) https://github.com/python/cpython/commit/d237b3f0f61990

[issue27497] csv module: Add return value to DictWriter.writeheader

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: New changeset fce5ff1e18b522cf52379934a6560583d840e7f9 by Victor Stinner (Rémi Lapeyre) in branch 'master': bpo-27497: Add return value to csv.DictWriter.writeheader (GH-12306) https://github.com/python/cpython/commit/fce5ff1e18b522cf52379934a6560583d840e7f9

[issue27497] csv module: Add return value to DictWriter.writeheader

2019-05-09 Thread STINNER Victor
STINNER Victor added the comment: I merged PR 12306. Thanks Ashish Nitin Patil for the initial patch, thanks Rémi Lapeyre to converting it to a PR, thanks Logan for the initial bug report ;-) Sadly, this change is a new feature and so cannot be backported to 2.7 or 3.7. The workaround is over

[issue15987] Provide a way to compare AST nodes for equality recursively

2019-05-09 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.8 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

  1   2   >