Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Python and text files

Name: Anonymous 2010-02-01 13:16

I'm trying to work this out, but all I can find out is how to edit specific lines and such.

1 - Let the user select the file (done)
2 - Let the user open the file for editing (not done)
3 - Let the user save the file (not done)

Name: Anonymous 2010-02-01 13:36

os.system('vi')

Name: Anonymous 2010-02-01 13:46

>>2
+38 Sussshillings

Name: Anonymous 2010-02-01 13:50

>>2
Thank you, perfect.

Name: Anonymous 2010-02-01 14:17

>>2
Let me correct that
os.system('nano') for simple editing. Anything else should be :
os.system('emacs').

Name: Anonymous 2010-02-01 14:22

>>2

$ ls -lF /usr/bin/vi*
lrwxrwxrwx 1 root root     7 10-01 20:33 /usr/bin/vi -> /bin/ed*
lrwxrwxrwx 1 root root    14 10-01 20:33 /usr/bin/vim -> /usr/bin/emacs*

Name: Anonymous 2010-02-01 14:50

>>5
nano seems about right for pythonistas

Name: Anonymous 2010-02-01 16:33

Is it difficult to do this in windows because it's not a game?

Name: Anonymous 2010-02-01 16:34

>>8
ergo your wrong looser

Name: Anonymous 2010-02-01 16:40

>>7
And what would you use, sir ?

Name: Anonymous 2010-02-01 17:29

C-x M-c M-butterfly
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLO

Name: Anonymous 2010-02-01 17:46

>>11
Get out, Randall!

Name: Anonymous 2011-02-02 22:47

Name: Anonymous 2011-02-04 12:24

Name: Anonymous 2013-08-31 7:29


The next wave of excitement in set theory came around 1900, when it was discovered that Cantorian set theory gave rise to several contradictions, called antinomies or paradoxes. Bertrand Russell and Ernst Zermelo independently found the simplest and best known paradox, now called Russell's paradox: consider "the set of all sets that are not members of themselves", which leads to a contradiction since it must be a member of itself, and not a member of itself. In 1899 Cantor had himself posed the question "What is the cardinal number of the set of all sets?", and obtained a related paradox. Russell used his paradox as a theme in his 1903 review of continental mathematics in his The Principles of Mathematics.

Name: Anonymous 2013-08-31 8:14


Multiplication distributes over addition: κ·(μ + ν) = κ·μ + κ·ν and (μ + ν)·κ = μ·κ + ν·κ.

Name: Anonymous 2013-08-31 8:59


Cantor defined two kinds of infinite numbers: ordinal numbers and cardinal numbers. Ordinal numbers may be identified with well-ordered sets, or counting carried on to any stopping point, including points after an infinite number have already been counted.

Name: Anonymous 2013-08-31 9:45


A derived binary relation between two sets is the subset relation, also called set inclusion. If all the members of set A are also members of set B, then A is a subset of B, denoted A ⊆ B. For example, {1,2} is a subset of {1,2,3} , but {1,4} is not.

Name: Anonymous 2013-08-31 10:30


These are invariants in the sense that any two isomorphic models of set theory must give the same cardinal for each invariant. Many cardinal invariants have been studied, and the relationships between them are often complex and related to axioms of set theory.

Name: Anonymous 2013-08-31 11:15


The negation of the axiom can thus be expressed as:

Don't change these.
Name: Email:
Entire Thread Thread List