[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread Michael Felt
Michael Felt added the comment: Fantastic! Many thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: POWER6 AIX 3.x and PPC64 AIX 3.x buildbots are back to green. -- ___ Python tracker ___ ___

[issue39936] Python fails to build _asyncio on module on AIX

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 224481a8c988fca12f488544edd2f01c0af2a91d by Victor Stinner in branch 'master': bpo-39947: Move Py_EnterRecursiveCall() to internal C API (GH-18972) https://github.com/python/cpython/commit/224481a8c988fca12f488544edd2f01c0af2a91d --

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: As a note, externally I have to use it in pydevd to set the tracing for different threads -- i.e.: https://bugs.python.org/issue35370 Will that still be possible? -- nosy: +fabioz ___ Python tracker

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-13 Thread Steve Dower
Steve Dower added the comment: New changeset c05e491a69df3fe0a8be91eeddd330792ada6755 by Steve Dower in branch '3.7': bpo-39930: Fix MSBuild detection for Build Tools (GH-18938) https://github.com/python/cpython/commit/c05e491a69df3fe0a8be91eeddd330792ada6755 --

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: Can't you use PyEval_SetTrace()? https://docs.python.org/dev/c-api/init.html#c.PyEval_SetTrace -- nosy: +vstinner ___ Python tracker ___

[issue39954] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2020-03-13 Thread STINNER Victor
New submission from STINNER Victor : It started to at build 385 or 386. AMD64 FreeBSD Shared 3.x: https://buildbot.python.org/all/#/builders/152/builds/391 == FAIL: test_specific_shell

[issue39955] argparse print_help breaks when help is blank space

2020-03-13 Thread Ying Zhang
New submission from Ying Zhang : Code is attached. Comments in line. from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter parser1 = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter) parser1.add_argument('--foo',

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 18975 adds _PyEval_SetTrace(tstate, func, arg) function. It requires that the caller holds the GIL. The function calls PySys_Audit() in the context of the current thread state (not in "tstate"). --

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3f2f4fefca388bc62fc2a7d07cb6ef24197c84bd by Victor Stinner in branch 'master': bpo-39947: Move get_recursion_depth() to _testinternalcapi (GH-18974) https://github.com/python/cpython/commit/3f2f4fefca388bc62fc2a7d07cb6ef24197c84bd --

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: > As a note, externally I have to use it in pydevd to set the tracing for > different threads -- i.e.: https://bugs.python.org/issue35370 Will that still > be possible? My intent is not to prevent third-party C extension modules to modify PyThreadState,

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: I'd like to, but it only sets the tracing to the currently running thread (the request is for setting the tracing for other threads). Just for info, the problem I'm solving is that the debugger is multi-threaded, but the user can start the code without any

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: >> Note: currently there is a way to achieve that by pausing all the threads >> then selectively switching to a thread to make it current and setting the >> tracing function using the C-API (see: >>

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Maybe better would be the thread id so that the tstate structure is not needed there. -- ___ Python tracker ___

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Provide API to set the tracing function to be used for running threads. -> Add _PyEval_SetTrace(tstate, func, arg) function versions: +Python 3.9 -Python 3.8 ___ Python tracker

[issue39862] Why are the union relationships not implemented by default for ≤ and ≥?

2020-03-13 Thread Géry
Géry added the comment: More precisely: The following relationships are always valid and therefore implemented by default in Python (_except for the union relationships, which seems arbitrary and is the reason of this Python issue_): - 2

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18323 pull_request: https://github.com/python/cpython/pull/18974 ___ Python tracker ___

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: > Maybe better would be the thread id so that the tstate structure is not > needed there. PyInterpreterState.tstate_head allows to iterate on all thread states, but I'm not aware of an API to get a PyThreadState from its identifier (tstate->id). -- See

[issue1021318] PyThreadState_Next not thread safe

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35370: "Add _PyEval_SetTrace(tstate, func, arg) function". -- ___ Python tracker ___

[issue39953] Let's update ssl error codes

2020-03-13 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: As a note, the workaround is now in https://github.com/fabioz/PyDev.Debugger/blob/pydev_debugger_1_9_0/pydevd_attach_to_process/common/py_settrace_37.hpp#L150 -- ___ Python tracker

[issue39954] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: It looks like an installation issue: % /usr/local/bin/bash -c "" ld-elf.so.1: Shared object "libncurses.so.8" not found, required by "bash" -- ___ Python tracker

[issue39953] Let's update ssl error codes

2020-03-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +alex, christian.heimes, dstufft, janssen ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: > Note: currently there is a way to achieve that by pausing all the threads > then selectively switching to a thread to make it current and setting the > tracing function using the C-API (see: >

[issue39954] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35370] Provide API to set the tracing function to be used for running threads.

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18324 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18975 ___ Python tracker ___

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: I'm iterating on all threads and getting its thread id to find out the thread state (in my use case) and then doing what you just did there... So, while this solution does work for me, if the idea is making tstate opaque, then having (an optional) thread id

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: Fabio: I added _PyEval_SetProfile() and _PyEval_SetTrace() which take a tstate parameter. These functions have a constraint: the caller must hold the GIL. Is it an acceptable constraint for you? That's not something new, it's already the code in Python 3.8,

[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: I close this very old issue (15 years old!). Thank you *very much* to everybody who was involved in helping to get it fixed! If I forgot someone, comment this issue or open a new one. There is one last minor issue, but there is already a dedicated issue:

[issue39330] Way to build without IDLE

2020-03-13 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1294959] Add sys.platlibdir to use /usr/lib64 on Fedora and SuSE

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: Miro Hrončok ran rpmdiff to compare the Fedora with the old downstream patches and with the new upstream commit 8510f430781118d9b603c3a2f06945d6ebc5fe42: compare the Python package with and without setup.py changes.

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset ff4584caca04cb3da0dbd5b1e9bf67e40adf5312 by Victor Stinner in branch 'master': bpo-39947: Use _PyInterpreterState_GET_UNSAFE() (GH-18978) https://github.com/python/cpython/commit/ff4584caca04cb3da0dbd5b1e9bf67e40adf5312 --

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: sock_decode_hostname() of socketmodule.c currently uses PyUnicode_DecodeFSDefault() on Windows. PyUnicode_DecodeFSDefault() uses UTF-8 by default (PEP 529). I understand that the ANSI code page should be used instead of UTF-8. Would it work to use

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: > PyEval_SetTrace() and PyEval_SetProfile() function have no return value but > can raise an exception. I'm not comfortable about these functions. Maybe one > option would be to call PyErr_WriteUnraisable() on PySys_Audit() error. It > might be better than

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-13 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18328 pull_request: https://github.com/python/cpython/pull/18980 ___ Python tracker ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset be79373a78c0d75fc715ab64253c9b757987a848 by Victor Stinner in branch 'master': bpo-39947: Add PyInterpreterState_Get() function (GH-18979) https://github.com/python/cpython/commit/be79373a78c0d75fc715ab64253c9b757987a848 --

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2020-03-13 Thread Jimmy Lai
Jimmy Lai added the comment: Just found Guido mentioned LibCST. Here is a quick overview: 1. LibCST is an open source Python concrete syntax tree parser. It provides a CST looks like and feel like AST. 2. It's built by Instagram for linter and refactoring tools (exact use cases what Łukasz

[issue39955] argparse print_help breaks when help is blank space

2020-03-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39930] Embedded installer for Python 3.7.7 missing vcruntime140.dll

2020-03-13 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: I tested to build numpy with an opaque PyThreadState. First issue, Plex gets the current interpreter using PyThreadState.interp: /tmp/pip-install-aq60p8w2/Cython/Cython/Plex/Scanners.c:7447:73: erreur: déréférencement d'un pointeur du type incomplet « 

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18325 pull_request: https://github.com/python/cpython/pull/18977 ___ Python tracker ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 38965ec5411da60d312b59be281f3510d58e0cf1 by Victor Stinner in branch 'master': bpo-39947: Hide implementation detail of trashcan macros (GH-18971) https://github.com/python/cpython/commit/38965ec5411da60d312b59be281f3510d58e0cf1 --

[issue39330] Way to build without IDLE

2020-03-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Holding the GIL is a reasonable constraint. As a note, the original request was for a Python-level tracing function (so that in the future other Python implementations also provide that function) -- does this need a PEP? --

[issue39952] Using VS2019 to automatically build Python3 and it failed to build

2020-03-13 Thread Zachary Ware
Zachary Ware added the comment: (FTR, removing yourself from the "nosy list" means you won't get any responses to your issue, so I've added you back :)) This appears to be a problem with building Tcl/Tk. If you don't need the tkinter module, you can try adding the `--no-tkinter` flag to

[issue39956] Numeric Literals vs string "1_1" on input int() or float() or literal_eval

2020-03-13 Thread zd nex
New submission from zd nex : So currently if python code contains 1_1 it is handled as number 11. When user uses int("1_1") it also creates 11 and when ast.literal_eval is used it is also created instead of string. How can user get SyntaxError input on int or literal_eval with obviously

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9ee88cde1abf7f274cc55a0571b1c2cdb1263743 by Dong-hee Na in branch 'master': bpo-37207: Use PEP 590 vectorcall to speed up tuple() (GH-18936) https://github.com/python/cpython/commit/9ee88cde1abf7f274cc55a0571b1c2cdb1263743 -- nosy:

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 309d7cc5df4e2bf3086c49eb2b1b56b929554500 by Victor Stinner in branch 'master': bpo-35370: Add _PyEval_SetTrace() function (GH-18975) https://github.com/python/cpython/commit/309d7cc5df4e2bf3086c49eb2b1b56b929554500 --

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18326 pull_request: https://github.com/python/cpython/pull/18978 ___ Python tracker ___

[issue39955] argparse print_help breaks when help is blank space

2020-03-13 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: PyEval_SetTrace() and PyEval_SetProfile() function have no return value but can raise an exception. I'm not comfortable about these functions. Maybe one option would be to call PyErr_WriteUnraisable() on PySys_Audit() error. It might be better than

[issue39955] argparse print_help breaks when help is blank space

2020-03-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems to be a duplicate of issue2 -- nosy: +xtreak ___ Python tracker ___ ___

[issue36144] Dictionary union. (PEP 584)

2020-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 6d674a1bf456945eb758e85c11484a9f1494f2b4 by Brandt Bucher in branch 'master': bpo-36144: OrderedDict Union (PEP 584) (#18967) https://github.com/python/cpython/commit/6d674a1bf456945eb758e85c11484a9f1494f2b4 --

[issue36144] Dictionary union. (PEP 584)

2020-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d648ef10c5c7659ed3c9f34d5c751dc55e2c6007 by Charles Burkland in branch 'master': bpo-36144: Update os.environ and os.environb for PEP 584 (#18911) https://github.com/python/cpython/commit/d648ef10c5c7659ed3c9f34d5c751dc55e2c6007 --

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18327 pull_request: https://github.com/python/cpython/pull/18979 ___ Python tracker ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18329 pull_request: https://github.com/python/cpython/pull/18981 ___ Python tracker ___

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2020-03-13 Thread Steve Dower
Steve Dower added the comment: I think PyUnicode_DecodeMBCS(name, strlen(name), "surrogatepass") captures the intention better, and is less likely to break in the future (apart from all the ways it's currently broken :) ) You should be right about the workaround too. --

[issue39956] Numeric Literals vs string "1_1" on input int() or float() or literal_eval

2020-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can validate the input before using it. if '_' in s: raise ValueError or if not re.fullmatch('[0-9]+', s): raise ValueError Do you want to accept "۱۲۳۴" or " 12 "? If not then validate the input before using int(). Also, do not

[issue39957] bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy around dict

2020-03-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39956] Numeric Literals vs string "1_1" on input int() or float() or literal_eval

2020-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I prefer what we have now. The language is consistent across script input, int(), and literal_eval(). In my courses, I haven't encountered any issues with Python allowing "1_1". The actual problem my learners encounter is the need to strip commas

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-03-13 Thread Matthias Braun
New submission from Matthias Braun : This is about an extension type created via `PyType_FromSpec` that overrides `tp_setattro` (minimal example attached). In this case cpython does not let me grab and use the `__setattr__` function "manually". Example: ``` >>> import demo >>> mytype_setattr

[issue39958] Deadlock in _PyInterpreterState_DeleteExceptMain with HEAD_LOCK(runtime)

2020-03-13 Thread Atle Solbakken
Atle Solbakken added the comment: By "manually" clearing/deleting any interpreter states from non-main thread states prior to running (PyOS_AfterForkChild()), the deadlock does not occur. // With tstate_orig being a PyThreadState which is not main: PyInterpreterState *istate =

[issue39959] (Possible) bug on multiprocessing.shared_memory

2020-03-13 Thread Diogo Flores
New submission from Diogo Flores : Hello, I came across with what seems like a bug (or at least a disagreement with the current documentation). Discussion: I expected that after creating a numpy-array (on terminal 1), which is backed by shared memory, I would be able to use it in other

[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-03-13 Thread szb512
Change by szb512 : -- keywords: +patch nosy: +sdcards nosy_count: 9.0 -> 10.0 pull_requests: +18330 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18982 ___ Python tracker

[issue39957] bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy

2020-03-13 Thread Jens Reidel
New submission from Jens Reidel : Hi guys, compiling CPython from the master branch will result in a git history with the commit https://github.com/python/cpython/commit/211055176157545ce98e6c02b09d624719e6dd30 included and in Lib/inspect.py, however the return type is still like before

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8fb02b6e1942811c8d81041e7df3f5f1f4b1d410 by Victor Stinner in branch 'master': bpo-39947: Add PyThreadState_GetInterpreter() (GH-18981) https://github.com/python/cpython/commit/8fb02b6e1942811c8d81041e7df3f5f1f4b1d410 --

[issue39957] bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy around dict

2020-03-13 Thread Jens Reidel
Change by Jens Reidel : -- title: bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy -> bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy around dict ___ Python tracker

[issue39958] Deadlock in _PyInterpreterState_DeleteExceptMain with HEAD_LOCK(runtime)

2020-03-13 Thread Atle Solbakken
New submission from Atle Solbakken : In _PyInterpreterState_DeleteExceptMain() aqcuires lock with HEAD_LOCK(runtime). With the lock still held and if a interpreter state is to be cleared, _PyInterpreterState_Clear() is called. HEAD_LOCK(runtime) is then called again (from within Clear()),

[issue39957] bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy around dict

2020-03-13 Thread Jens Reidel
Jens Reidel added the comment: Just to show the types are inequal: Without patch file: >>> inspect.signature(lambda x: None).parameters mappingproxy({'x': }) With patch file: >>> inspect.signature(lambda x: None).parameters mappingproxy(OrderedDict([('x', )])) --

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Cezary Wagner added the comment: I do some test and bu exist in 3.8/3.7 but not in no bug in PyPy3.6/Python2.7. -- title: Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy2.6/Python2.7) -> Wrong file.tell() function results (Windows 10/Python 64

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy2.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Change by Cezary Wagner : -- title: Wrong tell function results (Windows 10/Python 64 3.8.2) -> Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy2.6/Python2.7) ___ Python tracker

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Tim Peters
Tim Peters added the comment: Good to know, Eryk - thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39883] Use BSD0 license for code in docs

2020-03-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: What is the complication? The Python license is already rather permissive. Anyway, there is a n...@mail.python.org address for trademark issues, listed on the site, and it might be appropriate for license legal questions also. Or this might be a question

[issue39948] Python 3.8 unconditionally uses functions not available on OS X 10.4 and 10.5

2020-03-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: For current releases, which only provide 64-bit binaries, 10.9 is the lated supported version. See https://www.python.org/downloads/release/python-377/ for example. I believe this should be closed. -- nosy: +terry.reedy

[issue39937] Suggest the usage of Element.iter() instead of iter() in whatsnew

2020-03-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue39962] Wrong tell function results (Windows 10/Python 64 3.8.2)

2020-03-13 Thread Cezary Wagner
Change by Cezary Wagner : -- title: Wrong tell function results. -> Wrong tell function results (Windows 10/Python 64 3.8.2) ___ Python tracker ___

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Tim Peters
Tim Peters added the comment: Sorry, but there is no documented relationship between byte offsets and tell() results for text-mode files in Windows: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/ftell-ftelli64?view=vs-2019 --

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-03-13 Thread Inada Naoki
Inada Naoki added the comment: I'm sorry about merging PR 18327, but I can not find enough usage example of the _PyUnicode_GetUTF8Buffer. PyUnicode_AsUTF8AndSize is optimized, and utf8_cache is not so bad in most case. So _PyUnicode_GetUTF8Buffer seems not worth enough. I will revert PR

[issue39937] Suggest the usage of Element.iter() instead of iter() in whatsnew

2020-03-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 7a5cbc72988aee668816be9d1ef44c0cb4081ff6 by Rahul Kumaresan in branch 'master': bpo-39937: Improve suggestions for removal of getchildren and getiterator in changelog (GH-18937)

[issue39961] warning: this use of "defined" may not be portable (Mac OS)

2020-03-13 Thread Clem Wang
New submission from Clem Wang : pyenv install 3.8.2 results in: BUILD FAILED (OS X 10.15.3 using python-build 20180424) Inspect or clean up the working tree at /var/folders/jy/10md97xn3mz_x_b42l1r2r8cgp/T/python-build.20200313154805.37448 Results logged to

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Cezary Wagner added the comment: Let's test it now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Eryk Sun
Eryk Sun added the comment: > Sorry, but there is no documented relationship between byte > offsets and tell() results for text-mode files in Windows: The I/O stack in Python 3 does not use C FILE streams, and this issue is not related to Windows. TextIOWrapper.tell returns a "cookie" based

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-03-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset c7ad974d341d3edb6b9d2a2dcae4d3d4794ada6b by Inada Naoki in branch 'master': bpo-39087: Add _PyUnicode_GetUTF8Buffer() (GH-17659) https://github.com/python/cpython/commit/c7ad974d341d3edb6b9d2a2dcae4d3d4794ada6b --

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-03-13 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +18333 pull_request: https://github.com/python/cpython/pull/18985 ___ Python tracker ___

[issue39963] Subclassing slice objects

2020-03-13 Thread Mario de OOurtzborun
New submission from Mario de OOurtzborun : Is there any reason why slice objects aren't subclassable? I want a mutable slice object, but there is no way to create one that will work with lists or tuples. And __index__ method requires to return int. I want to prepare a git merge request about

[issue39962] Wrong tell function results.

2020-03-13 Thread Cezary Wagner
Cezary Wagner added the comment: Some good snippet for testing very short. with open('../s01_parser_eval/data/out-6976.txt') as pgn: pgn.seek(1008915299) while True: pgn.readline() print(pgn.tell()) 1008915327 1008915366 1008915387 1008915409 1008915425 1008915449

[issue39957] bpo39775 not fixed - inspect.Signature.parameters still dict/mappingproxy around dict

2020-03-13 Thread Inada Naoki
Inada Naoki added the comment: Would you create a pull request? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39954] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2020-03-13 Thread Kubilay Kocak
Kubilay Kocak added the comment: Updated FreeBSD CURRENT base, which removed libncurses. The bash port installation needed to be rebuilt. @Victor Can tests be skipped on the basis of required dependencies failing to load/run? -- status: open -> pending

[issue39959] (Possible) bug on multiprocessing.shared_memory

2020-03-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39962] Wrong tell function results.

2020-03-13 Thread Cezary Wagner
New submission from Cezary Wagner : I wrote code which scan very large file PGN (chess games database). But I found that tell() function is buggy see results. Here is some code: with open('../s01_parser_eval/data/out-6976.txt') as pgn: is_game_parsed =

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Cezary Wagner added the comment: Really really strange but it works :) "an opaque number when in text mode." -> so it is Windows C libraries. I use it in production code too so my heart speed up when I see number but it works as you said. It looks complicated/slow if I have to open file in

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Cezary Wagner added the comment: Thank you for very good explanation. It was hard to understand. I am programming a lot (++10 years) in many language but I still learning new things. -- ___ Python tracker

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-03-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +18331 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18983 ___ Python tracker

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Cezary Wagner
Change by Cezary Wagner : -- components: +IO, Interpreter Core, Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.7 ___ Python tracker ___

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Eric V. Smith
Eric V. Smith added the comment: tell() is opaque when opening a text file: you can't interpret the output, its only use is for input to seek(). >From the docs >https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects: "f.tell() returns an integer giving the file object’s

[issue39962] Wrong file.tell() function results (Windows 10/Python 64 3.8.2/3.7 - no bug in PyPy3.6/Python2.7)

2020-03-13 Thread Tim Peters
Tim Peters added the comment: This is very well known on Windows, and the behavior is inherited from the Windows C libraries. If you need a byte count instead, then - as the docs already say - you need to open the file in binary mode instead. -- nosy: +tim.peters

[issue39087] [C API] No efficient C API to get UTF-8 string from unicode object.

2020-03-13 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +18332 pull_request: https://github.com/python/cpython/pull/18984 ___ Python tracker ___

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-03-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: