Andrei Kulakov added the comment:
This was fixed in https://github.com/python/cpython/commit/dd7b816ac87, perhaps
this should be closed as fixed?
It sounds like the general solution is beyond the scope of this issue and
doesn't need to be tracked here.
--
nosy: +andre
Andrei Kulakov added the comment:
I have confirmed and tested -- this was fixed in
https://github.com/python/cpython/pull/29212 and so I'm closing it as fixed.
--
nosy: +andrei.avk, kj
resolution: -> fixed
stage: -> resolved
status: ope
Andrei Kulakov added the comment:
In general this sounds reasonable; - but a couple of thoughts / comments:
- If you have a dict with mixed numbers in str format and in number format
(i.e. ints as numbers and ints as strings in your case), you are creating
problems in many potential places
Andrei Kulakov added the comment:
Another good option would be to use typed dict like `mydict : dict[int,str] =
{}`; and use typed values when populating the dict; this way a type checker
will warn you of inconsistent key types.
--
___
Python
Andrei Kulakov added the comment:
I've looked into this and the hang happens on this line:
https://github.com/python/cpython/blob/de3db1448b1b983eeb9f4498d07e3d2f1fb6d29d/Lib/test/test_builtin.py#L2030
So the issue is that on the second run, there's nothing to read on that fd.
Change by Andrei Kulakov :
--
keywords: +newcomer friendly
___
Python tracker
<https://bugs.python.org/issue44995>
___
___
Python-bugs-list mailing list
Unsub
Change by Andrei Kulakov :
--
keywords: +patch
nosy: +andrei.avk
nosy_count: 1.0 -> 2.0
pull_requests: +27897
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29655
___
Python tracker
<https://bugs.python.org/i
Andrei Kulakov added the comment:
The issue is that _PreciseSelector follows the symlink when it checks if a path
exists before yielding it as a result.
I've put up a PR with a fix; I've also added a *follow_symlinks* arg to
`exists()` method because it seems more logical to be ab
Andrei Kulakov added the comment:
Rasmus: thanks for the report, it does seem like a bug to me.
--
___
Python tracker
<https://bugs.python.org/issue45
Andrei Kulakov added the comment:
By the way note that path.glob('**/my_symlink') also does return the dangling
symlink match. And glob.glob('my_symlink') also returns a dangling symlink.
--
___
Python tracker
<https://bug
New submission from Andrei Kulakov :
Should be _IGNORED_ERRORS
This name was added 3 years ago:
https://github.com/python/cpython/commit/216b745eafa7cd4a683a8405dcfbd7f5567f504c
It's only used in a single place in the module. But I'm not sure if it's worth
fixing. It
Change by Andrei Kulakov :
--
components: +Library (Lib)
priority: normal -> low
stage: -> needs patch
type: -> enhancement
versions: +Python 3.11
___
Python tracker
<https://bugs.python.or
Andrei Kulakov added the comment:
I have also run into this when looking into path.glob('dangling_symlink') issue.
I can add a few things (in the examples, *myfile* is a file, not a directory):
This is probably more common / less obscure than '*/':
path.glob('m
Andrei Kulakov added the comment:
I meant to say:
path.glob('myfile/') => [PosixPath('myfile')]
--
___
Python tracker
<https://
Andrei Kulakov added the comment:
Generally if Path is created with a trailing separator, I think it should error
out for all methods that apply to files, for example `.touch()`, `read*()`,
`write*()`, others.
This is consistent with shell commands:
touch xyz
Andrei Kulakov added the comment:
Serhiy: I think you're right, it was likely meant to be _IGNORED_ERRNOS; for
inlining it, it looks like it wasn't inlined to be more readable, but if we
inline it, we should also inline _IGNORED_WINERRORS. I don't min
Andrei Kulakov added the comment:
Note also that in addition to not being related to weakref as Pablo said, it's
also not related to the __init__() -- the exception can be moved to any method
of the object with the same result.
It may be good to update the title so that it's not
Andrei Kulakov added the comment:
I'm not sure about the hang in 3.7 and CVE, but as far as `get_all()` error is
concerned, it's due to passing the wrong kind of argument as `headers`.
For this (undocumented) method, `headers` should be a Message object created in
thi
Andrei Kulakov added the comment:
Seems like a reasonable request to me.
I can make the PR+test.
To minimize backwards-incompatible change, we can pass
`_mangle_from=policy._mangle_from` argument instead of passing the entire
policy. Is that a good idea or passing the policy argument
Andrei Kulakov added the comment:
There are 3 policy settings that are also being passed as parameters to
Generator/BytesGenerator:
- mangle_from_
- linesep
- maxheaderlen
Both linesep and maxheaderlen are being inserted into policy after self.policy
(if there is one) overrides message
Andrei Kulakov added the comment:
R. David: `mangle_from_` is the only exception; I agree it seems likely it was
done this way for backwards compatibility.
Grant: do you agree with the fix to logic? Also do you agree that mangle_from_
is the only setting that's not being applied t
Andrei Kulakov added the comment:
Grant: sounds good! I can do the initial PR review. Note that the PR will need
a test and a news entry. See the link below on authoring PRs:
https://devguide.python.org/pullrequest/
--
___
Python tracker
<ht
Andrei Kulakov added the comment:
Duplicate of https://bugs.python.org/issue43905
--
nosy: +andrei.avk
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> dataclasses.astuple does deepcopy on all fields
__
Andrei Kulakov added the comment:
Looks like it's fixed so closing it..
--
nosy: +andrei.avk, kj
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.pyth
Andrei Kulakov added the comment:
Eric: I've closed a similar issue about asdict() and now updating the title to
keep track of both in this issue. Let me know if you want to keep them separate
instead.
--
title: dataclasses.astuple does deepcopy on all fields -> dataclasses
Andrei Kulakov added the comment:
The issue seems to be that there was a change between 3.7.7 and 3.8.6, -
multiprocessing started using pickle dump / load which cannot handle double
underscore methods.
See #33007 for a reproducer with pickle.
I'm using MacOS and this multiproce
Andrei Kulakov added the comment:
More details and a suggested fix here: #37852 .
--
___
Python tracker
<https://bugs.python.org/issue44675>
___
___
Python-bug
Andrei Kulakov added the comment:
If we are not going to fix this issue in pickling at this time, I think it
makes sense to raise an error with a good, clear explanation in
multiprocessing.Process(target=self.__method), which is affected by this and
caused some confusion in this issue
Andrei Kulakov added the comment:
Thank you for reviewing Eric!
--
___
Python tracker
<https://bugs.python.org/issue43905>
___
___
Python-bugs-list mailin
Andrei Kulakov added the comment:
Closing by request of OP.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrei Kulakov added the comment:
Cannot reproduce with 3.8.6 on MacOS. The code runs without any errors. As OP
hasn't responded in 4 months I think we should close as "works for me".
--
nosy: +andrei.avk
___
Python
Change by Andrei Kulakov :
--
nosy: +kj
___
Python tracker
<https://bugs.python.org/issue44413>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrei Kulakov added the comment:
My last comment was wrong, the issue I linked is unrelated.
I think the actual issue here is the code here:
https://github.com/python/cpython/blob/4b97d974ecca9cce532be55410fe851eb9fdcf21/Lib/tempfile.py#L826
If `path` is a file that causes a permission
Change by Andrei Kulakov :
--
nosy: +andrei.avk
nosy_count: 6.0 -> 7.0
pull_requests: +28135
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29910
___
Python tracker
<https://bugs.python.org/i
Andrei Kulakov added the comment:
I think it may be good enough to add a warning on skipped files in
_unpack_zipfile().
- this way we keep backwards compatibility (especially since behavior in both
modules differed for such a long time.)
- it's not clear that ZipFile behavior is sup
Andrei Kulakov added the comment:
I forgot to add this:
- we may not want to follow the behavior of command line unzip - it's
interactive so considerations are somewhat different. For example, it will warn
if file is being overwritten and show a prompt on whether to skip, overwrite,
New submission from Andrei Kulakov :
Setting sys.pycache_prefix = "", re-creates CWD structure under current
directory, e.g. if run from /Users/foo/test, will create
/Users/foo/test/Users/foo/test/myfile.pyc . Is that intentional? It seems a
little weird. At least it might
Andrei Kulakov added the comment:
(I forgot to mention this happens on MacOS).
--
___
Python tracker
<https://bugs.python.org/issue45977>
___
___
Python-bug
Andrei Kulakov added the comment:
I confirmed that it works on 3.9 so I think this can be closed as not a bug:
[ins] In [4]: _parse_localename('en_IL')
Out[4]: ('en_IL', 'UTF-8')
--
___
Python tracker
<h
Andrei Kulakov added the comment:
Val: contributions are only now accepted in form of github PRs, not patches.
--
___
Python tracker
<https://bugs.python.org/issue43
Change by Andrei Kulakov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11 -Python 3.9
___
Python tracker
<https://bugs.python.or
Andrei Kulakov added the comment:
It seems like sending zero headers is not supported, because:
- if using http/1.0
https://www.rfc-editor.org/rfc/rfc7230#section-6.1 -- Connection: close must
be sent
- if using http/1.1 --
https://docs.python.org/3.11/library/http.server.html
Andrei Kulakov added the comment:
Closing as third party. Cowrie overrides ftplib.FTP class and implements
__init__ in a way that doesn't work properly with some other methods of `FTP`
class.
--
resolution: -> third party
stage: -> resolved
status: ope
Andrei Kulakov added the comment:
Duplicate of https://bugs.python.org/issue44540
--
nosy: +andrei.avk
superseder: -> venv: activate.bat fails for venv with special characters in
PATH
___
Python tracker
<https://bugs.python.org/issu
Andrei Kulakov added the comment:
The docs for current bugfix releases (3.9+) have clear links from the Interface
class attribute `network` to the Network class which lists the `prefixlen`
attribute. I don't think it can be made clearer - there's two ways to find it -
either sea
Andrei Kulakov added the comment:
If CWD=/a/b and pycache_prefix=c, the resulting dir is /a/b/c as I would expect.
If CWD=/a/b and pycache_prefix='', I would expect resulting dir to be /a/b
instead of /a/b/a/b .
For example as the shell `cd` command accepts relative path as ar
Andrei Kulakov added the comment:
Can this also create the risk of 'path too long' issues?
--
___
Python tracker
<https://bugs.python.org/issue45977>
___
__
Change by Andrei Kulakov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrei Kulakov added the comment:
It's a bit more readable to start by stating what a function does rather than
what it doesn't do. I also wouldn't worry about possible future minor
optimizations that might be added, because if that happens, a simple ".. aside
from in
Andrei Kulakov added the comment:
Prasanth: can you provide a bit more details, are you saying that this line:
https://github.com/python/cpython/blob/2109f7880b65755329a877da3a7f8a362de07350/Lib/multiprocessing/pool.py#L86
.. truncates the exception msg? What is the exact exception type that
Change by Andrei Kulakov :
--
type: -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7
___
Python tracker
<https://bugs.python.org/issu
Andrei Kulakov added the comment:
This affects more use cases than just is_tarfile() and getmembers() results.
is_tarfile() calls open() which is the root cause of the issue. Calling open()
2+ times will also cause the same issue.
In addition to getmembers(), extracting the tar will also
Change by Andrei Kulakov :
--
nosy: +kj
___
Python tracker
<https://bugs.python.org/issue44289>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrei Kulakov added the comment:
We classify 'crash' type as seg faults etc, so changing this to 'behavior' type.
--
nosy: +andrei.avk
type: crash -> behavior
___
Python tracker
<https://
Andrei Kulakov added the comment:
I've confirmed this issue is still present in 3.11.
--
___
Python tracker
<https://bugs.python.org/issue44170>
___
___
Change by Andrei Daraschenka :
--
keywords: +patch
pull_requests: +16672
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17162
___
Python tracker
<https://bugs.python.org/issu
Change by Andrei Daraschenka :
--
pull_requests: +16683
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17175
___
Python tracker
<https://bugs.python.org/issu
Change by Andrei Daraschenka :
--
keywords: +patch
nosy: +dorosch
nosy_count: 2.0 -> 3.0
pull_requests: +17984
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/18619
___
Python tracker
<https://bugs.p
Change by Andrei Daraschenka :
--
keywords: +patch
nosy: +dorosch
nosy_count: 3.0 -> 4.0
pull_requests: +18005
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18639
___
Python tracker
<https://bugs.python.org/i
Andrei Daraschenka added the comment:
Hi, Andrés Delfino. Are you still working on it? I could help with this issues.
--
nosy: +dorosch
___
Python tracker
<https://bugs.python.org/issue15
Change by Andrei Daraschenka :
--
keywords: +patch
nosy: +dorosch
nosy_count: 4.0 -> 5.0
pull_requests: +18007
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/18641
___
Python tracker
<https://bugs.p
Andrei Daraschenka added the comment:
Could you give more details for reproduce it because on the latest version
cpython from master branch it's work
You can debug it with help pdb. Just set breakpoint:
...
test_shelve(data)
breakpoint()
data.close()
...
And try run it step-by-step (
Andrei Daraschenka added the comment:
Yes, It's work for me
$ uname -a
Linux laptop 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC
2020 x86_64 x86_64 x86_64 GNU/Linux
$ python3.8 --version
Python 3.8.0
$ python3.8 ce_test_2.py
start
end
Could you please write abou
Andrei Daraschenka added the comment:
Hello
I was finally reproduce your problem.
Probles was in Lib/shelve.py module in method Shelf.sync. When python is shut
down in classes calls __exit__ methods, in our issues method __exti__ called
method close() which called method sync(). Method sync
Change by Andrei Daraschenka :
--
pull_requests: +18016
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18655
___
Python tracker
<https://bugs.python.org/issu
Change by Andrei Daraschenka :
--
keywords: +patch
nosy: +dorosch
nosy_count: 2.0 -> 3.0
pull_requests: +18024
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18668
___
Python tracker
<https://bugs.python.org/i
Andrei Daraschenka added the comment:
Hello, could you please attach minimal-work file for reproduce it?
--
nosy: +dorosch
___
Python tracker
<https://bugs.python.org/issue39
Change by Andrei Daraschenka :
--
keywords: +patch
nosy: +dorosch
nosy_count: 3.0 -> 4.0
pull_requests: +18037
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18677
___
Python tracker
<https://bugs.python.org/i
Andrei Kulakov added the comment:
I cannot reproduce with 3.9.0, using attached files -- I do not get either 400
or 405; I get "None received" message:
```python3 flask
Andrei Kulakov added the comment:
I've tried it with flask_client_long_headers.py , but I get the same output as
I've gotten before with flask_client.py .
Can you try it on a few different systems?
--
___
Python tracker
<https://bu
Andrei Kulakov added the comment:
In a date, hours are zero-padded probably because that's a common standard for
military time dates. But there is no such standard for time periods, therefore
timedelta don't have to match date display in respect to zero-padding, in m
New submission from Andrei Kulakov :
Typo (explicit|ly) in library/dataclasses.rst:139:
139: If :meth:`__hash__` is not explicit defined, or if it is set to
``None``,
--
assignee: docs@python
components: Documentation
messages: 388193
nosy: andrei.avk, docs@python
priority
New submission from Andrei Pashkin :
To me it seems like Advanced Debugger Support C-API doesn't make sense without
HEAD_LOCK() and HEAD_UNLOCK() which are private right now.
When researching how C-API works I've found this comment in the source code:
https://github.com/python/cp
Andrei Pashkin added the comment:
Here is what I mean by "Advanced Debugger Support" API:
https://docs.python.org/dev/c-api/init.html#advanced-debugger-support
--
___
Python tracker
<https://bugs.python.o
Andrei Daraschenka added the comment:
Hello zd nex
After a little research, it became clear that this drop is due to vague garbage
collection behavior. As you know, method `__del__` is called by the garbage
collector and when this happens there is no guarantee that the rest of the
objects
Andrei Daraschenka added the comment:
Hello and thanks for your issue. Can you explain why we need to make method as
`classmethod` because in your example you don't provide argument for
`cls.skipTest()`.
--
nosy: +dorosch
___
Python tr
Change by Andrei Zene :
--
keywords: +patch
pull_requests: +13719
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13842
___
Python tracker
<https://bugs.python.org/issu
Andrei Zene added the comment:
We would also need this limit to be raised. We are using a server that was
implemented using tornado, and tornado uses select.select.
> It looks like Modules/selectmodule.c already has the handling for when this
> gets large (and we really want t
Andrei Zene added the comment:
> Would it be possible to make FD_SETSIZE configurable at runtime, at least on
> Windows? IMHO it would be a better approach.
That would be awesome, but it doesn't look like it would be possible. As I have
already pointed out in my previous comment:
Andrei Zene added the comment:
Awesome work Victor! Thanks! I'll give it a try. One thing I see mising though
(if I understand well) is the allocation of three fd_sets (I posted a comment
on github regarding that).
Those fd_sets are currently allocated on stack and the array they conta
Andrei Zene added the comment:
I have updated PR 13842(https://github.com/python/cpython/pull/13842) to
dynamically alocate the fd_sets on windows.
I did some testing on windows with the following two paterns:
1. 1 transient clients: (open connection, send message, close connection)
2
Andrei Zene added the comment:
That's actually a great explanation Nathaniel. Thanks for putting that all
together.
--
___
Python tracker
<https://bugs.python.org/is
Andrei Fokau added the comment:
I was wrong. The ticket can be closed now.
--
nosy: +Andrei Fokau2
___
Python tracker
<http://bugs.python.org/issue29642>
___
___
New submission from Andrei Stefan :
I'm creating a shared dict for multiprocessing purposes:
from multiprocessing import Manager
manager = Manager()
shared_dict = manager.dict()
If I add a set or a list as a value in the dict:
shared_dict['test'] = set() or shared_dict[
New submission from Andrei Talaba :
The CPython interpreter write out-of-bounds of allocated memory in certain edge
cases in the utf-16 and utf-32 encoders.
The attached script registers two error handlers that either write one ascii
character, or two bytes, and tells the encoder to start
Change by Andrei Talaba :
--
keywords: +patch
pull_requests: +13047
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36819>
___
___
Py
Change by Andrei Talaba :
Removed file: https://bugs.python.org/file48304/encode_crash.py
___
Python tracker
<https://bugs.python.org/issue36819>
___
___
Python-bug
Change by Andrei Talaba :
Added file: https://bugs.python.org/file48305/encode_crash.py
___
Python tracker
<https://bugs.python.org/issue36819>
___
___
Python-bugs-list m
Andrei Petre added the comment:
Hi, I've also looked into this and I've added a patch addressing both updates
(mentioned by xitop and xtreak).
--
nosy: +andreip
___
Python tracker
<https://bugs.python.o
Andrei Petre added the comment:
Hi, is this still relevant? I see the file has changed quite a bit.
--
nosy: +andreip
___
Python tracker
<https://bugs.python.org/issue18
Andrei Paraschivescu added the comment:
"python jumpBug.py" creates two windows, "root" and "other".
If the first thing you do is click on "other", then hit , the printed
geometry string will show the position of the window "root".
By cont
Andrei Paraschivescu added the comment:
Ned, thanks for the quick response. I will give that a go.
--
___
Python tracker
<http://bugs.python.org/issue8
Changes by Andrei Vereha :
--
nosy: +Andrei.Vereha
___
Python tracker
<http://bugs.python.org/issue16142>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrei Kucharavy:
ConfigParser seems to share a lot of behavior with a dict, but cannot be pretty
printed.
--
messages: 206267
nosy: Andrei.Kucharavy
priority: normal
severity: normal
status: open
title: configparser instances cannot be pretty printed
type
New submission from Andrei Korostelev :
HTTPResponse._read_chunked cannot handle "slightly" ill-formed HTTP
response not ended with 0 chunk-size. I did not make an analysis what
type of webservers generate such responses, but one of them is bing.com
(former msn.com).
Example corre
Andrei Korostelev added the comment:
Patch for Python-2.6
--
Added file: http://bugs.python.org/file14989/httplib.python-2.6.2.diff
___
Python tracker
<http://bugs.python.org/issue7
Andrei Korostelev added the comment:
Added patch for python-3.1.1
--
Added file: http://bugs.python.org/file14990/httplib.python-3.1.1.diff
___
Python tracker
<http://bugs.python.org/issue7
New submission from Andrei Fokau:
Hi, As far as I see, unittest.TestLoader doesn't search in PEP-420 packages,
i.e. packages without __init__.py files.
Is there some motivation behind this, or the loader was just not yet adapted
for Implicit Namespace Packages?
--
components:
Andrei Fokau added the comment:
Ok, it's actually not so hard to work around (for Python 3.6, at least):
import os
from unittest import TestLoader
class CustomTestLoader(TestLoader):
def _find_test_path(self, full_path, pattern, namespace=False):
original_isfile = os.path.i
Andrei Fokau added the comment:
Alright, I made an initial fix in #282. I believe that I still need
to update the docs and run it with something big, e.g. Django.
--
___
Python tracker
<http://bugs.python.org/issue29
401 - 500 of 528 matches
Mail list logo