Another Python rookie trying to port to C/C++ question.

Ulrich Petri ulope at gmx.de
Thu Sep 25 17:15:17 EDT 2003


"Don Bruder" <dakidd at sonic.net> schrieb im Newsbeitrag
news:GSGcb.24394$dk4.776543 at typhoon.sonic.net...
>

> I expect that either will be a reasonable facsimile of how Python
> handles dicts, with, of course, the corresponding overhead (which may be
> surprisingly little, I'm thinking... but I have yet to code that part,
> so I may find out it's going to be a nightmare) of "We want the value
> that goes with key, so we've got to walk the KeyArray[] until we find a
> match, then extract the value from the other array", or a similar
> procedure for the doubly-linked list.

Python hashes the keys for fast lookup.


> (Note 1)
> Along with quite a bit of entirely unwelcome "Python evangelism" -- 
> Which part of "I don't care how good, bad, or indifferent Python is
> compared to C/C++, or any other language. I want this Python code to be
> written in C/C++, end of discussion." wasn't clear enough for those of
> you who took it upon yourselves to preach (including the idiot who
> decided to spew a relatively impressive (as such things go) string of
> insults about how stupid I am, how far up my ass my head is, and how
> pathetic my family all the way back to Adam must be for producing such a
> throwback because I've got no interest in adopting "the perfect
> language...") at me on the merits of Python, both on group and
> in-mailbox?

You are treated as you treat others.
It might suprise you but this is a newsgroup not your personal information
lookup place.






More information about the Python-list mailing list