[issue44706] UUID constructor should accept another UUID instance

2021-07-21 Thread Tzach Yarimi
Change by Tzach Yarimi : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44

[issue44706] UUID constructor should accept another UUID instance

2021-07-21 Thread Tzach Yarimi
New submission from Tzach Yarimi : Primitives usually accept an instance of their own type in the constructor, for example: int(5) str("a") tuple((1,2,3)) This is not the case for UUID: >>> from uuid import uuid4, UUID >>> x = uuid4() >>> UUID(x) Trac

[issue44706] UUID constructor should accept another UUID instance

2021-07-21 Thread Tzach Yarimi
Change by Tzach Yarimi : -- components: Library (Lib) nosy: tzach priority: normal severity: normal status: open title: UUID constructor should accept another UUID instance type: behavior versions: Python 3.11 ___ Python tracker <ht