[issue41419] Path.mkdir and os.mkdir don't respect setgid if its parent is g-s

2020-07-28 Thread Christopher Harrison
New submission from Christopher Harrison : The setgid bit is not set when creating a directory, even when explicitly specified in the mode argument, when its containing directory doesn't have its own setgid bit set. When the parent does have the setgid bit, it works as expected. Ste

[issue30343] Subclassed json.JSONEncoder does not respect default method for supported types

2017-05-12 Thread Christopher Harrison
Christopher Harrison added the comment: I have written a proof-of-concept implementation and submitted a pull request. See the PR for details: https://github.com/python/cpython/pull/1558 (My CLA is pending; submitted around 2017-05-12T10:30:00Z+0100

[issue30343] Subclassed json.JSONEncoder does not respect default method for supported types

2017-05-12 Thread Christopher Harrison
Changes by Christopher Harrison : -- pull_requests: +1654 ___ Python tracker <http://bugs.python.org/issue30343> ___ ___ Python-bugs-list mailing list Unsub

[issue30343] Subclassed json.JSONEncoder does not respect default method for supported types

2017-05-11 Thread Christopher Harrison
New submission from Christopher Harrison: If you subclass `json.JSONEncoder` to enable serialisation of custom types beyond those supported, you are meant to transform values of said type into a serialisable version within an overridden `default` method. For example: class MyJSONEncoder