Re: c macros in python.

2007-05-06 Thread noagbodjivictor
Great python!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: using boost to extend python with c++

2007-05-06 Thread noagbodjivictor
On May 6, 4:12 pm, "mr_gees100_peas" <[EMAIL PROTECTED]> wrote: > Hi, > >I've been trying for days to make either boost.python or swig to > work for me. The one I have gotten the closest to is boost. Note that > this is for windows XP. I'm not much of an unix person besides doing > simple ls an

c macros in python.

2007-05-06 Thread noagbodjivictor
Hey, I'm writing a script to generate code. I'm a bit tired of typing outfile.write(). Does python have a way to c-like macros? Every instance of o(...) in the code will be replaced by outfile.write(...)? -- http://mail.python.org/mailman/listinfo/python-list

How do I use the config parser?

2007-05-05 Thread noagbodjivictor
Hi, I need a specific example. I have seen the docs, but I don't all the stuffs there. So basically, I need my config file to be created and read by my script. Here is a snippet # read old actions from ConfigParser import ConfigParser fp = open(makepath('App\qt_actions.conf')) configdict = Conf

Re: How do I import a variable from another module?

2007-05-03 Thread noagbodjivictor
On May 3, 9:36 pm, Andy Terrel <[EMAIL PROTECTED]> wrote: > are you sure your variable isn't in some code block that wouldn't be > read on import? Such as: > > if __name__ == "__main___": > actions = 1 No Andy, I have not put the variable in any code block -- http://mail.python.org/mailman

How do I import a variable from another module?

2007-05-03 Thread noagbodjivictor
I have a variable names actions in a module named qt_actions.py Well this is what I get: >>> import qt_actions >>> qt_actions.actions Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'actions' -- http://mail.python.org/mailman/listinfo/py

Re: How do I output a list like the interpreter do?

2007-05-03 Thread noagbodjivictor
On May 3, 8:24 pm, [EMAIL PROTECTED] wrote: > On May 3, 8:01 pm, [EMAIL PROTECTED] wrote: > > > On May 3, 8:00 pm, [EMAIL PROTECTED] wrote: > > > > >>> s = ['a','b'] > > > >>> s > > > ['a', 'b'] > > > > This is what I want so that I can put it in a module then import that > > > module to work with

Re: How do I output a list like the interpreter do?

2007-05-03 Thread noagbodjivictor
On May 3, 8:01 pm, [EMAIL PROTECTED] wrote: > On May 3, 8:00 pm, [EMAIL PROTECTED] wrote: > > > >>> s = ['a','b'] > > >>> s > > ['a', 'b'] > > > This is what I want so that I can put it in a module then import that > > module to work with my variable. > > Sorry for that typo in the title... I foun

Re: How do I output a list like the interpreter do?

2007-05-03 Thread noagbodjivictor
On May 3, 8:00 pm, [EMAIL PROTECTED] wrote: > >>> s = ['a','b'] > >>> s > ['a', 'b'] > > This is what I want so that I can put it in a module then import that > module to work with my variable. Sorry for that typo in the title... -- http://mail.python.org/mailman/listinfo/python-list

How do I output a list like the interpreter do?

2007-05-03 Thread noagbodjivictor
>>> s = ['a','b'] >>> s ['a', 'b'] >>> This is what I want so that I can put it in a module then import that module to work with my variable. -- http://mail.python.org/mailman/listinfo/python-list

Re: When does input() return an empty string?

2007-05-03 Thread noagbodjivictor
On May 3, 7:50 pm, André <[EMAIL PROTECTED]> wrote: > On May 3, 8:43 pm, [EMAIL PROTECTED] wrote: > > > I'm filling an array with user input, I want an empty string to be > > returned when nothing is entered; ie return key hit twice... How do I > > do that? > > use raw_input(), not input(). input(

When does input() return an empty string?

2007-05-03 Thread noagbodjivictor
I'm filling an array with user input, I want an empty string to be returned when nothing is entered; ie return key hit twice... How do I do that? -- http://mail.python.org/mailman/listinfo/python-list

How to check if a string is empty in python?

2007-05-02 Thread noagbodjivictor
How to check if a string is empty in python? if(s == "") ?? -- http://mail.python.org/mailman/listinfo/python-list

Refreshing imported modules

2007-05-02 Thread noagbodjivictor
I have the python interperter opened while editing a module. The problem is that when I make changes, the module is not refreshed whenever I import it again. I have to re-launch the interpreter, is there a way to shortcut this? -- http://mail.python.org/mailman/listinfo/python-list

Re: open("output/mainwindow.h",'w') doesn't create a folder for me

2007-05-02 Thread noagbodjivictor
On May 2, 10:06 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello > > I have done python for some time now. I'm forgetting things. > > > This is the faulty line : outfile = open("output/mainwindow.h",'w') > > > I thought it would have created the folder ouput and t

open("output/mainwindow.h",'w') doesn't create a folder for me

2007-05-02 Thread noagbodjivictor
Hello I have done python for some time now. I'm forgetting things. This is the faulty line : outfile = open("output/mainwindow.h",'w') I thought it would have created the folder ouput and the file mainwindow.h for me but it's throwing an error -- http://mail.python.org/mailman/listinfo/python-l

Re: Python for Windows other way to getting it?

2007-05-01 Thread noagbodjivictor
On May 1, 5:50 pm, Tal Einat <[EMAIL PROTECTED]> wrote: > On May 2, 12:43 am, [EMAIL PROTECTED] wrote: > > > > > On May 1, 5:17 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] schrieb: > > > > > Hello > > > > I don't have permission to install new application on the PC I

Re: Python for Windows other way to getting it?

2007-05-01 Thread noagbodjivictor
On May 1, 5:17 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > Hello > > I don't have permission to install new application on the PC I'm > > using, I need a zipped version of python that I can copy on my > > external drive. Where can I get a zip version? > > ht

Python for Windows other way to getting it?

2007-05-01 Thread noagbodjivictor
Hello I don't have permission to install new application on the PC I'm using, I need a zipped version of python that I can copy on my external drive. Where can I get a zip version? Thanks -- http://mail.python.org/mailman/listinfo/python-list