In <[EMAIL PROTECTED]>,
Ron Adam <[EMAIL PROTECTED]> wrote:
> Tony Houghton wrote:
>
>> > This works on Win XP. Not sure if it will work on Linux.
>> >
>> > import os
>> >
>> > parent = os.path.split(os.path.abspath(os.sys.argv
I'm using pygame to write a game called Bombz which needs to save some
data in a directory associated with it. In Unix/Linux I'd probably use
"~/.bombz", in Windows something like
"C:\Documents And Settings\\Applicacation Data\Bombz".
There are plenty of messages in the archives for this group ab
Steven D'Aprano wrote:
> On Tue, 20 Sep 2005 23:03:52 +0100, Tony Houghton wrote:
>
>
>>I'm using pygame to write a game called Bombz which needs to save some
>>data in a directory associated with it. In Unix/Linux I'd probably use
>>"~/.bombz&q
Can anyone recommend a good book for intermediate up to expert level?
I'm an experienced C programmer and I learnt Python from the "Learning
Python" O'Reilly book because it had good reviews. I was disappointed
though. It was difficult to read because it was so verbose. It would
sometimes take mor
Ron Adam wrote:
> Tony Houghton wrote:
>
>>
>> I'm using pygame to write a game called Bombz which needs to save some
>> data in a directory associated with it. In Unix/Linux I'd probably use
>> "~/.bombz", in Windows something like
>&
In Linux it's possible for filesystems to have a different encoding from
the system's setting. Given a filename, is there a (preferably) portable
way to determine its encoding?
--
TH * http://www.realh.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>,
Stuart D. Gathman <[EMAIL PROTECTED]> wrote:
> On Fri, 02 Feb 2007 15:09:20 -0500, Mister Newbie wrote:
>
>> I want to make small, 2D games. I have no programming experience. Is
>> Python a good choice?
>
> Definitely. I teach a class for 7th to 12th grade where I use this
In <[EMAIL PROTECTED]>,
Ben Finney <[EMAIL PROTECTED]> wrote:
> Tony Houghton <[EMAIL PROTECTED]> writes:
>
>> In Linux it's possible for filesystems to have a different encoding
>> from the system's setting. Given a filename, is there a (prefera
I want to write python wrappers for the Linux DVB API. The underlying
structures and constants may change from time to time, and some of the
constants are generated from macros, so I think it would be better to
write the module in C rather than just copying the constants into pure
python code and u
On Sun, 04 Jan 2009 21:05:14 +0100
Christian Heimes wrote:
> Philip Semanchuk schrieb:
> > This works for me:
> >PyModule_AddIntConstant(module, "O_CREAT", O_CREAT);
> >
> > I've had to learn a lot about writing extensions from looking at the
> > Python source code. Lots of valuable tricks t
I'm writing a python program which reads input device events so it needs
to know sizeof(struct timeval). By using the struct module I should be
able to work out sizeof(long) from python, but I can't think of a way to
measure non-fundamental types without including a little bit of C,
which I'd rathe
In <[EMAIL PROTECTED]>,
Big and Blue <[EMAIL PROTECTED]> wrote:
> Big and Blue wrote:
> > Tony Houghton wrote:
> >>
> >> How safe would I be assuming that
> >> sizeof(struct timeval) == 2 * sizeof(long)
> >>
> >> is always tr
In <[EMAIL PROTECTED]>,
Big and Blue <[EMAIL PROTECTED]> wrote:
> Tony Houghton wrote:
>>
>> How safe would I be assuming that
>>
>> sizeof(struct timeval) == 2 * sizeof(long)
>>
>> is always true on Linux on different architectures?
I want to write a setup.py script, using distutils, for a python library
called ROX-Lib2 (package name "rox"). The library includes a script to
build HTML documentation from the pydoc strings. I'd like to run that
script from setup.py but I don't know the best way to do that. I've
looked through th
On Fri, 10 Jul 2009 11:06:34 +1000
Ben Finney wrote:
> Tony Houghton writes:
>
> > I've looked through the manual but I can't find any hooks in distutils
> > for generating files at install time other than extension modules and
> > .pyc files. Should I just r
15 matches
Mail list logo