Hello folks :
i have a string -bin-ulockmgr_server:0.99[NHX:C=0.195.0] from which i
want to delete [NHX:C=0.195.0] .
I wrote a regular expression for [NHX:C=0.195.0] as
\[(\w)+:\w=((-)?(\d|\d\d|\d\d\d)\.)+\d\]
now when i do
p = re.compile('\[(\w)+:\w=((-)?(\d|\d\d|\d\d\d)\.)+\d\]')
m
En Fri, 03 Oct 2008 03:59:18 -0300, aditya shukla
[EMAIL PROTECTED] escribió:
Hello folks :
i have a string -bin-ulockmgr_server:0.99[NHX:C=0.195.0] from which i
want to delete [NHX:C=0.195.0] .
I wrote a regular expression for [NHX:C=0.195.0] as
\[(\w)+:\w=((-)?(\d|\d\d|\d\d\d)\.)+\d\]
now
Ahhh. Actually, I realized my problem was the fact that not everything
had been loaded yet. Circular loading can be a bit difficult I can
see... I guess I need to import the new module after x has been
declared? Ei, I need this.
Mod1.py
x=1
from mod2.py import *
=
Mod2.py
from
Tuvas wrote:
I know this is probably a very simple question, but I am building a
program that is now at about 2400 lines of code in the main module. I
need to break it up, however, there are certain variables that I would
like to use among all of them, namely the TKinter background. It's
Could I just do this then?
from foo import x?
One more question now that I've tried this. In my main function, I have
alot of init code. I don't want this code to be re-ran when the second
module imports the first. Is there any way around this? Thanks!
--
Tuvas wrote:
I know this is probably a very simple question, but I am building a
program that is now at about 2400 lines of code in the main module. I
need to break it up, however, there are certain variables that I would
like to use among all of them, namely the TKinter background. It's
Most of these are indeed independed of Tkinter, except for a status
report message that is often sent in response. I' have a few small
files already that do this, however, I would ike to be able to put
several that do in fact need to post status messages as well. There are
about 2400 lines of code
Tuvas wrote:
Could I just do this then?
from foo import x?
Yes, you can do it that way. (f you have your modules importing each
other in a circular fashion, then this can cause trouble as x may not be
defined yet, so best to avoid that case.)
One more question now that I've tried this.
On Wed, 15 Dec 2004 18:10:40 -0800, Jeff Shannon [EMAIL PROTECTED] wrote:
The difference being that when Excel opens up a *.CSV, it goes through
the import wizard.
Are you sure that's true? When I open a *.csv file, Excel *appears* to
open it without running any kind of wizard. Certainly I
Thanks to everyone for the prompt reply, I now have several options to
explore.
Thanks again,
Bill
--
http://mail.python.org/mailman/listinfo/python-list
Simon Brunning wrote:
On Wed, 15 Dec 2004 18:10:40 -0800, Jeff Shannon [EMAIL PROTECTED] wrote:
The difference being that when Excel opens up a *.CSV, it goes through
the import wizard.
Are you sure that's true? When I open a *.csv file, Excel *appears* to
open it without running any kind
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
Thanks,
Bill
In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.
There's probably a better option in python (under win32, you
could use win32com
12 matches
Mail list logo