[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11344 ___ ___ Python-bugs

[issue11397] os.path.realpath() may produce incorrect results

2011-04-28 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: (For 3.2) Patch v2. Added some more corner case tests. -- Added file: http://bugs.python.org/file21820/issue11397_py32_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue11397] os.path.realpath() may produce incorrect results

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Removed file: http://bugs.python.org/file21820/issue11397_py32_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11397] os.path.realpath() may produce incorrect results

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21822/issue11397_py32_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11397] os.path.realpath() may produce incorrect results

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21823/issue11397_py27_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11397] os.path.realpath() may produce incorrect results

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21824/issue11397_py31_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11921] distutils2 should be able to compile an Extension based on the Python implementation version

2011-04-27 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11921

[issue9614] _pickle is not entirely 64-bit safe

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9614 ___ ___ Python-bugs-list

[issue11564] pickle not 64-bit ready

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11564 ___ ___ Python-bugs

[issue9614] _pickle is not entirely 64-bit safe

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9614 ___ ___ Python

[issue11872] cPickle gives strange error for large objects.

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11872 ___ ___ Python-bugs

[issue10640] SystemError on pickling bytes = 4GB

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10640 ___ ___ Python-bugs

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-26 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10761 ___ ___ Python-bugs

[issue11920] ctypes: Strange bitfield structure sizing issue

2011-04-25 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11920

[issue11920] ctypes: Strange bitfield structure sizing issue

2011-04-25 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: What compilers were used to build your Python distro and the native structure? I found out in _ctypes/cfield.c (lns. 76-95): if (bitsize /* this is a bitfield request */ *pfield_size /* we have a bitfield open */ #ifdef

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-04-25 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10616 ___ ___ Python-bugs

[issue6780] startswith error message is incomplete

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6780 ___ ___ Python-bugs-list

[issue11877] Change os.fsync() to support physical backing store syncs

2011-04-21 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___ ___ Python-bugs

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-04-21 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11898 ___ ___ Python-bugs

[issue11903] Incorrect test code in test_logging.py

2011-04-21 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Introduced in changeset c7f7672b70a9. -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11903

[issue11903] Incorrect test code in test_logging.py

2011-04-21 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Simple fix. -- keywords: +patch Added file: http://bugs.python.org/file21753/issue11903_py33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11903

[issue11750] Mutualize win32 functions

2011-04-18 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11750 ___ ___ Python-bugs

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. class SetSub(set): ... def __init__(self, *args, **kwargs): ... print

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11854

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2011-04-16 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___ ___ Python-bugs

[issue9650] format codes in time.strptime docstrings

2011-04-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- assignee: - docs@python components: +Documentation -Library (Lib) versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9650

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-04-14 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11467 ___ ___ Python

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2011-04-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Is this a right approach? I converted the hard-coded attributes into real, C-API attributes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7990

[issue11397] os.path.realpath() may produce incorrect results

2011-04-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397 ___ ___ Python-bugs-list

[issue11397] os.path.realpath() may produce incorrect results

2011-04-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Oh, I understand. I'm just wondering especially for this one because it has no assigned dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11847] OSError importing antigravity module

2011-04-14 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11847 ___ ___ Python-bugs

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11835 ___ ___ Python-bugs

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I can reproduce this with 2.7 and 3.2 64-bit builds on Windows: D:\Temp\cdll\x64\ReleaseC:\Python32\python.exe Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win 32 Type help, copyright, credits or license

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: 32-bit (2.6) is fine: D:\Temp\cdll\ReleaseC:\Python26\python.exe Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. from ctypes import

[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching a ctypes unittest (against 2.7 branch) that will expose this bug in regrtest. -- keywords: +patch Added file: http://bugs.python.org/file21633/test_issue11835.patch ___ Python

[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Interpreter Core type: - behavior versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11506

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-04-11 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Adding some minor fixes to the original patch to apply cleanly to current 2.7 tip. Also, add a conditional branch in the case that the server returns none of the supported algorithm strings, to raise a ValueError (the previous patch

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828 ___ ___ Python-bugs

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I concur. Attaching a refreshed patch (against current 2.7 branch) along with a unittest. -- nosy: +santa4nt Added file: http://bugs.python.org/file21587/issue4877.patch ___ Python tracker

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5166 ___ ___ Python-bugs-list

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11804 ___ ___ Python-bugs

[issue5907] repr of time.struct_time type does not eval

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I have a feeling that a successful resolution of issue 1820 will make things simpler for this one, since time.struct_time uses structseq. -- nosy: +santa4nt ___ Python tracker rep

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2011-04-08 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820 ___ ___ Python-bugs-list

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-08 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: You mean, PyErr_Clear()? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4877

[issue11788] Decorator class with optional arguments and a __call__ method gets not called when there are no arguments

2011-04-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I wonder if this is a valid use-case to begin with. The semantic of a decorator, as I understand it, is very straightforward in that this: @foo @bar class A: pass is equivalent to this: class A: pass

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-04-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: It already does. ;-) Python 2.7.1+ (default, Apr 6 2011, 16:25:38) [MSC v.1500 32 bit (Intel)] on wi n32 Type help, copyright, credits or license for more information. import urllib2 [74578 refs] fp = urllib2.urlopen('http://16

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-04-06 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21556/issue11703_py31_with_redirect.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: And also with an extension module I'm trying to build with Python-2.7.1 AMD64. Schnur's suggestion fixes it. -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Another workaround is by adding the linker argument to Extension() as extra_link_args: extra_link_args=['/MANIFEST'] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue9709] test_distutils warning: initfunc exported twice on Windows

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: A workaround would be to define an arbitrary macro when building with distutils. For example, in setup.cfg: [build_ext] define = _DISTUTILS Then in some main header file(s) in your project: #ifdef _DISTUTILS #undef

[issue9709] test_distutils warning: initfunc exported twice on Windows

2011-04-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9709 ___ ___ Python-bugs

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: There does not seem to be any mention of what an ANSI behavior should be upon encountering a non-supported format string. Hence, perhaps, the discrepancy among different platforms

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762 ___ ___ Python

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I don't think this is a Windows bug per se, because the behavior is undefined in the standards. The burden is up to us to validate the format string inputted [w]strftime and currently, our code mistakenly clears %f as valid. I'm

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Removed file: http://bugs.python.org/file21509/issue11703.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Wrong filename. Attaching again: against 2.7 and 3.1 branches. -- Added file: http://bugs.python.org/file21510/issue10762_py27.patch ___ Python tracker rep...@bugs.python.org http

[issue10762] strftime('%f') segfault

2011-04-02 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21511/issue10762_py31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762

[issue11735] Python Crash on strftime with %f

2011-04-01 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Hm, I can't reproduce this on darwin: Python 2.7.1 (r271:86832, Jan 26 2011, 19:17:30) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import time time.strftime('%m/%d/%Y

[issue10762] strftime('%f') segfault

2011-04-01 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762 ___ ___ Python-bugs

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: This is because the Request class' constructor splits the URL into __original and fragment: def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False): # unwrap('URL:type

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching patches against 2.7 and 3.1 branches. -- keywords: +patch Added file: http://bugs.python.org/file21456/issue11703_py27.patch ___ Python tracker rep...@bugs.python.org http

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21457/issue11703_py31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703

[issue1571878] Improvements to socket module exceptions

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571878 ___ ___ Python-bugs

[issue11397] os.path.realpath() may produce incorrect results

2011-03-28 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching patches against 3.1 and 3.2 (due to unicode and slightly different unittest layout). -- Added file: http://bugs.python.org/file21439/issue11397_py31.patch ___ Python tracker rep

[issue11397] os.path.realpath() may produce incorrect results

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21440/issue11397_py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue7796] No way to find out if an object is an instance of a namedtuple

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___ ___ Python-bugs-list

[issue6498] Py_Main() does not return on SystemExit

2011-03-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___ ___ Python-bugs-list

[issue1673007] urllib2 requests history + HEAD support

2011-03-27 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1673007

[issue11474] url2pathname() handling of '/C|/' on Windows

2011-03-27 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Removed file: http://bugs.python.org/file21105/nturl2path.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11474

[issue11474] url2pathname() handling of '/C|/' on Windows

2011-03-27 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Fixing patch... -- Added file: http://bugs.python.org/file21433/nt2urlpath.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11474

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs

[issue11652] urlib2 returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import urllib2 request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: This affects urllib, as well: C:\Users\santapython Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import urllib request = 'http

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-03-23 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: One way I can think of is by resorting so some list of exceptions. Not quite elegant, but it works... -- keywords: +patch Added file: http://bugs.python.org/file21365/issue11652.patch

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: this will lock I should expect so! recvfrom is a blocking method. The interpreter will block on said socket until (if recvfrom) data arrives from the remote end of the socket. sendto is non-blocking, though. And it works for me

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt -Devin Jeanpierre versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue11397] os.path.realpath() may produce incorrect results

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Library (Lib) -Extension Modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11397

[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2011-03-22 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I can't reproduce this. I'm also running 64-bit Python on 64-bit Windows 7 and socket operations are fine for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
New submission from Santoso Wijaya santoso.wij...@gmail.com: For example, the function `fileConfig` is listed in the documentation [1] as `logging.fileConfig`. This was a surprise for me when trying it gave me an AttributeError. Only after reading the source code that I found out

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639

[issue11639] Documentation for *Config functions in logging module should be in logging.config

2011-03-22 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11639

[issue11397] os.path.realpath() may produce incorrect results

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I'm attaching a patch that fixes this bug. I'm using a different algorithm altogether than the currently existing one, to allow a stack-based approach that lends itself to fixing this bug (as inspired by Wojciech). Hopefully it won't

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-03-21 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623 ___ ___ Python-bugs

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Oddly, this works: C:\Users\santaC:\python32\python.exe Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win 32 Type help, copyright, credits or license for more information. class Foo(Exception

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Also, why is the print() in __new__ executed twice? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11627

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2011-03-20 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7990

[issue11397] os.path.realpath() may produce incorrect results

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching a unittest that will manifest this bug. -- keywords: +patch Added file: http://bugs.python.org/file21309/test_issue11397.patch ___ Python tracker rep...@bugs.python.org http

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: The timeout value given to wait() is multiplied by 1000 before being passed to TimeoutExpired constructor. The multiplication is unnecessary since we take the input unit as time unit second. -- keywords: +patch nosy: +santa4nt

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Removed file: http://bugs.python.org/file21310/timeoutsec.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11613

[issue11613] test_subprocess fails under Windows

2011-03-20 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Actually, the multiplication was necessary because _subprocess.WaitForSingleObject takes the timeout argument in millisecond unit. Defer multiplication until then. -- Added file: http://bugs.python.org/file21311

[issue11589] Additional tests for email module

2011-03-18 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Do we need each sample--(input - expected output)--to be its own unittest function? Why not something like (pseudo-code): expected = { 'input1': 'output1', 'input2': 'output2', } def test_encode(self):# collapse all

[issue11562] += on list inside a tuple raises TypeError but succeds anyway

2011-03-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11562

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-15 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684 ___ ___ Python-bugs

[issue11485] Default SDK value on MacOSX needs changing

2011-03-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Running configure on a MacOSX system will set MACOSX_DEPLOYMENT_TARGET to 10.4, which is probably not optimal for anyone on a recentish system. What's more, when I first tried to compile Python on Mac OS X, and I have MacPorts

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I'm attaching a patch with a fix and a unittest using the email example. I put this in a new test_RFC2368 (the mailto URL scheme) method. Seems like there is no unittest for parsing mailto scheme to begin with. -- Added file

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-14 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Removed file: http://bugs.python.org/file21110/urlparse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11467

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-03-14 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Oops, wrong revision base. -- Added file: http://bugs.python.org/file2/urlparse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11467

<    1   2   3   >