[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-12 Thread Steve Dower
Steve Dower added the comment: "tp_print" has been marked as reserved for all of Python 3. To me, that means deprecated and do not use. (But perhaps that ought to have been properly defined in the docs?) Cython should not be using this field directly. If all they're doing is setting it to N

[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-12 Thread Steve Dower
Steve Dower added the comment: > Jeroen Demeyer proposed PR 14009 to fix the source compatibility: > > #define tp_print tp_vectorcall This is a terrible idea, FWIW. Please don't do this. -- nosy: +ncoghlan ___ Python tracker

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is expanduser : https://docs.python.org/3/library/pathlib.html#pathlib.Path.expanduser. os.path.expanduser also accepts a path like object. Is this report different from these two functions? -- nosy: +xtreak ___

[issue37130] pathlib does not handle '..' directory

2019-06-12 Thread N.P. Khelili
Change by N.P. Khelili : -- keywords: +patch pull_requests: +13887 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/14022 ___ Python tracker

[issue37130] pathlib does not handle '..' directory

2019-06-12 Thread N.P. Khelili
N.P. Khelili added the comment: After digging the question,I'd rather go for a minimal change. - setting .name to '' for '..' - let it be known in the doc - special-casing Path('..').stem (to keep the old behaviour) - update tests More could be done, but I don't feel like rewriting too much o

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Andrea Moro added the comment: I have completely missed it. Thanks for flagging it. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37201] fix test_distutils failures for Windows ARM64

2019-06-12 Thread Steve Dower
Steve Dower added the comment: New changeset daf62627518ad97ce66a48c49496aa0573cf0731 by Steve Dower (Paul Monson) in branch 'master': bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902) https://github.com/python/cpython/commit/daf62627518ad97ce66a48c49496aa0573cf0731 --

[issue37255] Pathlib: Add an expandUserPath method or argument

2019-06-12 Thread Andrea Moro
Change by Andrea Moro : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue37201] fix test_distutils failures for Windows ARM64

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13889 pull_request: https://github.com/python/cpython/pull/14023 ___ Python tracker ___ __

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-06-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Lukasz, please don't rush. Applied PR makes asyncio more stable, not worse. I see the only way to make it perfect: get rid of weak refs entirely. Otherwise there is always a chance to catch GC run and set element deletion on iteration over the set. Sorry, tha

[issue37239] Add headless development preset layout

2019-06-12 Thread Steve Dower
Steve Dower added the comment: In fact, any reason you can't use "--preset-nuget --include-..."? to add in whatever else you need? They are designed to compose like this deliberately. -- ___ Python tracker

[issue37201] fix test_distutils failures for Windows ARM64

2019-06-12 Thread miss-islington
miss-islington added the comment: New changeset bb3e8a68b2554b2bd94cf0cd9a0311f4561c1a25 by Miss Islington (bot) in branch '3.8': bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902) https://github.com/python/cpython/commit/bb3e8a68b2554b2bd94cf0cd9a0311f4561c1a25 --

[issue37239] Add headless development preset layout

2019-06-12 Thread Paul Monson
Paul Monson added the comment: Thanks for the feedback Steve Looking at the differences between the change I proposed and the nuget package I agree that "--preset-nuget --include-..." is a better approach. Closing this issue and the pull request. --

[issue37239] Add headless development preset layout

2019-06-12 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue37140] ctypes change made clang fail to build

2019-06-12 Thread Paul Monson
Paul Monson added the comment: I did some reading about parameter passing and it's still not clear to me whether https://bugs.python.org/issue37140 is a bug in CPython or whether the clang bindings were relying on incorrect parameter passing behavior to work. The change in https://github.com

[issue37225] Document BaseException constructor

2019-06-12 Thread Brett Cannon
Brett Cannon added the comment: Fair enough. I've changed the title to point out only BaseException needs its constructor documented as every other extension inherits from it and so its cascades down. -- resolution: not a bug -> status: closed -> open title: Signatures of Exceptions

[issue37130] pathlib does not handle '..' directory

2019-06-12 Thread Brett Cannon
Brett Cannon added the comment: @Antoine: was there a design reason behind setting 'name' to '' when a Path objects was initialized with '.'? Is it to implicitly represent the current directory? @N.P.: we will have to think through the implications of this as I don't know if normalizing to

[issue37236] fix test_complex for Windows arm64

2019-06-12 Thread Steve Dower
Steve Dower added the comment: New changeset ff6bb0aa95259413f359d42410526ff0b4dccfb7 by Steve Dower (Paul Monson) in branch 'master': bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983) https://github.com/python/cpython/commit/ff6bb0aa95259413f359d42410526ff0b4dccfb7

[issue37236] fix test_complex for Windows arm64

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13890 pull_request: https://github.com/python/cpython/pull/14024 ___ Python tracker ___ __

[issue25599] asyncio.iscoroutinefunction returns unexpected results when presented with unittest.mock.Mock

2019-06-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess the inconsistency in original report is fixed with issue28703 where both inspect.iscoroutinefunction and asyncio.iscoroutinefunction return False for Mock(). The fix is available from 3.5.3 . There is also async support for mock added in 3.

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread Guido van Rossum
Guido van Rossum added the comment: It's fine to document the current state. I don't think you should spend any time *changing* the API to "future-proof" it. I am hoping that larger changes to the compiler implementation will happen before Python 4, which will make the whole API moot (includ

[issue37251] Mocking a MagicMock with a function spec results in an AsyncMock

2019-06-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I will wait for a couple of days for suggestions and will raise a PR to check for __code__ to be a CodeType. Thanks. -- ___ Python tracker ___

[issue26140] inspect.iscoroutinefunction raises TypeError when checks Mock of function or coroutinefunction

2019-06-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak versions: +Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker ___ ___

[issue37236] fix test_complex for Windows arm64

2019-06-12 Thread miss-islington
miss-islington added the comment: New changeset f72886a066ba7d3a3aa077cfc3cad2ca0b2cdbf6 by Miss Islington (bot) in branch '3.8': bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983) https://github.com/python/cpython/commit/f72886a066ba7d3a3aa077cfc3cad2ca0b2cdbf6 -

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-12 Thread Nathaniel Smith
Nathaniel Smith added the comment: Traditionally on Unix, sockets are represented by file descriptors. File descriptors are small integers. (POSIX actually mandates the "small" part: whenever a new fd is created, the OS has to assign it the smallest integer value that's not already being used

[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-12 Thread Stefan Behnel
Stefan Behnel added the comment: > they can equally easily zero out the entire structure and ignore it without > changing behavior on any Python 3.x. Any solution that we apply in Cython will require users to regenerate their .c sources with a new Cython version in order to make it compile i

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-06-12 Thread Alan De Smet
New submission from Alan De Smet : In Doc/library/urllib.request.rst, in the documentation for the class `Request`, it says ``` The final two arguments are only of interest for correct handling of third-party HTTP cookies: ``` However, three arguments follow, not two, and the last is no

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-06-12 Thread Alan De Smet
Alan De Smet added the comment: Oops, used to GitHub/GitLab, where Markdown is fair game. Sorry about that. :-) -- ___ Python tracker ___ _

[issue26140] inspect.iscoroutinefunction raises TypeError when checks Mock of function or coroutinefunction

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

[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-12 Thread Stefan Behnel
Stefan Behnel added the comment: (I forgot to state the obvious third option, which is: don't do anything and leave everything as it is now in beta-1.) -- ___ Python tracker

[issue37130] pathlib does not handle '..' directory

2019-06-12 Thread N.P. Khelili
N.P. Khelili added the comment: @Brett: Honestly I don't think it is the best way. But fact is: nono@ACER ~ % cd / nono@ACER / % python Python 3.7.3 (default, Mar 26 2019, 21:43:19) [GCC 8.2.1 20181127] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue37257] obmalloc: stop simple arena thrashing

2019-06-12 Thread Tim Peters
New submission from Tim Peters : Scenario: all arenas are fully used. A program then runs a loop like: while whatever: p = malloc(n) ... free(p) At the top, a new arena has to be created, and a single object is taken out of a single pool. At the bottom, that object is freed

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-12 Thread Jeroen van den Hout
Jeroen van den Hout added the comment: Well, if I look at the source code build_ext explicitly calls for SWIG to handle interface files. Also, in case of commands like 'pip install ', the build sequence is predefined anyways, unless you explicitly define your own sequence in a custom command

[issue37198] _parse_localename fail to parse 'en_IL'

2019-06-12 Thread hodai goldman
Change by hodai goldman : -- keywords: +patch pull_requests: +13891 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14027 ___ Python tracker ___ __

[issue37250] C files generated by Cython set tp_print to NULL: PyTypeObject.tp_print removed, replaced with tp_vectorcall_offset

2019-06-12 Thread Steve Dower
Steve Dower added the comment: > Any solution that we apply in Cython will require users to regenerate their > .c sources with a new Cython version in order to make it compile in Py3.8. > The main decision point in this ticket is: should they need to or not? Considering Cython had a bug when

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-06-12 Thread Guido van Rossum
Guido van Rossum added the comment: Flagging as Windows issue. -- components: +Windows nosy: +gvanrossum, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13892 pull_request: https://github.com/python/cpython/pull/14028 ___ Python tracker ___ __

[issue37257] obmalloc: stop simple arena thrashing

2019-06-12 Thread Tim Peters
Change by Tim Peters : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30754] textwrap.dedent mishandles empty lines

2019-06-12 Thread sushma
sushma added the comment: I'm going to try and contribute this documentation fix. -- nosy: +syadlapalli ___ Python tracker ___ ___

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Change by Jesse Bacon : Added file: https://bugs.python.org/file48414/Python Proof.ipynb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Change by Jesse Bacon : Added file: https://bugs.python.org/file48415/pbr37241_Jesse_Bacon.py.txt ___ Python tracker ___ ___ Python-bugs-lis

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Jesse Bacon
Jesse Bacon added the comment: Eric, The interpreter said something about passing a negative value when I converted the db.keys to a list. I have attached a script in txt format and a Jupyter notebook for further analysis. I apologize for posting images, I just saw your note. I'll go ah

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-12 Thread Vinay Sajip
Vinay Sajip added the comment: > On the other hand, couldn't we use different default error handler? "replace" or "backslashescape" seems better default error handler for the logging. I've left it as is using the same rationale as I guess open() has at the moment - "Errors should never pass

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13893 pull_request: https://github.com/python/cpython/pull/14029 ___ Python tracker ___ __

[issue37258] Logging cache not cleared properly when setting level

2019-06-12 Thread David Wang
New submission from David Wang : If you call setLevel() on a subclass of logging.Logger, it does not reset the cache for that logger. This mean that if you make some logging calls, then call setLevel(), the logger still acts like it still has its old level. See the attached python file for a

[issue37224] test__xxsubinterpreters failed on AMD64 Windows8.1 Refleaks 3.8

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: Failure on AppVeyor on my PR 14029 (which is unrelated): test_subinterpreter (test.test__xxsubinterpreters.IsRunningTests) ... Exception in thread Thread-8: Traceback (most recent call last): File "C:\projects\cpython\lib\threading.py", line 923, in _bootst

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 913fa1c8245d1cde6edb4254f4fb965cc91786ef by Victor Stinner in branch 'master': bpo-37223, test_io: silence last 'Exception ignored in:' (GH-14029) https://github.com/python/cpython/commit/913fa1c8245d1cde6edb4254f4fb965cc91786ef -- __

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2019-06-12 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +13894 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/14030 ___ Python tracker ___ __

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2019-06-12 Thread Tal Einat
Tal Einat added the comment: Please see updated PR, GH-14030. It's not 100% ready yet. At this point the goal is to have some people try it and give feedback. So please, give it a go and let me know what you think! -- nosy: +taleinat ___ Python tr

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13895 pull_request: https://github.com/python/cpython/pull/14031 ___ Python tracker ___ __

[issue30754] textwrap.dedent mishandles empty lines

2019-06-12 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2019-06-12 Thread Tal Einat
Tal Einat added the comment: In reference to previous discussion here about the effect of toggling line numbers on future opened windows: IMO toggling shouldn't affect future windows; those should behave according to the configured default state. The default state should be changed only by e

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2019-06-12 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue36689] docs: os.path.commonpath raises ValueError for different drives

2019-06-12 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37241] Item Count Error in Shelf

2019-06-12 Thread Eric V. Smith
Eric V. Smith added the comment: After fixing a missing import (import urllib.request), this is what I get: $ /usr/local/bin/python3.6 pbr37241_Jesse_Bacon.py Fetching nvdcve-1.0-2019.json.gz Storing Gzipped File Loading JSON Content 4275 records 4275 unique records Creating Shelve: cve_2019.

[issue30754] textwrap.dedent mishandles empty lines

2019-06-12 Thread Julian Berman
Julian Berman added the comment: I still disagree :) but docs are better than nothing. On Wed, Jun 12, 2019, 18:05 Guido van Rossum wrote: > > Change by Guido van Rossum : > > > -- > nosy: +gvanrossum > > ___ > Python tracker >

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c15a682603a47f5aef5025f6a2e3babb699273d6 by Victor Stinner in branch '3.8': bpo-37223: test_io: silence destructor errors (GH-14031) https://github.com/python/cpython/commit/c15a682603a47f5aef5025f6a2e3babb699273d6 --

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c15a682603a47f5aef5025f6a2e3babb699273d6 by Victor Stinner in branch '3.8': bpo-37223: test_io: silence destructor errors (GH-14031) https://github.com/python/cpython/commit/c15a682603a47f5aef5025f6a2e3babb699273d6 --

[issue37223] test_io logs Exception ignored in: warnings

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: Ok, all errors have been fixed in 3.8 and master. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue37130] pathlib does not handle '..' directory

2019-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm sorry, but I don't understand the issue here. Instead of posting isolated snippets, could you explain what are you trying to do? -- ___ Python tracker

[issue37069] regrtest: log unraisable exceptions and uncaught thread exceptions

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 95f61c8b1619e736bd5e29a0da0183234634b6e8 by Victor Stinner in branch 'master': bpo-37069: regrtest uses sys.unraisablehook (GH-13759) https://github.com/python/cpython/commit/95f61c8b1619e736bd5e29a0da0183234634b6e8 -- ___

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-06-12 Thread miss-islington
miss-islington added the comment: New changeset b4c7defe58695a6670a8fdeaef67a638bbb47e42 by Miss Islington (bot) (Paul Monson) in branch 'master': bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073) https://github.com/python/cpython/commit/b4c7defe58695a6670a8fde

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13896 pull_request: https://github.com/python/cpython/pull/14032 ___ Python tracker ___ __

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-12 Thread Jeroen van den Hout
Jeroen van den Hout added the comment: I'm sorry, I read your comment completely wrong, so please disregard my previous comment. I would argue the sequence doesn't really matter that much for non SWIG packages, since those will install correctly no matter if the extensions are built and cop

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2019-06-12 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue. I consider that the initial issue has been fixed and all related issues have been fixed as well: * Python 3.8 now logs close() exception in file finalizer in development mode (-X dev) and debug mode (./configure --with-pydebug) * I added

[issue36402] threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 468e5fec8a2f534f1685d59da3ca4fad425c38dd by Victor Stinner in branch 'master': bpo-36402: Fix threading._shutdown() race condition (GH-13948) https://github.com/python/cpython/commit/468e5fec8a2f534f1685d59da3ca4fad425c38dd -- ___

[issue36402] threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13898 pull_request: https://github.com/python/cpython/pull/14034 ___ Python tracker ___ __

[issue36402] threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13897 pull_request: https://github.com/python/cpython/pull/14033 ___ Python tracker ___ __

[issue36402] threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.7, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-12 Thread Inada Naoki
Inada Naoki added the comment: > I've left it as is using the same rationale as I guess open() has at the > moment - "Errors should never pass silently. Unless explicitly silenced". But open() is general purpose, and logging is for logging. Note that stderr uses 'backslashreplace', even when

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-06-12 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c9b498759f4fc74da82a0a96d059d666fa73f16 by Victor Stinner in branch 'master': bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019) https://github.com/python/cpython/commit/2c9b498759f4fc74da82a0a96d059d666fa73f16 --

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13899 pull_request: https://github.com/python/cpython/pull/14035 ___ Python tracker ___ __

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-12 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +giampaolo.rodola, tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37111] Logging - Inconsistent behaviour when handling unicode

2019-06-12 Thread Inada Naoki
Inada Naoki added the comment: > What logging does when UnicodeEncodeError is happened? Hm, it seems logging does best job, show enough information to stderr. But sometime, Python is embedded in web servers and there is no stderr. pythonw.exe may not have stderr too I still feel backsla

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13900 pull_request: https://github.com/python/cpython/pull/14036 ___ Python tracker ___ __

[issue37259] Missing Doc/whatsnew/3.9.rst file

2019-06-12 Thread STINNER Victor
New submission from STINNER Victor : There is no Doc/whatsnew/3.9.rst file yet. How should new features of Python 3.9 be documented? Does someone know how to create a template for this file? -- assignee: docs@python components: Documentation messages: 345433 nosy: docs@python, lukasz.

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 37d66d7d4bc7dbac9809d69966a774ebb32563be by Victor Stinner in branch 'master': bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018) https://github.com/python/cpython/commit/37d66d7d4bc7dbac9809d69966a774ebb32563be --

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset a04ea4f92ccbe20ffdbb5fa9b6bb93ee8da50f5d by Victor Stinner in branch 'master': bpo-37253: Fix typo in PyCompilerFlags doc (GH-14036) https://github.com/python/cpython/commit/a04ea4f92ccbe20ffdbb5fa9b6bb93ee8da50f5d --

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +13901 pull_request: https://github.com/python/cpython/pull/14037 ___ Python tracker ___ __

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13902 pull_request: https://github.com/python/cpython/pull/14038 ___ Python tracker ___ __

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: Many PyRun_xxx() functions of the public C API accept a "PyCompilerFlags* flags" parameter. So yeah, I documented the new cf_feature_version. PyCompilerFlags structure is kind of public ;-) -- ___ Python tracker

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-12 Thread Shen Han
Shen Han added the comment: The 2to3 tool cannot convert the following code: 1. `func(**{} if a else b)` 2. `func(*[] if a else b)` I think that problem is rooted the outdated Grammar.txt. -- ___ Python tracker

[issue37248] support conversion of `func(**{} if a else b)`

2019-06-12 Thread Shen Han
Shen Han added the comment: This PR https://github.com/python/cpython/pull/12703 solves this problem. But haven't been merged. -- ___ Python tracker ___ _

[issue37258] Logging cache not cleared properly when setting level

2019-06-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread miss-islington
miss-islington added the comment: New changeset 92e836c7dcaf74f7b8617250414224d24d1eb1f2 by Miss Islington (bot) in branch '3.8': bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018) https://github.com/python/cpython/commit/92e836c7dcaf74f7b8617250414224d24d1eb1f2 -- nosy: +miss-is

[issue37253] PyCompilerFlags got a new cf_feature_version field

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset f9445a391e6a91103fbe88bff4d3adc07f526c73 by Victor Stinner in branch '3.8': [3.8] bpo-37253: Document PyCompilerFlags.cf_feature_version (GH-14019) (GH-14038) https://github.com/python/cpython/commit/f9445a391e6a91103fbe88bff4d3adc07f526c73 -

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: It seems like test_utf8_mode has a bug, but sadly I'm no longer able to reproduce it and so I cannot test my fix: diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py index bdb93457cf..c22b95d54d 100644 --- a/Lib/test/test_utf8_mode.py +++ b/L

[issue37191] Python.h contains intermingled declarations

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: Petr Viktorin fixed the issue, thanks ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker __

[issue37136] Travis CI: Documentation tests fails with Sphinx 2.1

2019-06-12 Thread Nathaniel Smith
Nathaniel Smith added the comment: One of Guido's mentees (I don't know her bpo account name) also ran into this: https://python.zulipchat.com/#narrow/stream/116742-core.2Fhelp/topic/Weird.20sphinx.20error Some analysis shows that we do have a bug in the docs – the sphinx '.. module::' direct

[issue36631] test_urllib2net: test_ftp_no_timeout() killed after a timeout of 15 min

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: I only saw this issue once, two months ago, so I close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue37260] shutil.rmtree() FileNotFoundError race condition

2019-06-12 Thread Jeffrey Kintscher
New submission from Jeffrey Kintscher : shutil.rmtree() is susceptible to a race condition that can needlessly raise OSError: 1. os.scandir() returns the list of entries in a directory 2. while iterating over the list, another thread or process deletes one or more of the entries not yet itera

[issue35425] test_eintr fails randomly on AMD64 FreeBSD 10-STABLE Non-Debug 3.7: TypeError: 'int' object is not callable

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, so I close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35385] time module: why not using tzname from the glibc?

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: This issue isn't really a bug. The current code just works. I close the issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue35462] test_imaplib.test_enable_UTF8_True_append() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: I only saw the issue once, 6 months ago. I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue37261] test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8

2019-06-12 Thread STINNER Victor
New submission from STINNER Victor : test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8: https://buildbot.python.org/all/#/builders/229/builds/10 test_io leaked [23208, 23204, 23208] references, sum=69620 test_io leaked [7657, 7655, 7657] memory blocks, sum=22969 The issue has been

[issue37261] test_io leaks references on AMD64 Fedora Rawhide Refleaks 3.8

2019-06-12 Thread STINNER Victor
STINNER Victor added the comment: gdb traceback on "del self.unraisable": (gdb) where #0 _PyErr_WriteUnraisableDefaultHook ( args=(, ValueError('flush of closed file',), , None, <_io.BufferedWriter at remote 0x7fffe9bcb890>)) at Python/errors.c:1294 #1 0x005726ec in sys_unraisa

[issue37257] obmalloc: stop simple arena thrashing

2019-06-12 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +13903 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/14039 ___ Python tracker __

<    1   2   3   >