Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19507 > unrolled thread

Re: Weird newbie question

Started byEthan Furman <ethan@stoneleaf.us>
First post2012-01-26 14:19 -0800
Last post2012-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.


Contents

  Re: Weird newbie question Ethan Furman <ethan@stoneleaf.us> - 2012-01-26 14:19 -0800

#19507 — Re: Weird newbie question

FromEthan Furman <ethan@stoneleaf.us>
Date2012-01-26 14:19 -0800
SubjectRe: 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~

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web