python takes no notice of my noob class :(
|deltab||__machine: is it just SGRs, any control sequence, or any control function beyond the basics?|
|frobnitz||I'm looking for a blog/cms and a wiki that support reStructuredText. Any recommendations?|
|rockz||is there a dct (discrete cosine transform) function in scipy?|
|action||Vornotron tries to figure out image stitching.|
|Vornotron||tries to figure out image stitching.|
|__machine||trying 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 :)|
|CountDown||How can a relative path name be converted to an absolute path name? For example "~/mydir" -> "/home/user/mydir".|
|jsoftw||Can 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?|
|Vornotron||a 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"?
why does it think it is a module ?
Because the file is acting as a module
|jsoftw||How do I tell it to act as a class.|
|Vornotron||You generally do not.|
|jsoftw||Well... how do I make it _work_ then.|
|Vornotron||Have you tried the statement I just gave you?|
|jsoftw||yes, that does not work.|
|Vornotron||What's it say?|
|deltab||CountDown: to handle the ~, use os.path.expanduser|
|jsoftw||Is class foo a valid class name, or does it have to be class Foo like in ruby ?|
Cause I have a lower case one.
|CountDown||deltab: Will do.|
|Vornotron||Case 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.
|CountDown||deltab: Why won't os.path.abspath handle this?|
|deltab||CountDown: because ~ has no special meaning to the OS|
CountDown: its a shell thing that handles ~ I think.
|CountDown||deltab: Oh right, it's a shell thing. Thanks.|
|jsoftw||Anyone help me on this: http://deadbeefbabe.org/paste/4311\|