mirror of
https://github.com/python/cpython.git
synced 2026-05-16 01:19:28 -04:00
4c3a0a35cd
tuple(i) repaired to return a true tuple when i is an instance of a tuple subclass. Added PyTuple_CheckExact macro. PySequence_Tuple(): if a tuple-like object isn't exactly a tuple, it's not safe to return the object as-is -- make a new tuple of it instead.