[issue46965] Enable informing callee it's awaited via vector call flag

2022-03-22 Thread Vladimir Matveev
Vladimir Matveev added the comment: - introducing dedicated opcodes for each kind of awaited call is definitely an option. In fact first implementation used it however as Dino has mentioned it was more of a logistical issue (there were several spots that produced .pyc files so compiler

[issue46965] Enable informing callee it's awaited via vector call flag

2022-03-09 Thread Vladimir Matveev
Change by Vladimir Matveev : -- nosy: +v2m ___ Python tracker <https://bugs.python.org/issue46965> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46787] ProcessPoolExecutor exception memory leak

2022-02-18 Thread Vladimir Vinogradenko
New submission from Vladimir Vinogradenko : If an exception occurs in ProcessPoolExecutor work item, all the exception frame local variables are not garbage collected (or are garbage collected too lately) because they are referenced by the exception's traceback. Attached file is a test

[issue46639] Ceil division with math.ceildiv

2022-02-05 Thread Vladimir Feinberg
Vladimir Feinberg added the comment: Mark, I will say I'm pretty sympathetic to the feature-bloat avoidance perspective here, and if the outcome here is to improve docs, that's still a win, I think. That said, since this thread will become precedent, and I think `math.ceildiv` is t

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Vladimir Feinberg
New submission from Vladimir Feinberg : I have a request related to the rejected proposal (https://bugs.python.org/issue43255) to introduce a ceildiv operator. I frequently find myself wishing for a ceildiv function which computes `ceil(x/y)` for integers `x,y`. This comes up all the time

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-04-27 Thread Vladimir Matveev
Vladimir Matveev added the comment: Apologies for the delay in reply: in more concrete numbers for IG codebase enabling this optimization resulted in 0.2% CPU win. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43698] Use syntactically correct examples on abc package page

2021-04-01 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : There are code snippets on the package's page (https://docs.python.org/3.10/library/abc.html) like this: class C(ABC): @classmethod @abstractmethod def my_abstract_classmethod(cls, ...): ... Here, the author probably want

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Vladimir Matveev
Vladimir Matveev added the comment: >Currently, super() is decoupled from the core language. It is just a builtin >that provides customized attribute lookup. This PR makes super() more tightly >integrated with the core language, treating it as if it were a keyword and >part of

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-19 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +23696 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24936 ___ Python tracker <https://bugs.python.org/issu

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-19 Thread Vladimir Matveev
New submission from Vladimir Matveev : Calling methods and lookup up attributes when receiver is `super()` has extra cost comparing to regular attribute lookup. It mainly comes from the need to allocate and initialize the instance of the `super` which for zero argument case also include

[issue43048] Printing RecursionError results in RecursionError

2021-02-05 Thread Vladimir Feinberg
Change by Vladimir Feinberg : -- keywords: +patch pull_requests: +23256 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/24460 ___ Python tracker <https://bugs.python.org/issu

[issue43048] Printing RecursionError results in RecursionError

2021-02-02 Thread Vladimir Feinberg
Vladimir Feinberg added the comment: Yep, you're right. I'd be happy to (but I've never done it before, so please give me some time). On Tue, Feb 2, 2021 at 12:35 AM Irit Katriel wrote: > > Irit Katriel added the comment: > > It should truncate at the call that

[issue43048] Printing RecursionError results in RecursionError

2021-02-01 Thread Vladimir Feinberg
Vladimir Feinberg added the comment: Oh, yes, I suppose, that'll truncate to just the first TracebackException. On Mon, Feb 1, 2021 at 4:38 PM Irit Katriel wrote: > > Irit Katriel added the comment: > > I meant to catch the exception in the constructor’s recursive call, a

[issue43048] Printing RecursionError results in RecursionError

2021-02-01 Thread Vladimir Feinberg
Vladimir Feinberg added the comment: A simple catch may not work (the very first TracebackException is the one that gets the RecursionError during initialization of its __context__), but one thing I was thinking about was walking the __context__ pointers and nulling out anything past the

[issue43048] Printing RecursionError results in RecursionError

2021-01-29 Thread Vladimir Feinberg
Vladimir Feinberg added the comment: I agree with both the duplicate classification and am glad the fix works in 3.10. Thanks all for the responses. Given the issue can be triggered with a fairly benign setup (pandas triggers such an error, and logger.exception is idiomatic), I do think

[issue43048] Printing RecursionError results in RecursionError

2021-01-27 Thread Vladimir Feinberg
New submission from Vladimir Feinberg : Python's standard logger provides an exception() method, which is to be called from except blocks to log out exception traces by pulling from sys.exc_info(). Per https://github.com/python/cpython/blob/3.9/Lib/logging/__init__.py#L617 , logger.exce

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2021-01-06 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: The issue won't be fixed, but other useful changes applied. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue38413] Remove or change "Multithreading" section

2021-01-06 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.7 ___ Python tracker <https://bugs.python.org/i

[issue38413] Remove or change "Multithreading" section

2021-01-06 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- pull_requests: +22974 pull_request: https://github.com/python/cpython/pull/24145 ___ Python tracker <https://bugs.python.org/issue38

[issue42085] Add dedicated slot for sending values

2020-11-18 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +22267 pull_request: https://github.com/python/cpython/pull/23374 ___ Python tracker <https://bugs.python.org/issue42

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-09 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: All right, you won. I hope beginner users will be happy :) I removed my proposal paragraph about __cause__ and __context__ and kept only changes about exception type (https://bugs.python.org/issue42179#msg380435

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-05 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: Also, the choice of the exception type in the example looks not very apt: you raise "IOError" but the traceback message says "OSError" (which is due to strange design decision "IOError = OSError"). For the tutorial, I would

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-05 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: We have automatic chaining, so you don't need to use "from X" unless you want to have some control on the traceback message. Even without knowing of this syntax (and without using "from exc"), a user will get a traceback message

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-05 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: > I can not find confusion caused by this tutorial section Inada, have you read the very first message in this ticket? It explains why this wording may cause confusion (and it did in me), and describes the problem part. A link for your convenience: ht

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-05 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: 1. Such understanding of a tutorial is debatable. Tutorial is just a material for learning written with some system in mind, which is more interesting to read than dry reference material. A tutorial, generally dpeaking, may be both for beginners and for

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-04 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- keywords: +patch pull_requests: +22072 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23160 ___ Python tracker <https://bugs.python.org/issu

[issue38413] Remove or change "Multithreading" section

2020-11-04 Thread Vladimir Ryabtsev
Change by Vladimir Ryabtsev : -- pull_requests: +22071 pull_request: https://github.com/python/cpython/pull/23159 ___ Python tracker <https://bugs.python.org/issue38

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-10-28 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : A new section has been added to the page as a result of https://bugs.python.org/issue37826. The change: https://github.com/python/cpython/commit/dcfe111eb5602333135b8776996332a8dcf59392 The wording it uses (in the beginning of section 8.5), defines

[issue38413] Remove or change "Multithreading" section

2020-10-28 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: Also the footnote requires some minor corrections (formatting and style). I suggest the following wording: To get loadable extension support, your Python must be compiled with ``-–enable-loadable-sqlite-extensions`` option in ``PYTHON_CONFIGURE_OPTS``. I

[issue38413] Remove or change "Multithreading" section

2020-10-28 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: May by I was wrong above and it uses system's Sqlite... But anyway it does not cancel the fact that this section contradicts to another one. -- ___ Python tracker <https://bugs.python.org/is

[issue38413] Remove or change "Multithreading" section

2020-10-28 Thread Vladimir Ryabtsev
Vladimir Ryabtsev added the comment: I see no point in researching the version of sqlite, since Python does not allow user to specify it, you just use the compiled version that comes with Python distribution. 10 years now to the commit that introduced that piece of text: https://github.com

[issue42113] Replace _asyncio.TaskWakeupMethWrapper with PyCFunction

2020-10-21 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +21817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22875 ___ Python tracker <https://bugs.python.org/issu

[issue42113] Replace _asyncio.TaskWakeupMethWrapper with PyCFunction

2020-10-21 Thread Vladimir Matveev
New submission from Vladimir Matveev : `TaskWakeupMethWrapper` looks like a more limited version of `PyCFunction` so it can be replaced with one. Pros: remove a bunch of code, use better calling convention Cons: now `wakeup` object will expose slightly more properties but I'm not sure wh

[issue42085] Add dedicated slot for sending values

2020-10-20 Thread Vladimir Matveev
Change by Vladimir Matveev : -- type: -> performance ___ Python tracker <https://bugs.python.org/issue42085> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42085] Add dedicated slot for sending values

2020-10-19 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +21739 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22780 ___ Python tracker <https://bugs.python.org/issu

[issue42085] Add dedicated slot for sending values

2020-10-19 Thread Vladimir Matveev
New submission from Vladimir Matveev : https://bugs.python.org/issue41756 has introduced PyIter_Send as a common entrypoint for sending values however currently fast path that does not use StopIteration exception is only available for generators/coroutines. It would be quite nice if this

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +21649 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22677 ___ Python tracker <https://bugs.python.org/issu

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-11 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +21639 pull_request: https://github.com/python/cpython/pull/22663 ___ Python tracker <https://bugs.python.org/issue41

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-28 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +21473 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22443 ___ Python tracker <https://bugs.python.org/issu

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-28 Thread Vladimir Matveev
Vladimir Matveev added the comment: No, I don't think so but I can definitely make one. A few questions first: - having PySendResult as a result type of PyIterSend seems ok, however prefix for each concrete value (PYGEN_*) is not aligned with the prefix of the function itself (Py

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-27 Thread Vladimir Matveev
Vladimir Matveev added the comment: Serhiy, AFAIR PyIter_Send in my PR appear only as a rename from placeholder `Name_TBD` and it still was specific to PyGenObjects. Do you mean something that was listed in https://bugs.python.org/msg377007

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Vladimir Matveev
Vladimir Matveev added the comment: Yes, it should be -- ___ Python tracker <https://bugs.python.org/issue41756> ___ ___ Python-bugs-list mailing list Unsub

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-18 Thread Vladimir Matveev
Vladimir Matveev added the comment: Sounds like a good middleground to start: add ``PySendResult `` and `PySendResult PyGen_Send(PyGenObject*, PyObject* PyObject**)` specific to generators and coroutines. Subsequent changes could introduce `PySendResult PyIter_Send(PyObject*, PyObject

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Vladimir Matveev
Vladimir Matveev added the comment: so to summarize: Proposed function signature: ``` PySendResult PyIter_Send(PyObject *obj, PyObject *arg, PyObject **result); ``` For generators/coroutines function will delegate to specialized implementation that does not raise StopIteration exception For

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-17 Thread Vladimir Matveev
Vladimir Matveev added the comment: I guess `PyIter_Send` would imply that this function should work for all inputs (like in https://bugs.python.org/msg377007) which also sounds reasonable. -- ___ Python tracker <https://bugs.python.

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-16 Thread Vladimir Matveev
Vladimir Matveev added the comment: Also should it be specific to generators/coroutines and accept PyGenObject* or should it try to handle multiple cases and expose the result for them in uniform way, i.e. ``` if (PyGen_CheckExact(gen) || PyCoro_CheckExact(gen)) { // use coroutine

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-11 Thread Vladimir Matveev
Vladimir Matveev added the comment: If I understand proposed shape of API correctly - it was not supposed to return exception via "result" so contract for new `PyGen_Send` function is something like: Return value | result

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +21255 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22196 ___ Python tracker <https://bugs.python.org/issu

[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev
New submission from Vladimir Matveev : Currently async functions are more expensive to use comparing to their sync counterparts. A simple microbenchmark shows that difference could be quite significant: ``` import time def f(a): if a == 0: return 0 return f(a - 1) async def

[issue39992] Windows line endings of pyc file detected on Ubuntu

2020-03-17 Thread Vladimir
New submission from Vladimir : I have problem to run pyc file on one machine with Ubuntu Server 18.04.4 LTS. This is my source code of the file: #!/root/PycharmProjects/Project/venv/bin/python3.7 print("Hi") When I compile it in python console with commands: import

[issue38413] Remove or change "Multithreading" section

2019-10-08 Thread Vladimir Ryabtsev
New submission from Vladimir Ryabtsev : This is regarding the page https://docs.python.org/3.7/library/sqlite3.html. I believe this section on the very bottom of the page has been kept here for pretty long time, during that both SQLite and the sqlite3 module evolved and improved. Now the

[issue29326] Blank lines in ._pth file are not ignored

2019-05-28 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +13537 pull_request: https://github.com/python/cpython/pull/7243 ___ Python tracker <https://bugs.python.org/issue29

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Vladimir Surjaninov
Change by Vladimir Surjaninov : -- keywords: +patch pull_requests: +12465 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36407> ___ _

[issue36407] xml.dom.minidom wrong indentation writing for CDATA section

2019-03-23 Thread Vladimir Surjaninov
New submission from Vladimir Surjaninov : If we are writing xml with CDATA section and leaving non-empty indentation and new-line parameters, a parent node of the section will contain useless indentation, that will be parsed as a text. Example: >>>doc = minidom.Document(

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-08 Thread Vladimir Perić
Vladimir Perić added the comment: Thank you all for this expeditive help. Sorry for taking your time. I will remove bad certificates from my machine. Thanks again. I will try to close this one. -- stage: -> resolved status: open ->

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-07 Thread Vladimir Perić
Vladimir Perić added the comment: Public Certificate file cert.pem is attached. Version of ssl lib in pythons on my machine: Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-05 Thread Vladimir Perić
Vladimir Perić added the comment: Same outcome in Python 3.7.2. See first comment for detailed explanation of issue. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35665] Function ssl.create_default_context raises exception on Windows 10 when called with ssl.Purpose.SERVER_AUTH) attribute

2019-01-05 Thread Vladimir Perić
New submission from Vladimir Perić : In Python 3.7.1 on Windows 10 ssl library function call ssl.create_default_context(ssl.Purpose.SERVER_AUTH) raises an ssl error: File "C:\Python37\lib\ssl.py", line 471, in _load_windows_store_certs self.load_verify_locations(cadata=certs) ss

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2018-12-27 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch, patch pull_requests: +10606, 10607 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2018-12-27 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch, patch, patch pull_requests: +10606, 10607, 10608 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2018-12-27 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10606 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35568> ___ _

[issue35568] Expose the C raise() function in the signal module, for use on Windows

2018-12-23 Thread Vladimir Matveev
Change by Vladimir Matveev : -- nosy: +v2m ___ Python tracker <https://bugs.python.org/issue35568> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2018-12-19 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10488 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue14094] ntpath.realpath() should use GetFinalPathNameByHandle()

2018-12-19 Thread Vladimir Matveev
Vladimir Matveev added the comment: I can give it a try. -- nosy: +v2m ___ Python tracker <https://bugs.python.org/issue14094> ___ ___ Python-bugs-list mailin

[issue31446] _winapi.CreateProcess (used by subprocess) is not thread-safe

2018-12-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10371 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31446> ___ _

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2018-12-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10367 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2018-12-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +10365 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35306> ___ _

[issue35034] Add closing and iteration to threading.Queue

2018-11-09 Thread Vladimir Filipović
Vladimir Filipović added the comment: Hi Raymond! Thanks for the attention you've given this and for the words of encouragement. I'll try to make something like this for PyPI. I do feel I should critique your metaphor of Queues as email. (Please don't take this as a request

[issue35034] Add closing and iteration to threading.Queue

2018-10-30 Thread Vladimir Filipović
Vladimir Filipović added the comment: Hi Raymond! I've posted to python-ideas: https://mail.python.org/pipermail/python-ideas/2018-October/054238.html The amount of attention it got was modest, so I couldn't exactly say the community has thoroughly vetted and enthusiastically end

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch, patch, patch pull_requests: +9354, 9355, 9356, 9357 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch, patch pull_requests: +9354, 9355, 9357 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch pull_requests: +9354 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35034> ___ _

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
Change by Vladimir Filipović : -- keywords: +patch, patch pull_requests: +9354, 9355 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35034] Add closing and iteration to threading.Queue

2018-10-20 Thread Vladimir Filipović
New submission from Vladimir Filipović : Code using threading.Queue often needs to coordinate a "work is finished as far as far as I care" state between the producing and consuming side. When going from the producer to the consumer ("No more items after this, so don't bo

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Vladimir Matveev
Change by Vladimir Matveev : -- nosy: +v2m ___ Python tracker <https://bugs.python.org/issue34872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-09-19 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +8843 ___ Python tracker <https://bugs.python.org/issue34603> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34688] Segfault in pandas that works fine on 3.7

2018-09-17 Thread Vladimir Matveev
Vladimir Matveev added the comment: somewhat shortened repro that fails with the same error on master: ``` import pandas import numpy now = pandas.Timestamp.now() arr = numpy.array([ ['a', now] for i in range(0, 3)]) arr.sum(0) ``` --

[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-09-13 Thread Vladimir Matveev
Change by Vladimir Matveev : -- keywords: +patch pull_requests: +8690 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34603> ___ _

[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-09-12 Thread Vladimir Matveev
Vladimir Matveev added the comment: I think the problem is that FFI layer assumes that MSVC compiler will try to pass any structure less than 8 bytes in registers whereis it is not always true: To be returned by value in RAX, user-defined types must have a length of 1, 2, 4, 8, 16, 32, or

[issue34606] Unable to read zip file with extra

2018-09-11 Thread Vladimir Matveev
Vladimir Matveev added the comment: In this particular case looks like a crux of the problem was in the fact that compression encodes extra fields only if either zip64 is set or length of the field is larger than threshold but decompression always tries to decode it. Attached PR switches

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2018-09-09 Thread Vladimir Matveev
Vladimir Matveev added the comment: To bring in analogy: C# has lock statement that allow to run a block of code holding a mutual-exclusion lock on some object. ``` lock(o) { } ``` is compiled as ``` object _lock = o; bool _lockTaken = false; try { System.Threading.Monitor.Enter(_lock

[issue34602] python3 resource.setrlimit strange behaviour under macOS

2018-09-07 Thread Vladimir Matveev
Vladimir Matveev added the comment: I can repro it with a given sample file ``` vladima-mbp $ cat test.c #include #include #include #include #include int main() { struct rlimit rl; if(getrlimit(RLIMIT_STACK, &rl) < 0) { perror("getrlimit"); exit(1);

[issue34606] Unable to read zip file with extra

2018-09-07 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +8561 ___ Python tracker <https://bugs.python.org/issue34606> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-09-06 Thread Vladimir Matveev
Vladimir Matveev added the comment: file URI scheme is covered by RFC8089, specifically https://tools.ietf.org/html/rfc8089#appendix-E.3.2. -- nosy: +v2m ___ Python tracker <https://bugs.python.org/issue34

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2018-09-05 Thread Vladimir Matveev
Vladimir Matveev added the comment: I agree. From code in threading.Condition.wait looks like if it is interrupted either after calling _release_save and before entering try block or in finally block before calling _acquire_restore - it will leave the lock in non-acquired state. First

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-08-27 Thread Vladimir Matveev
Vladimir Matveev added the comment: I've tried to repro this on Mac, Windows box and Windows VM - works fine for all cases. -- nosy: +v2m ___ Python tracker <https://bugs.python.org/is

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-22 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +8338 ___ Python tracker <https://bugs.python.org/issue6700> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-31 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Unfortunately this is not true: "Blank lines and lines beginning with # are skipped." (https://docs.python.org/3/library/site.html#index-1) I'm not sure we should change this behavior as it would make huge impact on usage of `pth` files b

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: -6869 ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list mailing list Unsub

[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- title: `._pth` does not allow to populate `sys.path` empty entry -> `._pth` does not allow to populate `sys.path` with empty entry ___ Python tracker <https://bugs.python.org/issu

[issue33698] `._pth` does not allow to populate `sys.path` empty entry

2018-05-30 Thread Vladimir Chebotarev
New submission from Vladimir Chebotarev : Moving from bpo-29326 Hi Steve. I'll try to explain what is my motivation. I need a reliable way to run Python (not matter embedded or not) in isolated mode, but still having current directory in `sys.path` (empty entry). Ironically I

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi Steve. I'll try to explain what is my motivation. I need a reliable way to run Python (not matter embedded or not) in isolated mode, but still having current directory in `sys.path` (empty entry). Ironically I could misuse normal mode to sim

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +6869 ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list mailing list Unsub

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: I shall attach pull request soon. -- ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list m

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi. I guess this issue has to be reopen because Alexey erroneously broke adding empty paths to `sys.path` along with his patch. Official embeddable Pythons do contain a blank line in its ._pth, and this allowed users to import modules from script

[issue26340] modal dialog with transient method; parent window fails to iconify

2017-12-08 Thread Vladimir Semenenko
Vladimir Semenenko added the comment: After they marked the issue as "resolved" earlier this year I tested a subsequent 3.x release in Windows 7 and Vista (I don't have 10). The issue was still there. I don't have a workaround. I am forced to stay with 2.7.3. On Dec 8,

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-11-02 Thread Vladimir Magamedov
Vladimir Magamedov added the comment: Seems like this fix is incomplete. It contains this check: sock.type == socket.SOCK_STREAM But sock.type is not only a type (at least in Linux and FreeBSD), it also may contain SOCK_NONBLOCK and SOCK_CLOEXEC flags. So I'm hitting the same pr

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Vladimir Filippov
Vladimir Filippov added the comment: According to ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT symbols [ and ] have other codes (instead of 0xAD and 0xBD): 0xBA0x005B #LEFT SQUARE BRACKET 0xBB0x005D #RIGHT SQUARE BRACKET Looks like ftp://ftp.unicode.org

[issue30586] Encode to EBCDIC doesn't take into account conversion table irregularities

2017-06-07 Thread Vladimir Filippov
New submission from Vladimir Filippov: These 4 symbols were encoded incorrectly to EBCDIC (codec cp500): "![]|". Correct table of conversation for these symbols described in https://www.ibm.com/support/knowledgecenter/SSZJPZ_11.3.0/com.ibm.swg.im.iis.ds.parjob.adref.

[issue29542] python -m spacy.en.download undefined symbol: _ZSt24__throw_out_of_range_fmtPKcz

2017-02-13 Thread Vladimir Shebunyaev
New submission from Vladimir Shebunyaev: I have (python 2.7.13 Anaconda 4.3.0 64bit Ubuntu 16 ) tried python -m spacy.en.download and got /home/vshebuniayeu/anaconda2/bin/python: /home/vshebuniayeu/anaconda2/lib/python2.7/site-packages/spacy/serialize/huffman.so: undefined symbol

  1   2   >