A few months ago I proposed extending collections to include
bags/multisets and setlists (ordered sets/unique lists). If anyone is
still interested I have created a PyPI module here:
http://pypi.python.org/pypi/data-structures If you want to join the
project to file a bug or add something, the project homepage is here:
http://code.google.com/p/python-data-structures/
This is the first module I've created so if you could point me to the
right list to "promote" it on or point out errors or …
[View More]best practices it
would be much appreciated. I know this isn't really the place to be
posting about *actual code* but I thought I'd follow up.
Thanks,
-LenzM
[View Less]
Quite right. Though I still miss pre- and post-fix operators.
On Fri, Oct 2, 2009 at 12:14 PM, Paul Moore <p.f.moore(a)gmail.com> wrote:
> 2009/10/2 Gerald Britton <gerald.britton(a)gmail.com>:
>> fwiw C's ternary operator is implemented in Python like this:
>>
>> x = a if b else c
>
> I know. My email was wordy enough already, but that was my point -
> Python prefers keywords to punctuation, on the same "no line noise"
> principle.
>
> Paul
…
[View More]>
--
Gerald Britton
[View Less]