[issue35412] test_future4 ran no test

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2d91a1325f7def1cc3762cadf5f5a99a55dac78a by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-35412: Add testcase to test_future4 (GH-11131) (GH-11183) https://github.com/python/cpython/commit/2d91a1325f7def1cc3762cadf5f5a99a55dac78a

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2cf4c202ffeb30787c944365ba54013688b854c2 by Victor Stinner in branch 'master': bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) https://github.com/python/cpython/commit/2cf4c202ffeb30787c944365ba54013688b854c2 -

[issue19974] tarfile doesn't overwrite symlink by directory

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Martin: you review a patch written 4 years ago at https://bugs.python.org/review/19974/diff/11106/Lib/tarfile.py Oh wow, I didn't know that Rietveld was still working :-D It's maybe time to convert the old patch to a proper pull request on GitHub, no? :-) -

[issue35483] tarfile.extractall on existing symlink in Ubuntu overwrites target file, not symlink, unlinke GNU tar

2018-12-17 Thread Michael Brandl
Michael Brandl added the comment: Sounds good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10424 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset be69ff232df23b6ee165d7c34df5435d497cb79b by Miss Islington (bot) in branch '3.7': bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) https://github.com/python/cpython/commit/be69ff232df23b6ee165d7c34df5435d497cb79b --

[issue35515] Matrix operator star creates a false matrix

2018-12-17 Thread Arnaud
New submission from Arnaud : It seems that the definition of a matrix like this: a=[[0,0]]*4 does not create the matrix correctly by create 4 times the same pointer. After the matrix creation, a print(a) gives the following result: [[0, 0], [0, 0], [0, 0], [0, 0]] which looks normal print(type(a

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: > What result of platform.architecture() do you expect for an universal binary? I honestly don't know. What is the purpose of this functionality in the first place? I have never had a problem where using this function was the right solution. To be honest I

[issue35515] Matrix operator star creates a false matrix

2018-12-17 Thread Christian Heimes
Christian Heimes added the comment: [[0,0]]*4 is not a matrix definition. You are defining a list that shares the same list object four times. It's a common misunderstanding how list works, see https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpect

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Ronald Oussoren gave more info on my previous PR 10780 ("platform.platform() uses mac_ver() on macOS"): https://github.com/python/cpython/pull/10780#issuecomment-444529371 """ The information does not include data about fat binaries, resulting amongst other

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: > IMHO platform.architecture() should return 32bit when running "arch -i386 > /usr/local/bin/python3" to be consistent with struct.calcsize("P") == 4 and > sys.maxsize == 2147483647. Otherwise, how would you notice that you are using > the 32-bit flavor of

[issue35516] platform.system_alias(): add macOS support

2018-12-17 Thread STINNER Victor
New submission from STINNER Victor : platform.system_alias() documentation: Returns ``(system, release, version)`` aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion. IMHO "m

[issue35516] platform.system_alias(): add macOS support

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > than the platform.mac_ver() change made in bpo-35344 Oops, this issue changed platform.platform() (not platform.mac_ver()). -- ___ Python tracker

[issue35516] platform.system_alias(): add macOS support

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10425 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35516: "platform.system_alias(): add macOS support". -- ___ Python tracker ___ ___ P

[issue35457] robotparser reads empty robots.txt file as "all denied"

2018-12-17 Thread larsfuse
larsfuse added the comment: > (...) refers users, for file structure, to > http://www.robotstxt.org/orig.html. This says nothing about the effect of an > empty file, so I don't see this as a bug. That is incorrect. From that url you can find: > The presence of an empty "/robots.txt" file has

[issue35516] platform.system_alias(): add macOS support

2018-12-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch does not use the version information passed in to calculate the marketing version. That's a problem when passing in low-level information from a system running a different version of macOS (for example passing in the low-level version information

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > I don't agree. Platform.architecture() is defined to look at a specified > binary, not the currently running process. That can lead to inconsistencies > like this and is not something you can avoid. architecture() looks at running Python executable by defau

[issue35516] platform.system_alias(): add macOS support

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > The patch does not use the version information passed in to calculate the > marketing version. That's a problem when passing in low-level information > from a system running a different version of macOS (for example passing in > the low-level version infor

[issue22166] test_codecs leaks references

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > Do you mind to create a PR Victor? I completely forgot this issue and I don't plan to fix it in the short-term. Feel free to write PR if you want. -- ___ Python tracker

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8db5b54463118e5eb60cb3582e3108623f01f5df by Victor Stinner in branch 'master': bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) https://github.com/python/cpython/commit/8db5b54463118e5eb60cb3582e3108623f01f5df --

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10426 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35517] enhhance for selector.EpollSelector

2018-12-17 Thread Manjusaka
New submission from Manjusaka : Add a keyword argument for selector.EpollSelector with default value. This can help people use the EPOLLEXCLUSIVE since Python 3.7 and Linux Kernel 4.5 to avoid the herd effect like this def register(self, fileobj, events, data=None, exclusive=False):

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > Add a keyword argument for selector.EpollSelector with default value. I suggest to use a keyword-only parameter: def register(self, fileobj, events, data=None, *, exclusive=False): Do you want to work on a pull request? -- nosy: +giampaolo.rodola,

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: EPOLLEXCLUSIVE doc from Linux manual page: """ EPOLLEXCLUSIVE (since Linux 4.5) Sets an exclusive wakeup mode for the epoll file descriptor that is being attached to the target file descriptor, fd. When a wakeup event occurs and multiple epoll file de

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: if exclusive and hasattr(select, "EPOLLEXCLUSIVE"): epoll_events |= select.EPOLLEXCLUSIVE Maybe NotImplementedError would be more appropriate rather than silently ignore the error? -- ___ Pytho

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: I will work on a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: "a keyword-only parameter" is good I'll take it done -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue31784] Implementation of the PEP 564: Add time.time_ns()

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10427 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10428 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22117] Rewrite pytime.h to work on nanoseconds

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset 9ade4cbc0f54fc0e2970e4e202f09ab83f5e3b77 by Miss Islington (bot) in branch '3.7': bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) https://github.com/python/cpython/commit/9ade4cbc0f54fc0e2970e4e202f09ab83f5e3b77 ---

[issue35513] Lib/test/lock_tests.py should not use time.time(), but time.monotonic()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: I searched from "time.time" and "from time import(...)time" in the Python standard library (in the master branch) and it seems like all usage of time.time() are now appropriate. I close the issue. Sometimes, I'm not sure that if time.monotonic() or time.perf

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm not sure I understand what EPOLLEXCLUSIVE is about. Could you provide a use case? Also, there are other constants which may also be useful such as EPOLLWAKEUP and EPOLLONESHOT: http://man7.org/linux/man-pages/man2/epoll_ctl.2.html So perhaps it makes

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2018-12-17 Thread STINNER Victor
New submission from STINNER Victor : snakebite.net and blackhole.snakebite.net domains don't exist anymore, but test_timeout uses it: def testConnectTimeout(self): # Testing connect timeout is tricky: we need to have IP connectivity # to a host that silently drops our packe

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: Hello rodola Here's detail: In the server, we use multiprocess to handle the request with share the same FD. OK, when a request comes, all the process wake up and try to accept the request but only one process will accept success and the others will raise an E

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: We should either recreate this "blackhole" service on pythontest.net (server controlled by the PSF) or drop the test. @Benjamin: Hi, do you know who maintain pythontest.net? Who can add a "black hole" service? -- nosy: +benjamin.peterson __

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: CC Pablo who loves black holes ;-) -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-lis

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10430 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22117] Rewrite pytime.h to work on nanoseconds

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb by Victor Stinner in branch 'master': bpo-23451: Update time.monotonic() documentation (GH-11190) https://github.com/python/cpython/commit/3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb -- __

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb by Victor Stinner in branch 'master': bpo-23451: Update time.monotonic() documentation (GH-11190) https://github.com/python/cpython/commit/3ab064e80a9be1e6e9c62437fffb92bde9c5e1fb -- nosy: +vsti

[issue22117] Rewrite pytime.h to work on nanoseconds

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10431 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35276] Document thread safety

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: About system-wide: see also PR 11190, "time.monotonic() is now always available and always system-wide." -- ___ Python tracker ___ _

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-17 Thread Julien Palard
Julien Palard added the comment: Hi Matthias, I agree that for the smartquotes issue the 1.6.6 should be enough. But we had multiple small issues fixed in some versions of Sphinx. But mostly for translation and I don't think you're building the translations? Also the needs_sphinx is only th

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-17 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +10432 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, I abandon my change. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35472] python 3.7.2 rc1 bumped sphinx requirements a bit too much

2018-12-17 Thread Julien Palard
Change by Julien Palard : -- title: python 3.7.2 rc1 bumped the build requirements for no reason -> python 3.7.2 rc1 bumped sphinx requirements a bit too much ___ Python tracker _

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Change by Manjusaka : -- keywords: +patch pull_requests: +10433 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35266] Add _PyPreConfig and rework _PyCoreConfig and _PyMainInterpreterConfig

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: When I looked again at this issue, I'm not sure how what should be done, what is the proper design, what should stay after Python initialization, etc. I prefer to abandon this change and maybe retry to write it later. I have a more advanced version in this b

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2018-12-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related : issue31562 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list maili

[issue22117] Rewrite pytime.h to work on nanoseconds

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset c367d52a74781b2c9ffd9e29722fbdfc0234408c by Miss Islington (bot) in branch '3.7': bpo-23451: Update time.monotonic() documentation (GH-11190) https://github.com/python/cpython/commit/c367d52a74781b2c9ffd9e29722fbdfc0234408c -- nosy: +m

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset c367d52a74781b2c9ffd9e29722fbdfc0234408c by Miss Islington (bot) in branch '3.7': bpo-23451: Update time.monotonic() documentation (GH-11190) https://github.com/python/cpython/commit/c367d52a74781b2c9ffd9e29722fbdfc0234408c -- nosy: +m

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I see. Then I would say it's a matter of deciding what's the best API to provide. Another possibility is to promote the underlying epoll() instance as a public property, so one can do: >>> s = selectors.EpollSelector() >>> s.register(fd, EVENT_READ) >>> s

[issue35519] Can not run test without test module for tests which import random module

2018-12-17 Thread Vajrasky Kok
New submission from Vajrasky Kok : $ git clone g...@github.com:python/cpython.git cpython2 $ cd cpython2 $ ./configure --with-pydebug $ make -j $ ./python Lib/test/test_xmlrpc.py Traceback (most recent call last): File "Lib/test/test_xmlrpc.py", line 8, in import xmlrpc.client as xmlrpcl

[issue35519] [2.7] Can not run test without test module for tests which import random module

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Your problem is that you have the Lib/test/bisect.py file. I renamed it to Lib/test/bisect_cmd.py. Workarounds: * Run the test using: ./python -m test test_xmlrpc * Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py This bug is already fixed in the 2.7. Yo

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: In my opinion selectors is an abstract for select, so I don't think allow people use select.* in selector is a good idea. like this > s.register(fd, EVENT_READ, extra_events=select.EPOLLEXCLUSIVE | > select.EPOLLONESHOT) Because the multiple epoll's params are

[issue31562] snakebite.net is not available

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: Oh, I found the same bug: bpo-35518. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-li

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: I prefer Giampaolo since discussed flags are very specific to epoll(): select() doesn't support them for example, nor kqueue nor devpoll (not *yet*). If we add a keyword-parameter, to me, it sounds like it's something "portable" working on multiple platforms

[issue35520] Python won't build with dtrace enabled on some systems.

2018-12-17 Thread Jakub Kulik
New submission from Jakub Kulik : Python won't build on Solaris with dtrace support enabled. Solaris is one of those systems where it is necessary to generate dtrace object files with dtrace -G. While this need is included in python configure and Makefiles, it doesn't work correctly. First,

[issue35520] Python won't build with dtrace enabled on some systems.

2018-12-17 Thread Jakub Kulik
Change by Jakub Kulik : -- keywords: +patch pull_requests: +10434 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: OK, I will change my code -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: Vicor: > Moreover, we directly support any EPOLL constant exposed in the select > module. No need to change the API. I don't think so In class _PollLikeSelector ,here's register method def register(self, fileobj, events, data=None): key = super().regis

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: I mean that using extra_events to get access to EPOLLEXCLUSIVE, there is no need later to add a new parameter for select.EPOLLONESHOT: it would be "future proof"! -- ___ Python tracker

[issue35415] fileno argument to socket.socket is not validated

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset e991270363435da12049ecfe70bb69bd9c14b535 by Miss Islington (bot) (Dima Tisnek) in branch 'master': bpo-35415: validate fileno argument to socket.socket (GH-10917) https://github.com/python/cpython/commit/e991270363435da12049ecfe70bb69bd9c14b535

[issue35415] fileno argument to socket.socket is not validated

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

[issue35519] [2.7] Can not run test without test module for tests which import random module

2018-12-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, thanks, Victor. Your suggestion to rename Lib/test/bisect.py to Lib/test/bisect_cmd.py works. My question is why you fixed in 2.7 branch only? This problem persists in master (3.8). Ah, I think because I use cpython2 directory name, you thought I used Py

[issue18799] Resurrect and fix test_404 in Lib/test/test_xmlrpc.py

2018-12-17 Thread Vajrasky Kok
Change by Vajrasky Kok : -- pull_requests: +10435 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19974] tarfile doesn't overwrite symlink by directory

2018-12-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Martin Panter, thank you for reviewing my patch. Let me rework it. It has been a while (4 years!!!). -- ___ Python tracker ___ ___

[issue18799] Resurrect and fix test_404 in Lib/test/test_xmlrpc.py

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky. The restored test is passed locally and on CI. Let try it on buildbots. -- versions: +Python 3.8 -Python 3.3, Python 3.4 ___ Python tracker __

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e2af34fcf84b41189b54e1f2912faded5daabaca by Serhiy Storchaka in branch 'master': bpo-35504: Fix a SystemError when delete the characters_written attribute of an OSError. (GH-11172) https://github.com/python/cpython/commit/e2af34fcf84b41189b54

[issue35490] Remove the DecodeFSDefault return converter in Argument Clinic

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4db62e115891425db2a974142a72d8eaaf95eecb by Serhiy Storchaka in branch 'master': bpo-35490: Remove the DecodeFSDefault return converter in AC. (#11152) https://github.com/python/cpython/commit/4db62e115891425db2a974142a72d8eaaf95eecb ---

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 842acaab1376c5c84fd5966bb6070e289880e1ca by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) https://github.com/python/cpython/commit/842acaab1376c5c84fd596

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10436 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21041] pathlib.PurePath.parents rejects negative indexes

2018-12-17 Thread Joshua Cannon
Joshua Cannon added the comment: I created issue35498 about .parents rejecting slices as well. (It was pointed out this discussion would probably decide that issue's fate) I think that .parents looking like a duck, but not quacking like one isn't very pythonic. Besides, the fact that p.paren

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset cb272843f2d5dfc4ef996ba952b99a3e30c88bbc by Miss Islington (bot) in branch '3.7': bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) https://github.com/python/cpython/commit/cb272843f2d5dfc4ef996ba952b99a3e30c88bb

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bdabb0737c631835b246c9823852d20331243315 by Serhiy Storchaka in branch 'master': bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) https://github.com/python/cpython/commit/bdabb0737c631835b246c9823852d20331243315 -

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10437 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10438 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35490] Remove the DecodeFSDefault return converter in Argument Clinic

2018-12-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___ __

[issue33306] Improving SyntaxError for unmatched parentheses

2018-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 94cf308ee231bfbfaa9ddc50b9764545a1318773 by Serhiy Storchaka in branch 'master': bpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516) https://github.com/python/cpython/commit/94cf308ee231bfbfaa9ddc50b9764545a1318773

[issue35519] [2.7] Can not run test without test module for tests which import random module

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: > Ah, I think because I use cpython2 directory name, you thought I used Python > 2. cpython2 is just a directory name. It has nothing to do with Python 2. I > used master when finding this bug. Ah right, I can reproduce the issue in master: vstinner@apu$ ./

[issue35519] Can not run test without test module for tests which import random module

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- title: [2.7] Can not run test without test module for tests which import random module -> Can not run test without test module for tests which import random module ___ Python tracker

[issue35519] Can not run test without test module for tests which import random module

2018-12-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10439 stage: resolved -> patch review ___ Python tracker ___ ___ Pyth

[issue33306] Improving SyntaxError for unmatched parentheses

2018-12-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-17 Thread miss-islington
miss-islington added the comment: New changeset 605ef6e534f05925ff826f65518abf163ed3900a by Miss Islington (bot) in branch '3.7': bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) https://github.com/python/cpython/commit/605ef6e534f05925ff826f65518abf163ed3900a --

[issue35360] [Windows] Update SQLite dependency

2018-12-17 Thread Steve Dower
Steve Dower added the comment: SQLite updates and changes for us almost always get stuck on someone being willing to verify that nothing has broken (and stand by their analysis). Without an active expert (I just nosied ghaering in case they are around), I'm not confident to make this change

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0af9c33262fb43f39a6558e3f155689e83e10706 by Victor Stinner in branch 'master': bpo-35348: Fix platform.architecture() (GH-11159) https://github.com/python/cpython/commit/0af9c33262fb43f39a6558e3f155689e83e10706 --

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Guys, please read the doc-string of the platform.architecture() function (or ask the person who wrote most of the module). It clearly refers to inspecting a specific executable and only uses the Python interpreter as default. The running process can prov

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I took a look at your PR. As the PR currently stands it only works with epoll() selector. For the other selectors this is just an extra argument which does nothing, so it complicates the API of 2 methods for no real gain. Also, a single argument is not co

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Manjusaka added the comment: Actually, in my implementation, it also supports POLL with the different event. I don't think to make selector be a public property is a good idea. It will break the whole system integrity. Please think about it, if people want to use epoll/poll with some special

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

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

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hmm, I forgot kqueue usage details: it operated not only with int flags but more complex structures. Giampaolo, thanks for pointing on! Please let me sleep on it. -- ___ Python tracker

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Manjusaka
Change by Manjusaka : -- nosy: -asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

2018-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure I understand the proposed solution. Do you mean you would replace this: Parent -> forkserver -> fork child then exec with: Parent -> forkserver -> posix_spawn child? -- nosy: +pitrou ___ Python

[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

2018-12-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: At any rate, given the constraints you're working with (thousands of child processes, memory conservation issues), I suggest you abandon the idea of using multiprocessing and write your own subprocess-server instead. I would suggest doing so using asyncio, w

[issue35519] Can not run test without test module for tests which import random module

2018-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +10440 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35519] Can not run test without test module for tests which import random module

2018-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1dd035954bb03c41b954ebbd63969b4bcb0e106e by Victor Stinner in branch 'master': bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200) https://github.com/python/cpython/commit/1dd035954bb03c41b954ebbd63969b4bcb0e106e -- __

[issue35238] Alleviate memory reservation of fork_exec in subprocess.Popen via forkserver

2018-12-17 Thread Oscar Esteban
Oscar Esteban added the comment: Thanks for your response. The idea would be to enable ``subprocess.Popen`` to use an existing fork server in its fork_exec. The rationale: I can start a pool of n workers very early in the execution flow. They will have ~350MB memory fingerprint in the begin

  1   2   >