New submission from Filip Haglund:
ast.literal_eval handles sets, if they contain at least one value, but does not
handle empty ones, which are represented as `set()` since `{}` is already used
by dicts.
--
components: Library (Lib)
messages: 246906
nosy: Filip Haglund
priority
Filip Haglund added the comment:
Okey, then this is not a bug. I can just handle this special case myself.
Thanks!
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issu
New submission from Filip Haglund:
Slicing tuples returns a copy, which is O(n) time. This could be O(1) since
tuples are immutable, by just pointing to the same data.
This probably applies to other immutable structures as well, such as strings.
--
components: Interpreter Core