sudhir prasad wrote:
hi,
what is the equivalent function to strtok() in c++,
what i need to do is to divide a line into different strings and store them
in different lists,and write them in to another file
If your tokens are separated by whitespace, you can simply use a single
call to split(
hi,
what is the equivalent function to strtok() in c++,
what i need to do is to divide a line into different strings and store them
in different lists,and write them in to another file
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subsc
How to create a single unittest test suite class that runs all methods
from multiple TestCase classes? Why I ask:
I'm trying to relearn TDD and learn Python by coding a simple app.
Currently the app has 2 simple functional classes, Pid and TallyPid,
and 2 very simple testcases, PidTests and Tally
On Sat, Jan 9, 2010 at 3:50 AM, spir wrote:
> Lie Ryan dixit:
>
>> only use "from module import *" if the
>> module was designed for such use
>
> In most cases, this translates to: the imported module defines __names__,
> which holds the list of names (of the objects) to be exported. Check it.
>
On Sat, Jan 9, 2010 at 8:03 AM, spir wrote:
> Do you realize the inner func will be redefined before each call? Meaning in
> your case n calls x n outer loops x n inner loops.
> def f() ...
> is actually a kind of masked assignment
> f = function()...
That's true, but it is pretty inexpensi
I'm working on a program partly to get the hang of gui programming. I'm a
bit puzzled by the behavior of simple dialogs- I wonder why, in the
following code, the second call to tkMessageBox.askyesno always returns
'False' (either 'yes' or 'no' return False!). If I take out the call to
tkFileDialo
On Sat, Jan 9, 2010 at 9:08 PM, Lie Ryan wrote:
> On 1/10/2010 11:23 AM, Eric Pavey wrote:
>
>> I should add (that as I understand it), when you do a 'from foo import
>> blah', or 'from foo import *', this is doing a /copy/ (effectively) of
>> that module's attributes into the current namespace.
"Alan Gauld" wrote:
> I assume you have already installed the PyDev plugin?
>
> I'm currently reading a book on Eclipse (Eclipse Distilled) which has
> turned up many settings and tricks that I was unaware of. It is a
> powerful tool but like all such it takes a lot of learing to get the most
>