News for hackers. Stuff that matters.
Re:Python Lists vs. Tuples by aangjie on Friday August 19, 2016 @11:33PM (#12325046)
> There are Python functions that take any type like repr() or id()

Umm.. I haven't had to use any of them on a list(or for that matter on an object) for code.. (except when I'm curious and poking at python internals) May be I'm stuck in a web application role? Is it actually useful to say call repr() on a list of objects? May be call id to see if there's references to same object twice? I'm finding it hard to imagine cases where it would be needed to implement a feature, that wouldn't be better served by alternate methods.

There are no comments on this comment yet.