#python - Tue 10 Apr 2007 between 00:00 and 00:17

NY Lost Funds



jsoftw:(
python takes no notice of my noob class :(
deltab__machine: is it just SGRs, any control sequence, or any control function beyond the basics?
frobnitzI'm looking for a blog/cms and a wiki that support reStructuredText. Any recommendations?
rockzis there a dct (discrete cosine transform) function in scipy?
actionVornotron tries to figure out image stitching.
Vornotrontries to figure out image stitching.
__machinetrying to strip color coding control sequences from a string sql statement so i can execute it... found a method to disable the color codes in the first place tho so it's solved for now :)
CountDownHow can a relative path name be converted to an absolute path name? For example "~/mydir" -> "/home/user/mydir".
slashus2os.path.abspath(filename)
CountDownThanks.
jsoftwCan someone give some reasons as to why I get this error: AttributeError: 'module' object has no attribute 'test' when the class does have test() defined?
:?
Vornotrona module and a class are two different things.
I take it you have a file "Foo.py" and then a class within in named "Foo"?
jsoftwyeah
why does it think it is a module ?
VornotronTry Foo.Foo.test()
Because the file is acting as a module
jsoftwHow do I tell it to act as a class.
VornotronYou generally do not.
jsoftwWell... how do I make it _work_ then.
VornotronHave you tried the statement I just gave you?
jsoftwyes, that does not work.
VornotronWhat's it say?
jsoftwsame thing.
Vornotronhm
deltabCountDown: to handle the ~, use os.path.expanduser
jsoftwIs class foo a valid class name, or does it have to be class Foo like in ruby ?
Cause I have a lower case one.
CountDowndeltab: Will do.
VornotronCase does not matter in the slightest in Python, except as regards keywords
(and special method names)
or, let me rephrase that: Python is case sensitive, but does not apply semantics to case.
CountDowndeltab: Why won't os.path.abspath handle this?
deltabCountDown: because ~ has no special meaning to the OS
jsoftwVornotron: http://deadbeefbabe.org/paste/4311
CountDown: its a shell thing that handles ~ I think.
deltabyes
CountDowndeltab: Oh right, it's a shell thing. Thanks.
jsoftwAnyone help me on this: http://deadbeefbabe.org/paste/4311\

Page: 2 9 16 23 30 37 44 51 58 65 

IrcArchive

NY Lost Funds