[issue38602] Add fcntl.F_OFD_XXXX constant

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3bfc8e0fcc707d200c267ff05b052fd6a63c985a by Serhiy Storchaka (Dong-hee Na) in branch 'master': bpo-38602: Add fcntl.F_OFD_ for fcntlmodule (GH-16956) https://github.com/python/cpython/commit/3bfc8e0fcc707d200c267ff05b052fd6a63c985a -

[issue38602] Add fcntl.F_OFD_XXXX constant

2019-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ __

[issue38606] Function to count total number of common divisors of two numbers

2019-10-28 Thread ishan gambhir
Change by ishan gambhir : Removed file: https://bugs.python.org/file48680/cd_count.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue38606] Function to count total number of common divisors of two numbers

2019-10-28 Thread ishan gambhir
ishan gambhir added the comment: Sorry For it now it is corrected. -- Added file: https://bugs.python.org/file48682/cd_count.py ___ Python tracker ___

[issue38606] Function to count total number of common divisors of two numbers

2019-10-28 Thread ishan gambhir
Change by ishan gambhir : Removed file: https://bugs.python.org/file48682/cd_count.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue38606] Function to count total number of common divisors of two numbers

2019-10-28 Thread ishan gambhir
Change by ishan gambhir : Added file: https://bugs.python.org/file48683/cd_count.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38538] dictobject dictviews don't return NotImplemented for unrecognized types.

2019-10-28 Thread Inada Naoki
Inada Naoki added the comment: > but it's not that simple as the __or__ of dictviews is less strict that the > __or__ of set: __or__ of dictview accept any iterable, __or__ of set only > accepts sets. I want to make it same to set. But it is a backward incompatible... -- __

[issue38611] Bug in traceback.py

2019-10-28 Thread Jim Carroll
New submission from Jim Carroll : _elementtree.c defines a custom exception 'xml.etree.ElementTree.ParseError' that inherits from SyntaxError. According to the docs https://docs.python.org/3/library/exceptions.html#SyntaxError ``Instances of this class have attributes filename, lineno, offset

[issue38608] Undocumented behavior that IsolatedAsyncioTestCase would enable event loop debug mode

2019-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: This print comes from asyncio debug mode when async function is blocked by time longer than 0.1 sec (see loop.slow_callback_duration at loop.slow_callback_duration). Usually, it is a sign of a problem in user code, e.g. something should be pushed into execut

[issue37224] test__xxsubinterpreters fails randomly

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33868: test__xxsubinterpreters fails randomly since at least 2018-06-15. -- ___ Python tracker ___

[issue4630] IDLE: add cursor noblink option

2019-10-28 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +16488 pull_request: https://github.com/python/cpython/pull/16960 ___ Python tracker ___

[issue4630] IDLE: add cursor noblink option

2019-10-28 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a pull request for this issue. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Pyt

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > On issue 38602, the constant related to open file descriptors will be added. > I will finalize this issue after issue 38602 is closed. issue 38602 added constants, but this issue also modify lockf() to add open_file_descriptor parameter to choose between F

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

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > We never should have mentioned 4.0 as the target date to make this the default (and only) behavior I am fine with modifying __future__ documentation to only modify the "Mandatory" column to remove Python 4.0, and then close this issue: https://docs.python.o

[issue38604] Schedule Py_UNICODE API removal

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: A preleminary step was to modify PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() to remove the internal caching: it has been done in Python 3.8.0 with bpo-30863. -- nosy: +inada.naoki, serhiy.storchaka ___

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Richard Pausch
New submission from Richard Pausch : The issue was first reported in https://github.com/ipython/ipython/issues/11918. Some non-ascii characters like φ (\u03c6) and ϕ (\u03d5) map/link to the same data/identifier. ```python ϕ = 1 φ = 2 print(ϕ) # results in 2 - should be 1 print(φ) # results

[issue38600] Change the mark up of NULL

2019-10-28 Thread hai shi
hai shi added the comment: In 'If *exc* is *NULL*, then the exception is cleared and the value is clipped to *PY_SSIZE_T_MIN* for a negative integer or *PY_SSIZE_T_MAX* for a positive integer.', should PY_SSIZE_T_MIN and PY_SSIZE_T_MAX be changed too? -- nosy: +shihai1991

[issue38530] Offer suggestions on AttributeError

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: Helping the developer to suggest a fix introduces a minor but non-zero overhead, I would prefer to only enable it as an opt-in option. Maybe enable it using in the development mode (-X dev/PYTHONDEVMODE=1)? > https://github.com/dutc/didyoumean (by James Powe

[issue38604] Schedule Py_UNICODE API removal

2019-10-28 Thread Inada Naoki
Inada Naoki added the comment: I want to remove them in 3.10 too. If we chose the annual release cycle, I'm OK to postpone the removal to 3.11. FWIW, ujson is apopular extension that uses these APIs. But it is not maintained for a long time, and there are many alternative JSON libraries. ---

[issue38600] Change the mark up of NULL

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes of course, but I'll fix them in a separate PR. PR 16950 is mostly automatic replacements. -- ___ Python tracker ___ __

[issue38530] Offer suggestions on AttributeError

2019-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > By the way, does IPython have a feature like this? Not that I know of. > In short, https://github.com/SylvainDe/DidYouMean-Python seems to already > implement this issue in the proper way, no? I briefly checked the project. My current approach expo

[issue38530] Offer suggestions on AttributeError

2019-10-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Helping the developer to suggest a fix introduces a minor but non-zero > overhead, I would prefer to only enable it as an opt-in option. Maybe enable > it using in the development mode (-X dev/PYTHONDEVMODE=1)? I think doing that would make it lose

[issue38604] Schedule Py_UNICODE API removal

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue36346. First we need to add compile-time deprecation warnings to all C API. Then add runtime deprecation warnings. And since this is a major compatibility breakage, it can take longer deprecation period. -- __

[issue38530] Offer suggestions on AttributeError

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > Ruby has it integrated into the core : > https://bugs.ruby-lang.org/issues/11252 . It was initially a gem that got > merged into core. GCC also provides more and more hints. Example: int main() { int hello = 1; return helo; } GCC: error: 'helo' un

[issue36346] Prepare for removing the legacy Unicode C API

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-38604 as a duplicate. Copy of my messages. msg355475 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-10-27 16:02 Python 3.3 deprecated the C API functions using Py_UNICODE type. Examples in the doc: * https://d

[issue38604] Schedule Py_UNICODE API removal

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > See issue36346. Oh, I failed to find this issue. Ok, I close mine as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Prepare for removing the legacy Unicode C API

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

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

[issue38613] Optimize some set operations in dictkeys object

2019-10-28 Thread Inada Naoki
New submission from Inada Naoki : -, |, and ^ of dictkeys are implemented as: PyObject *result = PySet_New(self); // Call set.difference_update, set.update, set.symmetric_difference_update with other. PySet_New(iterable) has optimized step for iterable is dict. But since iterable is dictkeys,

[issue38613] Optimize some set operations in dictkeys object

2019-10-28 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +16489 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16961 ___ Python tracker ___

[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

2019-10-28 Thread STINNER Victor
New submission from STINNER Victor : AMD64 FreeBSD Shared 3.8: https://buildbot.python.org/all/#builders/374/builds/10 This buildbot worker is known to be very slow. It became even slower recently. ERROR: test_communicate (test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests) --

[issue38600] Change the mark up of NULL

2019-10-28 Thread hai shi
hai shi added the comment: Ok, it's fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Richard Pausch
Change by Richard Pausch : -- components: +Unicode nosy: +ezio.melotti, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is an intentional feature: identifiers are normalised using NFKC normalization. py> from dis import dis py> dis(compile('ϕ=1', '', 'single')) 1 0 LOAD_CONST 0 (1) 3 STORE_NAME 0 (φ)

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Its also documented here: https://docs.python.org/3/reference/lexical_analysis.html#identifiers -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue38613] Optimize some set operations in dictkeys object

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How does it work with dict subclasses? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue38615] imaplib has no timeout setting

2019-10-28 Thread Jairo Llopis
New submission from Jairo Llopis : No way to pass a timeout to imaplib.IMAP4 or imaplib.IMAP4_SSL. When opening the connection, the only way is to use socket.settimeout(), which affects the global execution environment. It's interesting that poplib includes the needed timeout parameter instea

[issue38615] imaplib has no timeout setting

2019-10-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset e471e72977c83664f13d041c78549140c86c92de by Victor Stinner in branch 'master': bpo-37330: open() no longer accept 'U' in file mode (GH-16959) https://github.com/python/cpython/commit/e471e72977c83664f13d041c78549140c86c92de -- ___

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the review Serhiy ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38616] Using Py_XDECREF to replace Py_DECREF in PyAST_FromNodeObject()

2019-10-28 Thread hai shi
New submission from hai shi : `if (c.c_normalize) { Py_DECREF(c.c_normalize); }` --> `Py_XDECREF(c.c_normalize);` -- components: Interpreter Core messages: 355545 nosy: shihai1991 priority: normal severity: normal status: open title: Using Py_XDECREF to replace Py_DECREF in PyAST

[issue38616] Using Py_XDECREF to replace Py_DECREF in PyAST_FromNodeObject()

2019-10-28 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +16490 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16962 ___ Python tracker ___

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

2019-10-28 Thread Guido van Rossum
Guido van Rossum added the comment: You can bring the deprecation schedule up on discourse or python-dev so more folks can let us know whether they'd be okay with 3.9 or 3.10. -- ___ Python tracker

[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

2019-10-28 Thread hai shi
New submission from hai shi : 1) param is unpredictable; 2) the compiler_free() use Py_XDECREF(c->c_filename) in PyAST_CompileObject(); -- components: Interpreter Core messages: 355547 nosy: shihai1991 priority: normal severity: normal status: open title: Using Py_XINCREF to replace Py_

[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

2019-10-28 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +16491 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16963 ___ Python tracker ___

[issue38614] test_asyncio: test_communicate() failed on AMD64 FreeBSD Shared 3.8

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

[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()

2019-10-28 Thread hai shi
New submission from hai shi : I don't know why don't use refcount ` /* borrowed reference */ c.c_filename = filename; ` in https://github.com/python/cpython/blob/master/Python/ast.c#L786-L787 like ` Py_INCREF(filename); c.c_filename = filename; ` in https://github.com/python/cpython/blob/master

[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()

2019-10-28 Thread hai shi
hai shi added the comment: Due to victor add the desc(`/* borrowed reference */`) so noisy+ victor ;) -- nosy: +vstinner ___ Python tracker ___ ___

[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > Due to victor add the desc(`/* borrowed reference */`) I added the comment, but the code was always like that. In short, borrowed references are used to simply the implementation (avoid the need to DECREF on error) and/or for efficiency. I don't understan

[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because there is no need to use refcount. And there is no need to use refcount in compile.c too. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The filename argument must be non-NULL. The code that uses c_filename requires this. Py_XDECREF in compiler_free() could be replaced with Py_DECREF. But this is too tiny change which does not have significant effect. Actually both Py_INCREF and Py_XDECREF

[issue38619] [Doc] UUID.hex is lowercase

2019-10-28 Thread Felipe
New submission from Felipe : The hex property of `UUID` is implemented as `'%032x' % self.int` Is it specified that this will always be lowercase? If so, can we add a note to the documentation indicating so? -- assignee: docs@python components: Documentation, Library (Lib) messages: 3

[issue38616] Using Py_XDECREF to replace Py_DECREF in PyAST_FromNodeObject()

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both code are equivalent. There is reason to rewrite this. It would just increase code churn. -- nosy: +serhiy.storchaka resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python

[issue38619] [Doc] UUID.hex is lowercase

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are examples which show the hex is lowercase. I do not think a special note is needed. All conversions to hex are lowercase by default. If you need uppercase, you can use str.upper(). -- nosy: +serhiy.storchaka __

[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

2019-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28029] Replace and empty strings

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: The current behavior is really surprising. >>> "".replace("", "|") '|' >>> "".replace("", "|", -1) '|' vs >>> "".replace("", "|", 0) '' >>> "".replace("", "|", 1) '' >>> "".replace("", "|", 1000) '' I always expect "|". --- This behavior makes sense to me

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

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > I would expect that this basic usage is very popular. If the file doesn't > exist, the normal usage pattern fails in a confusing way: (...) Well, the configparser is well defined. As you wrote: "If a file named in filenames cannot be opened, that file will

[issue28029] Replace and empty strings

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: Well, in fact, I would expect that "".replace(...) would always return "": for any argument passed to replace(). -- ___ Python tracker ___ _

[issue37948] get_type_hints fails if there are un-annotated fields in a dataclass

2019-10-28 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure what can be done with this. The problem is that the decorator doesn't know what's in the caller's namespace. The type being added is "typing.Any". If the caller doesn't import typing, then get_type_hints will fail (as demonstrated here). The onl

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

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > There is a use case of this (which some of tools depends) about checking if > configuration exists and if not, raising an error. Now, they can solve this > by just adding check_exist argument. No, it can be solved by using open() and read_file(). It can

[issue38620] Shell python-config --includes returns the same path twice

2019-10-28 Thread STINNER Victor
New submission from STINNER Victor : When the shell script implementation of python-config was introduced, $PLATINCDIR variable was added: commit 874211978c8097b8e747c90fa3ff41aacabe340f Author: [email protected] Date: Sat Jan 26 11:39:31 2013 +0100 - Issue #16235: Implement python-confi

[issue28029] Replace and empty strings

2019-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What result would you expect of `"" in ""` and `"".count("")`? -- ___ Python tracker ___ ___ Py

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

2019-10-28 Thread Géry
Change by Géry : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

2019-10-28 Thread hai shi
hai shi added the comment: Got it, thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue38621] Bad decoding of encoded-words in unstructured email headers

2019-10-28 Thread Fred Drake
New submission from Fred Drake : I've encountered a problem parsing an email with this Subject: header: Subject: Be sure to redeem your =?utf-8?Q?$?=201.71 credit card reward certificate by the end of the year email._header_value_parser.get_unstructured defers to get_encoded_word, passing th

[issue38621] Bad decoding of encoded-words in unstructured email headers

2019-10-28 Thread Fred Drake
Fred Drake added the comment: It's worth noting that dealing with this header eventually causes the header parser to enter an infinite loop. -- ___ Python tracker ___ ___

[issue38621] Bad decoding of encoded-words in unstructured email headers

2019-10-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +maxking ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue28029] Replace and empty strings

2019-10-28 Thread STINNER Victor
STINNER Victor added the comment: > What result would you expect of `"" in ""` and `"".count("")`? I don't suggest to change these operator and method: >>> "" in "" True >>> "".count("") 1 -- ___ Python tracker

[issue38619] [Doc] UUID.hex is lowercase

2019-10-28 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, it's always guaranteed to be lowercase. I don't think it would hurt to mention lowercase briefly (like add just one word!). -- nosy: +eric.smith ___ Python tracker

[issue38519] Internal include files missing on Windows

2019-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +16493 pull_request: https://github.com/python/cpython/pull/16966 ___ Python tracker ___ __

[issue38519] Internal include files missing on Windows

2019-10-28 Thread Steve Dower
Steve Dower added the comment: New changeset edb172a87296d9359593a23cd9a09f5867ea1f0e by Steve Dower (Zackery Spytz) in branch 'master': bpo-38519: Internal include files missing on Windows (GH-16921) https://github.com/python/cpython/commit/edb172a87296d9359593a23cd9a09f5867ea1f0e

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

2019-10-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38618] Why not use refcount of c.c_filename in PyAST_FromNodeObject()

2019-10-28 Thread hai shi
hai shi added the comment: > I don't understand the purpose of this issue. The bug tracker is not the > right place to ask question. If you think that it's a bug, please explain how > to trigger the bug. Hi, victor. What i want to express is that the refcount operation of filename should be

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2019-10-28 Thread Brett Cannon
Brett Cannon added the comment: Can you provide a small reproducer? Otherwise the recursion check is mostly best effort if you have recursion in C code which never goes out to Python code where the recursion check is implemented. -- nosy: +brett.cannon __

[issue38611] ElementTree.ParseError does not implement SyntaxError interface as expected

2019-10-28 Thread Brett Cannon
Change by Brett Cannon : -- title: Bug in traceback.py -> ElementTree.ParseError does not implement SyntaxError interface as expected ___ Python tracker ___ __

[issue38519] Internal include files missing on Windows

2019-10-28 Thread miss-islington
miss-islington added the comment: New changeset 07eee640cb3a4eaf1df942bc31a891e7517de763 by Miss Skeleton (bot) in branch '3.8': bpo-38519: Internal include files missing on Windows (GH-16921) https://github.com/python/cpython/commit/07eee640cb3a4eaf1df942bc31a891e7517de763 -- nosy:

[issue17446] doctest test finder doesnt find line numbers of properties

2019-10-28 Thread daniel hahler
daniel hahler added the comment: The PR appears to need a better test according to https://github.com/python/cpython/pull/3419#issuecomment-350570083. -- nosy: +blueyed ___ Python tracker __

[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

2019-10-28 Thread Anthony Sottile
Anthony Sottile added the comment: should we backport a documentation change for this? (the deprecatedremoved says 4.0 currently) -- nosy: +Anthony Sottile ___ Python tracker ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-10-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +16494 pull_request: https://github.com/python/cpython/pull/16967 ___ Python tracker ___ _

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-10-28 Thread Steve Dower
Steve Dower added the comment: PR 16967 should fix the relative path resolution property, by joining with cwd if the original path is unprefixed and not absolute, and then joining with any symlink directories if their link is not absolute. -- ___

[issue38453] ntpath.realpath() does not fully resolve relative paths

2019-10-28 Thread Steve Dower
Steve Dower added the comment: I also had to special-case "realpath('nul')" to maintain the behaviour that we deliberately maintained in another bug, and I think isabs() should always return true for "\\?\" prefixed paths (given that join() will promote a "\\?\" prefixed path to the root).

[issue38589] Bad target address assigned in Python Manuals shortcut on Python installation

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

[issue38589] Bad target address assigned in Python Manuals shortcut on Python installation

2019-10-28 Thread Steve Dower
Steve Dower added the comment: Thanks. Turns out it's a typo that's been around forever, but is really not obvious until you install Windows somewhere other than C:\Windows. Apparently that's far less common than it used to be :) We'll get it fixed in the next round of releases. --

[issue38619] [Doc] UUID.hex is lowercase

2019-10-28 Thread Fred Drake
Fred Drake added the comment: While I don't know Felipe's use case, I would expect the documentation to be clear that the representation won't change in the future so users will know that this can be relied on to generate keys into some other persistent structure. -- nosy: +fdrake

[issue38597] C Extension import limit

2019-10-28 Thread Steve Dower
Steve Dower added the comment: There is an implicit cap due to the C runtime (specifically vcruntime140.dll) allocating fibre local storage on load, which seems like the one you are hitting. However, we discovered this before the first 3.5 release and fixed it. How are you compiling your pac

[issue38534] Version 3.8.0 has released with a wrong MS KB number reference

2019-10-28 Thread Steve Dower
Steve Dower added the comment: New changeset 794616f837c254c68d8384ab48fb78123a3c8a8b by Steve Dower (benedwards14) in branch 'master': bpo-38534: Replace wrong KB number references (GH-16955) https://github.com/python/cpython/commit/794616f837c254c68d8384ab48fb78123a3c8a8b --

[issue38534] Version 3.8.0 has released with a wrong MS KB number reference

2019-10-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +16496 pull_request: https://github.com/python/cpython/pull/16969 ___ Python tracker ___ __

[issue38534] Version 3.8.0 has released with a wrong MS KB number reference

2019-10-28 Thread Steve Dower
Steve Dower added the comment: Thanks for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue34938] Fix mimetype.init() to account for from import

2019-10-28 Thread Ashley Whetter
Ashley Whetter added the comment: Maybe updating the dictionaries isn't right at all. I think if you were experienced enough you would have the intuition that mutable attributes like this are not going to change in your local scope if you import them into it. But relying on this knowledge mak

[issue38534] Version 3.8.0 has released with a wrong MS KB number reference

2019-10-28 Thread miss-islington
miss-islington added the comment: New changeset a4ee7abd2056c4956df45125fcf451a531247017 by Miss Skeleton (bot) in branch '3.8': bpo-38534: Replace wrong KB number references (GH-16955) https://github.com/python/cpython/commit/a4ee7abd2056c4956df45125fcf451a531247017 -- nosy: +miss-

[issue38622] _ctypes.dlsym (py_dl_sym) does not trigger audit hooks

2019-10-28 Thread tholl
New submission from tholl : The dlsym operation generally (e.g. when done through a ctypes.CDLL object) triggers the "ctypes.dlsym" audit event. However, using _ctypes.dlsym directly does not trigger this event. This appears to be an oversight, given that _ctypes.dlopen *does* trigger the "ct

[issue38615] imaplib has no timeout setting

2019-10-28 Thread Eric V. Smith
Eric V. Smith added the comment: I think this is a reasonable request. It would have to be a 3.9 feature. Perhaps some code (and tests) can be stolen from poplib. -- nosy: +eric.smith stage: -> needs patch versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 __

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-10-28 Thread Netzeband
Netzeband added the comment: Hello, I'm very sorry, I was not able to find the time to finish the patch in the quality I wanted to have. So @benedwards14 please feel free to provide a pull request. Best regards, André -- ___ Python tracker

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

2019-10-28 Thread Ian Good
Ian Good added the comment: #36889 was reverted, so this is not resolved. I'm guessing this needs to be moved to 3.9 now too. Is my original PR worth revisiting? https://github.com/python/cpython/pull/13143/files -- resolution: fixed -> status: closed -> open __

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

2019-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think it should be closed; Yuri thinks that current streams API is frozen for the sake of shiny brand new streams (don't exist yet). -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue38599] Deprecate creation of asyncio object when the loop is not running

2019-10-28 Thread Berry Schoenmakers
Berry Schoenmakers added the comment: The current implementation of asyncio.run() is focused quite a bit on one-shot use. After the call returns, the default event loop is even gone: calling asyncio.get_event_loop() gives "RuntimeError: There is no current event loop in thread 'MainThread'."

[issue38599] Deprecate creation of asyncio object when the loop is not running

2019-10-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It would be nice if asyncio.run() uses the default loop if it's available > (and not running), and that the default loop remains intact after the call > returns. Unfortunately it's not possible to implement that reliably and without a bunch of surprising

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

2019-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I agree with closing this. I already changed my mind from my earlier comment and decided that IDLE should maybe switch to using open and read_file in different places, for the reasons given above. It might make testing without depending on a local co

[issue31026] test_dbm fails when run directly

2019-10-28 Thread Larry Hastings
Larry Hastings added the comment: For what it's worth, I'm cherry-picking this back into 3.5 for 3.5.8 final. I (finally?) got bit by this, and since the patch is literally only changes in the Lib/test directory I consider it safe to merge even after 3.5.8rc2. (I was in a bit of a hurry, I

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-28 Thread Cooper Lees
Cooper Lees added the comment: Updated PR to use venv.ini. Will fix any CI errors encountered. -- ___ Python tracker ___ ___ Python

[issue32092] mock.patch with autospec does not consume self / cls argument

2019-10-28 Thread Phil Connell
Change by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

  1   2   >