[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-07-01 Thread Georgij Kondratjev
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

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-30 Thread Georgij Kondratjev
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

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Georgij Kondratjev
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

[issue2775] Implement PEP 3108

2008-06-29 Thread Georgij Kondratjev
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

[issue3131] 2to3 can't find fixes_dir

2008-06-21 Thread Georgij Kondratjev
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

[issue3131] 2to3 can't find fixes_dir

2008-06-20 Thread Georgij Kondratjev
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

[issue3131] 2to3 can't find fixes_dir

2008-06-20 Thread Georgij Kondratjev
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] 2to3 can't find fixes_dir

2008-06-20 Thread Georgij Kondratjev
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

[issue2626] If compile with gcc 4.3.0 python interpreter itself eats all memory

2008-04-12 Thread Georgij Kondratjev
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

[issue1966] infinite loop in httplib

2008-02-07 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1966 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1595] Probable extra semicolon in Py_LeaveRecursiveCall macro

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1595 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1685 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1297193] Search is to long with regex like ^(.+|dontmatch)*$

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1297193 _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1946] re.search hangs on this

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1946 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1750076] Python 2.5+ skips while statements in debuggers

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750076 _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax

2008-01-28 Thread Georgij Kondratjev
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

[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax

2008-01-28 Thread Georgij Kondratjev
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

[issue1956] Lib/bsddb/test/test_thread.py uses old 'except' syntax

2008-01-28 Thread Georgij Kondratjev
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

[issue1872] change the bool struct format code from 't' to '?'

2008-01-26 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1872 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1943] improved allocation of PyUnicode objects

2008-01-26 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1943 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1929] httplib _read_chunked TypeError ||| i = line.find(;)

2008-01-24 Thread Georgij Kondratjev
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

[issue1929] httplib _read_chunked TypeError ||| i = line.find(;)

2008-01-24 Thread Georgij Kondratjev
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

[issue1930] sys.maxint not found in Python 3.0a2

2008-01-24 Thread Georgij Kondratjev
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