Jarno Seppänen

Show:

What's happening?

  • e32.ao_callgate drops kwargs

    Hi, ao_callgate doesn't forward function keyword arguments properly. This is easy to replicate e.g. as follows: ---------------------------- import e32 def foo(*args, **kwargs): print "foo args %s kwargs %s"%(args, kwargs) foo=e32.ao_callgate(foo) # works ok foo('a','b','c') # doesn't work foo(a='a',b='b',c='c') ---------------------------- This prints (pys60 1.3.20, N95, V...

    2007-05-22 08:42:27 UTC in PyS60

  • Media key capture

    Hi, the keycapture module doesn't support the media keys (Play/Pause, Stop, Volume Up/Down, Rewind, Forward) in devices like 3250, N91, or N95. It seems that the Remote Control API needs to be used. See Utilizing media keys (Forum Nokia Technical Library TSS000432): http://forum.nokia.com/document/Forum_Nokia_Technical_Library/contents/FNTL/Utilizing_media_keys.htm Jarno.

    2007-04-25 08:13:14 UTC in PyS60

  • multithreaded HTTPConnection crash

    Hi, starting two HTTP connections from different threads hangs up and eventually crashes Python (without a trace). Witnessed on pys60 1.3.20 on N95 (V10.0.018 15-03-07) Steps to reproduce: 1. edit apid in httpcrash.py to match your access point 2. copy httpcrash.py to phone 3. run httpcrash.py from Python => python hangs up and crashes some time later The program prints this before...

    2007-04-23 13:25:34 UTC in PyS60

  • e32dbm raises incorrect exception if unicode object given

    Hi, e32dbm unicode handling differs between S60 v2.6 and v3.x. The pys60 documentation says: "The values are always stored as Unicode, and thus the values are returned as Unicode strings even if they were given to the DBM as normal strings" (section 7.5, e32dbm). pys60 1.3.14 final on N70 (V5.0609.2.0.1) works as advertised: >>> import e32dbm >>> db=e32dbm.open(u'c:\\foo.db','c','f'...

    2007-04-16 12:08:05 UTC in PyS60

  • Hung active objects

    Hi, i've experienced different situations when Python stops responding when active objects are in use. Here's two example scripts that I can reproduce on pys60 1.3.1 on N70. The first one hangs in sound.Sound.play() and the second one in select.select(), both when e32.ao_sleep() has been called simultaneously. First example: 1. run aolocktest.py on phone 2. press joystick => nokia...

    2006-09-01 09:41:34 UTC in PyS60

  • ao_sleep crash

    Hi, this crashes pys60 1.3.1 on N70 when joystick is pressed sufficiently fast: import appuifw, e32 appuifw.app.body=appuifw.Listbox([u'press joystick'], lambda: e32.ao_sleep(100)) lock=e32.Ao_lock() appuifw.app.exit_key_handler=lock.signal lock.wait() appuifw.app.exit_key_handler=None I don't know if this is the same bug that I stumbled on when using bluetooth or not: #1540691...

    2006-09-01 08:16:46 UTC in PyS60

  • Options menu doesn't work with py2sis

    Hi, the options menu doesn't work (left softkey has no effect) when used from an application packaged with py2sis. When running the same application from Python script shell, the Options menu works just fine. This is with pys60 1.3.8 on N91. The py2sis command line is: python py2sis.py c:\__path__\myapp c:\__path__\myapp_unsigned.sis --uid=0xe1234567 --appname=myapp...

    2006-08-29 09:21:09 UTC in PyS60

  • ASCII decoding error in e32dbm / import error

    Putting 8-bit data in e32dbm fails with UnicodeError as follows: >>> import anydbm >>> db=anydbm.open('e:\\foobar',flag='c') >>> db['x']='\xe4' Traceback (most recent call last): File "", line 1, in ? File "E:\system\libs\e32dbm.py", line 145, in __setitem__ self._dbset(key,value) File "E:\system\libs\e32dbm.py", line 98, in _dbset self._execute(u"UPDATE data SET...

    2006-08-22 14:14:52 UTC in PyS60

  • Crash with Ao_timer and key callbacks

    Hi, Python 1.3.1 (N70) crashes when Ao_timer is used from within keypad callback. Steps to reproduce: 1. copy keytimerbug.py to phone 2. run keytimerbug.py 3. press keypad keys 0-9 => pys60 crashes without any message If you wait two seconds or more between each key press, then pys60 doesn't crash. Jarno.

    2006-08-18 13:27:08 UTC in PyS60

  • Crash with recursive Ao_timer

    Hi, this makes pys60 1.3.1 (N70) crash without any message: import e32 def bang(): . timer=e32.Ao_timer() . timer.after(1, bang) bang() Jarno.

    2006-08-18 12:57:51 UTC in PyS60

About Me

  • 1999-12-13 (10 years ago)
  • 1937
  • jams (My Site)
  • Jarno Seppänen

Send me a message