Hi How can I make the visibility of a variable across many methods or files? To avoid repeating the same line eg url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else os.environ['SERVER_NAME'] I repeat for many methods. So declaring it to a super class and inheriting it is my plan. Do you agree or propose otherwise? Thanks Niklas -- http://mail.python.org/mailman/listinfo/python-list
- Learning inheritance Niklasro
- Re: Learning inheritance bruno.desthuilli...@gmail.com
- Re: Learning inheritance Niklasro
- Re: Learning inheritance alex23
- Re: Learning inheritance Niklasro
- Re: Learning inheritan... Niklasro
- Re: Learning inher... Thomas Jollans
- Re: Learning inher... Niklasro
- Re: Learning i... Bruno Desthuilliers
- Re: Learning i... Niklasro
- Re: Learning inheritance Bruno Desthuilliers