Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20990
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | 88888 Dihedral <dihedral88888@googlemail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Need to write python source with python |
| Date | Tue, 28 Feb 2012 10:09:50 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 26 |
| Message-ID | <11747773.3845.1330452590293.JavaMail.geo-discussion-forums@pbeo1> (permalink) |
| References | <23135461.7.1330450584442.JavaMail.geo-discussion-forums@pbcrt4> <mailman.245.1330451754.3037.python-list@python.org> |
| NNTP-Posting-Host | 112.105.143.185 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1330452591 4090 127.0.0.1 (28 Feb 2012 18:09:51 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Tue, 28 Feb 2012 18:09:51 +0000 (UTC) |
| Cc | python-list@python.org |
| In-Reply-To | <mailman.245.1330451754.3037.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=112.105.143.185; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Received-Bytes | 2278 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20990 |
Show key headers only | View raw
在 2012年2月29日星期三UTC+8上午1时56分43秒,Peter Otten写道: > crstop@gmail.com wrote: > > > I'm new to Python but have experience with a few other programming > > languages(Java, Perl, JavaScript). > > > > I'm using Python 2.7.2 and I'm trying to create and write to a file (.py) > > a python class and functions from python. I will also need to later read > > and edit the file. I realize I could just write strings using the > > available string and file writing methods but suspect there is a better > > way than that. > > > > I have read about pickle, ast, and Django; searched this group and the web > > but haven't found a solution that seems to fit. Any suggestion? > > Due to Python's dynamic nature it is rarely necessary to generate Python > code. What are you actually trying to achieve? Check myHDL, and BOA and pythoncard that can translate user messages to pyhton code as delphie.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need to write python source with python crstop@gmail.com - 2012-02-28 09:36 -0800
Re: Need to write python source with python Peter Otten <__peter__@web.de> - 2012-02-28 18:56 +0100
Re: Need to write python source with python 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-28 10:09 -0800
Re: Need to write python source with python 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-28 10:09 -0800
Re: Need to write python source with python crstop@gmail.com - 2012-02-28 10:30 -0800
Re: Need to write python source with python crstop@gmail.com - 2012-02-28 10:30 -0800
Re: Need to write python source with python Peter Otten <__peter__@web.de> - 2012-02-28 20:25 +0100
Re: Need to write python source with python crstop@gmail.com - 2012-02-28 11:36 -0800
Re: Need to write python source with python crstop@gmail.com - 2012-02-28 11:36 -0800
csiph-web