Changes by Santoso Wijaya :
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue21598>
___
___
Python-bugs-
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
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
Changes by Santoso Wijaya :
--
nosy: +santa4nt
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue21386>
___
___
Python-bugs-list mai
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?
--
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue21531>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
&
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
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue18199>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Santoso Wijaya :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue17517>
___
___
Python-bugs-list mailing list
Unsubscri
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(
Santoso Wijaya added the comment:
Done.
--
___
Python tracker
<http://bugs.python.org/issue13234>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue17400>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue17343>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue16376>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Santoso Wijaya :
--
versions: +Python 3.4, Python 3.5
___
Python tracker
<http://bugs.python.org/issue16376>
___
___
Python-bugs-list mailing list
Unsub
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)
Changes by Santoso Wijaya :
--
components: +Extension Modules
nosy: +santa4nt
type: -> behavior
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issu
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
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
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue7897>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue14310>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue14465>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: -santa4nt
___
Python tracker
<http://bugs.python.org/issue8713>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Santoso Wijaya added the comment:
I agree that it's probably not a good idea. Windows users should be aware of
symlink limitation on the platform to begin with, IMHO.
Besides, keeping the detection behaviour in light of this defect would be
adding unnecessary complexity to the
Santoso Wijaya added the comment:
Confirmed (on latest py33 build):
>>> os.listdir('Lib\\bar')[:4]
Traceback (most recent call last):
File "", line 1, in
NotADirectoryError: [Error 267] The directory name is invalid: 'Lib\\bar\\*.*'
[61658 refs]
... a
Santoso Wijaya added the comment:
I think this is because "Lib\\bar" is NOT being created as a directory symlink,
but rather as a regular one.
As such, the documentation for symlink where it states the optional
`target_is_directory=False` argument should be automatically detect w
Santoso Wijaya added the comment:
Simple patch.
--
keywords: +patch
Added file: http://bugs.python.org/file24208/issue13775_py33.patch
___
Python tracker
<http://bugs.python.org/issue13
New submission from Santoso Wijaya :
Consider:
>>> os.symlink('.\\test', 'Lib\\bar')
Traceback (most recent call last):
File "", line 1, in
WindowsError: [Error 5] Access is denied: '.\\test'
Where Lib\\bar is previously created. The
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13772>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13374>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
>From what I understand, even in 2.7 the exception is expected. The doc for
>`from_buffer` says:
> The source object must support the writeable buffer interface.
Is there any reason why `from_buffer_copy` cannot be used, instead? The latter
only
Changes by Santoso Wijaya :
--
nosy: +santa4nt
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue11427>
___
___
Python-bugs-list mailin
Santoso Wijaya added the comment:
Unicode environment vars work properly in Python 3.x on Windows, too, because
the convertenviron() function in posixmodule.c uses extern _wenviron
PyUnicode_FromWideChar() in Python 3.x. In Python 2.7, convertenviron() uses
extern environ and
Santoso Wijaya added the comment:
> I don't understand this change in issue13234_py33_v4.patch (the change looks
> to be useless).
It's pedantic correctness on my part. SEP and ALTSEP are defined as wide
strings L'\\' and L'/' respectively. Their usage in
Santoso Wijaya added the comment:
Fair enough. Simplifying.
--
Added file: http://bugs.python.org/file23520/issue13234_py33_v4.patch
___
Python tracker
<http://bugs.python.org/issue13
Santoso Wijaya added the comment:
Addressing patch comments.
--
Added file: http://bugs.python.org/file23519/issue13234_py33_v3.patch
___
Python tracker
<http://bugs.python.org/issue13
Santoso Wijaya added the comment:
Even if we decide not to convert any forward slash, listdir() adds u"\\*.*"
when the input is unicode, but it adds "/*.*" when it is not, before passing it
off to Windows API. Hence the inconsistency and the problem Manuel saw.
IMO, his
Santoso Wijaya added the comment:
Additionally, there might be issues in other APIs when handling with extended
path lengths:
D:\Temp\tempdir>dir
Volume in drive D is Data
Volume Serial Number is 7E3D-EC81
Directory of D:\Temp\tempdir
10/24/2011 04:22 PM .
10/24/2011 04
Santoso Wijaya added the comment:
There are also several other edge cases to be taken care of:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits" or "license"
Santoso Wijaya added the comment:
I'd also like to point out that Unicode path is handled correctly in both 2.7.x
and 3.x:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits"
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13249>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
components: +Windows
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13234>
___
___
Python-bugs-list mai
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13234>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13210>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12641>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue13081>
___
___
Python-bugs-list mailing list
Unsubscri
Santoso Wijaya added the comment:
Without the aforementioned minidump library, you can also kick off the Python
interpreter using a debugger (or have a debugger break into an already-running
one) [1]. When the crash happens--presumably the debugger will break at this
point--you can export
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue7434>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue13004>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12939>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12801>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12750>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
>From what I gather from the code, when dlopen fails in POSIX platforms, ctypes
>raises an PyExc_OSError instantiated with a simple string (via
>PyErr_SetString()). I suppose this could be changed to raise a more complex
>tuple, inste
Santoso Wijaya added the comment:
At least in Windows, the exception object has its `winerror` attribute
correctly set to 126, which is also translated to POSIX `errno` with
`winerror_to_errno()`; the latter gives us EINVAL (22).
--
versions: +Python 3.3
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12681>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue10395>
___
___
Python-bugs-list m
Changes by Santoso Wijaya :
--
keywords: +patch
Added file: http://bugs.python.org/file22821/issue12676_py33.patch
___
Python tracker
<http://bugs.python.org/issue12
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12676>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue12676>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12615>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue12614>
___
___
Python-bugs-list mailing list
Unsub
Changes by Santoso Wijaya :
--
nosy: +santa4nt
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue12576>
___
___
Python-bugs-list mailin
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12528>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12460>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12463>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12459>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12455>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
On Windows:
>>> try:
... ctypes.CDLL('somelib')
... except OSError as exc:
... print repr(exc)
... print exc.errno
...
WindowsError(126, 'The specified module could not be found')
2
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12435>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
This has been fixed with issue #11703, latest version of Python 2.7 does not
exhibit this behaviour anymore:
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credi
Santoso Wijaya added the comment:
FWIW, I tested the patch on a 64-bit Python build and test_ctypes passes with
the new unittest added.
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue6068>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue12403>
___
___
Python-bugs-list mailin
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12346>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue9246>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
If `write(self, data)` is expected to receive `data` as a memoryview object,
then it's up to pyserial to use `data.tobytes()` instead of `bytes(data)`,
though this does not seem to be documented in the io modul
Changes by Santoso Wijaya :
Added file: http://bugs.python.org/file22380/test_bufio_nothreading.py
___
Python tracker
<http://bugs.python.org/issue12340>
___
___
Pytho
Santoso Wijaya added the comment:
Note: Removing threading call (lock acquire, release) would remove the crash,
but still triggers the "" conversion of PyMemoryView.
--
___
Python tracker
<http://bugs.python.o
Santoso Wijaya added the comment:
As for the "" string, when _io.BufferedWriter prepares the byte
buffer into a PyMemoryView wrapper and passes it into the raw IO object:
res = PyObject_CallMethodObjArgs(self->raw, _PyIO_str_write, memobj, NULL);
For some reason, memob
Santoso Wijaya added the comment:
Regarding the crash,
>From what I can see, the `tp_clear` method of bufferedrwpair is called during
>Py_Finalize() that leads to garbage collection. This NULLs `self->writer` for
>the rwpair object.
Later, in the same garbage collection
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue7860>
___
___
Python-bugs-list mailing list
Unsubscribe:
Santoso Wijaya added the comment:
>_< Should've read the docs again more carefully before submitting.
--
___
Python tracker
<http://bugs.python.
New submission from Santoso Wijaya :
Observe:
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.
>>> from cStringIO import StringIO
>>
Santoso Wijaya added the comment:
FYI, the dependency is introduced in changeset
http://hg.python.org/cpython/rev/0daa6ba25d9b
--
components: +Build
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12
Changes by Santoso Wijaya :
--
components: +Interpreter Core
versions: +Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue12163>
___
___
Pytho
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue1746656>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue12084>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Santoso Wijaya :
--
nosy: +santa4nt
___
Python tracker
<http://bugs.python.org/issue6727>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
1 - 100 of 249 matches
Mail list logo