Using filepath method to identify an .html page

Chris Angelico rosuav at
Tue Jan 22 16:27:45 CET 2013

On Wed, Jan 23, 2013 at 2:21 AM, Ferrous Cranus <nikos.gr33k at> 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.

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.


More information about the Python-list mailing list