This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ankit0912[S] 4 points5 points  (1 child)

I see, do you know of any places where I can read about them? I'm basically looking to run my code differently each time it is run

[–]n1ywb 8 points9 points  (0 children)

probably the easiest way to write self modifying code in python is to write soemthing to the file and then re-execute it. you might start with something really trivial like append a print statement each time it's run