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

Pages: 1-

IDLE Active Shells

Name: newb 2009-07-02 0:56

I need quick advice; I can delete the thread after it's answered.

I'm running IDLE with python 3.1 on a Mac, and I can't create multiple-string programs while it's actively running python shell.  Even pasting multiple string commands into the shell results in the shell only running the first string.

For example, if I try

print("Halt!")
user_input = input("Who Goes there? ")
print("You may pass, " + user_input)

it only produces

Halt!

So I have to save all of my programs in separate windows and then manually run them to see real results (this wouldn't be a problem if I the text was still colored as I wrote it, but it isn't and I find it easier to read this way).  Is there a way to run multiple-string programs in in an active shell?

Name: Anonymous 2009-07-02 0:57

I can delete the thread after it's answered.
and just how do you plan on doing that?

Name: Anonymous 2009-07-02 0:57

>>2
fuck, sorry.  I'm used to the image boards; I'm still a complete neophyte in these scary hidden text boards.

Name: Anonymous 2009-07-02 1:02

So I have to save all of my programs in separate windows and then manually run them to see real results (this wouldn't be a problem if I the text was still colored as I wrote it, but it isn't and I find it easier to read this way).
http://elvis.the-little-red-haired-girl.org/

Name: Anonymous 2009-07-02 1:05

>>3
please learn to use sage.
i'm sure you'll get the hang of it soon.

Name: Anonymous 2009-07-02 1:33

>>1
First of all, syntax highlighting is for faggots. Second, why don't you read the docs, you idiot?

Name: Anonymous 2009-07-02 1:57

>>6
why don't you use sage, you idiot?

Name: FrozenVoid 2009-07-02 2:01

>>6 Syntax Highlighting is the #1 feature(along with brace matching) i switched from metapad to Notepad2.
It simplifies code editing and points out obvious typos instantly.


________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
What actually transpires beneath the veil of an event horizon? Decent people shouldn't think too much about that.

Name: Anonymous 2009-07-02 2:06

>>7
Because it's pointless.

>>8
Pointing out the obvious is not helpful. And how do you imagine that distracting rainbow colors make it easier to edit text?

Name: Anonymous 2009-07-02 2:18

>>9
Because it's pointless.
You don't understand how the function "sage" is suppose to be used. That's ok, you will learn of this someday.

Name: Anonymous 2009-07-02 2:32

>>8
Brace matching is for retarded macfags who don't know how to count.

Name: Anonymous 2009-07-02 2:33

>>11
ur so hardcore bro

Name: Anonymous 2009-07-02 2:51

I noticed this in python 2.5 (I'll upgrade someday) too, but is it so hard to type in the program instead of pasting it? Alternatively, wrap it up in a function
>>> def foo():
        #your shit
>>> foo()

I'm sure there's a real answer, but I've just woken up and I'm not going to look for it.

Name: Anonymous 2009-07-02 3:09

>>11-12
Back to /g/, please.

>>8
Back to wherever you came from, please.

Name: Anonymous 2009-07-02 3:41

>>10
You don't understand how fast textboards move. It's okay, you'll get back to not here someday.

Name: Anonymous 2009-07-02 3:42

Name: Anonymous 2009-07-02 3:53

>>15
you don't understand how to use textboards. it's ok, the FBI will find you soon. they were watching when you downloaded that CP from /b/.

Name: Anonymous 2009-07-02 4:16

>>17
Wut. I'm not the one attempting to sage the second post on a text board.

Name: Anonymous 2009-07-02 4:19

>>1
Just do print("Halt!");user_input = input("Who Goes there? ");print("You may pass, " + user_input);

Name: Anonymous 2009-07-02 4:33

>>18
the second post on this board is not in this thread.

Name: Anonymous 2009-07-02 5:34

data:text/html;charset=GB18030;base64,PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PHRpdGxlPnNob3VsZCBpIHVzZSBzYWdlPzwvdGl0bGU+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPmZ1bmN0aW9uIGEoKXtmdW5jdGlvbiBjKGkpe3JldHVybiBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChpKS5jaGVja2VkfWFsZXJ0KGMoJ3ExJyl8fGMoJ3EyJyl8fGMoJ3EzJyl8fGMoJ3E0Jyl8fGMoJ3E1Jyl8fGMoJ3E2Jyl8fGMoJ3E3Jyk/J3llcyc6J25vJyk7cmV0dXJuIGZhbHNlfTwvc2NyaXB0PjwvaGVhZD48Ym9keT48Zm9ybSBpZD0icXVlc3Rpb25zIiBvbnN1Ym1pdD0iYSgpIj48b2w+PGxpPjxpbnB1dCB0eXBlPSJjaGVja2JveCIgaWQ9InExIiBjaG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