[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

Jeffrey Kintscher report at bugs.python.org
Wed Aug 19 02:25:13 EDT 2020


Jeffrey Kintscher <websurfer at surf2c.net> 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 objects and rely upon __init__() to perform the object initialization.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41109>
_______________________________________


More information about the Python-bugs-list mailing list