#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10
Top Prev 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 Next
#python
<vbgunz> I'll figure it out
<vbgunz> :)
<vbgunz> hopefully
<guido_g> there is no such way, because this is very system specific
<CJLucas> new = 0
<CJLucas> IndexError: list index out of range
<vbgunz> maybe I should then spawn a console window and close it?
<CJLucas> why is that even an error when 'new' is not a list?
<guido_g> CJLucas: missing traceback error
<CJLucas> guido_g: meaning?
<guido_g> CJLucas: not enough information
<CJLucas> but that line is in a "while 1" loop, it never happened before
<guido_g> get the full traceback and the failing code and past it to a pastebin (see topic)
<CJLucas> ah sorry
<guido_g> vbgunz: this might work for your setup, but won't help on other systems not to mentions oses
<vbgunz> guido_g: you mean, launching a new console, executing and interacting with the script, then closing the shell when done?
<vbgunz> I'll have to search for my options on the matter, at the moment, I thought I'll get some info on it from those in the know and wake up to the task tomorrow :)
<vbgunz> I am very tired :)
<guido_g> hehe
<CJLucas> guido_g: here it is http://pastebin.com/885061 (error at the bottom)
<guido_g> sleep well
<vbgunz> thanks :)
<tessier> Can you subclass particular instances of objects? Or only actual classes? I am building this tool which needs some default configs which I want to be able to override in certain situations.
<guido_g> CJLucas: where is the real traceback?
<CJLucas> at the bottom?
<tessier> I'm thinking I have a default config object which contains the defaults and then I read the particular part of the config file which applies to what we happen to be doing and I want that to override.
<tessier> So I was thinking that sounds like inheritance.
<guido_g> CJLucas: nope, the last lines are just commented out lines
<tessier> But I'm not too clear on how to do it.
<CJLucas> guido_g: refresh
<CJLucas> its highlighted
<CJLucas> lines 79-82
<guido_g> still waiting for the data... it's a slow slow slow thingy
<CJLucas> it is
<CJLucas> im surprised that it hasent gotten faster since the last time ive used it
<tessier> Several times I have thought I had it clear in my head how to do this. But when I sit down to code it the ideas completely escape me.
<guido_g> is till only have 76 lines
<CJLucas> i thought it would be a temporary problem
<CJLucas> http://pastebin.com/885063
<CJLucas> weird
<CJLucas> when i edited it, it gave it a new url
<CJLucas> sorry
<guido_g> np
<CJLucas> its in a while 1: loop and its the first time that that error came up but i have no idea why
<mithrond> hello,all
<mithrond> happy new year.
<guido_g> CJLucas: i've no idea
<CJLucas> strange huh?
<sgeigerbot> I don't seem to have sitecustomize.py. Can I just create it and put it in a certain directory? (I'm on a Macbook Pro.)
<guido_g> i can bind to 'new' in python2.4 and python2.5 even after importing the module new
Previous Page Next Page