Francesco Del Degan added the comment:
I thinks that isn't a so easy decision to take.
And there are some other issues, imho:
1. timegm function is not specified by any standard (POSIX). The portable way
(setting TZ, calling mktime, restore TZ) is a pure hack (could not work in
f
Francesco Del Degan added the comment:
Fixed typos, new patches added
--
___
Python tracker
<http://bugs.python.org/issue6280>
___
___
Python-bugs-list mailin
Changes by Francesco Del Degan :
Removed file: http://bugs.python.org/file16354/timemodule-gmtime-2-r264.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Francesco Del Degan :
Removed file: http://bugs.python.org/file16353/timemodule-gmtime-2-r311.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Francesco Del Degan :
Removed file: http://bugs.python.org/file16352/timemodule-gmtime-2-r27a3.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Francesco Del Degan :
Removed file: http://bugs.python.org/file16351/timemodule-gmtime-2-trunk.diff
___
Python tracker
<http://bugs.python.org/issue6
Changes by Francesco Del Degan :
Added file: http://bugs.python.org/file17088/timemodule-gmtime-3-trunk.diff
___
Python tracker
<http://bugs.python.org/issue6280>
___
___
Changes by Francesco Del Degan :
Added file: http://bugs.python.org/file17087/timemodule-gmtime-r312.diff
___
Python tracker
<http://bugs.python.org/issue6280>
___
___
Changes by Francesco Del Degan :
Added file: http://bugs.python.org/file17086/timemodule-gmtime-r27b1.diff
___
Python tracker
<http://bugs.python.org/issue6280>
___
___
Changes by Francesco Del Degan :
Added file: http://bugs.python.org/file17085/timemodule-gmtime-r265.diff
___
Python tracker
<http://bugs.python.org/issue6280>
___
___
Francesco Del Degan added the comment:
Those are the new updated patches with ifdef wrapped timegm function, docs, and
a conversion test.
--
Added file: http://bugs.python.org/file16351/timemodule-gmtime-2-trunk.diff
___
Python tracker
<h
Francesco Del Degan added the comment:
I attached a patch that implements timegm according to two constraints:
1. If HAVE_TIMEGM is defined, use it
or
2. If HAVE_MKTIME and HAVE_WORKING_TZSET use a portable way, using mktime
(taken from timegm(3) man)
Attached patches are for:
r264
Francesco Del Degan added the comment:
Hi, i started to produce a patch for timemodule.c.
Working into it, i found that we have almost 3 way to do that:
1. Use timegm(3) function where HAVE_TIMEGM is defined (i have a working patch
for it)
2. Implement a more portable timegm function with
New submission from Francesco Del Degan :
$ python -m profile
Usage: profile.py [-o output_file_path] [-s sort] scriptfile [arg] ...
$ python -m profile -s calls
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py",
li
Francesco Del Degan added the comment:
urllib2 does escape spaces (and other characters too):
In [20]:
u=urllib2.urlopen("http://sourceforge.net/project/showfiles.php?
group_id=16847&package_id=13374")
In [21]: u.url
Out[21]: 'http://sourceforge.net/projects/xmlrpc-c/file
Francesco Del Degan added the comment:
Update: Now into the same system (CentOS) without any mod:
>>> import urllib2
>>> url = 'http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1'
>>> t = urllib2.urlopen(url).read()
>>>
>>> t
'..
Francesco Del Degan added the comment:
I don't think that this is a python issue, because of this:
[r...@localhost ~]# curl -O http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1
% Total% Received % Xferd Average Speed TimeTime Time Cu
17 matches
Mail list logo