Change by Dmitry Shachnev :
--
nosy: +mitya57
___
Python tracker
<https://bugs.python.org/issue5>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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:
``
Change by Dmitry Kulazhenko :
--
nosy: +EugenePY, FFY00, Viktor Roytman, glyph, levkivskyi, lukasz.langa,
markgrandi, mental, ncoghlan, xtreak
___
Python tracker
<https://bugs.python.org/issue39
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__.__
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
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
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
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
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
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
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
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
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
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
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
Change by Dmitry Shachnev :
--
nosy: +mitya57
___
Python tracker
<https://bugs.python.org/issue37504>
___
___
Python-bugs-list mailing list
Unsubscribe:
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'),
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
Change by Dmitry Kazakov :
--
pull_requests: +13069
___
Python tracker
<https://bugs.python.org/issue27639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: -13067
___
Python tracker
<https://bugs.python.org/issue31841>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: +13067
___
Python tracker
<https://bugs.python.org/issue31841>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: -4870
___
Python tracker
<https://bugs.python.org/issue27639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: -4438
___
Python tracker
<https://bugs.python.org/issue31841>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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?",
Change by Dmitry Kazakov :
--
nosy: -vaultah
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: -11522
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: -5065
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: +11522
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Dmitry Shachnev :
--
nosy: +mitya57
___
Python tracker
<https://bugs.python.org/issue22543>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Dmitry Kalinkin :
Added file: https://bugs.python.org/file47669/python-3.8-distutils-C++.patch
___
Python tracker
<https://bugs.python.org/issue1222
Dmitry added the comment:
@taleinat - yes, that does look much better!
--
___
Python tracker
<https://bugs.python.org/issue33770>
___
___
Python-bugs-list mailin
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
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
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
___
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
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
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
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
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
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
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
Dmitry Alimov added the comment:
Fixed
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Dmitry Alimov added the comment:
https://github.com/python/peps/pull/567
--
___
Python tracker
<https://bugs.python.org/issue32744>
___
___
Python-bugs-list m
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()
--
Change by Dmitry Alimov :
--
keywords: +patch
pull_requests: +5307
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32743>
___
___
Py
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
Change by Dmitry Kazakov :
--
pull_requests: +5065
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-
Change by Dmitry Kazakov :
--
nosy: +vaultah
___
Python tracker
<https://bugs.python.org/issue27639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Dmitry Kazakov :
--
pull_requests: +4870
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue27639>
___
___
Python-
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
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
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
Change by Dmitry Kazakov :
--
keywords: +patch
pull_requests: +4438
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31841>
___
___
Py
Change by Dmitry Kazakov :
--
pull_requests: -3274
___
Python tracker
<https://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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&
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.
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:
Changes by Dmitry Kazakov :
--
pull_requests: +3274
___
Python tracker
<http://bugs.python.org/issue31299>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
Changes by Dmitry Shachnev :
--
nosy: +mitya57
___
Python tracker
<http://bugs.python.org/issue28401>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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__
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
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
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
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
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
Changes by Dmitry Kazakov :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue24309>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Dmitry Odzerikho :
Removed file: http://bugs.python.org/file39756/test_segfault.py
___
Python tracker
<http://bugs.python.org/issue24482>
___
___
Python-bug
Changes by Dmitry Odzerikho :
Added file: http://bugs.python.org/file39757/test_segfault.py
___
Python tracker
<http://bugs.python.org/issue24482>
___
___
Python-bug
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 - 100 of 314 matches
Mail list logo