Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2562
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk jw...@jwilk.net:
$ python3 --version
Python 3.1.3
$ python3 setup.py bdist upload --sign
[snip]
Traceback (most recent call last):
File setup.py, line 71, in module
cmdclass = dict(build_py=build_py)
File /usr/local/lib/python3.1/distutils/core.py, line
New submission from Jakub Wilk jw...@jwilk.net:
$ python3 --version
Python 3.1.3
$ python3 setup.py bdist upload --sign
[snip]
Traceback (most recent call last):
File setup.py, line 71, in module
cmdclass = dict(build_py=build_py)
File /usr/local/lib/python3.1/distutils/core.py, line
Jakub Wilk jw...@jwilk.net added the comment:
Matthias: Nope, this one is OK.
--
assignee: - tarek
components: +Distutils -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10571
Jakub Wilk jw...@jwilk.net added the comment:
Ugh. Please disregard the first message. What I wanted to write is:
In Python 3.1.3, curses.tigetstr() returns bytes (which makes sense), but
curses.tparm() expects a Unicode string as first argument. As a consequence
even the example given
Jakub Wilk jw...@jwilk.net added the comment:
Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file19870/issue10571.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10571
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue969718
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7213
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
PEP 0263 allows an encoding declaration in the second line, but
py_compile seems not to recognize such ones:
MODULE = \n# encoding=UTF-8\nU = u'\xc3\xb3'\n
f = file('tmp.py', 'w')
f.write(MODULE)
f.close()
from py_compile import compile
compile('tmp.py
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3990
___
___
Python-bugs-list mailing list
Jakub Wilk jw...@jwilk.net added the comment:
Sorry if that wasn't clear in the first place: this is not a feature request. I
agree that current behavior for email.header.Header (as shown in the first
message) is bizarre, confusing, unnecessary, and potentially leading to
vulnerabilities
New submission from Jakub Wilk [EMAIL PROTECTED]:
$ cat urltest2.5
#!/usr/bin/python2.5
from urllib2 import urlopen
for line in urlopen('http://python.org/'):
print line
break
$ ./urltest2.5
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1
Jakub Wilk uba...@users.sf.net added the comment:
Regarding Senthil's patch:
__next__() method seems superfluous to me (and the implementation is buggy).
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4608
Jakub Wilk uba...@users.sf.net added the comment:
Oops, __next__ is OK. Sorry for the confusion.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4608
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1813
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk [EMAIL PROTECTED]:
int('42', 42)
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: int() base must be = 2 and = 36
int('42', -909)
42
--
components: Library (Lib)
messages: 66777
nosy: jwilk
severity: normal
status: open
Jakub Wilk [EMAIL PROTECTED] added the comment:
10 would *not* do the trick:
int(42)
42
int(42, 10)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: int() can't convert non-string with explicit base
__
Tracker [EMAIL PROTECTED
Changes by Jakub Wilk [EMAIL PROTECTED]:
--
nosy: +jwilk
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3228
___
___
Python-bugs-list mailing list
Jakub Wilk [EMAIL PROTECTED] added the comment:
For consistency with other methods, test_folder_file_permissions()
should set umask to 0.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3228
New submission from Jakub Wilk uba...@users.sf.net:
$ cat buggy.py
import sys
from xml.etree import ElementTree as et
root = et.Element('root')
root.text = u'\x07'
et.ElementTree(root).write(sys.stdout)
$ python buggy.py | xmllint -
-:1: parser error : PCDATA invalid Char value 7
root/root
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5228
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8323
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Jakub Wilk jw...@jwilk.net added the comment:
FYI, in Debian we have at least:
one package using the CDROM module,
3 packages using the IN module,
14 packages using the DLFCN module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13226
___
___
Python-bugs-list mailing list
Jakub Wilk jw...@jwilk.net added the comment:
* STINNER Victor rep...@bugs.python.org, 2011-10-19, 22:55:
FYI, in Debian we have at least:
one package using the CDROM module,
Is it cdsuite? (http://offog.org/code/cdsuite.html)
No, Freevo http://freevo.sourceforge.net/.
3 packages using
New submission from Jakub Wilk:
If you try to create MIMEText object with text containing characters outside
the ISO-8859-1 range,
the quoted-printable encoder fails with KeyError:
Python 3.2.3 (default, Sep 10 2012, 12:58:42)
[GCC 4.7.1] on linux2
Type help, copyright, credits or license
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17018
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12641
___
___
Python-bugs-list mailing list
Jakub Wilk jw...@jwilk.net added the comment:
Just to give some statistic, in Debian we have 80 binary packages that check
if sys.platform is linux2. However, it appears to me that vast majority of them
is broken anyway, because what they really mean to check is:
- is this a non-Windows sytem
New submission from Jakub Wilk jw...@jwilk.net:
The zlib extension is built using an included copy of the zlib sources unless
the zlib version found on the system is too old to be used for the build
I believe it should be if rather than unless.
--
messages: 142205
nosy: jwilk
priority
New submission from Jakub Wilk jw...@jwilk.net:
It is a surprisingly common error in 3rd party code to write something like
this:
try:
eggs()
except OSError, e:
if e.errno == 17:
ham()
This is wrong, because according to POSIX[0], “only […] symbolic names should
Jakub Wilk jw...@jwilk.net added the comment:
And the lost footnote is:
[0]
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_03.html#tag_02_03
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12762
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk jw...@jwilk.net:
Python 3 is more rigid about mixing tabs and spaces within a single file. 2to3
should either fix indentation that would become a syntax error in Python 3.X,
or maybe issue a warning about it (or both).
Example:
$ python badtabs.py echo okay
New submission from Jakub Wilk jw...@jwilk.net:
Typo in Doc/whatsnew/3.3.rst: comparaison - comparison.
--
assignee: docs@python
components: Documentation
messages: 155347
nosy: docs@python, jwilk
priority: normal
severity: normal
status: open
title: Typo in What’s New In Python 3.3
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2066
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
The xml.etree.ElementTree module provides _Element and _ElementInterface as
compatibility aliases for Element. However, in Python 3.3 if the _elementtree
module is importable, these classes are not identical: Element is a C
implementation, and _Element
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 rep...@bugs.python.org
http://bugs.python.org/issue17988
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 world
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 ... at development time
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
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1054041
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18020
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
pygettext uses non-standard timestamp format in the POT-Creation-Date field.
For example:
POT-Creation-Date: 2013-06-03 22:31+CEST
whereas xgettext uses this format:
POT-Creation-Date: 2013-06-03 22:31+0200
You could use this code to generate timestamps
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1475523
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
The MO file format specification[0] reads:
A program seeing an unexpected major revision number should stop reading the
MO file entirely
But Python doesn't pay attention to versions at all.
As a test-case I attached a MO file with a bogus major revision number
Jakub Wilk added the comment:
The documentations says Minor deficiency: mktime_tz() interprets the first 8
elements of tuple as a local time and then compensates for the timezone
difference. This may yield a slight error around changes in daylight savings
time, though not worth worrying about
Jakub Wilk added the comment:
Fair enough, filed as issue #18243.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14653
___
___
Python-bugs-list
New submission from Jakub Wilk:
email.utils.mktime_tz documentations says:
Minor deficiency: mktime_tz() interprets the first 8 elements of tuple as a
local time and then compensates for the timezone difference. This may yield a
slight error around changes in daylight savings time, though
New submission from Jakub Wilk:
The -b and -X options are not documented in Misc/python.man.
--
assignee: docs@python
components: Documentation
messages: 191463
nosy: docs@python, jwilk
priority: normal
severity: normal
status: open
title: python.man: no documentation for -b, -X
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17121
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18217
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10529
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
It is possible to craft a MO file with Plural-Forms taking arbitrary amounts of
CPU and memory to evaluate. A test case is attached.
I realize that opening unstrusted MO files is a rather unusual use case, but
the module already contains some code to protect
Changes by Jakub Wilk jw...@jwilk.net:
Added file: http://bugs.python.org/file30716/testcase.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18317
New submission from Jakub Wilk:
gettext() cannot find translations for messages that have plural forms. I would
expect that gettext(s) is equivalent to ngettext(s, s, 1) for such messages, as
it is implemented in GNU gettext.
import gettext
with open('test.mo', 'rb') as mo: trans
Jakub Wilk added the comment:
Making token filtering more thorough may be simpler that going through AST.
I think Python should accept all the operators that GNU gettext accepts:
http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y?id=v0.18.2.1#n132
New submission from Jakub Wilk:
This used to work correctly in Python 3.2:
Python 3.3.0rc1 (default, Aug 29 2012, 00:39:20)
[GCC 4.7.1] on linux
Type help, copyright, credits or license for more information.
import shutil
shutil.rmtree('/etc/fstab', ignore_errors=True)
Traceback (most recent
New submission from Jakub Wilk uba...@users.sf.net:
$ cat test.py
from itertools import imap as _map
$ ./2to3 test.py 2/dev/null
--- test.py (original)
+++ test.py (refactored)
@@ -1,1 +1,1 @@
-from itertools import imap as _map
+from itertools import as _map
--
components: 2to3 (2.x
Changes by Jakub Wilk uba...@users.sf.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3672
___
___
Python-bugs-list mailing
Changes by Jakub Wilk uba...@users.sf.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3297
___
___
Python-bugs-list mailing
New submission from Jakub Wilk uba...@users.sf.net:
from email.mime.text import MIMEText
from email.header import Header
msg = MIMEText('dummy')
h = Header('dummy\nX-Injected-Header: yes')
msg['Subject'] = h
print msg.as_string()
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
New submission from Jakub Wilk:
If you have a non-ASCII .py file without encoding declaration, then you can't
normally import it:
$ python --version
Python 2.7.6
$ python -c 'import test'
Traceback (most recent call last):
File string, line 1, in module
File test.py, line 1
SyntaxError
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17762
___
___
Python-bugs-list mailing list
Jakub Wilk added the comment:
See also issue18128.
Date headers are not only for humans; I've seen software that parses them.
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19907
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19783
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
I created a Python file which contained a non-UTF-8 string literal (but no
Unicode literals), and added UTF-8 encoding declaration to it. I expected
that Python will raise SyntaxError when importing such module, but it doesn't:
$ python --version
Python 2.7.6
Changes by Jakub Wilk jw...@jwilk.net:
Added file: http://bugs.python.org/file33078/test1.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19942
New submission from Jakub Wilk:
There's a typo in Lib/lib2to3/fixes/fix_import.py:
unkown → unknown
--
components: Library (Lib)
messages: 205799
nosy: jwilk
priority: normal
severity: normal
status: open
title: typo: unkown → unknown
___
Python
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5996
___
___
Python-bugs-list mailing list
Jakub Wilk added the comment:
With a slightly adapted test case, I see the same behavior in Python 3.3.3.
Perhaps it would be worth fixing the bug in Python 3.4?
--
Added file: http://bugs.python.org/file33092/test3.py
___
Python tracker rep
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18603
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20044
___
___
Python-bugs-list mailing list
Jakub Wilk added the comment:
As far as rename() and link() are concerned, either of the arguments can cause
an ENOENT error:
os.rename('/dev/foobar', '/dev/barfoo') # fails because /dev/foobar doesn't
exist
os.rename('/dev/null', '/foo/bar/baz') # fails because /foo/bar doesn't exist
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19846
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15216
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19977
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19619
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20093
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20050
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1652
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18373
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20415
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16202
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
The doctest.debug_script function creates temporary files in an insecure way:
srcfilename = tempfile.mktemp(.py, doctestdebug)
f = open(srcfilename, 'w')
This is already fixed for Python = 3.2, although for reasons other than
security: issue12451
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12015
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18673
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20361
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17997
___
___
Python-bugs-list mailing list
New submission from Jakub Wilk:
shutil.unpack_archive() uses tarfile.extractall() under the hood, so it's not
suitable for unpacking untrusted archives. But this fact is not documented.
Please add a security warning to shutil.unpack_archive() documentation.
--
assignee: docs@python
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13856
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17621
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21324
___
___
Python-bugs-list mailing list
Jakub Wilk added the comment:
For the reference, the exception is:
Traceback (most recent call last):
File /home/user/sources/sinntp/sinntp, line 357, in module
connection.quit()
File /usr/lib/python2.7/nntplib.py, line 608, in quit
resp = self.shortcmd('QUIT')
File /usr/lib
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21332
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21109
___
___
Python-bugs-list mailing list
1 - 100 of 233 matches
Mail list logo