Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19507 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2012-01-26 14:19 -0800 |
| Last post | 2012-01-26 14:19 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Weird newbie question Ethan Furman <ethan@stoneleaf.us> - 2012-01-26 14:19 -0800
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2012-01-26 14:19 -0800 |
| Subject | Re: Weird newbie question |
| Message-ID | <mailman.5140.1327617309.27778.python-list@python.org> |
Matty Sarro wrote:
> from sys import argv
> script,filename=argv
> txt=open(filename)
> print "Here is your file %r:" % filename
> print txt.read()
> print "I'll also ask you to type it again:"
> file_again=raw_input("> ")
> txt_again=open(file_again)
> print txt_again.read()
>
> IDLE is saying that my error is on line 4, at the second set of
> quotation marks.
The code is for Python 2 -- are you using Python 3?
~Ethan~
Back to top | Article view | comp.lang.python
csiph-web