[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-26 Thread Brett Cannon
Brett Cannon added the comment: If you can't find the guidance then please either open an issue or submit a PR to update the devguide with the info. As for why your other PR was accepted, that was fixing an actual bug in the docstring. This one has absolutely no semantic change to Python; it

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- Removed message: https://bugs.python.org/msg370003 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I opened the PR 20434 as draft, but from what I understand, there is going to be some breakage (on our test suite). I'll try to narrow it down (currently ~4 tests instead of ~20) but I dont want to prevent anyone else from working on this, so feel free to i

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: The PR is ready for review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-26 Thread STINNER Victor
New submission from STINNER Victor : With SQLite 3.32, test_sqlite fails with: FAIL: CheckFuncDeterministic (sqlite3.test.userfunctions.FunctionTests) -- Traceback (most recent call last): File "/builddir/build/BUILD/Python-

[issue40771] python3 fromtimestamp generates OSError

2020-05-26 Thread SilentGhost
SilentGhost added the comment: I think I would have to leave judgement on that to core developers. This, if accepted, would be a candidate for 3.10. -- versions: +Python 3.10 -Python 3.8 ___ Python tracker

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, I also tried with a function taking one argument and then call it twice by running "SELECT deterministic(1)" query twice: again, the mock is also called twice. -- ___ Python tracker

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: I'm wondering how far back the fix should be backported. Clearly it should go into the 3.9 branch as well as master, but it feels like the sort of fix where the behaviour change resulting from the fix is as likely to break code as the bug itself. --

[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: I think I'd just do 3.9 and master. It does seem subtle for a minor release, when people are less likely to be looking at the release notes. -- ___ Python tracker __

[issue16954] Add docstrings for ElementTree module

2020-05-26 Thread Chitrank-Dixit
Chitrank-Dixit added the comment: I would like to work on this issue, I found this open and needs a patch. -- nosy: +Chitrank-Dixit ___ Python tracker ___

[issue37999] No longer use implicit convertion to int with loss

2020-05-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19693 pull_request: https://github.com/python/cpython/pull/20437 ___ Python tracker ___

[issue37824] IDLE: Handle Shell input warnings properly.

2020-05-26 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: After trying to complete a patch, there are a few issues that immediately showed itself (and this might lead to not to do this in 3.10, I dont know); First one is double-forward-ref, which is usage of string-annotations when there is postponed evaluatation

[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread Eric V. Smith
Change by Eric V. Smith : -- title: str.format() handles trailing zeros inconsistently in “general” format -> float.__format__() handles trailing zeros inconsistently in “general” format ___ Python tracker __

[issue40785] `mmap.mmap(..., 0)` doesn't work as advertised in docs (fails with EINVAL); relies on compatibility behavior no longer permitted by [some] Unix OSes

2020-05-26 Thread Enji Cooper
New submission from Enji Cooper : The documentation for mmap.mmap() claims that passing a length of 0 will map in an entire file, but unfortunately that doesn't work as shown below: >>> mmap.mmap(-1, 0) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argum

[issue40785] `mmap.mmap(..., 0)` doesn't work as advertised in docs (fails with EINVAL); relies on compatibility behavior no longer permitted by [some] Unix OSes

2020-05-26 Thread Enji Cooper
Enji Cooper added the comment: Sidenote: all versions tested were 3.8.2: pinklady:freebsd ngie$ /usr/local/opt/python@3.8/bin/python3 -V Python 3.8.2 -- ___ Python tracker __

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > The second problem is `inspect.signature`. If we don't resolve annotations > there and continue it is definitely going to break some code. Would you mind to elaborate why would it break some code? Consumers of annotations should already be prepared to get

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2020-05-26 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 8.0 -> 9.0 pull_requests: +19695 pull_request: https://github.com/python/cpython/pull/20438 ___ Python tracker ___ _

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2020-05-26 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 6.0 -> 7.0 pull_requests: +19694 pull_request: https://github.com/python/cpython/pull/20438 ___ Python tracker ___ _

[issue34689] Lib/sysconfig.py expands non-variables

2020-05-26 Thread Erwan Le Pape
Change by Erwan Le Pape : -- pull_requests: +19696 pull_request: https://github.com/python/cpython/pull/20439 ___ Python tracker ___ ___

[issue40611] Add MAP_POPULATE to the mmap library

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 21fda91f8da96406e6a912f7c312424209c19bef by Ethan Steinberg in branch 'master': bpo-40611: Adds MAP_POPULATE to the mmap module (GH-20061) https://github.com/python/cpython/commit/21fda91f8da96406e6a912f7c312424209c19bef -- nosy: +vsti

[issue40611] Add MAP_POPULATE to the mmap library

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue40611] Add MAP_POPULATE to the mmap library

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks Ethan Steinberg, the constant is added to 3.10. Sadly, adding a new constant is a new feature, and we don't add new features to stable branches. The 3.9 branch no longer accept new features past the feature freeze which is over. In the meanwhile, you

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: What do you think about readlink returning something like: class Link(str): print_name = None # type: str | None @property def friendly_name(self) -> str: return self.print_name or self os.readlink would always return one of these Link objects, a

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Guido van Rossum
Guido van Rossum added the comment: - Double forward ref: IMO this can be resolved in the get_type_hints() functions. (Łukasz do you agree?) - inspect.signature(): Maybe this could switch to using typing.get_type_hints()? Then again if performance is important here maybe we cannot change any

[issue40786] madvise should be accessible outside of mmap instance

2020-05-26 Thread Enji Cooper
New submission from Enji Cooper : madvise can be used when manipulating mmap'ed pages, but it can also be used when protecting processes and other things. Having madvise be available in mmap as a function would be helpful instead of having to jump through a lot of hoops to run `MADV_PROTECT`

[issue40786] madvise should be accessible outside of mmap instance

2020-05-26 Thread Enji Cooper
Change by Enji Cooper : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: To my knowledge, dataclasses works with `from __future__ import annotations`. If there are specific examples of problems, I'd like to hear about it: please open a separate issue. There is a hack (discussed at PyCon 2018 with all of the relevant players) wher

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2020-05-26 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 nosy_count: 6.0 -> 7.0 pull_requests: +19697 pull_request: https://github.com/python/cpython/pull/20441 ___ Python tracker ___ _

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Researching 'nested mainloop': the one we are concerned with is in pyshell.PyShell.readline, currently line 1078. self.top.mainloop() # nested mainloop() This was in David Scherer's 'Initial Revision' of 2000 Aug 14 without the comment. It has

[issue40779] incorrect end column for single argument generator function call AST

2020-05-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40787] Mysql + unittest crash

2020-05-26 Thread Lucas
New submission from Lucas : environment: win10 cmd, python 3.8 32-bit, mysql, unittest description: When restoring a database through mysql in a unittest function, the command prompt freezes before giving the result of the test, and I am forced to close it to quit. steps to replicate: Have m

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: The csv file object knows the encoding it was opened with, I think? If so, we could add an enhancement that bytes objects are first decoded to str using the same encoding the file was opened with. That seems like a reasonable new feature to me. Everything

[issue40788] Build issue Solaris 10 Sparc

2020-05-26 Thread Warren Hardy
New submission from Warren Hardy : I am using Solaris 10 (last oracle release). GCC 5.5.0 I had trouble with _ssl not building it was failing out with sethostname reference I fixed this by removing the -Werror=implicit-function-declaration My main issue is that _ctypes is not being built an

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: This seems like it's testing an implementation detail. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: On further thought, no, I don't think it would be a reasonable feature. User opens the CSV file, probably using the default encoding (UTF-8?) but potentially in anything. They collect some data as bytes. Those bytes could be from any unknown encoding. When

[issue40776] Python 3.7.6 installation issue on mac os x 10.6.8

2020-05-26 Thread Ned Deily
Ned Deily added the comment: Thanks for your report. Because of very low usage and the increasing difficulty of supporting new features and bug fixes on very old versions of macOS, like 10.6.x, we no longer provide binary installers on python.org for macOS versions earlier than 10.9. On top

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Futrue

2020-05-26 Thread Kyle Stanley
Kyle Stanley added the comment: >From looking at the commit history of AbstactEventLoop.run_in_executor(), it >seems that it was previously be a non-coroutine method prior to the conversion >from the `@asyncio.coroutine` decorator to `async def` (PR-4753). See >https://github.com/python/cpyt

[issue40789] C-level destructor in PySide2 breaks gen_send_ex, which assumes it's safe to call Py_DECREF with a live exception

2020-05-26 Thread Nathaniel Smith
New submission from Nathaniel Smith : Consider the following short program. demo() is a trivial async function that creates a QObject instance, connects a Python signal, and then exits. When we call `send(None)` on this object, we expect to get a StopIteration exception. - from PySide2 i

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-26 Thread paul rubin
paul rubin added the comment: Yes as mentioned I'm running Debian GNU/Linux, not Windows. By "idle is installed in /usr/bin" I mean that it is an executable shell script stored at /usr/bin/idle . Yes, shell prompt is the $ prompt to bash. When I run "python3 -m idlelib", /usr/bin does not

[issue27657] urlparse fails if the path is numeric

2020-05-26 Thread Michał Górny
Michał Górny added the comment: Do I understand correctly that the new behavior is intentional in 3.9, or is that still being discussed? -- nosy: +mgorny ___ Python tracker __

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-26 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +19698 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20442 ___ Python tracker __

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-26 Thread Eric L.
Eric L. added the comment: Well, your decision but, as a user of the library, it didn't feel like a new feature just like a bug to be fixed, the main issue being the inconsistent handling of bytes vs. str. -- ___ Python tracker

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-26 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed. The SQLite documentation talks about the limitations that non-deterministic functions have, not about deterministic functions being memoized: https://www.sqlite.org/deterministic.html The flag would be better tested e.g. with a CHECK constraint: http

<    1   2