[issue14738] Amazingly faster UTF-8 decoding

2012-05-12 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: If the commit makes Python 3.3 faster than Python 3.2, it is an optimisation that should be documented in the What's New in Python 3.3 document. -- ___ Python tracker rep...@bugs.python.org

[issue14786] htmlparser with tag br

2012-05-12 Thread Yugang LIU
New submission from Yugang LIU liu...@yahoo.cn: Hi, I parse html source with htmlparser. I catch a tag, br, issue. my code : div br /div parse result: begin tag: div begin tag: br end tag: div So I can't find end tag of 'br'. I know it is invalid text, 'br', it set htmlparser parameter,

[issue14787] pkgutil.walk_packages returns extra modules

2012-05-12 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: pkgutil.walk_packages(paths) seems to return incorrect results when the name of a subpackage of a path in paths matches the name of a package in the standard library. It both excludes modules it should include, and includes modules

[issue7317] Display full tracebacks when an error occurs asynchronously

2012-05-12 Thread alon horev
alon horev alo...@gmail.com added the comment: how does one get his patch reviewed? (it's been 6 months) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___

[issue14588] PEP 3115 compliant dynamic class creation

2012-05-12 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Here is my first attempt at creating a pure Python version of the operator.build_class function (in my previous patch) as types.new_class. The three added functions (two private and one public) correspond to the following functions in my

[issue14788] Pdb debugs itself after ^C and a breakpoint is set anywhere

2012-05-12 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: When a breakpoint is set anywhere (in which case the global system's trace function is set), interrupting the debuggee causes Pdb to stop into its own code. See the following pdb session run with python on the current head of the default

[issue12029] Catching virtual subclasses in except clauses

2012-05-12 Thread George-Cristian Bîrzan
George-Cristian Bîrzan gcbir...@gmail.com added the comment: As promissed the patch. It doesn't break any tests, and it passes the ones I added. I have a pybench one as well, which even though trivial, does point to the fact that there is a degradation in performance, but not sure it's worth

[issue14787] pkgutil.walk_packages returns extra modules

2012-05-12 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: I confirm this behavior in 2.7 and 3.2 versions. In my 3.3.0a3+ it actually outputs nothing. Also note that if you rename logging to logging2, you actually get foo temp logging2 temp -- nosy: +gennad versions: +Python 3.3

[issue14789] after continue, Pdb stops at a line without a breakpoint

2012-05-12 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: In the following test run with python on the current head of the default branch, Pdb stops at line 3 where there is no breakpoint after two breakpoints have been set on the same function (setting two bps on the same location is useful, for

[issue14187] add function annotation entry to Glossary

2012-05-12 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I agree with Raymond that last paragraph should be removed; +1 for the remaining part -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14187

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-05-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It would be nice if the documentation of fwalk() explained why you would want to use it over walk(). How does the attached patch look? -- Added file: http://bugs.python.org/file25550/fwalk-doc.diff

[issue1635217] Add example of distutils setup() with requires argument

2012-05-12 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I still need requires example - here. http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages - after Dependencies.. paragraph. =) setup(..., requires=[somepackage (1.0, !=1.5)],

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm not sure we really need to check for a dangling symlink in case of FileNotFoundError: whether it's a dangling symlink, or the file disappeared in-between-, skipping it is OK. -- ___

[issue14790] use packaging in setup.py

2012-05-12 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: setup.py should use packaging, not distutils. -- components: Build messages: 160475 nosy: eric.araujo, pitrou, tarek priority: normal severity: normal status: open title: use packaging in setup.py type: enhancement versions: Python 3.3

[issue14790] use packaging in setup.py

2012-05-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d rather wait for a more stable version, so 3.4. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd rather not wait. If packaging is not able to reliably build Python itself, we shouldn't release Python 3.3 until it is (or withdraw packaging from the standard library altogether). -- nosy: +loewis

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___ ___

[issue14791] setup.py only adds /prefix/lib, not /prefix/lib64

2012-05-12 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: setup.py adds prefix/lib to the list of directories where libraries are looked for, but not prefix/lib64. Patch attached. -- components: Build files: setup_lib64.patch keywords: patch messages: 160478 nosy: dmalcolm, pitrou priority:

[issue14790] use packaging in setup.py

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'd rather not wait. If packaging is not able to reliably build Python itself, we shouldn't release Python 3.3 until it is (or withdraw packaging from the standard library altogether). Indeed, this is exactly the reason I entered this

[issue14785] Add sys._debugmallocstats()

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice idea. I don't see any obvious problem with the patch, except that the test should reuse test.script_helper.assert_python_ok(). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue14786] htmlparser with tag br

2012-05-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The HTML you pasted looks valid to me -- the br element doesn't have an end tag and the HTML 4.01 standard explicitly says Start tag: required, End tag: forbidden [0]. Why do you think this is a problem? [0]:

[issue14790] use packaging in setup.py

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14790 ___

[issue1294959] Problems with /usr/lib64 builds.

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I currently think that sys.libdir should be only basename of libdir (e.g. lib or lib64) to allow to easily use it with something else than sys.prefix. -- ___ Python

[issue14791] setup.py only adds /prefix/lib, not /prefix/lib64

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It would be better to fix issue #1294959 and use os.path.join(sys.prefix, sys.libdir). IIRC some mips architectures need /usr/lib32, while x32 architecture needs /usr/libx32. -- nosy: +Arfrever

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 85824b819bcb by Antoine Pitrou in branch 'default': Issue #14082: shutil.copy2() now copies extended attributes, if possible. http://hg.python.org/cpython/rev/85824b819bcb -- nosy: +python-dev

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Pushed now. Hopefully the buildbots won't moan. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14784] Re-importing _warnings changes warnings.filters

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14784 ___

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-12 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: Here's a patch that makes UTF8_STRING the default type for clipboard_get and selection_get when running in X11. -- keywords: +patch Added file: http://bugs.python.org/file25552/x11-clipboard-utf8.patch

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks like we have our first buildbot failure: == FAIL: test_copyxattr (test.test_shutil.TestShutil) --

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: But if it is a dangling symlink, you want to add it to nondirs while missing files could be skipped, no? You can't skip dangling symlinks if you want to implement rmtree. The normal walk() doesn't too. --

[issue14792] setting a bp on current function, Pdb stops at next line although no bp

2012-05-12 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: Setting a breakpoint on a function from within that functions makes pdb to stop at the following line (where no breakpoint is set) after a continue command. In the following test pdb stops at line 3 where there is no breakpoint. ===

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-05-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2012/5/12 Charles-François Natali rep...@bugs.python.org: Charles-François Natali neolo...@free.fr added the comment: It would be nice if the documentation of fwalk() explained why you would want to use it over walk(). How does the

[issue14672] Windows installer: add desktop shortcut(s)

2012-05-12 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: What's the start menu? hahaha I think that this issue is pointless, it takes 3 clicks to make a desktop shortcut (if have a lot of programs on your computer, maybe 4) any Windows user should know how to do it. --

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8f22e5be18c8 by Stefan Krah in branch 'default': Issue #14779: Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit http://hg.python.org/cpython/rev/8f22e5be18c8 -- nosy: +python-dev

[issue13959] Re-implement parts of imp in pure Python

2012-05-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7bf8ac742d2f by Brett Cannon in branch 'default': Issue #13959: Introduce importlib.find_loader(). http://hg.python.org/cpython/rev/7bf8ac742d2f -- ___ Python tracker

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Apparently the AS/400 had 128 bit pointers and IBM's System i still has them: http://comments.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/651 http://www-01.ibm.com/support/docview.wss?uid=swg27019425 So I'll leave the

[issue13959] Re-implement parts of imp in pure Python

2012-05-12 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have importlib.find_loader() coded up, but getting rid of find_module() is going to be a pain thanks to pkgutil, multiprocessing.forking, modulefinder, and idlelib.EditorWindow. -- ___ Python

[issue14793] broken grammar in Built-in Types doc

2012-05-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- assignee: docs@python components: Documentation files: grammar.diff keywords: patch nosy: docs@python, tshepang priority: normal severity: normal status: open title: broken grammar in Built-in Types doc versions: Python 3.2, Python

[issue13903] New shared-keys dictionary implementation

2012-05-12 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 10e8b97d0fd7 by Antoine Pitrou in branch 'default': Make the reference counting of dictkeys objects participate in refleak hunting http://hg.python.org/cpython/rev/10e8b97d0fd7 --

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hynek's patch (communicated over IRC, committed in 8d85f9920878) seems to have fixed the failure. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082

[issue6696] Profile objects should be documented

2012-05-12 Thread Tom Pinckney
Tom Pinckney thomaspinckn...@gmail.com added the comment: I took a stab at updating the docs based on the current profiler source. See attached patch for a first draft. This is my first doc patch so would appreciate any feedback on style and substance of my changes. I tried to document more

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-12 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14779

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: So I've changed the patch to ignore everything missing except for dangling links (which throw unfortunately the same exception). Just to stress it once more: a fwalk that _ignores_ dangling symlinks is worthless for rmtree. And wasn't rmtree the

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Paul Upchurch
New submission from Paul Upchurch pau...@gmail.com: To reproduce the error: Python 3.2.2 (default, Sep 5 2011, 22:09:30) [GCC 4.6.1] on linux2 Type help, copyright, credits or license for more information. slice(0,9,None).indices(126) Traceback (most recent call last): File

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This seems to have been fixed as of 3.2.3 (as shipped with Ubuntu Precise): Python 3.2.3 (default, Apr 12 2012, 19:08:59) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. slice(0,9,None).indices(126)

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Paul Upchurch
Paul Upchurch pau...@gmail.com added the comment: Sorry. I didn't realize there was a 3.2.3 out. I'll close it as fixed. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14794

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-12 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: To prepare a deeper change, here is a first simple patch. Change how the size of the _PyUnicodeWriter buffer is handled: * overallocate by 100% (instead of 25%) and allocate at least 100 characters * don't overallocate when possible

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file25558/benchmark.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14744 ___

[issue13400] packaging: build command should have options to control byte-compilation

2012-05-12 Thread Julien Courteau
Julien Courteau courteaujul...@gmail.com added the comment: Here is the last proposition of Eric done at the last Montreal Sprint (May 12): --no-byte-compile- No *.pyc and *.pyo --byte-compile=b - Only *.pyc --byte-compile=b,o - *.pyc and *.pyo (with docstrings) --byte-compile=b,oo -

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-05-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I'd like to see this enhancement as well. It seems that not even a TextWrapper is capable of a simple indent (because TextWrapper methods operate on paragraphs rather than lines). -- nosy: +cjerdonek

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This seems to have been fixed as of 3.2.3 (as shipped with Ubuntu Precise) Just a note: you can’t really trust the behavior of Python shipped by Debian or derivative systems because doko (the Debian Python maintainer) backports changes to

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-05-12 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Should the function work for strings with non-Unix line endings? http://docs.python.org/dev/py3k/reference/lexical_analysis.html#physical-lines For example, should indent(abc\r\n, ) return the same string, and should \r\n get indented