On 24/11/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Ed Singleton wrote:
> > Is it feasible to change a program's source code whilst it is running
> > without having to restart the program? Is it feasible to get a
> > program to change it's own source code while it is running?
>
> You can change
On 24/11/05, Alan Gauld <[EMAIL PROTECTED]> wrote:
> There are many ways of doing this, few of them very nice IMHO.
>
> > without having to restart the program? Is it feasible to get a
> > program to change it's own source code while it is running?
>
> Yes, you can overwrite an existing module the
Ed Singleton wrote:
> I think I can actually achieve this to some degree by doing:
>
> Class Page(object):
> def print(self):
> printPage(self)
>
> And have all my methods call functions (passing on parameters as
> necessary). That way if I change a function, it will be changed for
Ed Singleton wrote:
> On 24/11/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
>> It sounds like maybe you come from a background in Smalltalk, or
>> maybe you should look at Smalltalk. In Smalltalk the whole
>> environment is dynamic and can be saved and restored easily.>
>
> Just had a quick look a
Ed Singleton wrote:
>I want to create a small simple CMS for my website. Users will be
>able to add and edit basic pages. Pages can have sub-pages (no need
>for folders cause a folder and an index.html can be unified into one
>concept).
>
>Users will also be able to create new types of pages, ma
On 25/11/05, Ismael Garrido <[EMAIL PROTECTED]> wrote:
> Ed Singleton wrote:
>
> >I want to create a small simple CMS for my website. Users will be
> >able to add and edit basic pages. Pages can have sub-pages (no need
> >for folders cause a folder and an index.html can be unified into one
> >con
| I think I would split this into three phases:
| - collect the data into groups of HFR
| - process each group by rearranging, renumbering, reporting errors
| - output the processed groups
|
| One potential problem is to resynchronize to the next group when
| there is a sequence error. If there is
Ed Singleton wrote:
> Weirdly, I'd just realised that SQLObject does most of what I'm
> thinking about.
Ahhh. (sigh of relief :-)
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Smile and Kent
The logic is so good so far. However, How do we move the (...) in |H to
end of |R and before next |H
Much respect
AD
Exceptional team:
I like and I agree with your all logic (I have no choice! Smile you are
more advanced than me)
Kent said:
I think I would split this into three
> Just had a quick look at Smalltalk, and at first glance the overview
> of the ideas behind it seems amazing, but the language seems quite
> ugly, and it seems to be very IDE led.
Adherents will defend its simplicity but I confess I strugglred for
a long time with SmallTalk before learning to lo
Hi Ed,
This is a longish response because you are
raising some
very interesting (and deep) issues from a
computer science
point of view.
> Well, self-modifying isn't inherently
necessary. What I guess I> really need is persistent classes as
well as persistent objects.
Python classes c
Thanks Getting Simpler
I tested the below on python command line, it is very cool
1. So, how do we translate its re.compile into python?
2. them how to move it to at the end of |R and before next |H
3. I can almost remove all numbers (delete 0-9) and start new numbering
##
>>> multiLines =
-- Forwarded message --
Date: Fri, 25 Nov 2005 08:59:30 -0400
From: mike donato <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Tutor] TRULY NEWBIE - MENTOR NEEDED
Dan, what I meant was that the program does not run. Why?
Thanks
From: Danny Yoo <[EMAIL PROTECTED]>
To:
Ed Singleton wrote:
> Can a python program change a class, change all the objects already
> created by that class and save the modified class definition, so that
> if the program were restarted it would return to exactly the same
> state? (assuming all objects were saved to a database or somesuch).
> Dan, what I meant was that the program does not run. Why?
Hi Mike,
We don't have enough information. I have to ask more questions to have a
better idea what's going on. Also, please send your replies to the tutor
list: don't send them to me directly.
What do expect to see when your program
> I have no familiarity with the book you quote, but from the web site:
>
> http://www.brpreiss.com/books/opus7/
>
> and from the statement in the foward here:
>
> http://www.brpreiss.com/books/opus7/
Gaaa, stupid HTML frames... *grin* Sorry, that second URL was supposed
to be:
http://
hello everyone still my question about if i could read and process a non english language text file using python
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.___
Tutor maillist - Tutor@python.org
http://mail.python.org/mai
enas khalil wrote:
> hello everyone
> still my question about if i could read and process a non english
> language text file using python
To read the file use
import codecs
data = codecs.open('myfile.txt', 'r', 'cp1256').read()
This will give you a Unicode string in data. I don't know how to us
->Terry<- wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> Ok, I've got my peg game roughed out and I'm having
> problems.
>
> The new code is at:
>
> http://members.socket.net/~tvbare/pypeg/new_pypeg.py>
>
> I'm confused as to why. The whole OO picture
> has my head reeling, but
enas khalil wrote:
>hello everyone
> still my question about if i could read and process a non english language
> text file using python
>
>
Hi Enas,
I think you mean Arabic language, yes of course you can, and I think you
should see the Duali project:
http://www.arabeyes.org/project.php?p
| The logic is so good so far. However, How do we move the (...) in |H
| to end of |R and before next |H
Maybe you are thinking too literally about the moving of the parenthetical item
from the |H to the end of the |R. Let's say you have the 3 chunks of
information in variables h, f, and r:
##
21 matches
Mail list logo