[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-11 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2017-12-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: Update! I've been experimenting with this some more, and here's a more detailed proposal, that I'd ideally like to get into 3.7. I don't *think* this is big enough to need a PEP? I dunno, thoughts on that welcome. Motivation: It's easy to accidentally write

[issue31650] implement PEP 552

2017-12-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yeah, I agree with Antoine and Victor that a callback would be overkill, and it would be extremely difficult to implement since at the point where the error occurs, we don't have and can't take the GIL. -- ___ Pyt

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-11 Thread Eryk Sun
Eryk Sun added the comment: I was able to reproduce this problem in 3.6 in Windows 10 (1709), but only for code paths that call WriteFile, i.e. os.write and legacy standard I/O mode. Writing to the console will block if there's an active text selection. The operation completes once the user c

[issue20891] PyGILState_Ensure on non-Python thread causes fatal error

2017-12-11 Thread Kevin Chen
Change by Kevin Chen : -- nosy: +kchen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-11 Thread Guido van Rossum
Guido van Rossum added the comment: This doc bug should be fixed before 3.6.4 final goes out. -- nosy: +gvanrossum, ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue31643] test_uuid: test_getnode and test_windll_getnode fail if connected to the Internet via an Android phone

2017-12-11 Thread Ivan Pozdeev
Change by Ivan Pozdeev : Removed file: https://bugs.python.org/file47178/0001-Allow-for-all-zero-MAC-based-node-ID-e.g.-mobile-mod.patch ___ Python tracker ___

[issue18533] Avoid error from repr() of recursive dictview

2017-12-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Ben, would you be interested in making a Github pull request against the current master for your patch? It appears there was interest in moving forward with this and it is still occurring on 3.7, although it now raises a RecursionError. >>> d = {} >>> d[1]

[issue17013] Allow waiting on a mock

2017-12-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> needs patch versions: +Python 3.8 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue26256] Fast decimalisation and conversion to other bases

2017-12-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26256] Fast decimalisation and conversion to other bases

2017-12-11 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +4704 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2017-12-11 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +4703 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger : In our deployment of Python 2.7, we've patched `unicodedata` to introduce a new function: `is_normalized` can check whether a unistr is in a given normal form. This currently has to be done by creating a normalized copy, then checking whether it is equal t

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-11 Thread kyuupichan
kyuupichan added the comment: I'm not sure what you mean about this being a server-specific problem. It's clearly a bug in the asyncio SSL wrapper as using TCP instead of SSL with otherwise identical code doesn't leak open files. -- ___ Python tra

[issue32284] typing.TextIO and BinaryIO are not aliases of IO[...]

2017-12-11 Thread Sebastian Rittau
New submission from Sebastian Rittau : See https://github.com/python/typing/issues/518 for context. The typing documentation for 3.6.4rc1 states: > typing.io ... defines the generic type IO[AnyStr] and aliases TextIO and > BinaryIO for respectively IO[str] and IO[bytes]. In the current implem

[issue32283] Cmd.onecmd documentation is misleading

2017-12-11 Thread Kevin Lyda
New submission from Kevin Lyda : The documentation for Cmd.onecmd is misleading. It says that "This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks." https://github.com/python/cpython/blob/v3.7.0a3/Lib/cmd.py#L193 Howeve

[issue32282] When using a Windows XP compatible toolset, `socketmodule.c` fails to build

2017-12-11 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +4702 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32282] When using a Windows XP compatible toolset, `socketmodule.c` fails to build

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger : If Python is built using the Windows XP "variant" of the toolset (e.g. `v140_xp`), build errors can occur in `socketmodule.c`. This is due to the include of `VersionHelpers.h` being gated on `_MSC_VER`, which "lies" if `v140_xp` is in use. We'll be contri

[issue31643] test_uuid: test_getnode and test_windll_getnode fail if connected to the Internet via an Android phone

2017-12-11 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- pull_requests: +4701 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32280] Expose `_PyRuntime` through a section name

2017-12-11 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +4700 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32280] Expose `_PyRuntime` through a section name

2017-12-11 Thread Steve Dower
Change by Steve Dower : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32280] Expose `_PyRuntime` through a section name

2017-12-11 Thread Steve Dower
Change by Steve Dower : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue32281] bdist_rpm v.s. the Macintosh

2017-12-11 Thread Ben Hyde
New submission from Ben Hyde : With the fix below is becomes possible to build rpms on the Mac. The developer will need to install rpm tooling. That's easy via "brew install rpm". That, for example, installs /usr/local/bin/rpmbuild. Sadly bdist_rpm.py only supports rpmbuild in two places, se

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2017-12-11 Thread Lior Cohen
Lior Cohen added the comment: Joining @Serhiy Storchaka last question. Is the __get__ method existance is a must be a data descriptor? According to the C implementation in descrobject.h ``` #define PyDescr_IsData(d) (Py_TYPE(d)->tp_descr_set != NULL) #endif ``` the answer is No. Does this C cod

[issue32280] Expose `_PyRuntime` through a section name

2017-12-11 Thread Maxime Belanger
New submission from Maxime Belanger : We've recently been toying with more sophisticated crash reporting machinery for our Desktop Python application (which we deploy on macOS, Windows and Linux). To assist in debugging, we are storing `_PyRuntime` in a predictable location our crash reporter

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2017-12-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Victor and Serhiy. >> @Cheryl: Maybe convert the PR without PyFrame_FastToLocals() and >> PyFrame_FastToLocalsWithError(). If I only convert PyFrame_New() then I would need to add it to as existing page since the patch created a new page for Frame Obj

[issue32240] Add the const qualifier for PyObject* array arguments

2017-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can affect Cython which uses the "fast call" convention. -- nosy: +scoder ___ Python tracker ___ __

[issue32227] singledispatch support for type annotations

2017-12-11 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e56975351bc2c574c728f738e88effba7116279f by Łukasz Langa in branch 'master': bpo-32227: functools.singledispatch supports registering via type annotations (#4733) https://github.com/python/cpython/commit/e56975351bc2c574c728f738e88effba7116279f

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2017-12-11 Thread kernc
Change by kernc : -- keywords: +patch pull_requests: +4699 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32279] Pass keyword arguments from dataclasses.make_dataclass() to @dataclass.

2017-12-11 Thread Eric V. Smith
New submission from Eric V. Smith : make_dataclass() should take optional keyword only arguments and pass them to @dataclass() when it uses it after it creates a new class. The parameters are: init=True, repr=True, eq=True, order=False, hash=None, frozen=False Obviously, these should reflect t

[issue27645] Supporting native backup facility of SQLite

2017-12-11 Thread Lele Gaifax
Lele Gaifax added the comment: Thank you Serhiy, ok: will simplify the method, hopefully tomorrow. -- ___ Python tracker ___ ___ Pyt

[issue29137] Fix fpectl-induced ABI breakage

2017-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger, stutzbach, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue31643] test_uuid: test_getnode and test_windll_getnode fail if connected to the Internet via an Android phone

2017-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +barry, serhiy.storchaka, xdegaye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

2017-12-11 Thread Anthony Sottile
Anthony Sottile added the comment: I noticed it when I changed the test preconditions in https://github.com/python/cpython/pull/4783 I tried changing a test to trigger this (in this branch) but I found I was just implementing exactly the test in the `skip` condition which to me didn't feel l

[issue32278] Allow dataclasses.make_dataclass() to omit type information

2017-12-11 Thread Eric V. Smith
New submission from Eric V. Smith : Make the typing information optional. >From Raymond Hettinger: The make_dataclass() factory function in the dataclasses module currently requires type declarations. It would be nice if the type declarations were optional. With typing (currently works):

[issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

2017-12-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Extension Modules type: -> behavior versions: -Python 3.8 ___ Python tracker ___ ___ P

[issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

2017-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does any existing test failed on such platform? -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: As I wrote, I never saw this warning, even while debugging signal issues in asyncio on FreeBSD. I don't think that this is an use case for a callback. Nathaniel use case is just to ignore the warning, I consider that it's a reasonable compromise for the issue.

[issue27645] Supporting native backup facility of SQLite

2017-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer to keep Connection.backup() simpler. Additional features can be implemented in pure Python. -- ___ Python tracker ___

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant a callback that will be called after writing a byte to the wakeup fd is failed. By default it would write a warning to stderr, but the user could specify other callback for silencing a warning or for using other way for logging it. If this is imposs

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4698 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: A custom handler would be overkill IMO. set_wakeup_fd() is really useful for a small category of library (most notably event loop frameworks). -- ___ Python tracker ___

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: Serhiy: I don't know what "specify a custom handler" means in this context. Can you elaborate? The fd buffer overflow happens in a very delicate context where we definitely cannot call python code or even safely touch PyObject* variables. -- ___

[issue29247] Document return value of epoll.poll

2017-12-11 Thread Berker Peksag
Change by Berker Peksag : -- versions: -Python 2.7, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29247] Document return value of epoll.poll

2017-12-11 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4697 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm now well acquainted with with the signal and asyncio modules, but is this the best solution? Wouldn't be better to specify a custom handler? If this is possible. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31506] Improve the error message logic for object_new & object_init

2017-12-11 Thread Sanyam Khurana
Sanyam Khurana added the comment: Serhiy, can you please elaborate on that a bit? I'll try to fix this. -- ___ Python tracker ___ __

[issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

2017-12-11 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +4696 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

2017-12-11 Thread Anthony Sottile
New submission from Anthony Sottile : While investigating https://bugs.python.org/issue31940 I noticed the following is raised as `SystemError` instead of the expected `NotImplementedError` (note: you need a platform with fchmodat but does not support nofollow) ``` touch foo ln -s foo bar pyth

[issue31650] implement PEP 552

2017-12-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Looks fine to me now? http://buildbot.python.org/all/#/builders/21 -- ___ Python tracker ___ __

[issue32251] Add asyncio.BufferedProtocol

2017-12-11 Thread Yury Selivanov
Yury Selivanov added the comment: >> Looks nice. Can it speed up aiohttp too? > Yes. > aiohttp uses own streams but public API and internal implementation are > pretty close to asyncio streams. > Moreover C accelerated HTTP parser should work with proposed BufferedProtocol > seamlessly. I d

[issue32251] Add asyncio.BufferedProtocol

2017-12-11 Thread Yury Selivanov
Yury Selivanov added the comment: > See https://eklitzke.org/goroutines-nonblocking-io-and-memory-usage for an > interesting discussion of the drawbacks of some buffer handling idioms. Thanks for the link! It does make sense to use a pool of buffers for the proposed BufferedProtocol when you

[issue11123] problem with packaged dependency extracter script, pdeps

2017-12-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: This issue was resolved with the patch in #14492. -- nosy: +csabella resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> pdeps.py has_key ___ Python tracker

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2017-12-11 Thread Marcel Plch
Marcel Plch added the comment: > At a guess, the problem is because in atexit_callfuncs(): > >module = PyState_FindModule(&atexitmodule); >if (module == NULL) >return; In #31901, I solved this problem by getiing rid of PyState_FindModule in the atexit code, using module state

[issue32250] Add asyncio.current_task() and asyncio.all_tasks() funcitons

2017-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: In https://github.com/python/cpython/pull/4766 discussion we decided to use module level functions instead of loop methods. -- title: Add loop.current_task() and loop.all_tasks() methods -> Add asyncio.current_task() and asyncio.all_tasks() funcitons

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: Ah, PyFrame_GetLineNumber is now documented at Doc/c-api/reflection.rst. But PyFrame_New() is still not documented. So my patch is not completely useful. @Cheryl: Maybe convert the PR without PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError(). --

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: > PyFrame_FastToLocals() and PyFrame_LocalsToFast() are not documented and have > weird interface. I think the use of them should be discouraged. I suggest to document them, but explain in the documentation that they must not be used :-) --

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: > Should there be a PR for this? Feel free to create a PR from my old (4 years old) patch. Just mention my name in the commit message please. -- ___ Python tracker

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 8874342cf332c3aa3d845155cc4b41b00c2d9e9d by Andrew Svetlov in branch 'master': bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779) https://github.com/python/cpython/commit/8874342cf332c3aa3d845155cc4b41b00c2d9e9d --

[issue32269] Add `asyncio.get_running_loop()` function

2017-12-11 Thread Yury Selivanov
Yury Selivanov added the comment: > `asyncio._get_running_loop()` will be deprecated and removed in Python 3.9. _get_running_loop() was left as-is. -- ___ Python tracker ___ _

[issue32269] Add `asyncio.get_running_loop()` function

2017-12-11 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-11 Thread Licht Takeuchi
Licht Takeuchi added the comment: PR is now fixed so as to follow the behavior on Python 2.7! -- ___ Python tracker ___ ___ Python-b

[issue32273] Remove asyncio.test_utils

2017-12-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 3e9751819ad13a965e8be13c1e5bc5a6811fe6b8 by Yury Selivanov in branch 'master': bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785) https://github.com/python/cpython/commit/3e9751819ad13a965e8be13c1e5bc5a6811fe6b8 -- ___

[issue32273] Remove asyncio.test_utils

2017-12-11 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32272] Remove asyncio.async function

2017-12-11 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32272] Remove asyncio.async function

2017-12-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 9edad3c7011ccab0a66a065933abebf3288cf1a1 by Yury Selivanov in branch 'master': bpo-32272: Remove asyncio.async() function. (#4784) https://github.com/python/cpython/commit/9edad3c7011ccab0a66a065933abebf3288cf1a1 -- ___

[issue31650] implement PEP 552

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: Failure on Python on s390x RHEL 3.x: http://buildbot.python.org/all/#/builders/21/builds/340 == FAIL: test_source_hash (test.test_imp.ImportTests) -

[issue29302] add contextlib.AsyncExitStack

2017-12-11 Thread Cheryl Sabella
Cheryl Sabella added the comment: Looks like AbstractAsyncContextManager is defined in issue #30241. -- ___ Python tracker ___ ___ P

[issue22671] Typo in class io.BufferedIOBase docs

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: Thank you Martin Panter and Sanyam Khurana for the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22671] Typo in class io.BufferedIOBase docs

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0aa2a1d003b476b954ecdcb7e966bf7f0b75a06b by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-22671: Clarify and test default read method implementations (GH-4568) (#4796) https://github.com/python/cpython/commit/0aa2a1d003b476b954ecdcb

[issue32276] there is no way to make tempfile reproducible (i.e. seed the used RNG)

2017-12-11 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko : It is quite often desired to reproduce the same failure identically. In many cases sufficient to seed the shared random._inst (via random.seed). tempfile creates new instance(s) for its own operation and does not provide API to seed it. I do not think

[issue22671] Typo in class io.BufferedIOBase docs

2017-12-11 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4695 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22671] Typo in class io.BufferedIOBase docs

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1b74f9b77a6fa1d7828986cb79d5b10942ff9141 by Victor Stinner (Sanyam Khurana) in branch 'master': bpo-22671: Clarify and test default read method implementations (#4568) https://github.com/python/cpython/commit/1b74f9b77a6fa1d7828986cb79d5b10942ff9

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 71d8f36eb450cdbc4b5397e25f6f3f5d676aca79 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32252: Fix faulthandler_suppress_crash_report() (GH-4794) (#4795) https://github.com/python/cpython/commit/71d8f36eb450cdbc4b5397e25f6f3f5d676a

[issue26855] android: add platform.android_ver()

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: > Yes, and fall back to spawning getprop if that fails. I suggest to start simple. Parsing a text file is simple, spawning a subprocess can have annoying side effects :-( -- ___ Python tracker

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-12-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 48d4dd974f0c8d47c54990eedd322b96b19c60ec by Victor Stinner in branch 'master': bpo-32252: Fix faulthandler_suppress_crash_report() (#4794) https://github.com/python/cpython/commit/48d4dd974f0c8d47c54990eedd322b96b19c60ec -- ___

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4694 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: > * No core dump must be written, Python is supposed to disable that My bad. It's an obvious bug that was missed before because regrtest creates a temporary directory to run tests and then remove it. I wrote the PR 4794 to fix faulthandler. -- _

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: > Maybe it just does not remove it because the test crashed ? Ah, you're right :-) -- ___ Python tracker ___

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4693 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > So running test_regrtest creates build/test_python_816/ but fails to remove > it because it contains a core dump: core-python.11.816. Not sure that it is because it contains a core file. Maybe it just does not remove it because the test crashed ? -

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Ah! I misunderstood the bug report. I was looking for a ENV_FAILED failure, > but no, regrtest fails to remove its temporary directory but no warning is > emitted in this case. Yes :-) -- ___ Python tracker

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: What is now the content of the 'build/' subdirectory of the source tree ? -- ___ Python tracker ___ __

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: Ah! I misunderstood the bug report. I was looking for a ENV_FAILED failure, but no, regrtest fails to remove its temporary directory but no warning is emitted in this case. vstinner@apu$ ls -d build/test_python_*; ./python -m test test_regrtest -m test.test_

[issue32252] test_regrtest leaves a test_python_* directory in TEMPDIR

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue on Fedora 27: vstinner@apu$ cat /proc/sys/kernel/core_pattern core-%e.%s vstinner@apu$ ulimit -c unlimited vstinner@apu$ ./python -m test test_regrtest Run tests sequentially 0:00:00 load avg: 0.70 [1/1] test_regrtest 1 test O

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread Julien Palard
Julien Palard added the comment: Looks like this behavior is documented in the bio_should_retry(3) man page. Basically bio_should_retry() tells if the error was non-fatal: int BIO_fd_should_retry(int i) { int err; if ((i == 0) || (i == -1)) { err = get_last

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes components: +SSL stage: -> needs patch ___ Python tracker ___ ___ Pyt

[issue32246] test_regrtest alters the execution environment on Android

2017-12-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: To debug and reproduce the problem on Android, one must checkout from the bpo-30386 branch https://github.com/python/cpython/pull/1629/commits/c0ca089220cd39851d7625b55510be63b340e188. faulthandler._sigsegv() does crash the crasher in test_crashed, so test_cr

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: See bpo-23618 for handling EINTR in socket and bpo-23834 for sock_call(). -- ___ Python tracker ___ __

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread STINNER Victor
STINNER Victor added the comment: "it seems that OpenSSL socket calls can fail with EINTR: ..." You are easily test by raising a signal: see Lib/test/test_eintr.py which stress Python functions by sending a signal every 100 ms while Python is blocked in a syscall. If there is a bug, sure, it

[issue32251] Add asyncio.BufferedProtocol

2017-12-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: See https://eklitzke.org/goroutines-nonblocking-io-and-memory-usage for an interesting discussion of the drawbacks of some buffer handling idioms. -- ___ Python tracker

[issue32275] SSL socket methods don't retry on EINTR?

2017-12-11 Thread Antoine Pitrou
New submission from Antoine Pitrou : Some time ago, PEP 475 was accepted in order to automatically retry system calls on EINTR, but the _ssl module wasn't touched. However, it seems that OpenSSL socket calls can fail with EINTR: https://stackoverflow.com/questions/24188013/openssl-and-signals

[issue32274] Potential leak in pysqlite_connection_init()

2017-12-11 Thread Lele Gaifax
Lele Gaifax added the comment: You are right, thank you. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32274] Potential leak in pysqlite_connection_init()

2017-12-11 Thread Julien Palard
Julien Palard added the comment: I don't see a leak here: as long as nobody keep a reference to each connection objects, pysqlite_connection_dealloc will be called and will call the sqlite3_close. In other words the sqlite3_close is called when the connection is destroyed, which happen when

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-12-11 Thread Nathaniel Smith
Nathaniel Smith added the comment: PR 4793 provides everything that Jinja2 and Trio actually need right now. It doesn't provide any way to annotate tracebacks with extra data, but I'm not entirely sure if that's necessary or what it would look like, so I figured I'd at least get this part in

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-12-11 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

  1   2   >