[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
muhzi added the comment: After some testing, it works and builds extensions OK for android arm with API>=21. fails on lower API versions (e.g. 16). -- ___ Python tracker ___

[issue32387] Disallow untagged C extension import on major platforms

2019-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think it'd be worth doing on POSIX systems for some 3.8 alpha/beta release cycles before making a final call there. -- ___ Python tracker __

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: After patching my 3.7.2 Macbook installation, and reviewing #20406 which added the icon code, I understand this issue better. IDLE, while open and unlike other Mac apps I later tested, was replacing the initial Mac IDLE app dock icon (tilted page with doubl

[issue36163] same object, same method, but the is keyword return false.

2019-03-01 Thread lgj
New submission from lgj <929102...@qq.com>: >>> class A(): ... def a(self): ... pass ... >>> a = A() >>> a is a True >>> a.a is a.a False >>> id(a.a) 4532803784 >>> id(a.a) 4532803784 It's seems quite oops. -- messages: 336979 nosy: lgj1993 priority: normal severity: normal stat

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Yasser Alshalaan added the comment: I'll do this in a moment I'll have the PR -- nosy: +Yasser Alshalaan ___ Python tracker ___ ___

[issue36163] same object, same method, but the is keyword return false.

2019-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: The ``is`` operator returns False because the two objects are different objects. Methods are descriptors, and whenever you access an instance method, you get a brand-new method object. This is described in the documentation for descriptors: https://docs.pyt

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- keywords: +patch pull_requests: +12138 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Ned Deily
Ned Deily added the comment: Yes, remove the PYTHONHOME env variable definition and things should be fine. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker __

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Steve Dower
Steve Dower added the comment: Barry's response in https://bugs.python.org/issue33944#msg336970 is exactly what my response to that point was going to be. Just because I want to use package spam and it wants to use package eggs doesn't mean that eggs gets to enable cloud imports (or anything

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: On 02.03.2019 2:25, Barry A. Warsaw wrote: > The fact that .pth files are global and affect the entire Python > installation. <...> Right now, there’s no control over the scope of such > environmental customizations; it’s all or nothing. That's the entire purpo

[issue36154] Python quit unexpectedly error

2019-03-01 Thread kellena
kellena added the comment: That worked! Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Open Close
Open Close added the comment: I have the same TimeoutError on Arch linux PC (openssl 1.1.1a). It is random, but for now running test continuously at most 5 times successfully brings about the fail. So I think msg335635 needs re-checking. He saids PR 10011 makes this test pass in fedora 29 VM

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36103] Increase shutil.COPY_BUFSIZE

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 4f190306186973c1bbfadd3d3f146920856e by Inada Naoki in branch 'master': bpo-36103: change default buffer size of shutil.copyfileobj() (GH-12115) https://github.com/python/cpython/commit/4f190306186973c1bbfadd3d3f146920856e -- ___

[issue36103] Increase shutil.COPY_BUFSIZE

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: I chose 64 KiB because performance difference between 64 and 128 KiB I can see is only up to 5%. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed - I think the biggest thing we learned from the pre-implementation in Python 3.7 is that the "Let's move as much config as we can to Python C API data types" fell down in a couple of areas: 1. The embedding application is likely to speak char* and/or wc

[issue36158] Regex search behaves differently in list comprehension

2019-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > i want to apply a regex on a list of strings. The example you give doesn't include a list of strings, it has some unknown "entity" object with an unknown "trigger" attribute. Please refactor the code to remove the use of a class we don't have access to.

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: +12139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Open Close
Open Close added the comment: It may be openssl 1.1.1a specific. I don't understand most of what they say, but the changelog (to 1.1.1b) 'looks' suspicious. https://www.openssl.org/news/changelog.html#x1 ...Actually Archlinux updated openssl to 1.1.1b about 4 days ago, so I can 'test' 1.1.1b.

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: -12138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 1, 2019, at 19:59, Ivan Pozdeev wrote: > > Ivan Pozdeev added the comment: > > On 02.03.2019 2:25, Barry A. Warsaw wrote: >> The fact that .pth files are global and affect the entire Python >> installation. <...> Right now, there’s no control over t

[issue36164] Updating Py_InspectFlag programmatically

2019-03-01 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : I sometime use a hack to start interactive console after running script. .. code-block:: python import os os.environ['PYTHONINSPECT'] = 'x' print("Hello") This hack works because ``PYTHONINSPECT`` is checked `here

[issue35819] Fatal Python error

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: By the way, do you remember why you set PYTHONHOME? I afraid that someone recommends such bad practice on Web and this issue is spreading. Beginner ~ average Python user must not try PYTHONHOME. -- nosy: +inada.naoki ___

[issue36164] Updating Py_InspectFlag programmatically

2019-03-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12140 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36008] [good first issue] Update documentation for 3.8

2019-03-01 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Mariatta this issue https://bugs.python.org/issue36157 also looks like one you can track for the mentored sprint at PyCon. -- nosy: +nanjekyejoannah ___ Python tracker _

[issue36157] Document PyInterpreterState_Main().

2019-03-01 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Mariatta do you want to keep this for the mentored sprint at PyCon? -- nosy: +nanjekyejoannah ___ Python tracker ___ _

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Armin Rigo
Armin Rigo added the comment: PyModule_GetState() requires having the module object that corresponds to the given interpreter state. I'm not sure how a C extension module is supposed to get its own module object corresponding to the current interpreter state, without getting it from the cal

<    1   2