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)\.
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
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 mod1
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 th
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:
> 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!
--
http://mail.python.org/mailman/listinfo
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
>
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
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
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
Mike Meyer wrote:
Grumman <[EMAIL PROTECTED]> writes:
Bill Turczyn wrote:
Does python have a module similiar to the perl Spreadsheet::WriteExcel
In a pinch, you can output an HTML table, give the file an .xls
extension, and Excel will read it just fine.
Welll, someone pointed ou
Grumman <[EMAIL PROTECTED]> writes:
> 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.
Welll, someone pointed out a t
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 and
Goggle: keyword pyXLWriter - ported from Perl. Does not support newer
exel files. F.e. if you create a table and write headers (names) they
will be in the table as row 0. But it is fast and it works. Has a lot
of examples.
--
http://mail.python.org/mailman/listinfo/python-list
15 matches
Mail list logo