[issue14738] Amazingly faster UTF-8 decoding

2012-05-12 Thread STINNER Victor
STINNER Victor 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

[issue14786] htmlparser with tag br

2012-05-12 Thread Yugang LIU
New submission from Yugang LIU : Hi, I parse html source with htmlparser. I catch a tag, br, issue. my code : 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, '', it set htmlparser parameter, strict, to 'False', it can

[issue14787] pkgutil.walk_packages returns extra modules

2012-05-12 Thread Chris Jerdonek
New submission from Chris Jerdonek : 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 it should exclude. Here

[issue7317] Display full tracebacks when an error occurs asynchronously

2012-05-12 Thread alon horev
alon horev added the comment: how does one get his patch reviewed? (it's been 6 months) -- ___ Python tracker ___ ___ Python-bugs-list

[issue14588] PEP 3115 compliant dynamic class creation

2012-05-12 Thread Daniel Urban
Daniel Urban 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 previous patch: types.n

[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 : 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 branch from the repo.

[issue12029] Catching virtual subclasses in except clauses

2012-05-12 Thread George-Cristian Bîrzan
George-Cristian Bîrzan 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 posting here.

[issue14787] pkgutil.walk_packages returns extra modules

2012-05-12 Thread Gennadiy Zlobin
Gennadiy Zlobin 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 : 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 example one bp to pr

[issue14187] add "function annotation" entry to Glossary

2012-05-12 Thread Sandro Tosi
Sandro Tosi added the comment: I agree with Raymond that last paragraph should be removed; +1 for the remaining part -- nosy: +sandro.tosi ___ Python tracker ___ __

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

2012-05-12 Thread Charles-François Natali
Charles-François Natali 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 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)"], provides=["mypkg

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Charles-François Natali
Charles-François Natali 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. -- ___ Python tracker

[issue14790] use packaging in setup.py

2012-05-12 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 added the comment: I’d rather wait for a more stable version, so 3.4. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Martin v. Löwis 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 ___ Python

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: +Python 3.3 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14790] use packaging in setup.py

2012-05-12 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

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

[issue14790] use packaging in setup.py

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou 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 enhancement request.

[issue14785] Add sys._debugmallocstats()

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue14786] htmlparser with tag br

2012-05-12 Thread Ezio Melotti
Ezio Melotti 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]: http://www.w3.org/TR/html401/struct/text.html#edef

[issue14790] use packaging in setup.py

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1294959] Problems with /usr/lib64 builds.

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 tracker

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

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 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 ___ Python

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed now. Hopefully the buildbots won't moan. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue14784] Re-importing _warnings changes warnings.filters

2012-05-12 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-12 Thread Thomas Kluyver
Thomas Kluyver 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 ___ Python tr

[issue14082] shutil doesn't copy extended attributes

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

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack 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. -- ___ Pyth

[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 : 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. === main.py =

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

2012-05-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/5/12 Charles-François Natali : > > Charles-François Natali 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? Okay, but explain what a "s

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

2012-05-12 Thread Daniel Swanson
Daniel Swanson 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 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 ___ Python

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

2012-05-12 Thread Roundup Robot
Roundup Robot 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 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 SIZEOF_VOID_P test as the

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

2012-05-12 Thread Brett Cannon
Brett Cannon 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 tracker

[issue14793] broken grammar in Built-in Types doc

2012-05-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- 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 3.3 Added file: htt

[issue13903] New shared-keys dictionary implementation

2012-05-12 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue14082] shutil doesn't copy extended attributes

2012-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hynek's patch (communicated over IRC, committed in 8d85f9920878) seems to have fixed the failure. -- status: open -> closed ___ Python tracker ___

[issue6696] Profile objects should be documented

2012-05-12 Thread Tom Pinckney
Tom Pinckney 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 of the modules (for examp

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

2012-05-12 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ _

[issue14773] fwalk breaks on dangling symlinks

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack 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 initial reas

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Paul Upchurch
New submission from Paul Upchurch : 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 "", line

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Hynek Schlawack
Hynek Schlawack 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 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 ___ __

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

2012-05-12 Thread STINNER Victor
STINNER Victor 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 It is possible to not ov

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

2012-05-12 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file25558/benchmark.py ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2012-05-12 Thread Julien Courteau
Julien Courteau 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 -> *.pyc and *.pyo (wit

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

2012-05-12 Thread Chris Jerdonek
Chris Jerdonek 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 ___ Python

[issue14794] slice.indices raises OverflowError

2012-05-12 Thread Éric Araujo
Éric Araujo 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 released versions, wh

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

2012-05-12 Thread Chris Jerdonek
Chris Jerdonek 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 by default? -