On Thu, Sep 5, 2013 at 5:07 PM, John La Rooy <[email protected]> wrote:
> def (L):
>     assert isinstance(L, list)

But that way you don work well with "duck lists". Or, in my case, you
lose polymorphism (a pythonic SortedList will work with any orderable
type). Maybe I could "assert arerelativeorderable(newelement,
firstelement), but that's what I do by writing "try: newelement >
itemzero; except: BOOM"

> PEP8 strongly discourages using l as a variable name

It says nothing about email discussions!

J
_______________________________________________
melbourne-pug mailing list
[email protected]
https://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to