Using filepath method to identify an .html page

Chris Angelico rosuav at gmail.com
Tue Jan 22 10:27:45 EST 2013


On Wed, Jan 23, 2013 at 2:21 AM, Ferrous Cranus <nikos.gr33k at gmail.com> wrote:
> Why the hell
>
> pin = int ( '/home/nikos/public_html/index.html' )
>
> fails? because it has slashes in it?

What do you expect it to return? 141592653589793?

Go through the Python tutorial. Better yet, find a book that
distinguishes between technology and magic, and sets out clearly what
each one's field is.

Then go here, and read. http://www.catb.org/esr/faqs/smart-questions.html

Then go back to your project. Have another shot at things. Put your
new-found knowledge and understanding to work. You'll be far better
able to figure things out, and better able to understand what we've
all been saying.

ChrisA



More information about the Python-list mailing list