[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

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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 ___

[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

[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 ___

[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)

[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:

[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`

[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

[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,

[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

[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: 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:

[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 ___

[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 ___

[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

[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

[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

[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

[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

[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:

[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 ___

[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 ___

[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

[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.

[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

[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
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

[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

[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

[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

[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;

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, closing as duplicate although I prefer to track the leaks in different issues for organizational pourposes. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Yes, We can track it under here: https://bugs.python.org/issue32604#msg369454 Following up when my schedule improves this week. -- ___ Python tracker

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Please, don't remove these as I use them often to track down memory usage in > a similar way as Inada-san. Ok, sure. I close my issue and I closed my PR. Note: Maybe your advanced usage of statistics on memory allocators should be documented somewhere in

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Issue already reported at https://bugs.python.org/issue32604#msg369454 -- ___ Python tracker ___

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40783] test_interpreters test_interpreters leaked [216, 216, 216] references

2020-05-26 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/394/builds/94 .. test_interpreters leaked [216, 216, 216] references, sum=648 test_interpreters leaked [84, 84, 84] memory blocks, sum=252 1 test failed again: test_interpreters --

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, don't remove these as I use them often to track down memory usage in a similar way as Inada-san. -- ___ Python tracker ___

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

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: Created a PR with a tentative fix. It still needs regression tests; working on those. -- ___ Python tracker ___

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

2020-05-26 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +19692 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20435 ___ Python tracker ___

[issue40771] python3 fromtimestamp generates OSError

2020-05-26 Thread Jim Carroll
Jim Carroll added the comment: My bad. I read the docs, but mistakenly believed platform support meant OS. I figured since Windows maketh then Windows should taketh. I've spent the day studying the _datetimemodule.c code and now realize my error. Question -- it seems to me an unnecessary

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Should be fixed by https://github.com/python/cpython/pull/20429 -- ___ Python tracker ___ ___

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

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: For completeness, here's the output using just format, which I prefer over str.format because there's less going on: it removes all of the str.format machinery and basically directly calls obj.__format__. >>> format(1504, '.3g') '1.5e+03' >>> format(1505,

[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 : -- keywords: +patch pull_requests: +19691 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20434 ___ Python tracker

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread Inada Naoki
Inada Naoki added the comment: I use it often when I investigate memory usage. It provides some useful information even in release Python build. For example: * Which size class is most allocated? * How many block are allocated? * Which size class have most free blocks? (e.g. Inner

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > I use it often when I investigate memory usage. Oh. If you use it, we should keep the feature :-) -- ___ Python tracker ___

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

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: This appears to go all the way down to _Py_dg_dtoa, which in mode 3 is supposed to suppress trailing zeros. I'll dig in and see if I can find a fix. (Assigning to me so that I don't forget it, but I also don't want to block anyone else - if anyone else

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-26 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +19690 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20433 ___ Python tracker ___

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

2020-05-26 Thread James Barrett
New submission from James Barrett : As discussed in < https://github.com/python/typeshed/issues/3999#issuecomment-634097968 > the type of `AbstractEventLoop.run_in_executor` is defined at < https://github.com/python/cpython/blob/master/Lib/asyncio/events.py#L286 > as follows: ``` async def

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

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 578c3955e0222ec7b3146197467fbb0fcfae12fe by Serhiy Storchaka in branch 'master': bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636) https://github.com/python/cpython/commit/578c3955e0222ec7b3146197467fbb0fcfae12fe

[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'm starting it if anyone else already prepared a patch. -- ___ Python tracker ___ ___

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

2020-05-26 Thread Mark Dickinson
Mark Dickinson added the comment: Very interesting. Agreed that this looks like a bug. It affects old-style formatting, too: >>> "%.3g" % 1503 '1.5e+03' >>> "%.3g" % 1504 '1.5e+03' >>> "%.3g" % 1505 '1.50e+03' -- versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9

[issue19500] ftplib: Add client-side SSL session resumption

2020-05-26 Thread Florian Wickert
Florian Wickert added the comment: Using vsftpd 3.0.3 with ssl_enable=YES and require_ssl_reuse=YES I get the following error when I try to upload a file with conn.storbinary(): FTP command: Client "192.168.178.115", "STOR something.bin" FTP response: Client "192.168.178.115", "150 Ok to

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

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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: Is there anyone interested to implement this change in Python 3.10? -- ___ Python tracker ___

[issue40601] [C API] Hide static types from the limited C API

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Technically, it is not, see > https://www.python.org/dev/peps/pep-0384/#structures > Structures like PyLong_Type are *not* part of the limited API. The symbol is exported by libpython: $ objdump -T /lib64/libpython3.8.so.1.0|grep PyLong_Type

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 1c88bf8541e6fa292f1578144add17d3672c5fcf by Miss Islington (bot) in branch '3.9': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/1c88bf8541e6fa292f1578144add17d3672c5fcf

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 285ff63351bb5a42099527c283f65434e761be83 by Miss Islington (bot) in branch '3.8': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/285ff63351bb5a42099527c283f65434e761be83

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

2020-05-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: FWIW, which is probably not much with ".g" formatting, this is how Decimal behaves: >>> from decimal import Decimal as D >>> format(D(1504), '.3g') '1.50e+3' >>> format(D(1505), '.3g') '1.50e+3' >>> format(D(1506), '.3g') '1.51e+3' >>> format(D(1504.0),

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

2020-05-26 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
New submission from STINNER Victor : I never used sys._debugmallocstats() function or PYTHONMALLOCSTATS environment variable, whereas I spend significant time on optimizing memory allocators and free lists. The output is written into stderr which is very convenient to process these data. I

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

2020-05-26 Thread Tal Einat
Tal Einat added the comment: Can someone talk about the reasoning behind the nested Tk mainloop? I haven't managed to find anything useful in code comments and such. Guido? -- ___ Python tracker

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: "Recent" changes in builtin Python debug tools. * In Python 3.9, I removed the "COUNT_ALLOCS" special build: bpo-39489. * Debug build of Python 3.8 is now ABI compatible with release build: I disabled Py_TRACE_REFS macro by default in --with-pydebug build.

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

2020-05-26 Thread Tal Einat
Tal Einat added the comment: This seems to be at least partly intentional: When waiting for user input, IDLE starts a nested Tk mainloop (!), which is stopped by the end-of-line handler. It seems to me that this is what is causing displaying other outputs to be delayed. --

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread Tal Einat
Tal Einat added the comment: Thanks for fixing this, Ido! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 8ad052464a4e0aef9a11663b80f187087b773592 by Arturo Escaip in branch 'master': bpo-40756: Default second argument of LoggerAdapter.__init__ to None (GH-20362) https://github.com/python/cpython/commit/8ad052464a4e0aef9a11663b80f187087b773592

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +19688 pull_request: https://github.com/python/cpython/pull/20431 ___ Python tracker

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19689 pull_request: https://github.com/python/cpython/pull/20432 ___ Python tracker ___

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset db098bc1f05bd0773943e59f83489f05f28dedf8 by idomic in branch 'master': bpo-39244: multiprocessing return default start method first on macOS (GH-18625) https://github.com/python/cpython/commit/db098bc1f05bd0773943e59f83489f05f28dedf8 --

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: INADA-san, Antoine, Serhiy, Pablo: did any of you used this feature recently? Is it useful for your hacks? -- nosy: +inada.naoki, pablogsal, pitrou, serhiy.storchaka ___ Python tracker

[issue40781] Remove sys._debugmallocstats() function and PYTHONMALLOCSTATS environment variable

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19687 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20430 ___ Python tracker ___

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

2020-05-26 Thread Tomasz Pytel
Tomasz Pytel added the comment: I am on 3.8.1 and you are right this is the same as #39235 so please disregard. -- ___ Python tracker ___

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

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: For more context, see also bpo-39235. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

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

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

2020-05-26 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: What version are you using, 3.8? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-05-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19686 pull_request: https://github.com/python/cpython/pull/20429 ___ Python tracker ___

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread Dong-hee Na
Dong-hee Na added the comment: Victor will convert the macros to the functions. So this change will be included in his PR. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2020-05-26 Thread David Chambers
New submission from David Chambers : According to https://docs.python.org/3/library/string.html#format-specification-mini-language, “insignificant trailing zeros are removed from the significand” when 'g' is specified. I encountered a situation in which a trailing zero is not removed: $

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

2020-05-26 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40778] Updating Py_REFCNT and Py_SIZE to use _PyObject_CAST_CONS

2020-05-26 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19685 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20428 ___ Python tracker ___

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

2020-05-26 Thread Tomasz Pytel
New submission from Tomasz Pytel : When calling a function with a single argument which is an unparenthesized generator expression the end column for the AST node is incorrect, it is one greater than the start of the function call parentheses where I assume it should be one past the closing

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Jakub Stasiak
Jakub Stasiak added the comment: Cheers for backporting this, Tal, you beat me to it! -- ___ Python tracker ___ ___

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 500cd89ecce97750a1af32d4097d9945b7296bac by Miss Islington (bot) in branch '3.9': bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832)

[issue39321] AMD64 FreeBSD Non-Debug 3.x: out of swap space (test process killed by signal 9)

2020-05-26 Thread STINNER Victor
STINNER Victor added the comment: Oh. I'm not sure that it works as expected :-( AMD64 FreeBSD Non-Debug 3.x build 804, Finished 18 minutes ago: https://buildbot.python.org/all/#/builders/214/builds/804 0:33:28 load avg: 4.64 [329/425/1] test_code_module passed -- running:

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset 3f215f35bdb9d666f5a692fc60f800da1bb1e4a9 by Tal Einat in branch '3.7': [3.7] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/3f215f35bdb9d666f5a692fc60f800da1bb1e4a9

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-26 Thread Tal Einat
Tal Einat added the comment: New changeset e3e800f3d28881cc9de38cd9bcbcf8fbdea238a6 by Tal Einat in branch '3.8': [3.8] bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/e3e800f3d28881cc9de38cd9bcbcf8fbdea238a6

[issue40754] ModuleNotFoundError: No module named '_testinternalcapi' under Win10

2020-05-26 Thread honglei jiang
honglei jiang added the comment: == Tests result: FAILURE == 357 tests OK. 24 tests failed: test__locale test_array test_buffer test_capi test_deque test_exceptions test_flufl test_grammar test_itertools test_locale test_memoryio test_ordered_dict test_parser test_pickle

  1   2   >