Many thanks Gerhard - the solution you offer is workable in the scope
of my project.
Gracias muchacho
Xera121
--
http://mail.python.org/mailman/listinfo/python-list
Hi , I am just doing a trivial job , which generate a bar chart from a collection of data , for example : I have a file like below , Tom:23 John:12 Marry:56 Jack:34 ...
What I want to do is to read the data from the file and display it as a bar chart or some other chart and
[EMAIL PROTECTED] wrote:
> in python is there any way to do this
>
> op = "<"
> a = 10
> b = 20
> if a op b :
>print "a is less than b"
>
> ??
the "operator" module contains functions corresponding to all builtin
operators:
import operator
ops = {
"==": operator.eq,
fuzzylollipop wrote:
>> Is it possible to read an XML document in compressed format?
>
> compressing the footprint on disk won't matter, you still have 10GB of
> data that you need to process and it can only be processed uncompressed.
didn't you just claim that this was an I/O bound problem ?
[EMAIL PROTECTED] wrote:
> hi
> in python is there any way to do this
>
> op = "<"
> a = 10
> b = 20
> if a op b :
>print "a is less than b"
[EMAIL PROTECTED] wrote:
> hi
> in python is there any way to do this
>
> op = "<"
> a = 10
> b = 20
> if a op b :
>print "a is less than b"
Will
fuzzylollipop wrote:
> you got no idea what you are talking about, anyone knows that something
> like this is IO bound.
which of course explains why some XML parsers for Python are a 100 times
faster than other XML parsers for Python...
--
http://mail.python.org/mailman/listinfo/python-list
Levi Self wrote:
> This probably seems very trivial, maybe even a bit silly, but I was
> wondering if someone has a better list comprehension that does the
> same thing as this one:
>
> >>> print [[[i]*i for i in range(1,9)][j][k] for j in range(8) for k
> in range(j+1)]
> [1, 2, 2, 3, 3, 3, 4, 4,
hi
in python is there any way to do this
op = "<"
a = 10
b = 20
if a op b :
print "a is less than b"
??
thanks
--
http://mail.python.org/mailman/listinfo/python-list
> On 6/06/2006 4:15 PM, Girish Sahani wrote:
>> Really sorry for that indentation thing :)
>> I tried out the code you have given, and also the one sreeram had
>> written.
>> In all of these,i get the same error of this type:
>> Error i get in Sreeram's code is:
>> n1,_,n2,_ = line.split(',')
>> Va
Hi all,
The IPython team is happy to release version 0.7.2, with a lot of new
enhancements, as well as many bug fixes.
We hope you all enjoy it, and please report any problems as usual.
WHAT is IPython?
1. An interactive shell superior to Python's default. IPython has many
fea
python-dev Summary for 2006-04-01 through 2006-04-15
.. contents::
[The HTML version of this Summary is available at
http://www.python.org/dev/summary/2006-04-01_2006-04-15]
=
Announcements
=
-
Py
python-dev Summary for 2006-03-16 through 2006-03-31
.. contents::
[The HTML version of this Summary is available at
http://www.python.org/dev/summary/2006-03-16_2006-03-31]
=
Announcements
=
---
Pyth
hacker1017 <[EMAIL PROTECTED]> wrote:
> im just asking out of curiosity.
At work, since about 16 months ago, mostly for maintaining and enhancing
many programs that control, monitor, and ensure the smooth working of,
many large clusters of servers (plus, all the persnickety extra little
things th
This probably seems very trivial, maybe even a bit silly, but I was wondering if someone has a better list comprehension that does the same thing as this one:>>> print [[[i]*i for i in range(1,9)][j][k] for j in range(8) for k in range(j+1)]
[1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6,
[EMAIL PROTECTED] wrote:
> Paul,
>
> This is interesting. Unfortunately, I have no control over the XML
> output. The file is from Goldmine. However, you have given me an
> idea...
>
> Is it possible to read an XML document in compressed format?
compressing the footprint on disk won't matter, you
K.S.Sreeram wrote:
> Diez B. Roggisch wrote:
> > What the OP needs is a different approach to XML-documents that won't
> > parse the whole file into one giant tree - but I'm pretty sure that
> > (c)ElementTree will do the job as well as expat. And I don't recall the
> > OP musing about performance
I'm currently working on a casino script for an IRC bot. I was going to
make a flat file database, but I decided to make it sqlite after some
suggestions. I'm using pysqlite.
http://pastebin.com/764315 < Source. The lines that have @@ (pastebin
doesn't like me) in front of them are important.
ERR
Ah, damn. That would've been soo much simpler. =S
Thanks for the advice man.
-Wes
Ben Cartwright wrote:
> Ws wrote:
> > I'm trying to write up a module that *safely* sets sys.stderr and
> > sys.stdout, and am currently having troubles with the function
> > verification. I need to assure that the
Ws wrote:
> I'm trying to write up a module that *safely* sets sys.stderr and
> sys.stdout, and am currently having troubles with the function
> verification. I need to assure that the function can indeed be called
> as the Python manual specifies that sys.stdout and sys.stderr should be
> defined
QOTW: "You can gain substantial speed-ups in very certain cases, but the
main point of Pyrex is ease of wrapping, not of speeding-up." - Simon Percivall
"The rule of thumb for all your Python Vs C questions is ...
1.) Choose Python by default. . . ." - Ravi Teja
Do you remember Python's ea
Currently I am using Python for a CRM client application that runs on
Win32, ARM Linux, and WinCE platforms. It pushes and pulls contact data
using XMLRPC calls so that it doesn't lock the client into having to
use CDO for communicating with the Exchange Server and ADO for
communicating with the SQ
Hi all
I'm trying to write up a module that *safely* sets sys.stderr and
sys.stdout, and am currently having troubles with the function
verification. I need to assure that the function can indeed be called
as the Python manual specifies that sys.stdout and sys.stderr should be
defined (standard fi
Vedran Furač wrote:
> When I call optimize.fsolve(...) python interpreter crashes immediately,
> no error messages, nothing, just brings me back to c:\
> On linux the same code works fine. I tried it on different computers. I
> seems that it doesn't crash on pentium4, only on athlon and pentium2.
>
On 7/06/2006 7:50 AM, Gregory Piñero wrote:
> Hey group,
>
> I have a command line tool that I want to be able to call from a
> Python script. The problem is that this tool only writes to a file.
>
Another Fantastic Manual gives another idea:
"""
Pdftotext reads the PDF file, PDF-file,
When I call optimize.fsolve(...) python interpreter crashes immediately,
no error messages, nothing, just brings me back to c:\
On linux the same code works fine. I tried it on different computers. I
seems that it doesn't crash on pentium4, only on athlon and pentium2.
python 2.4.3 (activestate),
On 7/06/2006 7:50 AM, Gregory Piñero wrote:
> Hey group,
>
> I have a command line tool that I want to be able to call from a
> Python script. The problem is that this tool only writes to a file.
>
> So my solution is to give the tool a temporary file to write to and
> then have Python read that
I am using Python to assemble a biomedical literature analysis pipeline
as part of my PhD thesis. (http://ib-dwb.sf.net/Muscorian.html)
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 2006-06-07 at 09:27 +1000, John McMonagle wrote:
> On Tue, 2006-06-06 at 19:42 +, John Salerno wrote:
> > Fredrik Lundh wrote:
> >
> > > however, if you need to access a widget later on, it might be a good
> > > idea to save a reference to it somewhere...
> >
> > To follow up on that
On 7/06/2006 7:46 AM, Tommy B wrote:
>
> Umm... I tried using this method and it froze. Infiinite loop, I'm
> guessing.
>
Don't guess.
Instead:
(1) Put some print statements into your code to show what is happening:
(a) before start of loop (b) one or more salient points inside loop (c)
at (e
On Tue, 2006-06-06 at 19:42 +, John Salerno wrote:
> Fredrik Lundh wrote:
>
> > however, if you need to access a widget later on, it might be a good
> > idea to save a reference to it somewhere...
>
> To follow up on that point, I have the following code now. I have two
> questions about it
Max wrote:
> puzz wrote:
> > sorry about the missunderstanding...
> >
> > but my question is "how" and not "where" to put it online
> > and that's where the "newbie" comes from
> >
> > P M
>
> If you just want to make it available for download, that's easy. If you
> want to make it open source, yo
Tommy B wrote:
>> import os
>> old = open("/path/to/file.txt", "r")
>> new = open("/path/to/new.txt", "w")
>> for line in old:
>> if line.strip() == "Bob 62"
>> line = line.replace("62", "66")
>> new.write(line)
>> old.close()
>> new.close()
>> os.rename("/path/to/new.txt", "/path/to/file.
Hey group,
I have a command line tool that I want to be able to call from a
Python script. The problem is that this tool only writes to a file.
So my solution is to give the tool a temporary file to write to and
then have Python read that file. I figure that's the safest way to
deal with this s
bruno at modulix wrote:
> Tommy B wrote:
> > I was wondering if there was a way to take a txt file and, while
> > keeping most of it, replace only one line.
>
>
> This is a FAQ (while I don't know if it's in the FAQ !-), and is in no
> way a Python problem. FWIW, this is also CS101...
>
>
> You
[EMAIL PROTECTED] writes:
> I'm having no success building the curses module on Solaris 8 (yes, I know
> it's ancient - advancing the state-of-the-art is not yet an option) for
> Python 2.4. Sun provides an apparently ancient version of curses in
> /usr/lib, so I downloaded and installed ncurses
First a bit about what I'm trying to do. I need a function which takes a
patchfile and patches a source directory. Thats it. However, I need to
be able to do so no matter what the patchlevel (-px) of the diff is. So,
my solution is to just try to patch until it works or you try a level
more tha
Jack Diederich <[EMAIL PROTECTED]> writes:
[...]
> MySQL will keep table locks until the results are all fetched so even though
> the DB API allows fetchone() or fetchmany() using those with MySQLdb is
> dangerous.
[...]
That's not true of InnoDB tables.
John
--
http://mail.python.org/mailman/l
puzz wrote:
> sorry about the missunderstanding...
>
> but my question is "how" and not "where" to put it online
> and that's where the "newbie" comes from
>
> P M
If you just want to make it available for download, that's easy. If you
want to make it open source, you could upload it to
planet
i'm writing a text editor [yes, it has quite a few interesting unique
features].
http://fauxlkner.sf.net>
this summer, i hope to make it collaborative like gobby.
i also have a full-time job this summer at my college writing a small
database system to manage student records.
hacker1017 wrote:
> i
Steve Holden wrote:
>
> The MySQLdb solution you give is way more complicated than it needs to
> be, thereby skewing your opinion towards cx_Oracle unnecessarily.
>
I respectfully disagree with your assertion here. The code I presented
for MySQLdb is what you *have* to do, to avoid using up too
"K.S.Sreeram" <[EMAIL PROTECTED]> writes:
[...]
> There's just NO WAY that the 10gb xml file can be loaded into memory as
> a tree on any normal machine, irrespective of whether we use C or
> Python.
Yes.
> So the *only* way is to perform some kind of 'stream' processing
> on the file. Perhaps us
That a good sized Goldmine database. In past lives I have supported
that app and recall that you could match the Goldmine front end against
an SQL backend. If you can get to the underlying data utilizing SQL you
can selectively port over sections of the database and might be able to
attack things m
sorry about the missunderstanding...
but my question is "how" and not "where" to put it online
and that's where the "newbie" comes from
P M
puzz wrote:
> Hi all,
>
> I am so new to everything, I don't even know where to post my
> question... do bear...
>
> I made this Python calculator that will
John Salerno wrote:
> 2. Related to your comment, the obvious problem here is that it doesn't
> save references to the text box names, so I can't access them later. Is
> there still a way to automate the process like I've done, but have each
> entry field have a separate name?
A thought about
> 1. First of all, this is not the code you are running. I know this because
> the unbalanced parens wont even compile. It really doesn't help when you
> ask for help, but post the wrong code.
"Ok! Ok! I must have, I must have put a decimal point in the wrong
place
or something. Shit. I always d
Paul,
This is interesting. Unfortunately, I have no control over the XML
output. The file is from Goldmine. However, you have given me an
idea...
Is it possible to read an XML document in compressed format?
Paul McGuire wrote:
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I
gregarican wrote:
> 10 gigs? Wow, even using SAX I would imagine that you would be pushing
> the limits of reasonable performance.
depends on how you define "reasonable", of course. modern computers are
quite fast:
> dir data.xml
2006-06-06 21:35 1 002 000 015 data.xml
1
The file is an XML dump from Goldmine. I have built a document parser
that allows for the population of data from Goldmine into SugarCRM. The
clients data se is 10gb.
Felipe Almeida Lessa wrote:
> Em Ter, 2006-06-06 às 13:56 +, Paul McGuire escreveu:
> > (just can't open it up like a text file
Fredrik Lundh wrote:
> however, if you need to access a widget later on, it might be a good
> idea to save a reference to it somewhere...
To follow up on that point, I have the following code now. I have two
questions about it:
1. Can I somehow make the passing of 'master' to the draw_entry me
10 gigs? Wow, even using SAX I would imagine that you would be pushing
the limits of reasonable performance. Any way you can depart from the
XML requirement? That's not really what XML was intended for in terms
of passing along information IMHO...
[EMAIL PROTECTED] wrote:
> I wrote a program that
John Salerno wrote:
> I'm wondering, why is frame created as a local variable, and the buttons
> as instance variables? What is the difference? Can you make frame an
> instance variable, or vice versa?
Tkinter maintains its own widget hierarchy, and widgets don't go away
unless you explicitly
Fredrik Lundh wrote:
> both ElementTree and cElementTree support "sax-style" event generation
> (through XMLTreeBuilder/XMLParser) and incremental parsing (through
> iterparse). the cElementTree versions of these are even faster than
> pyexpat.
>
> the iterparse interface is described here:
>
This is from the Tkinter tutorial:
from Tkinter import *
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame, text="QUIT", fg="red",
command=frame.quit)
self.button.pack(side=LEFT)
self.hi_ther
Thanks folks! I had just gotten myself into a blind rut, apparently.
Adding the .Value attribute to the com object does strip all the other
messaging returning from Excel so I could then populate my list and
return out of the function normally.
I had tried that earlier, but had used the .Value att
"Ransom" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Very newb here, but my question will hopefully be obvious to someone.
> But when I try and put the output from the spreadsheet into
> a dynamic list after the TODO section thusly:
>
> outputlist = []
> outputlis
david brochu jr wrote:
> I am looking to take RSS feeds a process them with a python program..any
> idea where I can get RSS feeds for sports stats, and how I would use the
> script to connect automatically to the feed?
for the python-related part of your question, start here:
http://www.
Not sure where to post this one so here it goes...sorry to anyone if it shouldnt be here.
I am looking to take RSS feeds a process them with a python program..any idea where I can get RSS feeds for sports stats, and how I would use the script to connect automatically to the feed?
--
http://mail.
K.S.Sreeram wrote:
> There's just NO WAY that the 10gb xml file can be loaded into memory as
> a tree on any normal machine, irrespective of whether we use C or
> Python. So the *only* way is to perform some kind of 'stream' processing
> on the file. Perhaps using a SAX like API. So (c)ElementTree
aljosa wrote:
>and doesn't provide additional options like
> motion detection nor any info on possibility of motion detection or
> howto implement
An example for motion detection and even pythonic eye toys :)
http://gumuz.looze.net/wordpress/index.php/archives/2005/06/06/python-webcam-fun-motion
Python Experts every where!!
I am having a problem using the logging utility in Python using the
logging module from the std. lib. I have written a class SPFLogger
which actually should be creating a new logger if one already does not
exist. I have given the class I wrote in the end. The problem I
Diez B. Roggisch wrote:
> What the OP needs is a different approach to XML-documents that won't
> parse the whole file into one giant tree - but I'm pretty sure that
> (c)ElementTree will do the job as well as expat. And I don't recall the
> OP musing about performances woes, btw.
There's just NO
> > I made this Python calculator that will take an equation as an input
> > and will display the computed curves on a shiny Tkinter interface
>
> well, it doesn't sound like you're quite as newbie-ish as many other
> newbies ;-)
>
> > Now, I'd like to make this application available on a public we
Ransom wrote:
> Very newb here, but my question will hopefully be obvious to someone.
> OK, so what is happening is that I am sending a list of data to an
> overly complicated spreadsheet that produces it's own output (in cell
> 32,6). As I loop through multiple test cases, the print statement
>
hacker1017 wrote:
> im just asking out of curiosity.
Math research on the Collatz Conjecture.
--
http://mail.python.org/mailman/listinfo/python-list
I tend to do a significant amount of EDI related work:-statistical analysis-X12->HTML formattingI've do a ton of customer DB reporting. I find it easier to use Python that Crystal reports for a lot of the stuff I do so I extract data and spit out CSV files for Excel to make it look pretty.
And I'm
aljosa wrote:
> i searched on google and found http://videocapture.sourceforge.net/
> before i posted here.
yup.
> videocapture has no docs
With the API docs in the ".zip" and the examples provided, you
should be able to handle it.I did :)
> and doesn't provide additional options like
> motion
Em Ter, 2006-06-06 às 13:56 +, Paul McGuire escreveu:
> (just can't open it up like a text file)
Who'll open a 10 GiB file anyway?
--
Felipe.
--
http://mail.python.org/mailman/listinfo/python-list
puzz wrote:
> I made this Python calculator that will take an equation as an input
> and will display the computed curves on a shiny Tkinter interface
well, it doesn't sound like you're quite as newbie-ish as many other
newbies ;-)
> Now, I'd like to make this application available on a public
Hi all,
I am so new to everything, I don't even know where to post my
question... do bear...
I made this Python calculator that will take an equation as an input
and will display the computed curves on a shiny Tkinter interface
Now, I'd like to make this application available on a public web
pag
On 6/4/06, hacker1017 <[EMAIL PROTECTED]> wrote:
> im just asking out of curiosity.
My current gig is perl only, but I still use python for personal stuff
1) +Twisted for a couple of IRC Bots
2) an interface between TextMate and py.test
3) a soccer management game (wxPython + PyGame)
--
Stand
Ransom wrote:
> Very newb here, but my question will hopefully be obvious to someone.
>
> Code:
>
> import string
> from win32com.client import Dispatch
> docdir = 'E:\\scripts\\Python\\RSAutomation\\'
>
> def getOldData(testcases):
>
> excel = Dispatch("Excel.Application")
> excel.Work
I'm afraid I don't have a Windows machine to test on, but..
Ransom wrote:
> I get an error like:
> [ 0x15450880>]
>
This isn't an error. This is a list with one element, where the element
apparently represents a range of Excel cells. So by using that element
you can do things like changing the fo
Very newb here, but my question will hopefully be obvious to someone.
Code:
import string
from win32com.client import Dispatch
docdir = 'E:\\scripts\\Python\\RSAutomation\\'
def getOldData(testcases):
excel = Dispatch("Excel.Application")
excel.Workbooks.Open(docdir + 'FILE.xls')
#
I'm having no success building the curses module on Solaris 8 (yes, I know
it's ancient - advancing the state-of-the-art is not yet an option) for
Python 2.4. Sun provides an apparently ancient version of curses in
/usr/lib, so I downloaded and installed ncurses 5.5, both using default
settings a
I am using ActiveState Komodo 3.5 to work on a large python 2.4
application with an extensive UI... I am attempting to debug the
application and am setting breakpoints in 4 different *.py files..
Breakpoints in the main file are working OK, but any breakpoints in
imported files are not... The thre
hacker1017 wrote:
> im just asking out of curiosity.
>
Err... Programming ?-)
Sorry...
Actually, mostly web applications (CMS, groupware, small/medium business
apps etc), and admin utilities.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in
Hi All,
Pydev and Pydev Extensions 1.1.0 have been released
Details on Pydev Extensions: http://www.fabioz.com/pydev
Details on Pydev: http://pydev.sf.net
Details on its development: http://pydev.blogspot.com
Release Highlights in Pydev Extensions:
--
On 2006-06-06, Tim Chase <[EMAIL PROTECTED]> wrote:
>> 4) Miscellaneous other stuff like grabbing all of the comic
>> strips I like every day and putting them on a local web
>> page so I can read them all in one place
>
> I wonder how many other folks have done this too. It was my
> firs
On 6/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Lou Losee wrote:
>
> > How about something like:
>
> > import os, stat
> >
> > class DirectoryWalker:
> > # a forward iterator that traverses a directory tree, and
> > # returns the filename
> > ...
>
> > not tested
>
> speak for yourse
[EMAIL PROTECTED] wrote:
> I wrote a program that takes an XML file into memory using Minidom. I
> found out that the XML document is 10gb.
>
> I clearly need SAX or something else?
>
> Any suggestions on what that something else is? Is it hard to convert
> the code from DOM to SAX?
If your XML f
hacker1017 wrote:
> im just asking out of curiosity.
>
We use python for somewhat complex build system which builds several
versions of embedded Linux for multiple architectures (30+). Two
particularly interested aspects of this build system involve simple
cluster management utilities (utili
I'm using for processing genetic and biological data, anda for fun...On 6/4/06, hacker1017 <[EMAIL PROTECTED]
> wrote:im just asking out of curiosity.--
http://mail.python.org/mailman/listinfo/python-list-- Miguel Galves - Engenheiro de ComputaçãoJá leu meus blogs hoje? Para geeks
http://log4dev.b
> 4) Miscellaneous other stuff like grabbing all of the comic
> strips I like every day and putting them on a local web
> page so I can read them all in one place
I wonder how many other folks have done this too. It was my
first pet Python project, converting a Java rendition of the sam
hacker1017 wrote:
> im just asking out of curiosity.
To get an impression you might have a look at the Europython 2006
schedule:
http://indico.cern.ch/conferenceTimeTable.py?confId=44
Personally I'm playing with the language itself at the moment and
extend it through it:
http://www.fiber-space.
At the moment, I'm using it for
1) Enginerring/scientific data analysis and visualization.
2) Serial communication test programs.
3) Small utilities for embedded software development
(processing map and hex files).
4) Miscellaneous other stuff like grabbing all of the comic
strips
Brian wrote:
> I just have a basic style question here. Suppose you have the program:
>
> def foo1():
> do something
>
> def foo2()
> do something else
>
> Assume that you want to call these functions at execution. Is it more
> proper to call them directly like:
>
> foo1()
> foo2()
>
> o
Paul McGuire wrote:
> "RonnyM" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>Hi!
>>
>>Need to vectorize this, but do not have a clue.
>>
>>a = n*m matrix
>>x and y are n and m vectors
>>
>>Suggestions?
>>
>>def fill(a, x, y):
>>for i in range(1,a.shape[0]):
>>xp = x
im just asking out of curiosity.
--
http://mail.python.org/mailman/listinfo/python-list
The Python Software Foundation's Infrastructure committee has been charged with finding a new tracker system to be used by the Python development team as a replacement for SourceForge. The development team is currently unhappy with SF for several reasons which include:
* Bad interface Most obvi
The difference becomes clear when you import your program into another
program (or the command line python editor). __name__!='__main__' when
you import, so the functions will not be called if they're inside the
block. This is why you see this block so often at the end of scripts;
so that the scr
Kiran wrote:
> Hello All,
> I am kind of a beginner to python, but here is the deal.
>
> I am writing a wxpython Application, in which I have a GUI. This GUI
> imports some other modules that I have written, using the format
> import mymodule as _MyModule
>
> Now, this GUI in addition to hav
I just have a basic style question here. Suppose you have the program:
def foo1():
do something
def foo2()
do something else
Assume that you want to call these functions at execution. Is it more
proper to call them directly like:
foo1()
foo2()
or in an if __name__ == "__main__": ?
B
Fredrik Lundh wrote:
> John Salerno wrote:
>
>> If I read a string that contains a newline character(s) into a
>> variable, then write that variable to a file, how can I retain those
>> newline characters so that the string remains on one line rather than
>> spans multiple lines?
>
> you canno
What's New?
===
The Vancouver Python Workshop is pleased to announce the addition of a
third keynote speaker to this year's conference.
Ian Cavén is the primary developer of the Lowry Digital Images motion
picture restoration system. This Python and Zope-based system has been
used to r
John Salerno wrote:
> If I read a string that contains a newline character(s) into a variable,
> then write that variable to a file, how can I retain those newline
> characters so that the string remains on one line rather than spans
> multiple lines?
you cannot: the whole point of a newline c
If I read a string that contains a newline character(s) into a variable,
then write that variable to a file, how can I retain those newline
characters so that the string remains on one line rather than spans
multiple lines?
Example: In a CGI script, I'm reading the address field from an HTML
f
aljosa wrote:
> i posted here to find out if anybody knows a better way to capture
> video.
what other requirements did you forget to mention ?
--
http://mail.python.org/mailman/listinfo/python-list
I should note that if you use the execfile command in the console, the
script runs, but if you import the script, it says it cant find the
module
--
http://mail.python.org/mailman/listinfo/python-list
Paul> You clearly need something instead of XML.
Amen, brother...
+1 QOTW.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I am kind of a beginner to python, but here is the deal.
I am writing a wxpython Application, in which I have a GUI. This GUI
imports some other modules that I have written, using the format
import mymodule as _MyModule
Now, this GUI in addition to having all it's bells and whis
1 - 100 of 154 matches
Mail list logo