Calling tuple on pytz.all_timezones produces an empty tuple
Bug #1435617 reported by
david@drmaciver.com
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytz |
Triaged
|
Undecided
|
Unassigned |
Bug Description
The following program crashes on pytz-2014.10:
import pytz
if __name__ == '__main__':
assert tuple(pytz.
The following succeeds:
import pytz
if __name__ == '__main__':
list(
assert tuple(pytz.
I'm not sure what's going on here exactly. Something about the tuple invocation is bypassing your LazyList mechanism, but I can't figure out exactly what. The initial list invocation (bool also works) seems to force it to load and subsequent calls to work.
Changed in pytz: | |
status: | Triaged → Won't Fix |
status: | Won't Fix → Triaged |
To post a comment you must log in.
Additional detail: Against all my expectations, this works correctly on pypy-2.5.0 and does not error.