Immutable view classes - inherit from dict or from Mapping?

2021-04-12 Thread Andreas R Maier
Hi, I have written some classes that represent immutable views on collections (see "immutable-views" package on Pypi). Currently, these view classes inherit from the abstract collection classes such as Mapping, Sequence, Set. However, they implement the read-only methods of dict, list and set,

[ANNOUNCE] OpenRTS 0.2b2 released

2006-04-06 Thread Andreas R.
OpenRTS is a cross-platform open source real-time strategy game developed in Python. Now version 0.2b2 has been released. The new release uses the Twisted networking library for multi-player games, and has graphics from the Hard Vacuum project. The game can be downloaded from http://www.openrts

SimpleXMLRPCServer

2006-03-30 Thread Andreas R.
tact all the clients? Thanks in advance. - Andreas R. www.openrts.org - Open Source RTS game -- http://mail.python.org/mailman/listinfo/python-list

XML international characters

2006-03-10 Thread Andreas R.
Hello, When parsing XML documents containing international characters, such as the Norwegian characters Æ, Ø, Å, I get an exception in Python's SAX module. What is the correct way to parse such characters in Python? I've searched for methods to somehow escape the characters, without any luck s

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Dennis Lee Bieber wrote: > On Wed, 08 Mar 2006 08:57:53 +0100, "Andreas R." > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > >> The problem I was having with push, is that is does not always send >> complete packages. &g

Re: asynchat - operation could not complete w/ blocking

2006-03-08 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without bloc

Re: asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." wrote: > >> I'm using Python's asynchat module for networking. >> When calling the sendall() method of asynchat, >> I sometimes get the error message "the operation >> could not complete without bloc

asynchat - operation could not complete w/ blocking

2006-03-07 Thread Andreas R.
Hi again, I'm using Python's asynchat module for networking. When calling the sendall() method of asynchat, I sometimes get the error message "the operation could not complete without blocking". So how do I enable blocking with synchat, or otherwise fix this error? Thanks for the help I've recei

asynchat network send problems

2006-03-01 Thread Andreas R.
ze is often 512 between client and server, when running len(packet) on the *compressed* packed. The len() of a large packet is usually about 64969. Complete source code is available at http://svn.gna.org/daily/openrts-snapshot.tar.gz Thanks anyone for the help, - Andreas R. www.openrts.org --

Re: asynchat + send problem

2006-02-13 Thread Andreas R.
Fredrik Lundh wrote: > "Andreas R." <[EMAIL PROTECTED]> wrote: > >> I'm using Python's asynchat for networking. If I invoke the send() >> method of the asynchat module, only a single send operation is possible >> at any given time. If I call it mo

asynchat + send problem

2006-02-13 Thread Andreas R.
ave to use select etc.? The source code is here: http://svn.gna.org/viewcvs/openrts/trunk/openrts/server/clienthandler.py?rev=36&view=markup Thanks in advance! Andreas R. www.openrts.org -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenRTS - new OSS Python game

2006-02-01 Thread Andreas R.
Sybren Stuvel wrote: > To be honest, it looks very much like games from 1995... The game has isometric graphics. It's possible to have nice isometric graphics, ie. look at Civilization 3. Besides, there's a lot more to a good strategy game than good looks. -- http://mail.python.org/mailman/lis

OpenRTS - new OSS Python game

2006-02-01 Thread Andreas R.
OpenRTS is a new open source project, with the aim of creating a realtime strategy game. The game is developed in Python with Pygame. See http://www.openrts.org for more info about the game if you are interested. -- http://mail.python.org/mailman/listinfo/python-list