[issue39175] Funkness with issubset

2020-01-01 Thread Justin Hodder
Justin Hodder added the comment: AttributeError: 'tuple' object has no attribute 'issubset' And it doesn't explain why it works as expected in Brython. -- ___ Python tracker

[issue39175] Funkness with issubset

2019-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The error is in line 51 which should be: x3=tuple(sorted(x)) That will make sure you always get {('A', 'B')} instead of {('B', 'A')}. -- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue39175] Funkness with issubset

2019-12-31 Thread Justin Hodder
Justin Hodder added the comment: oh I'm using Python 3.8.1 (32-bit) 3.8.1150.0 on win10 -- ___ Python tracker ___ ___ Python-bugs-l

[issue39175] Funkness with issubset

2019-12-31 Thread Justin Hodder
Justin Hodder added the comment: This works: $ diff PythonDoesntWorks.py HowCanYouPayMana.v3.py 60c60 < if x2.issubset(set(avalMana.keys())): --- > if x2.issubset(set(list(avalMana.keys(: 62a63 > this doesn't work: $ diff PythonDoesntWorks.py HowCanYouPayMana.v3.py 60c60 <

[issue39175] Funkness with issubset

2019-12-31 Thread Justin Hodder
New submission from Justin Hodder : line 59,"print(x2,"avalMana",set(avalMana.keys()))" prints:"{('A', 'B')} avalMana {'A', ('A', 'B'), ('A', 'C')}" line 60,"if x2.issubset(set(avalMana.keys())):" is False change line 60 to "if x2.issubset(set(list(avalMana.keys(:" and it