[issue3239] curses/textpad.py incorrectly and redundantly imports ascii
Georgij Kondratjev [EMAIL PROTECTED] added the comment: import curses.ascii as curses_ascii If you like curses_ascii you would probably like curses.ascii :) so here is the patch. I tested it with module built-in testing facility (if __name__ == '__main__') but didn't run other tests. Patch with patch -i curses-textpad-ascii.patch src/python/Lib/curses/textpad.py -- keywords: +patch Added file: http://bugs.python.org/file10790/curses-textpad-ascii.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3239] curses/textpad.py incorrectly and redundantly imports ascii
Georgij Kondratjev [EMAIL PROTECTED] added the comment: Sorry, I didn't not distinguish between curses module ascii and built-in function ascii. import curses.ascii as ascii works. Is this a good fix? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3239] curses/textpad.py incorrectly and redundantly imports ascii
New submission from Georgij Kondratjev [EMAIL PROTECTED]: Line 'import curses, ascii' should be replaced with 'import curses' -- components: Library (Lib) messages: 68969 nosy: orivej severity: normal status: open title: curses/textpad.py incorrectly and redundantly imports ascii versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
Georgij Kondratjev [EMAIL PROTECTED] added the comment: Not creating new bug entry because everybody can quickly fix it. In urllib/request.py some instances of URLError are raised with raise urllib.error.URLError and this works, buth there are lines with raise URLError which produces NameError: global name 'URLError' is not defined -- nosy: +orivej ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3131] 2to3 can't find fixes_dir
Georgij Kondratjev [EMAIL PROTECTED] added the comment: when invoked it tries to write to /usr/local/lib/python3.0/lib2to3 2to3 always worked like this. I always had to run it as root. Seems weird for me too. Furthermore, as a test, I copied refactor.py to xxx.py and ran 2to3 on xxx.py It seems to be a bug with 2to3 processing refactor.py. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3131] 2to3 can't find fixes_dir
Georgij Kondratjev [EMAIL PROTECTED] added the comment: Do what Benjamin Peterson suggested and also edit get_fixers(self) in refactor.py so fixer_pkg is initialized like this: fixer_pkg = os.path.relpath(self.fixer_dir, os.path.join(os.path.dirname(__file__), '..')) fixer_pkg = fixer_pkg.replace(os.path.sep, .) This works for me. -- nosy: +orivej ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3131] 2to3 can't find fixes_dir
Georgij Kondratjev [EMAIL PROTECTED] added the comment: Here is the patch (against both current svn and beta 1). -- keywords: +patch Added file: http://bugs.python.org/file10676/2to3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3131] 2to3 can't find fixes_dir
Georgij Kondratjev [EMAIL PROTECTED] added the comment: After uploading the patch I noticed -#!/usr/bin/env python +#!/usr/bin/python3.0 in it. They just should be dropped. Added file: http://bugs.python.org/file10677/2to3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3131 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2626] If compile with gcc 4.3.0 python interpreter itself eats all memory
New submission from Georgij Kondratjev [EMAIL PROTECTED]: First time I noticed it during compilation of python3 r62301, then 3.0a4, then 3.0a3, with and without CFLAGS set. Step ./python -E ./setup.py -q build called by make never ends (and there is no output). Just /python behaves the same: it eats memory and prints nothing. Gcc 3.4.6 works fine. Previous versions of gcc 4 were working too, but I didn`t tested them now. My system: gcc 4.3.0, kernel 2.6.24.zen5.20080410 (with zen patchset, can test again with vanilla 2.6.24, or if you say it is too old I will compile 2.6.24.4), glibc 2.7, Arch GNU/Linux. -- components: Interpreter Core messages: 65426 nosy: orivej severity: normal status: open title: If compile with gcc 4.3.0 python interpreter itself eats all memory versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2626 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1966] infinite loop in httplib
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1966 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1595] Probable extra semicolon in Py_LeaveRecursiveCall macro
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1595 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1685] linecache .updatecache fails on utf8 encoded files
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1685 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1297193] Search is to long with regex like ^(.+|dontmatch)*$
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1297193 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1946] re.search hangs on this
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1946 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1750076] Python 2.5+ skips while statements in debuggers
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750076 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax
Georgij Kondratjev added the comment: If you notice that at http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350r1=58058r2=60350 shutil.rmtree(self.homeDir) didn`t change between revisions, that would be false: in fact extra space () was added. Is this a bug in Roundup? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1956 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax
New submission from Georgij Kondratjev: except OSError, e: (appears twice) should be changed to except OSError as e: -- components: Library (Lib) messages: 61777 nosy: orivej severity: normal status: open title: Lib/bsddb/test/test_thread.py uses old 'except' syntax type: compile error versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1956 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax
Georgij Kondratjev added the comment: Appeared in 60350 svnmerge: http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350view=log http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350r1=58058r2=60350 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1956 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1872] change the bool struct format code from 't' to '?'
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1872 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1943] improved allocation of PyUnicode objects
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1943 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1929] httplib _read_chunked TypeError ||| i = line.find(;)
New submission from Georgij Kondratjev: (With current python3-svn) While trying to response.read() got this: --- File /usr/lib/python3.0/httplib.py, line 533, in read return self._read_chunked(amt) File /usr/lib/python3.0/httplib.py, line 573, in _read_chunked i = line.find(;) TypeError: expected an object with the buffer interface --- To debug I did this: --- line = self.fp.readline() +print(' ***', line) i = line.find(b;) --- and got *** b'2e6d\r\n' followed by those TypeError exception. I did this: --- def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left - value = + value = b if chunk_left is None: line = self.fp.readline() - i = line.find(;) + i = line.find(b;) --- And it seems to work. -- components: Library (Lib) messages: 61659 nosy: orivej severity: normal status: open title: httplib _read_chunked TypeError ||| i = line.find(;) versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1929 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1929] httplib _read_chunked TypeError ||| i = line.find(;)
Georgij Kondratjev added the comment: Sorry, while debugging there was no 'b': --- line = self.fp.readline() +print(' ***', line) i = line.find(;) --- __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1929 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1930] sys.maxint not found in Python 3.0a2
Georgij Kondratjev added the comment: Maybe it was not noted, but it is documented: http://docs.python.org/dev/3.0/library/sys.html -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1930 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com