[issue17988] ElementTree.Element != ElementTree._ElementInterface

2013-05-15 Thread Jakub Wilk
Jakub Wilk added the comment: The attached (untested) patch should fix the bug. -- keywords: +patch Added file: http://bugs.python.org/file30271/elementinterface.diff ___ Python tracker <http://bugs.python.org/issue17

[issue17989] ElementTree.Element broken attribute setting

2013-05-15 Thread Jakub Wilk
New submission from Jakub Wilk: Setting attributes on ElementTree.Element objects is broken: it succeeds without exception, but then the following statement fails with AttributeError (unless that statement sets an Element's attribute too): $ python3.3 test-element-setattr.py Hello

[issue18026] Typo in ctypes documentation

2013-05-20 Thread Jakub Wilk
New submission from Jakub Wilk: http://docs.python.org/3/library/ctypes.html#finding-shared-libraries reads: "If wrapping a shared library with ctypes, it may be better to determine the shared library name at development type, and hardcode ..." Shouldn't that be "...

[issue18027] distutils should access stat_result timestamps via .st_*time attributes

2013-05-20 Thread Jakub Wilk
New submission from Jakub Wilk: Currently distutils accesses stat_result timestamps like this: os.stat(source)[ST_MTIME] But, for compatibility with older Python versions, the above method gives you at most 1-second resolution. It should do it like this instead: os.stat(source).st_mtime

[issue22597] printf-style formatting allows mixing keyed and keyless specifiers

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: >>> '%(eggs)s %s' % {'eggs': 'ham'} Traceback (most recent call last): File "", line 1, in TypeError: not enough arguments for format string >>> '%s %(eggs)s' % {'eggs': 'ham

[issue1467929] %-formatting and dicts

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue1467929> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22602] UTF-7 codec decodes ill-formed sequences starting with "+"

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: RFC 2152 reads: A "+" character followed immediately by any character other than members of set B or "-" is an ill-formed sequence. "@" is not a member of B, so I would expect this to raise UnicodeDecodeE

[issue1621] Do not assume signed integer overflow behavior

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue1621> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22605] memcpy(NULL, NULL, 0) in

2014-10-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- components: Library (Lib) nosy: jwilk priority: normal severity: normal status: open title: memcpy(NULL, NULL, 0) in versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue22

[issue22605] memcpy(NULL, NULL, 0) in array_new()

2014-10-10 Thread Jakub Wilk
Jakub Wilk added the comment: The attached patch should fix the bug. -- keywords: +patch Added file: http://bugs.python.org/file36871/229023.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22605] memcpy(NULL, NULL, 0) in array_new()

2014-10-10 Thread Jakub Wilk
New submission from Jakub Wilk: If you initialize array with another empty array, then this code runs: memcpy(self->ob_item, other->ob_item, len * other->ob_descr->itemsize); But self->ob_item and other->ob_item are NULL in such case. Passing null pointer to memcpy() is

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-10-14 Thread Jakub Wilk
Jakub Wilk added the comment: This patch should fix it. -- keywords: +patch nosy: +jwilk Added file: http://bugs.python.org/file36917/issue19087.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big

2014-10-14 Thread Jakub Wilk
Jakub Wilk added the comment: On a second thought, "logical_offset + 1" alone could overflow; and there are apparently other possible integer overflows in this function. -- ___ Python tracker <http://bugs.python.o

[issue19459] Python does not support the GEORGIAN-PS charset

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue19459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue22232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22679] Add encodings of supported in glibc locales

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue22679> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue21081> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22681] Add support of KOI8-T encoding

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue22681> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22350] nntplib file write failure causes exception from QUIT command

2014-12-23 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue22350> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8450] httplib: false BadStatusLine() raised

2015-01-14 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue8450> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue17239] XML vulnerabilities in Python

2015-01-14 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue17239> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-06-07 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue24305> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7267] format method: c presentation type broken in 2.7

2015-06-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue7267> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24531] please document that no code preceding encoding declaration is allowed

2015-06-29 Thread Jakub Wilk
New submission from Jakub Wilk: If the encoding is declared on the second line, the first line must not contain anything except comments. However, this fact is not documented. The Python Language reference says only that "the encoding declaration must appear on a line of its own"; a

[issue24531] please document that no code preceding encoding declaration is allowed

2015-06-29 Thread Jakub Wilk
Jakub Wilk added the comment: Right, I meant <https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations>. -- ___ Python tracker <http://bugs.python.org/i

[issue24547] What’s New In Python 3.4: stray "("

2015-07-01 Thread Jakub Wilk
New submission from Jakub Wilk: https://docs.python.org/3/whatsnew/3.4.html#multiprocessing reads: "On Unix two new start methods, (spawn and forkserver, have been added for starting processes using multiprocessing." This stray "(" should be removed. -- a

[issue24568] Misc/NEWS: "free-after-use" -> "use-after-free"

2015-07-05 Thread Jakub Wilk
New submission from Jakub Wilk: Misc/NEWS reads: "Fix free-after-use bug" It should be "use-after-free", not "free-after-use". -- assignee: docs@python components: Documentation messages: 246310 nosy: docs@python, jwilk priority: normal severity: normal

[issue24568] Misc/NEWS: "free-after-use" -> "use-after-free"

2015-07-05 Thread Jakub Wilk
Jakub Wilk added the comment: Uh, "use-after-use" is not a bug either. :) -- ___ Python tracker <http://bugs.python.org/issue24568> ___ ___ Python-bugs-l

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2015-07-25 Thread Jakub Wilk
New submission from Jakub Wilk: https://docs.python.org/3/howto/sorting.html#odd-and-ends gives the following example for reverse sort stability: >>> data = [('red', 1), ('blue', 1), ('red', 2), ('blue', 2)] >>> assert sorted(data, re

[issue24876] distutils.errors not wildcard-import-safe

2015-08-16 Thread Jakub Wilk
New submission from Jakub Wilk: Docstring of the distutils.errors module reads: This module is safe to use in "from ... import *" mode; it only exports symbols whose names start with "Distutils" and end with "Error". But in reality, the module exports al

[issue24924] _posixsubprocess.c: sysconf() might not be async-signal-safe

2015-08-24 Thread Jakub Wilk
New submission from Jakub Wilk: The safe_get_max_fd() (in Modules/_posixsubprocess.c) is documented to be async-signal-safe. However, this function calls sysconf(). sysconf() was guaranteed to be async-singal-safe in SUSv3, but it's no longer in SUSv4. I don't think it'

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2015-09-06 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue15873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25127] typo in concurrent.futures.Executor.shutdown() example

2015-09-15 Thread Jakub Wilk
New submission from Jakub Wilk: Typo in the example code in <https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor.shutdown>: in the last line, it should be "src4.txt", not "src3.txt". -- assignee: docs@python components: Docu

[issue9253] argparse: optional subparsers

2015-09-19 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue9253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26426] email examples: incorrect use of email.headerregistry.Address

2016-02-24 Thread Jakub Wilk
New submission from Jakub Wilk: https://docs.python.org/3/library/email-examples.html#examples-using-the-provisional-api contains the following code: from email.headerregistry import Address ... msg['From'] = Address("Pepé Le Pew", "p...@example.com") msg['

[issue16314] Support xz compression in distutils

2015-05-17 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <http://bugs.python.org/issue16314> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3