Re: [Tutor] __init__

2016-09-06 Thread Steven D'Aprano
On Mon, Sep 05, 2016 at 12:24:50PM +, Albert-Jan Roskam wrote: > => Aha, thank you, I did not know that. So for Python-3-only code, > the idiom is "class SomeClass:", and for Python2/3 code "class > SomeClass(object)". I prefer to explicitly inherit from object regardless of which versi

Re: [Tutor] cannot find html file, in the same dir as python file

2016-09-06 Thread monik...@netzero.net
I put print( os.getcwd() ) into my script, and got C:\Users\Monika\Documents\PythonWeb\class3code\class3code So I put into my script: base_url = 'C:\Users\Monika\Documents\PythonWeb\class3code\class3code\button.html' instead of base_url = 'button.html' and ran it andI got a popup message i

Re: [Tutor] cannot find html file, in the same dir as python file

2016-09-06 Thread Alan Gauld via Tutor
On 06/09/16 03:18, monik...@netzero.net wrote: > I put > > print( os.getcwd() ) > > into my script, and got > > C:\Users\Monika\Documents\PythonWeb\class3code\class3code Is that the directory you expected? Is it where your html file lives? > So I put into my script: > > base_url = > 'C:\Users\

Re: [Tutor] cannot find html file, in the same dir as python file

2016-09-06 Thread monik...@netzero.net
The r trick did it. Yay! Thank you Monika -- Original Message -- From: Alan Gauld To: "monik...@netzero.net" Cc: tutor@python.org Subject: Re: [Tutor] cannot find html file, in the same dir as python file Date: Tue, 6 Sep 2016 08:43:03 +0100 On 06/09/16 03:18, monik...@netzero.