Re: simple question on list manipulation from a newbie

2008-06-07 Thread Sam Denton
Sengly wrote: Dear all, I am working with wordnet and I am a python newbie. I'd like to know how can I transfer a list below In [69]: dog Out[69]: [{noun: dog, domestic_dog, Canis_familiaris}, {noun: frump, dog}, {noun: dog}, {noun: cad, bounder, blackguard, dog, hound, heel}, {noun: frank,

Re: Need help porting Perl function

2008-06-07 Thread Sam Denton
kj wrote: Hi. I'd like to port a Perl function that does something I don't know how to do in Python. (In fact, it may even be something that is distinctly un-Pythonic!) The original Perl function takes a reference to an array, removes from this array all the elements that satisfy a particular

Re: Python and Flaming Thunder

2008-06-07 Thread Sam Denton
John Salerno wrote: "Dave Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On May 20, 7:05 pm, Collin <[EMAIL PROTECTED]> wrote: --- For example, consider the two statements: x = 8 x = 10 The reaction from most math teachers (and kids) was "one of those is wrong b

Integrating a code generator into IDLE

2008-06-01 Thread Sam Denton
Code generators seem to be popular in Python. (http://www.google.com/search?q=python+code-generator) I have one that I'd like to integrate into IDLE. Ideally, I'd like to (1) have a new file type show up when I use the File/Open dialog, and (2) have a function key that lets me run my generato