BUG: raise on frozenset construction by Series by cpcloud · Pull Request #4482 · pandas-dev/pandas (original) (raw)

Good example. That's actually my 3rd point in action: a while ago generators were accepted
into the ctor (to save users the anguish of list(gen)) and now you're showing the inconsistency
it generated as an (reasonable) argument to support even more stuff.

I think it's fine to support iterators as you suggest (spilled generator milk, so to speak), but that means iter(set) not set,
so that's really a separate issue your example raises. iterat-or and an iter-able are
different beasts I believe, am I wrong?

re different ordering for different python versions, how about different ordering in the same
python version courtesy of hash randomization?

λ python3.3 -c 'print(dict(a=1,b=2))'
{'b': 2, 'a': 1}
λ python3.3 -c 'print(dict(a=1,b=2))'
{'a': 1, 'b': 2}