Jeffrey Kintscher added the comment:
hex.py works for me with CPython versions 3.5, 3.7, 3.8, and 3.9, and the
master branch.
--
___
Python tracker
<https://bugs.python.org/issue41
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
status: pending -> open
___
Python tracker
<https://bugs.python.org/issue41564>
___
___
Python-
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41560>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41585>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41593>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41595>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue41109>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
I created a PR that should provide the desired behavior: __init__() and
__new__() get called in subclass objects that are created by Path and PurePath.
Also, Path and PurePath now have __init__() functions, and the __new__()
functions only return new
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +21034
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21920
___
Python tracker
<https://bugs.python.org/issu
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue35786>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41552>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41553>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
The current implementation calls object.__new__(cls), where cls is the child
class type, from within a class method (@classmethod). This is fine for
Path.__new__() and PurePath.__new__(), which are called by the child class's
__new__(), because we
Jeffrey Kintscher added the comment:
Adding __init__() to PurePath complicates things and doesn't provide any
benefit. A subclass that calls super.__init__() ends up invoking
object.__init__(), which is perfectly fine.
I was able to find a solution by calling type(self)() inste
Change by Jeffrey Kintscher :
--
nosy: -Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41518>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
The purpose of the _init() function in PurePath is to allow PurePath methods to
call the Path subclass override _init() function when initializing a Path
object.
--
___
Python tracker
<https://bugs.python.
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41517>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41518>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +20931
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/21792
___
Python tracker
<https://bugs.python.org/issu
Jeffrey Kintscher added the comment:
>>> import io
>>> b = io.BytesIO()
>>> b.write(b'abc')
3
>>> buf = b.getbuffer()
>>> b.seek(0)
0
>>> b.write(b'?')
Traceback (most recent call last):
File "", line 1, in
Jeffrey Kintscher added the comment:
The error message is found in three different locations in the source code.
One is in the bytearray class, and the other two are in the BytesIO class.
They are unrelated code paths.
--
nosy: +Jeffrey.Kintscher
Jeffrey Kintscher added the comment:
This is easy to implement for Windows (as shown), but the unix implementation
uses io.TextIOWrapper.readline() to get the password input. The unix
implementation would have to be rewritten to provide the same functionality
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue32884>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
Clarification:
PurePath.__new__() calls PurePath._from_parts(), which then calls
PurePath._init()
--
___
Python tracker
<https://bugs.python.org/issue41
Jeffrey Kintscher added the comment:
The workaround is to override _init(), which I agree is not desirable.
This is the relevant code in PurePath, which is the super class of
PurePosixPath:
@classmethod
def _from_parsed_parts(cls, drv, root, parts, init=True):
self = object
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41109>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue5141>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue34360>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37495>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: -Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41419>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
Can you attach the Python source code for the PoC?
--
___
Python tracker
<https://bugs.python.org/issue41168>
___
___
Pytho
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41168>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41157>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41169>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37724>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41238>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41419>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +20904
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21759
___
Python tracker
<https://bugs.python.org/issu
Change by Jeffrey Kintscher :
--
nosy: -Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41456>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: -Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue22107>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue26791>
___
___
Pytho
Jeffrey Kintscher added the comment:
SilentGhost's analysis is correct. The provided example code causes the error
because it is trying to move the symlink into its target when the target is a
directory. Any cross-device moving issues are unrelated to this example code.
Here i
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41456>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41450>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41458>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
I looked at the implementation in Lib/_pyio.py. The only way to change the
error handler is by calling TextIOWrapper.reconfigure() and supply the new
error handler as the "errors" parameter. For example:
>>> import io
>&
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41465>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41398>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41470>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41477>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41489>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41491>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +20745
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21604
___
Python tracker
<https://bugs.python.org/issu
Change by Jeffrey Kintscher :
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue41350>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
I created a simpler test case that exercises the buggy code. The problem can
be reproduced by passing ZipFile.__init__() a file-like object with the write
flag (mode "w") and then closing the file-like object before calling
ZipFile.clo
Jeffrey Kintscher added the comment:
It looks like a copy of the zip_file object is getting created, probably by the
Path constructor:
zip_path = Path(zip_file, "file-a")
When return is invoked, the copy still has a reference to the now closed
bytes_io object which
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41350>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37095>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41368>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +20735
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21596
___
Python tracker
<https://bugs.python.org/issu
Jeffrey Kintscher added the comment:
I uploaded a script illustrating the differences between how Path.resolve(),
os.path.abspath(), and os.path.realpath() handle symlinks. As noted by
Jendrik, Path.resolve() and os.path.realpath() both resolve symlinks, while
os.path.abspath() does not
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue41357>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
I'll take a crack at adding support for Path('.').name == '.'.
--
___
Python tracker
<https:
Jeffrey Kintscher added the comment:
This issue appears to have been fixed:
Python 3.7.3 (default, May 1 2019, 00:00:47)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>
Jeffrey Kintscher added the comment:
This appears to have been fixed by issue #4963 and backported to the 3.7 and
3.8 branches:
Python 3.7.4+ (heads/3.7-dirty:e7bec26937, Jul 16 2019, 12:53:26)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37549>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37565>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue30755>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37529>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37542>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue36132>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
The PR is ready for review. It raises ValueError if the escaped octal value in
a byte string is greater than 255.
--
___
Python tracker
<https://bugs.python.org/issue37
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +14461
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14654
___
Python tracker
<https://bugs.python.org/issu
Jeffrey Kintscher added the comment:
Here is the problematic code in _PyBytes_DecodeEscape in Objects/bytesobject.c:
c = s[-1] - '0';
if (s < end && '0' <= *s && *s <= '7') {
c = (c<<3) + *s+
Jeffrey Kintscher added the comment:
>>> b'\407'
b'\x07'
>>> ord(b'\407')
7
This is the object structure passed to builtin_ord():
(lldb) p *((PyBytesObject *)(c))
(PyBytesObject) $19 = {
ob_base = {
ob_base = {
ob_refcnt = 4
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue12782>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue33408>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue22107>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
resolution: rejected ->
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue37366>
___
___
Py
Change by Jeffrey Kintscher :
--
resolution: -> rejected
___
Python tracker
<https://bugs.python.org/issue37366>
___
___
Python-bugs-list mailing list
Un
Change by Jeffrey Kintscher :
--
nosy: +Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue37399>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
nosy: -Jeffrey.Kintscher
___
Python tracker
<https://bugs.python.org/issue26468>
___
___
Python-bugs-list mailing list
Unsub
Jeffrey Kintscher added the comment:
Specifically, the crash occurs in Python/ceval.c function
_PyEval_EvalFrameDefault() in the TARGET(FOR_ITER) case at line 3198 (master
branch):
PyObject *next = (*iter->ob_type->tp_iternext)(iter);
It segfaults because tp_iternext i
Jeffrey Kintscher added the comment:
What is the preferred behavior? Raise an exception of some kind?
--
___
Python tracker
<https://bugs.python.org/issue36
Jeffrey Kintscher added the comment:
Yes, onerror allows you to delete an undeletable item. But, in the case of a
mount point, the contents of the mounted filesystem get deleted *before* the
mount point triggers onerror. This is the case described in issue #36422.
The behavior provided by
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +14232
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14419
___
Python tracker
<https://bugs.python.org/issu
Change by Jeffrey Kintscher :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue37302>
___
___
Python-bugs-list mailing list
Unsub
Change by Jeffrey Kintscher :
--
versions: +Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue37366>
___
___
Python-bugs-list mailin
Change by Jeffrey Kintscher :
--
versions: +Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue37302>
___
___
Python-bugs-list m
Change by Jeffrey Kintscher :
--
nosy: +giampaolo.rodola, josh.r, max, paul.moore, riccardomurri,
serhiy.storchaka, steve.dower, tarek, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue37
New submission from Jeffrey Kintscher :
Add an "onitem" callback paramter to shutil.rmtree() that, if provided, gets
called for each directory entry as it is encountered. This allows the caller
to perform any required special handling of individual directory entries (e.g.
unmounti
Change by Jeffrey Kintscher :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue37302>
___
___
Python-bugs-list mailing list
Unsubscrib
Jeffrey Kintscher added the comment:
The PR is ready for review.
--
___
Python tracker
<https://bugs.python.org/issue37302>
___
___
Python-bugs-list mailin
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +14116
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14292
___
Python tracker
<https://bugs.python.org/issu
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +14117
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14292
___
Python tracker
<https://bugs.python.org/issu
Jeffrey Kintscher added the comment:
I implemented an onerror callback for tempfile.TemporaryDirectory() and
confirmed that it cannot be used to unmount a mount point. Attempting to
unmount the mount point from within the callback results in a resource busy
error. It may be related to
New submission from Jeffrey Kintscher :
Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member
functions so that the caller can perform special handling for directory items
that it can't automatically delete. The caller created the undeletable
directory
Jeffrey Kintscher added the comment:
The PR is ready for review.
--
___
Python tracker
<https://bugs.python.org/issue37260>
___
___
Python-bugs-list mailin
Change by Jeffrey Kintscher :
--
keywords: +patch
pull_requests: +13924
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14064
___
Python tracker
<https://bugs.python.org/issu
New submission from Jeffrey Kintscher :
shutil.rmtree() is susceptible to a race condition that can needlessly raise
OSError:
1. os.scandir() returns the list of entries in a directory
2. while iterating over the list, another thread or process deletes one or more
of the entries not yet
1 - 100 of 202 matches
Mail list logo