Re: ANN: 555-BOOM! version 0.6

Hi Greg,

thank you for this great game! I like it very much.

Just one thing: Your telephone uses numbers ordered like in this
picture, so
dialing e.g. 7 triggers 3 impulses. However, where I live (Austria,
Europe) the telephones had the numbers located like this,
so dialing e.g. 7 resulted in 7 impulses.

It would be nice, if the telephone type could be configured in the
menu of the game.

Kind regards,

Posted On: Wednesday 7th of November 2012 01:33:03 PM Total Views:  511
View Complete with Replies

Related Messages:

Re: Pass by reference or by value?   (168 Views)
On Thursday 16 August 2007, Robert Dailey wrote: > > > I previously created a topic named "Pass by reference or by value" where I > inquired on how python's function parameters work. I received a lot of nice > responses, however I'm still confused on the topic. Note that I come froma > C++ background to Python, so any comparisons to C++ would be very helpful. Very short answer: Think of normal objects as always-pointers. There are no references. param = 5 sets the local variable "param" (be that of imaginary type int* or int, I don't care) to whatever 5 is. This does not call an operator=, this plain overwrites the variable. If you want to change arguments in that way, you can use a list as an ugly hack: def foo(param): param[0] = 5 print param[0] a = [4] foo(a) yeah, I said ugly. That hack makes sure that a method of the passed object is called instead of of the local namespace dict. (please note that I'm throwing around abstract concepts without caring about an implementation). --
Re: All names in the current module   (162 Views)
Torsten Bronger wrote: > Hallchen! > > How can I get a list with all classes defined in the current module > Thank you! > > Tsch, > Torsten. > Assuming you want to see all classes in the re module: >>> import re >>> help(re) #best way >>> >>> def isclass(cls): .... try: .... return issubclass(cls, cls) .... except TypeError: .... pass .... return False .... >>> [cls for cls in dir(re) if isclass(getattr(re, cls))] ['Scanner', '_pattern_type', 'error'] Ian
IDLE path browser not recognizing my PYTHONPATH   (170 Views)
I set PYTHONPATH to /home/me/bin in bash.bashrc, however the IDLE path browser is not recognizing this. Not sure why. Grateful for any insight. Best
ANN: Chandler Preview (   (196 Views)
Open Source Applications Foundation (OSAF) released Chandler Preview ( on September 10, 2007. Chandler is a Personal Information Management (PIM) client application with innovative design and ambitious plans for sharing, extensibility and cross-platform support. Chandler is written mainly in Python. We now have public-beta quality releases of our products; we believe them to be full featured enough and stable enough for daily use. Check out a full overview of features (including screenshots and screencasts). Download Chandler Desktop, create an account on Chandler Hub. Check out the source. Get involved in the project, help us build a really great 1.0 release. Chandler desktop adds a central dashboard for managing tasks, notes, events, and messages to the basic calendar functionality found in the 0.6 release. You can share calendars, task lists, messages and notes in collections that can hold whatever you choose to put in them, regardless of data type. The performance has improved greatly, the application has basic search functionality, and now theres a way to to manage and resolve conflicts on shared data. You can collaborate on individual items via email with the ability to edit and update messages youve already received or sent. Although Chandler Preview is not meant to replace your email application, you can configure your IMAP account so that Chandler can see some messages from your regular mail client. Get it from -- Heikki Toivonen
Adventure-Engines in Python   (200 Views)
Are there any I've set out to make an adventure game and now I'm trying to find a set of python-modules to help me do that. I know of the usual non-python suspects (AGAST, AGS, Wintermute, ...) and while I they are really good, I'd like one that is cross platform. I've found pyScumm and pyAdv but both don't seem to be ready for use yet. So are there any "usable" engines written in python /W
Help with Dictionaries and Classes requested please.   (236 Views)
, I'm new to this group, I've read through the subject of a lot of the group but can't find anything relevant. Perhaps my question is too basic but I'm still stuck. Classes and Dictionaries. If I have a dictionary, how do I instantiate many instances of a class per dictionary key Either at run-time or dynamically. Can anyone help me please Thank you Dominic
Leo 4.4.4 beta 1 released   (165 Views)
Leo 4.4.4 beta is available at: Leo is a text editor, data organizer, project manager and much more. See: The highlights of Leo 4.4.4: ---------------------------- - A threading_colorizer plugin replaces the __jEdit_colorizer__ plugin. This plugin features much better performance. - Support for @auto nodes. Such nodes allow people to collaborate using Leo without inserting Leo sentinels in the files Leo generates. Links: ------ Leo: Home: Download: CVS: Quotes: -------------------------------------------------------------------- Edward K. Ream email: Leo: --------------------------------------------------------------------
How to reset sys.exec_prefix?   (164 Views)
Somehow on my linux box I scrood things up and I lost my python path info. If I check sys.exec_prefix or sys.prefix it shows '/usr/local/', where it should show '/usr/'. Is there a config file somewhere that I can change to fix this, or do I need to do a rebuild/reinstall Hope not.
where is pkg_resources (setuptools) looking for entry_points.txt   (222 Views)
I'm trying to use an egg packages (pyOpenGL) as a "normal package" (by unzipping the egg into a directory). Generally this seems to work fine, except one init-step is missing. >From setuptools I got the file. But now the package is not properly initialized, because iter_entry_points() in pkg_resources does not find the corresponding entry_points.txt file needed to setup some intial configuration... (array handlers for pyOpenGL) Is there a default directory name or an environment variably or maybe the (ominous ) __main__.__require variable that I can use to have the entry_points text read (I would even be willing to "manually" load the entry_points.txt file and feed it into some pkg_resources related variable to make it happy [before I import my package] )
read(size=-1)   (182 Views)
Suppose I write: f = open("myimg.jpg") According to the docs, ----------- read([size]) Read at most size bytes from the file....The bytes are returned as a string object. ---------- How does python convert a byte to a string
GUI for viewing/editing python data structures?   (191 Views)
A while back, I seem to remember coming across a small program that could view and edit python data structures via a nice expanding tree view. I'm now in need of something like that (to verify data is imported correctly into a shelve file) and having a GUI would be much simpler than trying to wade through the output of str(d) or repr(d). I've tried googling with the obvious keywords (gui (view OR edit) python data structures) but t didn't get me anywhere. Pointers j -- Joshua Kugler Lead System Admin -- Senior Programmer PGP Key: ID 0xDB26D7CE
Re: Buffering HTML as HTMLParser reads it?   (162 Views)
chrispwd a crit : > , > > I am working on a project where I'm using python to parse HTML pages, > transforming data between certain tags. Currently the HTMLParser class > is being used for this. In a nutshell, its pretty simple -- I'm > feeding the contents of the HTML page to HTMLParser, then I am > overriding the appropriate handle_ method to handle this extracted > data. In that method, I take the found data and I transform it into > another string based on some logic. > > Now, what I would like to do here is take that transformed string and > put it "back into" the HTML document. Has anybody ever implemented > something like this with HTMLParser Works the same with any sax (event-based) parser. First subclass the parser, adding a 'buffer' (best is to use a file-like object so you can either write to a stream, a file, a cStringIO etc) attribute to it and making all the handlers writing to this buffer. Then subclass your customized parser, and only override the needed handlers. Q&D example implementation: def format_attrs(attrs) : return ' '.join('%s=%s' % attr for attr in attrs) def format_tag(tag, attrs, formats): attrs = format_attrs(attrs) return formats[bool(attrs)] % dict(tag=tag, attrs=attrs) class BufferedHTMLParser(HTMLParser): START_TAG_FORMATS = ('', '') STARTEND_TAG_FORMATS = ('', '') def __init__(self, buffer): self.buffer = buffer def handle_starttag(self, tag, attrs): self.buffer.write(format_tag(tag,attrs,self.START_TAG_FORMATS)) def handle_startendtag(self, tag): self.buffer.write(format_tag(tag,attrs,self.STARTEND_TAG_FORMATS)) def handle_endtag(self, tag): self.buffer.write(' % tag) def handle_data(self, data): self.buffer.write(data) # etc for all handlers class MyParser(BufferedHtmlParser): def handle_data(self, data): data = data.replace( 'Ni', "Ekky-ekky-ekky-ekky-z'Bang, zoom-Boing, z'nourrrwringmm" ) BufferedHTMLParser.handle_data(self, data) HTH
[ANN] buzhug 0.9 released   (258 Views)
, A new version of buzhug has just been published : buzhug is a fast, pure-Python database engine, using a syntax that Python programmers should find very intuitive The data is stored and accessed on disk (it is not an in-memory database) ; the implementation has been designed to make all operations, and especially selection, as fast as possible with an interpreted language The database is implemented as a Python iterator, yielding objects whose attributes are the fields defined when the base is created ; therefore, requests can be expressed as list comprehensions or generator expressions, instead of SQL queries : for record in [ r for r in db if == 'pierre' ]: print,record.age instead of cursor.execute("SELECT * IN db WHERE name = 'pierre'") for r in cursor.fetchall(): print r[0],r[1] buzhug supports concurrency control by versioning, cleanup of unused data when many records have been deleted, easy links between bases, adding and removing fields on an existing base, etc Database speed comparisons are not easy to make. I made a limited benchmark using the same use cases as SQLite's author ; it shows that buzhug is much faster than other pure-Python modules (KirbyBase, gadfly) ; SQLite, which is implemented in C, is faster, but only less than 3 times on the average Version 0.9 is a minor update, fixing a bug (forbid adding a field with the same name as an existing field) and adding a method to close the database Download : Documentation : Tutorial : Users group :
Re: [Zope] how do I test for the current item in an iteration   (172 Views)
+-------[ kamal hamzat ]---------------------- | , | | I have this error after i added the if statement Time for you to do some reading of your own. That's three in less than an hour... -- Andrew Milton
recipient validation with smtplib   (287 Views)
Is there a way to use smtplib to get recipient validation. I can use smtplib quite happily to send emails using the locahost's sendmail, but sendmail is just fire and forget, so some bad addresses eg idiot@www.dingo.zzz don't cause any error in the sending application. I know some smtp setups do enforce recipient validation, but it doesn't seem terribly easy to do this with sendmail. I wondered if there were some way to do this in python -- Robin Becker
Trying to find zip codes/rest example   (237 Views)
, A couple months ago there was an example posted in a blog of a rest interface for validating zip codes. If I recall correctly, the backend validator was written in python. The validator demo page had a single text input; next to the text input would appear either a green check or a red X depending on whether the zip code was valid. On the backend, the explanation of the demo included a discussion of using HTTP status codes (200 for a valid zip, 406 for invalid) so that the service could be used from a console as well. I now cannot find this demo and the associated discussion. Does anybody remember this demo and where I might be able to find it
suppress pop up windwo   (215 Views)
I'm automating the generation of PDF out of Excel sheets through win32com. I nearly accomplished everything I wanted, but one problem is still left: when I calling the print job through following code: xl.Selection.PrintOut(Copies=1,Collate=True) then a window pops up, where I have to input the name of the pdf I want to generate. Is there way to pass this filename to this window (I'm using 'Jaws PDF Creator" as printer.)
PyObject_CallObject: difference between functions and class methods   (239 Views)
Hi all! I am trying to call within a C extension a Python function provided as an argument by the user with: PyObject_Call(). The C extension should work also if the user supplies a class method, but in this case I am getting an error. Do I need to explicitly pass 'self' as an argument to PyObject_Call() If so, how can I do that Now, I am using: if ((tmp_args = PyTuple_New(1)) == NULL) PyErr_SetString( PyExc_ReferenceError, "attempt to access a null- pointer" ); PyTuple_SetItem(tmp_args, 0, paramlist); to create the tuple required by PyObject_Call(), but I have no idea on how to add a reference to 'self'. Here is what I would like to obtain: ## import mymodule def myfunc(x): # Do something return [z] class MyClass: def mymethod(self, x): # Do something return z def runme(self): mymodule.main(myfunc) # This will work mymodule.main(self.mymethod) # This will not work (Segmentation fault) x = MyClass() x.runme() ##
Re: Representation of new-style instance   (233 Views)
En Wed, 01 Aug 2007 20:14:06 -0300, Raj B escribi: > Consider a new-style class > > class rabbit(object): > def __init__(self,c): > self.color = c > > r1=rabbit("blue") > r2=rabbit("purple") > > Which C struct in the Python implementation is used to represent the > instances c1 and c2 of the > new-style class I understand that when the class 'rabbit' is > created, the type_new function > in typeobject.c creates a copy of a 'struct typeobject' with > dictionary tp_dict appropriately modified. Yes. Then, rabbit("blue") means "call rabbit with a single argument, blue". The slot tp_call is searched, giving usually type_call, which itself calls tp_new (type_new if not overriden). (see type_call in typeobject.c). > However, I can't figure out which structure is used for new-style > instances and where the instance dictionary is stored. Could anyone > please clarify objects in Python are based on a PyObject structure; see object.h Different object types have additional fields at the end, but all share the same basic layout. -- Gabriel Genellina
Creating a shared object in python   (223 Views)
Is there a way to create a shared object in python Thx, Edgar