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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21823/issue11397_py27_2.patch ___ Python tracker <http://bugs.python.org/issue11397> ___ ___ Python-bug

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

2011-04-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21824/issue11397_py31_2.patch ___ Python tracker <http://bugs.python.org/issue11397> ___ ___ Python-bug

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

2011-04-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue11344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-12 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching a patch to test a use case for ntpath.samefile (looks like sameopenfile is already tested--or at least a use case of it). -- components: +Library (Lib) keywords: +patch nosy: +santa4nt versions: -Python 3.4 Added file: http

[issue12064] unexpected behavior with exception variable

2011-05-12 Thread Santoso Wijaya
Santoso Wijaya added the comment: Looks like a regression from 2.x. On 2.7: 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. >>> e = Tru

[issue6727] ImportError when package is symlinked on Windows

2011-05-12 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue6727> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-16 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue12084> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-17 Thread Santoso Wijaya
Santoso Wijaya added the comment: `strftime` does not, indeed, seem to define what behaviour it is supposed to do when given non-supported format characters. Under Windows, in fact, it will crash the runtime (see: issue #10762). -- nosy: +santa4nt

[issue9811] strftime strips '%' from unknown format codes on OS X

2011-05-18 Thread Santoso Wijaya
Santoso Wijaya added the comment: Yeah, I meant undefined. I looked that up when writing a patch for issue #10762. Correction: It *used to* crash on Windows, before the patch was applied. -- ___ Python tracker <http://bugs.python.org/issue9

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-18 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue1746656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue10506> ___ ___ Python-bugs-list mailin

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-21 Thread Santoso Wijaya
Santoso Wijaya added the comment: There is a simple workaround to bypass the hostname resolution mechanism, so that the server can respond faster. # This is a hack to patch slow socket.getfqdn calls that # BaseHTTPServer (and its subclasses) make. # See: http://bugs.python.org/issue6085 # See

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-25 Thread Santoso Wijaya
Santoso Wijaya added the comment: Doesn't that only cache the first remote client it encounters, though? Maybe a dictionary of caches? -- ___ Python tracker <http://bugs.python.org/i

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Santoso Wijaya
Santoso Wijaya added the comment: Please correct my understanding if I am mistaken, but from skimming through the source code, it seems that a new BaseHTTPRequestHandler is instantiated per request. If a caching mechanism is to be adopted as per the patch, wouldn't it be forgotten when

[issue8506] SimpleXMLRPCServer Socket not closed after shutdown call

2010-04-27 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue8506> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8581] Logging handlers do not handle double-closing very well

2010-04-30 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue8581> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8581] Logging handlers do not handle double-closing very well

2010-05-01 Thread Santoso Wijaya
Santoso Wijaya added the comment: File-like objects handle multiple close() gracefully, silently making the second and subsequent close() calls to an already closed I/O object do nothing. Why can't the same expectation be applied to logging handlers? -- status: pending -&

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +Library (Lib), XML nosy: +santa4nt versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker <http://bugs.python.org/issue13

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread Santoso Wijaya
Santoso Wijaya added the comment: This does not only affect `append`, but also, `insert`, `extend`, etc. In fact, the list-like operations on Element are merely forwarded to its `_children` (a list) field. Should we really type check these methods' arguments each? Doesn't strike a

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-01-23 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: -santa4nt ___ Python tracker <http://bugs.python.org/issue8713> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2012-04-05 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue14465> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14310] Socket duplication for windows

2012-04-05 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue14310> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7897] Support parametrized tests in unittest

2012-09-25 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue7897> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-10 Thread Santoso Wijaya
Santoso Wijaya added the comment: This is because, in Python 3.3, xml.etree.ElementTree.Element is overridden by the C accelerator version, _elementtree.Element. If you remove the statement, 1708from _elementtree import * the behavior from Python 3.2 comes back. -- nosy

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: OTOH, xml.etree.cElementTree.Element in Python 3.2 and earlier has never been pickleable, either. Python 3.2.3+ (3.2:24499eebbc2f, Oct 10 2012, 13:54:45) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "lice

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +Extension Modules nosy: +santa4nt type: -> behavior versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issu

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching patch to trim leading and trailing whitespaces prior to processing. Incidentally, this also means: >>> socket.gethostbyname('') '0.0.0.0' >>> socket.gethostbyname(' ') Traceback (most recent call last)

[issue21403] cElementTree node creation with attributes is bugged

2014-04-30 Thread Santoso Wijaya
New submission from Santoso Wijaya: Observe: Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> r

[issue21403] cElementTree node creation with attributes is bugged

2014-04-30 Thread Santoso Wijaya
Santoso Wijaya added the comment: Or, more succintly: Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET &

[issue21403] cElementTree creation of nodes with attributes is bugged

2014-04-30 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- title: cElementTree node creation with attributes is bugged -> cElementTree creation of nodes with attributes is bugged ___ Python tracker <http://bugs.python.org/issu

[issue21403] cElementTree's Element creation handles attrib argument different from ET

2014-05-01 Thread Santoso Wijaya
Santoso Wijaya added the comment: There is still a matter of inconsistency between the two implementations and between 2.7 and 3.x. IMO, the Python-based ElementTree implementation is more graceful at handling the "attrib" argument. The signature of the factory function El

[issue21403] cElementTree's Element creation handles attrib argument different from ET

2014-05-01 Thread Santoso Wijaya
Santoso Wijaya added the comment: Quoting dabrahams in issue 1572710: On second thought, I see what effbot is trying to say... but it's still a bug. Given the way the interface is declared and the behavior of regular python functions: Element(tag, attrib={}, **extra) indicates that

[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()

2014-05-19 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue21531> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-19 Thread Santoso Wijaya
Santoso Wijaya added the comment: I think you should use codecs.BOM_UTF8 rather than using hardcoded string "\xef\xbb\xbf" directly. And why special casing UTF-8 while we're at it? What about other encodings and their BOMs? --

[issue21386] ipaddress.IPv4Address.is_global not implemented

2014-05-19 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt type: -> enhancement ___ Python tracker <http://bugs.python.org/issue21386> ___ ___ Python-bugs-list mai

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
New submission from Santoso Wijaya: The reference doc for Python data model says that __getslice__ is deprecated [1], and that __getitem__ should be used instead: """ Deprecated since version 2.0: Support slice objects as parameters to the __getitem__() method. (However, bu

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
Santoso Wijaya added the comment: Hm. The docstring for __getitem__ doesn't mention it can/should be accepting slice object as argument. That's what I'm missing. Doc patch? -- ___ Python tracker <http://bugs.pyt

[issue21598] Is __getitem__ and __len__ implementations enough to make a user-defined class sliceable?

2014-05-28 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/issue21598> ___ ___ Python-bugs-

[issue16376] wrong type for wintypes.BYTE

2012-11-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue16376> ___ ___ Python-bugs-list mailing list Unsub

[issue16376] wrong type for wintypes.BYTE

2012-11-01 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue16376> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13234] os.listdir breaks with literal paths

2013-10-24 Thread Santoso Wijaya
Santoso Wijaya added the comment: Here you go. -- Added file: http://bugs.python.org/file32334/issue13234_tip_refresh.patch ___ Python tracker <http://bugs.python.org/issue13

[issue18199] Windows: support path longer than 260 bytes using "\\?\" prefix

2013-10-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue18199> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue8713> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2010-08-04 Thread Santoso Wijaya
Santoso Wijaya added the comment: Does anyone know of any workaround, for now? -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue6792> ___ ___

[issue17343] Add a version of str.split which returns an iterator

2013-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue17343> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-03-12 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker <http://bugs.python.org/issue17400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13234] os.listdir breaks with literal paths

2013-03-20 Thread Santoso Wijaya
Santoso Wijaya added the comment: Done. -- ___ Python tracker <http://bugs.python.org/issue13234> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17517] StringIO() does not behave like cStringIO() when given an array object

2013-03-21 Thread Santoso Wijaya
New submission from Santoso Wijaya: Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import array, cStringIO, StringIO >>> a = array.array(&#

[issue17517] StringIO() does not behave like cStringIO() when given an array object

2013-03-21 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue17517> ___ ___ Python-bugs-list mailing list Unsubscri

<    1   2   3