[issue44445] Add `site-include` install scheme path in sysconfig

2022-03-21 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <https://bugs.python.org/issue5> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45767] Fix types for dev_t processing in posix module

2022-01-20 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: > Is device number -1 used in any context (for example as "unknown device > number")? Yes, there's NODEV macro in both Linux and FreeBSD which expands to ((dev_t)-1). -- ___ P

[issue46163] multiprocessing logger deadlocks if used with logging.handlers.QueueHandler

2021-12-23 Thread dmitry-bychkov
New submission from dmitry-bychkov : Hello! If you use multiprocessing logger with logging.handlers.QueueHandler it will deadlock on first attempt at logging. First attempt will initialize queue's background thread, which uses multiprocessing logger itself which will result in something

[issue46121] Add a note to QueueListener documentation saying that SimpleQueue instances can't be used in multiprocessing scenarios

2021-12-18 Thread dmitry-bychkov
New submission from dmitry-bychkov : Currently, documentation for QueueListener (https://docs.python.org/3/library/logging.handlers.html#queuelistener) says: """ supports receiving logging messages from a queue, such as those implemented in the queue or multiprocessing modu

[issue46096] Support PyObject interface for global variables in local scope and debugger

2021-12-16 Thread Dmitry
Change by Dmitry : -- keywords: +patch pull_requests: +28359 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30141 ___ Python tracker <https://bugs.python.org/issu

[issue46096] Support PyObject interface for global variables in local scope and debugger

2021-12-16 Thread Dmitry
New submission from Dmitry : We use the embedded Python in a multiscript environment. For example, VBS can execute Python code and vice versa. For that purpose we use a global context which is common for all running scripts (Python, VBS etc.) and control access to variables in that context

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: In case you're curious, here are some st_dev values which are encountered on my FreeBSD: - 0xac2308de99d1f699 - ZFS - 0x7100ff00 - devfs - 0x8700ff01 - tmpfs - 0x2900ff4e - nullfs I suspect Linux uses smaller numbers which do not cause overflo

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
Change by Dmitry Marakasov : -- pull_requests: +27743 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29494 ___ Python tracker <https://bugs.python.org/issu

[issue45767] Fix types for dev_t processing in posix module

2021-11-09 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : So, I was investigating a test failure of python 3.11 and 3.10 on FreeBSD (but it likely applies to all python versions): == FAIL: test_makedev (test.test_posix.PosixTester

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-10-29 Thread Dmitry Smirnov
Change by Dmitry Smirnov : -- keywords: +patch nosy: +dmitrysmirnov931 nosy_count: 2.0 -> 3.0 pull_requests: +27588 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29318 ___ Python tracker <https://bugs.p

[issue45326] Unexpected TypeError with type alias+issubclass+ABC

2021-09-29 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : Here's a curious problem. issubclass() check of a type against an ABC-derived class raises TypeError claiming that type is not a class, however inspect.isclass() says it's a class, and issubclass() check against a simple class works fine: ``

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-06-16 Thread Dmitry Kulazhenko
Change by Dmitry Kulazhenko : -- nosy: +EugenePY, FFY00, Viktor Roytman, glyph, levkivskyi, lukasz.langa, markgrandi, mental, ncoghlan, xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2021-06-16 Thread Dmitry Kulazhenko
Dmitry Kulazhenko added the comment: Based on what I've read, workaround: from functools import singledispatchmethod def _register(self, cls, method=None): if hasattr(cls, "__func__"): setattr(cls, "__annotations__", cls.__func__.__

[issue44299] Enable control over daemon flag in ThreadPoolExecutor and ProcessPoolExecutor

2021-06-03 Thread Dmitry Kropachev
Change by Dmitry Kropachev : -- keywords: +patch pull_requests: +25107 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26511 ___ Python tracker <https://bugs.python.org/issu

[issue44299] Enable control over daemon flag in ThreadPoolExecutor and ProcessPoolExecutor

2021-06-03 Thread Dmitry Kropachev
New submission from Dmitry Kropachev : ThreadPoolExecutor and ProcessPoolExecutor spawn threads and processes with default value of daemon flag, i.e. None. In some cases it would handful to have control over daemon flag of spawned threads and processes. Simple 6-line fix to enable it

[issue43792] Cython is not compatible with Python 3.10 yet: "SystemError: bad argument to internal function"

2021-04-11 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: > This issue is a bug in Cython, not in Python. I close it. This is correct, thanks! The problem is gone with git master version of cython. -- ___ Python tracker <https://bugs.python.org/issu

[issue43792] "bad argument to internal function" in cython

2021-04-09 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : I'm playing with adding python3.10a7 port to FreeBSD ports collection, and have run into similar problem with building multiple third party modules (for instance, yaml, yarl and pystemmer). Here's log from yaml: running build_ext cyth

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
Dmitry Goldenberg added the comment: Yes, it's a question which could lend itself well to a documentation issue. I've looked at things like: https://stackoverflow.com/questions/54047021/python-smtplib-how-to-use-disposition-notification-to https://stackoverflow.com/questions/40369

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
New submission from Dmitry Goldenberg : Is there a reliable way to certify (ensure, track) the delivery of an email message when using smtplib? For example: Disposition-Notification-To message header which enables the e-mail reader of the recipient to send confirmation e-mail when the

[issue30483] urllib.parse.parse_qsl does not handle unicode data properly

2020-04-16 Thread Dmitry Tsirkov
Dmitry Tsirkov added the comment: I have recently stumbled upon this bug, and I can present the example and a solution I've used. The issue happens when we try to parse x-www-form-urlencoded of type bytes: ``` >>> from urllib.parse import urlencode, parse_qs >>> urlenco

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-13 Thread Dmitry Marakasov
Dmitry Marakasov added the comment: > What happens if you instead write: It survived more than 4000 runs, it looks like it doesn't experience the problem. -- ___ Python tracker <https://bugs.python.org

[issue38744] python 3.8 hang in multiprocessing.Pool() locking on FreeBSD

2019-11-08 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : System: FreeBSD 12.0-RELEASE, amd64. This simple program from multiprocessing import Pool from time import sleep Pool().map(sleep, [0.01] * 10) works fine with python 3.7, but is likely (about 20-50% probability on my 4 core box) to hang

[issue37504] Documentation fails to build when using Sphinx' texinfo builder

2019-07-05 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- title: 3.8 b2 now requires sphinx2, but only has documented 1.8 -> Documentation fails to build when using Sphinx' texinfo builder ___ Python tracker <https://bugs.python.org

[issue37504] 3.8 b2 now requires sphinx2, but only has documented 1.8

2019-07-05 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- keywords: +patch pull_requests: +14421 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14606 ___ Python tracker <https://bugs.python.org/issu

[issue37504] 3.8 b2 now requires sphinx2, but only has documented 1.8

2019-07-05 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <https://bugs.python.org/issue37504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-24 Thread Dmitry Tantsur
Dmitry Tantsur added the comment: That would be fantastic, but I did not dare asking for it :) This is how the output of if_nameindex looks on my Fedora 29: [(1, 'lo'), (2, 'enp0s31f6'), (3, 'wlp4s0'), (4, 'virbr0'), (5, 'virbr0-nic'),

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-22 Thread Dmitry Tantsur
New submission from Dmitry Tantsur : These two calls are currently Unix-only in the socket module. However, Windows supports them starting with Vista: https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/nf-netioapi-if_indextoname https://docs.microsoft.com/en-us/windows/desktop/api

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13069 ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -13067 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13067 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -4870 ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-06 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -4438 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36527] unused parameter warnings in Include/object.h (affecting building third party code)

2019-04-04 Thread Dmitry Marakasov
New submission from Dmitry Marakasov : Python 3.8 and nightly introduces unused (in some cases) parameters in object.h header. This makes compilation of third party code which includes the header fail if it's built with -Werror. Build log excerpt: --- g++ -Wno-unused-result -Wsign-co

[issue35916] 3.6.5 try/except/else/finally block executes code with typos, no errors

2019-02-06 Thread DMITRY KOSHELEV
New submission from DMITRY KOSHELEV : Hello dear developer! I was playing with try/else/finally block and have found a bug: Inside of "else" or/and "except" I can do this 1 + print('Why do you print me?') + 1 this would print "Why do you print me?",

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- nosy: -vaultah ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -11522 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -5065 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +11522 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: It would seem no one is actually interested in this proposed enhancement. I'm closing my PR, since I'm not interested in resolving the file conflict. I'll probably submit a traceback-mutating patch to the issue 16217. This issue

[issue22543] -W option cannot use non-standard categories

2018-11-12 Thread Dmitry Shachnev
Change by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <https://bugs.python.org/issue22543> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-10-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I asked for some input on this issue in January (https://mail.python.org/pipermail/python-dev/2018-January/151590.html). Since then an important PR was merged (https://github.com/python/cpython/pull/4793), however it mutates the traceback object. Should

[issue1222585] C++ compilation support for distutils

2018-07-03 Thread Dmitry Kalinkin
Change by Dmitry Kalinkin : Added file: https://bugs.python.org/file47669/python-3.8-distutils-C++.patch ___ Python tracker <https://bugs.python.org/issue1222

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread Dmitry
Dmitry added the comment: @taleinat - yes, that does look much better! -- ___ Python tracker <https://bugs.python.org/issue33770> ___ ___ Python-bugs-list mailin

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread Dmitry
Dmitry added the comment: I think something like “invalid length” message does make more sense in this case than the misleading “incorrect padding”. It would also be great if there was a way to force it to try its best at decoding the string

[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

2018-06-04 Thread Dmitry
Dmitry added the comment: Ideally there needs to be an option to ignore non-fatal errors. Indeed, pretty much any string should be base64-decodeable. Take a look at Perl's MIME::Base64 - it can decode pretty much any random string (so long as it only contains valid base64 chara

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-04 Thread Dmitry
Change by Dmitry : -- title: base64 throws 'incorrect padding' exception even though the string length is a multiple of 4 -> base64 throws 'incorrect padding' exception when the issue is NOT with the padding ___

[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

2018-06-04 Thread Dmitry
Dmitry added the comment: Apologies: apparently this particular string was given with one character missing in the beginning - should be "AAQAAQDhAAMAAQthJDczODFmZDM2LTNiOTYtNDVmYS04MjQ2LWRkYzJkMmViYjQ2YQ". In this case, the problem is the exception itself: i

[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

2018-06-04 Thread Dmitry
Dmitry added the comment: It doesn’t matter how many “=“ characters are appended - it’s always throwing the same exception :( -- ___ Python tracker <https://bugs.python.org/issue33

[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

2018-06-04 Thread Dmitry
New submission from Dmitry : All base64 decoding methods fail to decode a valid base64 string, throwing 'incorrect padding' regardless of the string padding. Here's an example: >>> base64.urlsafe_b64decode('AQAAQDhAAMAAQthJDczODFmZDM2LTNiOTYtN

[issue31096] asyncio.stream.FlowControlMixin._drain_helper may lead to a blocking behavior

2018-05-25 Thread Dmitry Malinovsky
Dmitry Malinovsky added the comment: I've changed the implementation significantly since August 2017, futures are not involved anymore so please ignore that part. However, such drain behavior is still present - but I don't think anymore that yielding to the event loop is an easy

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-05-03 Thread Dmitry Alimov
Dmitry Alimov added the comment: The documentation for EXTENDED_ARG opcode should also be updated for Python versions 3.6, 3.7, 3.8. -- nosy: +delimitry versions: +Python 3.6, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32

[issue21611] int() docstring - unclear what number is

2018-03-16 Thread Dmitry Andreychuk
Dmitry Andreychuk added the comment: I created this issue almost 4 years ago. Looking at it now, I think that I was asking too much of that docstring. I believe it's current version quite sufficient. I would close the issue, but I'm not sure if it's up

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2018-02-21 Thread Dmitry Zotikov
Dmitry Zotikov added the comment: James, double check you specify the right path to the local system libraries. If the system is multilib, libssl resides in /usr/local/lib/hpux32 (64) and not in /usr/local/lib directly. -- nosy: +dmitry.zotikov

[issue32743] Typo in hamt.c comments

2018-02-02 Thread Dmitry Alimov
Dmitry Alimov added the comment: Fixed -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov
Dmitry Alimov added the comment: Merged. It's fixed now: https://www.python.org/dev/peps/pep-0342/ -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov
Dmitry Alimov added the comment: https://github.com/python/peps/pull/567 -- ___ Python tracker <https://bugs.python.org/issue32744> ___ ___ Python-bugs-list m

[issue32744] PEP 342 double colons typos in code

2018-02-01 Thread Dmitry Alimov
New submission from Dmitry Alimov : I've found "double colons" typos in examples: @consumer def jpeg_writer(dirname):: # 1) here fileno = 1 and try: while self.running and self.queue:: # 2) here func = self.queue.popleft() --

[issue32743] Typo in hamt.c comments

2018-02-01 Thread Dmitry Alimov
Change by Dmitry Alimov : -- keywords: +patch pull_requests: +5307 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32743> ___ ___ Py

[issue32743] Typo in hamt.c comments

2018-02-01 Thread Dmitry Alimov
New submission from Dmitry Alimov : In the comments to `hamt_node_collision_without` function in hamt.c module, I think should be `so convert` instead of `co convert`: ``` if (new_count == 1) { /* The node has two keys, and after deletion the

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-01-16 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +5065 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- nosy: +vaultah ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +4870 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-

[issue32376] Unusable syntax error reported when Python keyword in a f-string

2017-12-19 Thread Dmitry sky
New submission from Dmitry sky : def get_search_url(from_, to): return f"http://thesite.com/Search?SO0={from_}&SD0={to}&SD1={from}&NA=false"; # pls note `from_` vs `from` ^^ $ python fstring.py File "", line 1

[issue32194] When creating list of dictionaries and updating datetime objects one by one, all values are set to last one of the list.

2017-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: This is not a bug in Python. Refer to this page for the explanation: https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly Basically, [{}]*3 creates a list with three references to the same dictionary

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I added a PR. FWIW, I still think it would make sense to change the return type of UserString.join, and maybe *split* and *partition methods (to return list/tuple of UserString objects) for the sake of consistency

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- keywords: +patch pull_requests: +4438 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Py

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-21 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -3274 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-09 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I only recently realized that trace.Trace accepts two similar arguments, namely ignoremods and ignoredirs. Should we try to make the API and implementation of the functionality proposed here conform to that of trace.Trace's ignoremods? Would Python-Ide

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: This is a documented feature: https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation And yes, it was discussed before: https://mail.python.org/pipermail/python-ideas/2013-May/020527.html -- nosy: +vaultah

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-10-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Ping. (this issue needs a decision on ignore_modules vs filter callback, and/or patch review) -- ___ Python tracker <https://bugs.python.org/issue31

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-22 Thread Dmitry Kazakov
New submission from Dmitry Kazakov : A few of the methods of collections.UserString return objects of type str when one would expect instances of UserString or a subclass. Here's an example for UserString.join: >>> s = UserString(', ').join(['a', 'b&

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-09-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Yes, a public built-in facility to modify a traceback would certainly be useful, although there should be a standard way to "hide" unwanted frames without mutating the traceback, too, and the traceback module seems a perfect place to add it.

[issue31560] hashlib.blake2: error in example for signed cookies

2017-09-23 Thread Dmitry Chestnykh
New submission from Dmitry Chestnykh: The example for creating and verifying signed cookies with hashlib.blake2 doesn't work. Corrected in GitHub PR #3694. -- assignee: docs@python components: Documentation messages: 302787 nosy: dchest, docs@python priority: normal pull_requests:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-08-29 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- pull_requests: +3274 ___ Python tracker <http://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2017-08-28 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Since runpy also handles the execution of directories and zip files, I think it would be reasonable to clean up tracebacks in these cases, too. The ignore_modules argument would be a great addition to the traceback module. Should I create a separate issue

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2017-08-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: In order to load and compile the module code, runpy calls the loader's get_code method. Because that happens outside of the normal import process, and PyImport_ImportModuleLevelObject is currently the only place where remove_importlib_frames is being in

[issue31096] asyncio.stream.FlowControlMixin._drain_helper may lead to a blocking behavior

2017-08-01 Thread Dmitry Malinovsky
New submission from Dmitry Malinovsky: When there is a huge amount of `writer.write` calls followed by `await writer.drain()` on a non-paused channel, and there are no other coroutine switches, `await writer.drain()` immediately returns without a switch. This is because

[issue31094] asyncio: get list of connected clients

2017-07-31 Thread Dmitry Vinokurov
New submission from Dmitry Vinokurov: Hi! I'm using python-opcua and wonder if it is possible to get list of clients connected to running server? I've asked such question in python-opcua repo https://github.com/FreeOpcUa/python-opcua/issues/480 and developers redirected me here.

[issue30876] SystemError on importing module from unloaded package

2017-07-26 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Please ignore my last message, I didn't notice the existing pull request... Sorry. -- ___ Python tracker <http://bugs.python.org/is

[issue30876] SystemError on importing module from unloaded package

2017-07-26 Thread Dmitry K
Dmitry K added the comment: test_concurrency (test.test_import.ImportTests) seems to fail, too, with a similar error: ModuleNotFoundError: No module named 'package' Apparently, this happens because the LIBSUBDIRS variable in Makefile doesn't include all the subdire

[issue30671] dict: improve lookup function

2017-06-18 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: A few notes on my motivation and other comments I made(not necessarily in the order of significance): 1. I started looking at this because of the fix in Issue28201. It effectively improves on the difference between print_collision_counts

[issue30671] dict: improve lookup function

2017-06-16 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: Changing the title, to remove "simplify", since the discussion revealed that the potential improvement would have to be treated as a special case and, therefore, would not simplify the code. -- title: dict: simplify and improve looku

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: Tim, I am not testing randomly. The scripts calculate secondary hash for **each** value in a ring to see how often this results in duplicate (or triplicate, etc.) values. And they do it for each (mod 2**i) ring for i between 8 and 20. Then (mostly as an

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: Yes, I do understand it. But the statement in lines 166, 167: "For any initial j in range(2**i), repeating that 2**i times generates each int in range(2**i) exactly once" does not hold when the perturb is added. 2**i times will not be enough t

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: I am looking at the 3.6.1 code. I am not trying to simulate the index lookup as the lookup function would do it. There is no point in that. The point of the script is to detect collisions among perturbed secondary indexes rather than between primary

[issue30671] dict: simplify and improve lookup function

2017-06-15 Thread Dmitry Rubanovich
New submission from Dmitry Rubanovich: lookdict_index() (and the rest of the files in dictobject.c) are using unnecessarily complicated perturb mechanism. And, in fact, it's slower than the simpler case. Instead of this: for (size_t perturb = hash;;) { perturb >>= PERTURB_S

[issue29304] dict: simplify lookup function

2017-06-14 Thread Dmitry Rubanovich
Dmitry Rubanovich added the comment: lookdict_index() (and the rest of the files in dictobject.c) are using unnecessarily complicated perturb mechanism. And, in fact, it's slower than the simpler case. Instead of this: for (size_t perturb = hash;;) { perturb >>= PERTURB_S

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-01-06 Thread Dmitry Shachnev
Dmitry Shachnev added the comment: [Matthias Klose (doko) 2016-10-27 15:45] > I'm not sure that you really want this, because it would make it impossible > to build an extension for the stable ABI for a debug build. It looks like that is already impossible: /usr/include/python3.5

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-01-01 Thread Dmitry Shachnev
Changes by Dmitry Shachnev : -- nosy: +mitya57 ___ Python tracker <http://bugs.python.org/issue28401> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28314] ElementTree: Element.getiterator(tag) broken in 3.6

2016-09-29 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: The documentation says that getiterator() still accepts a tag argument, but it does not: >>> from xml.etree.ElementTree import Element >>> el = Element('foo') >>> el.getiterator('bar') Traceback (most recent

[issue27055] python fails to run zipapp when zip contains comments

2016-05-18 Thread Dmitry
New submission from Dmitry: python fails to run zipapp when zip contains comments when zip archive downloaded from github it contains tip hash in comment. Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32 example: ``` import zipfile if __name__

[issue26798] add BLAKE2 to hashlib

2016-05-08 Thread Dmitry Chestnykh
Dmitry Chestnykh added the comment: > I have replaced verify() with compare_digest(). +>>> compare_digesty(cookie, '0102030405060708090a0b0c0d0e0f00') Typo here. Also, this doesn't look like it compares the digest. Maybe you can keep the verify() function, but

[issue26798] add BLAKE2 to hashlib

2016-05-08 Thread Dmitry Chestnykh
Dmitry Chestnykh added the comment: Christian: yes, and I'm also happy that you kept the drawing of hash tree, as it helps a lot with understanding of terminology. I had a quick look at the patch and it looks good to me. Some comments, which you can ignore: In keyed hashing example th

[issue26542] Wrongly formatted doctest block in difflib documentation

2016-03-11 Thread Dmitry Shachnev
New submission from Dmitry Shachnev: Look at the documentation of difflib.SequenceMatcher.get_opcodes: https://docs.python.org/dev/library/difflib.html#difflib.SequenceMatcher.get_opcodes There, the result part of the example is rendered as plain reStructuredText, separately from the code

[issue23661] Setting a exception side_effect on a mock from create_autospec does not work

2015-11-18 Thread Dmitry Andreychuk
Dmitry Andreychuk added the comment: python 3.4.3 is also affected. Is it possible to fix this in branch 3.4? -- nosy: +and versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue23

[issue24548] Broken link in the unittest documentation

2015-07-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: The "Simple Smalltalk Testing: With Patterns" link from https://docs.python.org/3.5/library/unittest.html is dead. I found 2 "mirrors" but I don't think any of them should replace the broken link. 1. http://testingsoftware.blogs

[issue24309] string.Template should be using str.format and/or deprecated

2015-06-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue24309> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho : Removed file: http://bugs.python.org/file39756/test_segfault.py ___ Python tracker <http://bugs.python.org/issue24482> ___ ___ Python-bug

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho : Added file: http://bugs.python.org/file39757/test_segfault.py ___ Python tracker <http://bugs.python.org/issue24482> ___ ___ Python-bug

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
New submission from Dmitry Odzerikho: Hi, I'm using iterators returned by itertools.tee in different threads. The original iterator passed to itertools.tee is thread-safe, however, it doesn't guarantees that the cloned iterators are thread safe too. However the equivalent impleme

  1   2   3   4   >