| Reply | « Previous Thread | Next Thread » |
|
I tried to use the function strptime from module time with Python for &0 v. 1.4.1 and 1.4.2, but the following error message 2s displayed:
Code:
AttributeError: 'module' object has no attribute 'strptime' Is it a bug or that function is unimplemented? Where can I find a list of implemented/unimplemented functions in S60 for each standard Python module? Thanks a lot ![]() |
| florianosc |
| View Public Profile |
| Find all posts by florianosc |
|
Two possible reasons
1) Python 2.2 doesn't have function and it was added in the later Python versions 2) PyS60 is missing datetime API parts which were implemented using native C Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
Download the source code
Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
Thanks for your reply. I checked what you have suggested.
strptime is included in Python 2.2. In latest PyS60 sources, the function is indeed present in file timemodule.c, but just before it there is this flag: Code:
#if 0 /* Enable this if it's not declared in <time.h> */ extern char *strptime(const char *, const char *, struct tm *); #endif Do you agree with me? Shall I file a new bug on Sourceforge? Thanks in advance. |
| florianosc |
| View Public Profile |
| Find all posts by florianosc |
|
Quote:
Also there exist a custom datetime port to PyS60. Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
Quote:
Maybe you can get an implementation from a time.c source file, and use it to reimplement it in Python or build a C module. HTH |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| S60 2nd to 3rd/ PlatformSecurity / Capabilities | jarkoos | Installation, Certification and Security | 4 | 2007-04-14 15:08 |
| Missing function "rebuild project" in carbide.c++ 1.1 Express | KarstenBln | Carbide.c++ IDE and plug-ins | 0 | 2007-03-22 16:27 |
| Problem with Cabride.c++ v1.1 | markovuksanovic | Carbide.c++ IDE and plug-ins | 3 | 2007-01-24 21:05 |
| Cannot compile SDK's examples for 7650 platform... | midletsoft | Symbian Tools & SDKs | 2 | 2003-08-12 20:11 |
| Problem with Nokia D211 Linux Drivers | fiveam | Multimodecards | 1 | 1970-01-01 02:00 |