A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-March/087013.html below:

[Python-Dev] PyS60 - mailbox

[Python-Dev] PyS60 - mailbox [Python-Dev] PyS60 - mailboxMahesh S mahesh.sayibabu at gmail.com
Tue Mar 10 18:11:33 CET 2009
Hi,

I am from the PyS60 (Python port on S60 platform) team. We have ported the
Python 2.5.4 core in the latest 1.9.x series of PyS60.
http://wiki.opensource.nokia.com/projects/PyS60

Currently we have a problem with the mailbox module. Check the code snippet
below, from the mailbox module.

*def clean(self):
        """Delete old files in "tmp"."""
        now = time.time()
        for entry in os.listdir(os.path.join(self._**path, 'tmp')):
            path = os.path.join(self._path, 'tmp', entry)
            if now - os.path.getatime(path) > 129600:   # 60 * 60 * 36
                os.remove(path)*

The code in red, tries to delete the files that are not accessed in the last
36 hours. Any idea as to how this is supposed to work on platforms that do
not support access time, for example Symbian/S60 ? Any work around ?

- Mahesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090310/3bf2efb8/attachment.htm>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4