newb question
Cameron Laird
claird at starbase.neosoft.com
Tue Jul 18 09:12:53 EDT 2000
In article <8l0tfe$3th$1 at nnrp1.deja.com>, <lordkaos at my-deja.com> wrote:
>In article <3973EE1B.15B0B32E at mediaone.net>,
> Toy <gee308 at mediaone.net> wrote:
>> what is a simple way I can save variables that people enter in from
>> 'raw_input' ? That way, someone enters the variables they want, then
>> when the script is booted up everytime the machine starts, it will
>grab
>> the variables from somewhere. Thanks.
>> Jason Toy
>> toyboy at toy.eyep.net
>>
>>
>The tutorial at <a href="http://www.python.org/current/tut">Python's
>website</a> tells a simple and easy way to do exactly what you're
>saying. If you can get the variables into a class (read section 9, in
>particular 9.3) then it is easy to read and write a big set of vars all
>together in one operation by using the 'pickle' command (read about
>this and easy file creation/opening in section 7.2). I just read over
.
.
.
Pickling's good. In many situations, it can be handy simply
to write out Python source text. I don't understand Tony's
question well enough to know whether he's a candidate; however,
<URL:http://www.sunworld.com/sunworldonline/swol-06-2000/swol-0630-regex.html>
gives a few examples that might be helpful.
--
Cameron Laird <claird at NeoSoft.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list