[issue43413] tuple subclasses allow kwargs

2021-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hmm, but in my experience, tuple on Python 3.6 doesn't take keyword arguments > either: They do. >>> tuple(sequence='abc') ('a', 'b', 'c') >>> list(sequence='abc') ['a', 'b', 'c'] >>> int(x='123') 123 >>> bool(x='123') True >>> float(x='123') 123.0 It

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: In particular, [this commit](https://github.com/python/cpython/commit/0b5615926a573c19c887a701a2f7047f4fd06de6). -- ___ Python tracker ___

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I suspect bpo-20186 is implicated. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I see that changelog entry traces back to bpo-29695, but I don't believe it's relevant to this issue. -- ___ Python tracker ___

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: To be abundantly clear, the downstream issue was a coding error, but the coding error was masked on Python 3.7+ when the subclass didn't reject the invalid usage. -- ___ Python tracker

[issue43413] tuple subclasses allow kwargs

2021-03-05 Thread Jason R. Coombs
New submission from Jason R. Coombs : While troubleshooting a strange problem (https://github.com/jaraco/keyring/issues/498) where a program worked on Python 3.7+ but failed on Python 3.6, I discovered a somewhat unintuitive behavior. On Python 3.7+, keyword arguments to tuple subclasses are