Re: Couple of noobish question

2009-02-05 Thread Bruno Desthuilliers
Tim Rowe a écrit : 2009/2/4 Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr: # somemodule.py import os if os.uname()[0] == Linux: On an MS Windows system, os.uname()[0] raises an AttributeError Thanks for the correction - as you may have guessed, I have not used windows for

Re: Couple of noobish question

2009-02-05 Thread Tim Rowe
2009/2/5 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid: Thanks for the correction - as you may have guessed, I have not used windows for years !-) And I can't get Linux running (more precisely, I can't /keep/ X-Windows running). Isn't it a good job that Python is

Couple of noobish question

2009-02-04 Thread Catherine Heathcote
Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw some code and it just looks a really nice language to work with. I come from

Re: Couple of noobish question

2009-02-04 Thread Mike Driscoll
On Feb 4, 10:47 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw

Re: Couple of noobish question

2009-02-04 Thread Catherine Heathcote
Mike Driscoll wrote: On Feb 4, 10:47 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning

Re: Couple of noobish question

2009-02-04 Thread Gary Herron
Catherine Heathcote wrote: Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw some code and it just looks a really nice language

Couple of noobish question

2009-02-04 Thread rdmurray
Quoth Catherine Heathcote catherine.heathc...@gmail.com: all goes well. I have an idea for a small project, an overly simplistic interactive fiction engine (well more like those old choose your own adventure books, used to love those!) that uses XML for its map files. The main issues I see

Re: Couple of noobish question

2009-02-04 Thread Bruno Desthuilliers
Catherine Heathcote a écrit : Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw some code and it just looks a really nice

Re: Couple of noobish question

2009-02-04 Thread Tim Rowe
2009/2/4 Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr: # somemodule.py import os if os.uname()[0] == Linux: On an MS Windows system, os.uname()[0] raises an AttributeError -- sys doesn't seem to contain uname. Is that a Linux thing? Would os.name work on Linux? Or would one

Re: Couple of noobish question

2009-02-04 Thread afriere
On Feb 5, 11:14 am, Tim Rowe digi...@gmail.com wrote: ... On an MS Windows system, os.uname()[0] raises an AttributeError -- sys doesn't seem to contain uname. Is that a Linux thing? Would os.name work on Linux? Or would one have to use exception handling and catch the Windows case? It

Re: Couple of noobish question

2009-02-04 Thread Tim Rowe
2009/2/5 afri...@yahoo.co.uk: On Feb 5, 11:14 am, Tim Rowe digi...@gmail.com wrote: ... On an MS Windows system, os.uname()[0] raises an AttributeError -- sys doesn't seem to contain uname. Is that a Linux thing? Would os.name work on Linux? Or would one have to use exception handling and

Re: Couple of noobish question

2009-02-04 Thread afriere
On Feb 5, 11:45 am, Tim Rowe digi...@gmail.com wrote: [snip] Python in a Nutshell states that os.uname exists only on certain platforms, and in the code sample wraps it in a try statement. That seems to be the safe way to go -- except (and I don't know much about this) wouldn't code have to