Thanks for the bug report.  I've opened bug # 4429 
(http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=4429).

Time/datetime have been a bit of a bug farm so there'll probably be a small 
amount of general cleanup here for 1.1.  We fixed a couple of bugs there for 
1.01, and I would have liked to have done more, but it would have just been too 
destabilizing.  We'll try and get this one in 1.1 plus some other fixes for 
better compatibility.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Monday, October 16, 2006 5:42 AM
To: Discussion of IronPython
Subject: [IronPython] S3, boto, and strftime with %X

S3 is Amazon's Simple Storage Service.

boto is a Python interface to Amazon Web Services, available here:
http://code.google.com/p/boto/

boto has a bug. boto uses strftime with %X format string to generate Date 
header, but Python Library Reference doesn't guarantee any such thing for %X. 
It only says:

%X Locale's appropriate time representation.

Fix: replace %X with %H:%M:%S.

On the other hand, IronPython behaves differently in this case, causing an 
incompatibility. Locale was POSIX. I think this should be fixed.

IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42 Copyright (c) Microsoft 
Corporation. All rights reserved.
>>> import time
>>> time.strftime('%X')
'21:35'

Python 2.4.4c0 (#2, Oct  2 2006, 00:57:46) [GCC 4.1.2 20060928 (prerelease) 
(Debian 4.1.1-15)] on linux2 Type "help", "copyright", "credits" or "license" 
for more information.
>>> import time
>>> time.strftime('%X')
'21:35:56'

--
Seo Sanghyeon
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to