[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-02-03 Thread Ned Deily
Ned Deily added the comment: After looking into these two test failures a bit more, it looks like both are due to regressions and/or bugs in the ActiveState Tk 8.5.9 Cocoa behavior versus the Apple Cocoa Tk 8.5.7, with which neither test fails. The test_tab_identifiers failure may be a test c

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread H Xu
H Xu added the comment: The result of 'make install SHELL="bash -x"' seems nothing different with the "make install". Could there be any other way to debug? -- ___ Python tracker _

[issue10042] total_ordering stack overflow

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9756] Crash with custom __getattribute__

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a somewhat more straightforward way to reproduce the problem: >>> class X: ...__class__ = int ... [55910 refs] >>> isinstance(X(), int) True [55914 refs] >>> int.bit_length(X()) Assertion failed: (PyLong_Check(v)), function long_bit_length, f

[issue10860] Handle empty port after port delimiter in httplib

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: >From RFC 3986, section 6.2.3 “Scheme-Based Normalization”: The syntax and semantics of URIs vary from scheme to scheme, as described by the defining specification for each scheme. Implementations may use scheme-specific rules, at further processing co

[issue11104] distutils sdist ignores MANIFEST

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Thank you, the bug is clear now. To fix this regression, the first step is to turn your tarball and instructions into a unit test and then fix the logic in the code. If you want to do it, there are some process guidelines at http://wiki.python.org/moin/Distuti

[issue7100] test_xmlrpc: global name 'stop_serving' is not defined

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8688] distutils sdist is too lazy w.r.t. recalculating MANIFEST

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: There is a bug in the new code. See #11104. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2437] Distutils runtime_library_dirs broken on Windows

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue11113] html.entities mapping dicts need updating?

2011-02-03 Thread Brian Jones
New submission from Brian Jones : In Python 3.2b2, html.entities.codepoint2name and name2codepoint only support the 252 HTML entity names defined in the HTML 4 spec from 1997. I'm wondering if there's a reason not to support W3C Recommendation 'XML Entity Definitions for Characters' http://w

[issue9691] sdist includes files that are not in MANIFEST.in

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Can’t reproduce on POSIX (linux2) either. Have you tested with 3.1, 3.2 and distutils2? -- components: +Windows ___ Python tracker ___ __

[issue11112] UDPTimeoutTest derives from SocketTCPTest

2011-02-03 Thread rmtew
New submission from rmtew : File: Lib\test\test_socket.py Code: class UDPTimeoutTest(SocketTCPTest): Problem: This test is intended to test UDP sockets, but derives from SocketTCPTest. Logic dictates this should derive from SocketUDPTest. I've searched for UDP (with differing case, as t

[issue6142] distutils2 clean command: Remove extension modules built in-place

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Discussion summary: - clean is supposed to remove the products of build - build_ext is a subcommand of build - build_ext with the inplace option writes files that are not removed by clean - removing .pyc files is out of scope (they’re products of normal Python beh

[issue9173] logger statement not guarded in shutil._make_tarball

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Duplicate report #11045 was opened recently; I didn’t remember this report and committed a one-line fix without a test. Should we try to get a test into 3.2.0? -- nosy: +georg.brandl, kelseyhightower, rhettinger ___

[issue11045] shutil._make_tarball

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Arg, #9173 had a patch including a test. Not sure which bug is superseded by the other. -- nosy: +fdrake, paulsmith, v_peter ___ Python tracker

[issue11110] Py_DECREF->Py_XDECREF in Module/_sqlite/module.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It may be clearer and match Python coding style better to fix it as follows: Index: Modules/_sqlite/module.c === --- Modules/_sqlite/module.c(revision 88320) +++ Modules/_sqlite/module.c

[issue11111] See "Gmail" on your Google homepage

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Spam. -- nosy: +belopolsky -renben status: open -> closed ___ Python tracker ___ ___ Python-b

[issue11104] distutils sdist ignores MANIFEST

2011-02-03 Thread John Dennis
John Dennis added the comment: $ tar xzf distutils_bug.tar.gz $ cd distutils_bug $ ./setup.py sdist $ ./setup.py sdist running sdist running check warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list) not writing to manually maintained manifest file 'MANIFES

[issue11111] See "Gmail" on your Google homepage

2011-02-03 Thread reynaldo
New submission from reynaldo : Your friend, renbe...@gmail.com, has sent you the following Google Gadget. See "Gmail" on your Google homepage » screenshot -- files: unnamed messages: 127856 nosy: renben priority: normal severity: normal status: open title: See "Gmail" on your Google h

[issue9399] Provide a 'print' action for argparse

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the new patch. It does not apply cleanly to the py3k branch, but that’s very easily corrected. self.file.write(self.message) self.file.write('\n') Could be replaced by print(self.message, file=self.file) print will use the r

[issue1038909] pydoc method documentation lookup enhancement

2011-02-03 Thread Ron Adam
Ron Adam added the comment: I agree. It is close enough to be a duplicate. I suggest closing it. As Ka-Ping noted in the other issue: "There's a link to the base class provided if you want to find out what the base class does." This is easy to do if your viewing pydoc output in a web browser.

[issue8933] Invalid detection of metadata version

2011-02-03 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11110] Py_DECREF->Py_XDECREF in Module/_sqlite/module.c

2011-02-03 Thread Brett Cannon
New submission from Brett Cannon : Pretty straight forward change, but could potentially cause a NULL pointer deref in a rare situation. diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -329,7 +329,7 @@ (p

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Brett Cannon added the comment: OK, done going through the results. Attached is a patch with all of the fixes (only one actual bug which I file an issue for separately; everything else is removing a little bit of dead code here and there). -- Added file: http://bugs.python.org/file206

[issue9168] setuid in smtp.py sheds privileges before binding port

2011-02-03 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: -> patch review type: crash -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue969718] BASECFLAGS are not passed to module build line

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Duplicate report from Stephan Krah: When CFLAGS are set, distutils drops -fno-strict-aliasing (among other flags): $ python2.7 setup.py build ... gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./src -I/usr/loc

[issue969718] BASECFLAGS are not passed to module build line

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Pythons in Debian seem to be immune to this problem, thanks to this patch: http://deb.li/3ku1g (via http://lists.debian.org/debian-python/2010/12/msg5.html). I haven’t had time to learn the intricacies of make variables yet, so I can’t approve a patch. I’m

[issue10847] Distutils drops -fno-strict-aliasing when CFLAGS are set

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. It came up on the debian-python ML recently too, and is actually already reported. Following up on the other report. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> BASECFLAGS are

[issue9189] Improve CFLAGS handling

2011-02-03 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9189] Improve CFLAGS handling

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: I think this report can be closed now. -- status: pending -> open ___ Python tracker ___ ___ Python-bug

[issue11104] distutils sdist ignores MANIFEST

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: This behavior change is actually present in 2.7.1, 3.1.3 and 3.2. I’m concerned that you’ve found a bug with it (thanks for the report), and that we may have to change behavior again. First, could you open another report about comment handling in read_manifest?

[issue9523] Improve dbm modules

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: See #5736 for a patch adding iteration support. If the patch attached to his report supersedes the other one, I’ll close the other bug as duplicate. -- ___ Python tracker __

[issue6045] Add more dict methods to dbm interfaces

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: I believe this is now superseded by #9523, which has less discussion but a patch. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Improve dbm modules ___ Pyt

[issue9523] Improve dbm modules

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Thank you for working on a patch, especially with such comprehensive tests. > The object returned by :func:`.open` supports the same basic functionality as > -dictionaries > +:mod:`collection`.MutableMapping The previous text was okay, I wouldn’t have changed it.

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 7:39 PM, Éric Araujo wrote: .. > Justin: what exactly is a pager that does not support man pages? I may know the answer to this one. A common PAGER setting is "less -rs" which makes less skip whitespace lines and passes through te

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: George, This is not really important enough to get into the 3.2 release, but uninitialized variable bugs tend to be nasty when they bite you, so I'll ask your opinion before bumping the version. -- assignee: -> georg.brandl nosy: +georg.brandl

[issue8637] Add PYDOCPAGER envvar to specify pager for pydoc

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: My man(1) also respects MANPAGER (it’s the one from http://man-db.nongnu.org/), but given the lack of a standard, I agree with you. However, I’m reluctant to add another env variable. There are workarounds, for example using a shell alias like “docpy="PAGER=mos

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: I just added another comment on Rietveld because I thought this was not fixed :) Demo session: $ pydoc3.2 nonlocal # will launch my pager, then print to stdout Related help topics: global, NAMESPACES Kevin Le, would you like to write a failing test to c

[issue11108] Intermittent AttributeError when using time.strptime in threads

2011-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a duplicate of issue7980. One workaround is to call strptime() once in the main thread. -- nosy: +amaury.forgeotdarc resolution: -> duplicate status: open -> closed superseder: -> time.strptime not thread safe _

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't have a working valgrind or purify, but I was able to reproduce the problem using a poor man's solution of adding assert(0xcbcbcbcbcbcbcbcb != tok->line_start); before if (a >= tok->line_start) With that assert the debug buil

[issue2193] Cookie Colon Name Bug

2011-02-03 Thread Carsten Klein
Carsten Klein added the comment: Besides that, BM is wrong in the assumption that *who ever he is* Davi M. Kristol states that the colon is a valid character. There is no such notion in the article. In fact, DMK repeats the definition found in the original RFC on cookies, which also was referr

[issue8637] pydoc should respect MANPAGER over PAGER.

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 7:09 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Is there a standard documenting MANPAGER somewhere? > Not really a standard, but man page for man on my OSX laptop says: """ -P pager Specif

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Brett Cannon added the comment: This is a new set of results with the analyzer_fixes.diff file applied using the latest analyzer. -- Added file: http://bugs.python.org/file20667/checker_254_2011-02-03.tar.xz ___ Python tracker

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Brett Cannon added the comment: Here is a new patch which includes setting the noreturn attribute on Py_FatalError() and Py_Exit() in order to make the null pointer deref analysis results more tractable. -- Added file: http://bugs.python.org/file20666/analyzer_fixes.diff

[issue8637] pydoc should respect MANPAGER over PAGER.

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Is there a standard documenting MANPAGER somewhere? -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker ___

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2011-02-03 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Tkinter versions: +Python 3.3 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2193] Cookie Colon Name Bug

2011-02-03 Thread Carsten Klein
Carsten Klein added the comment: if you'd take a close look at the following lines accepted as part of the patch for stripping out unwanted/non standard cookies over trac: +try: +old_set(key, real_value, coded_value) +except CookieError: +

[issue1613479] pydoc info for a package doesn't list all package contents

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: I’ve just tested that the behavior is now correct. I reproduced the tree structure, set PYTHONPATH, ran “pydoc foo” to get only “one” listed, added the pkgutil call in first/path/foo/__init__.py, re-ran “pydoc foo”, got “one” and “two” listed. I can also impor

[issue9364] some problems with the documentation of pydoc

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: >> In the Python interpreter, do "from pydoc import help" to provide online >> help. Calling help(thing) on a Python object documents the object. > Which is no longer accurate, because the help() function has long ago > become a built-in. To be pedantic, help is n

[issue8887] “pydoc str” works but not “pydoc str.translate”

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Yep, same bug. Possibly related: #410336 (I have to read it again to make sure). -- ___ Python tracker ___ ___

[issue1038909] pydoc method documentation lookup enhancement

2011-02-03 Thread Éric Araujo
Éric Araujo added the comment: Note that similar (duplicate?) #426740 was rejected, so maybe the discussion here is moot. FWIW, I believe using a decorator or a custom metaclass to explicitly inherit a docstring is a good way of achieving what you want. -- nosy: +calvin versions: +Py

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-02-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Build type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7424] segmentation fault in listextend during install

2011-02-03 Thread Stefan Krah
Stefan Krah added the comment: See also: http://gnats.netbsd.org/42627 -- nosy: +H.Xu, haypo, loewis, skrah ___ Python tracker ___ __

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread Stefan Krah
Stefan Krah added the comment: This seems to be a duplicate of #7424. -- nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> segmentation fault in listextend during install ___ Python tracker <

[issue11109] socketserver.ForkingMixIn leaves zombies

2011-02-03 Thread Justin
New submission from Justin : This is the same issue as was reported here: http://bugs.python.org/issue1954. It is still a problem in Python 3.1. I'm writing a server that will be receiving a massive number of requests and I'd like to eliminate the zombie problem. Once I figured out what was go

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread STINNER Victor
STINNER Victor added the comment: Can you try to get a backtrace? Use make install SHELL="bash -x" to display executed shell commands. And then rerun the last command in gdb: after the crash, the "where" command will give you a backtrace. -- nosy: +haypo _

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you debug this, e.g. by inspecting the core file? -- nosy: +loewis ___ Python tracker ___ ___

[issue11108] Intermittent AttributeError when using time.strptime in threads

2011-02-03 Thread Carlos Corbacho
New submission from Carlos Corbacho : time.strptime() intermittently (and I mean _really_ intermittently) throws an AttributeError. Steps to reproduce: Run the attached script (you may have to do this quite a lot of times; in an evening of trying, I could only trigger this bug once...) - this

[issue7111] abort when stderr is closed

2011-02-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Thu, Feb 3, 2011 at 12:18 PM, Antoine Pitrou wrote: > I just took a look at http://pypi.python.org/pypi/python-daemon/, and it > uses dup2() to redirect standard streams, which is far nicer. I'm more worried about the case where a daemon launches python.

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Brett Cannon added the comment: New patch which covers dead assignments and increments. -- Added file: http://bugs.python.org/file20663/clang_analyzer.diff ___ Python tracker ___

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file20660/clang_analyzer.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8914] Run clang's static analyzer

2011-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am looking forward to the rest. This will be a nice cleanup. -- ___ Python tracker ___ ___ Python

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm, ok, but AFAICT, your patch was rejected rather because of the way > it approached the problem, not so much because of the issue itself. I would be rather for the patch myself. The bytecode currently generated for sliced indexing is awfully suboptimal. >

[issue7111] abort when stderr is closed

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think so. One more important use case is when running a Unix > daemon, which has (AFAIK) to close all std handles. I just took a look at http://pypi.python.org/pypi/python-daemon/, and it uses dup2() to redirect standard streams, which is far nicer.

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Georg Brandl
Georg Brandl added the comment: Alex: If the node attributes were not mutable, it would be extremely awkward, not to say inefficient, to mutate an already existing AST as returned by ast.parse(). The AST objects in the _ast module aren't what Python works with internally, anyway. When callin

[issue7111] abort when stderr is closed

2011-02-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: On Thu, Feb 3, 2011 at 11:56 AM, Alexander Belopolsky wrote: > 3rd party extensions.    What is the use case for "python >&-"?    Is > it important enough to justify the risk of accidental data loss? I don't think closing stderr via the command line is an im

[issue7111] abort when stderr is closed

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 03 février 2011 à 19:59 +, Alexander Belopolsky a écrit : > Alexander Belopolsky added the comment: > > > On Thu, Feb 3, 2011 at 2:44 PM, Antoine Pitrou > > wrote: > > .. > >> Do you know of places where we use fd 2 instead of sys.stderr? > > >

[issue7111] abort when stderr is closed

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > We normally don't. One reason is that buffering inside sys.stderr can > > make ordering of output incorrect. There are some places in C code where > > we do "fprintf(stderr, ...)" but that's for specialized debugging > > (disabled in normal builds) or fatal

[issue7111] abort when stderr is closed

2011-02-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7111] abort when stderr is closed

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On Thu, Feb 3, 2011 at 2:44 PM, Antoine Pitrou wrote: > .. >> Do you know of places where we use fd 2 instead of sys.stderr? > > We normally don't. Hmm, grep "fprintf(stderr," returned 122 hits in the py3k branch. Are you sure these are all debug-build

[issue7111] abort when stderr is closed

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 2:44 PM, Antoine Pitrou wrote: .. >> Do you know of places where we use fd 2 instead of sys.stderr? > > We normally don't. One reason is that buffering inside sys.stderr can > make ordering of output incorrect. There are some places

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, ok, but AFAICT, your patch was rejected rather because of the way it approached the problem, not so much because of the issue itself. Plus, the fact that Python 3 requires slices in more places than Python 2 (which had the lower level getslice protocol) m

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7111] abort when stderr is closed

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's an interesting point. > > Do you know of places where we use fd 2 instead of sys.stderr? We normally don't. One reason is that buffering inside sys.stderr can make ordering of output incorrect. There are some places in C code where we do "fprintf(stde

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Similar idea has been rejected in issue2268 because the win was too small to justify the number of changes that had to be made. -- nosy: +belopolsky ___ Python tracker

[issue8914] Run clang's static analyzer

2011-02-03 Thread Brett Cannon
Brett Cannon added the comment: This was just dead assignments. I have not tackled Idempotent operations, dead increments, dead initializations, dead nested assignments, possible deref of NULL, deref of unassigned pointer, division by zero, undefined/garbage results, or undefined alloc of 0 b

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: Erm, issue 10227. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: Created follow-up issue 11107 for caching constant slice objects. -- ___ Python tracker ___ ___ Pyth

[issue11107] Cache constant "slice" instances

2011-02-03 Thread Stefan Behnel
New submission from Stefan Behnel : Follow-up to ticket 10227. The following facts seem to indicate that it would be worth caching constant instances of the slice type, such as in [:] or [:-1]. with cached slice instance: $ ./python -m timeit -s 'l = list(range(100)); s=slice(None)' 'l[s]' 100

[issue7111] abort when stderr is closed

2011-02-03 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: That's an interesting point. Do you know of places where we use fd 2 instead of sys.stderr? -- ___ Python tracker ___ ___

[issue11106] python 2.6.6 and python 2.7.1 cannot be built successfully because of an segment fault on NetBSD-5.1-sparc

2011-02-03 Thread H Xu
New submission from H Xu : Build python 2.6.6 and python 2.7.1 on a NetBSD-5.1-sparc machine. 1. Run './configure'; 2. Run 'make'; 3. Run 'make install'. There will be a problem after run 'make install'. The last few lines of error messages are like the following: Compiling /usr/local/lib/pyth

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/2/3 Alexander Belopolsky : > > Alexander Belopolsky added the comment: > > On Thu, Feb 3, 2011 at 12:08 PM, Benjamin Peterson > wrote: > .. >>> I wonder: Why ast nodes need to be mutable? >> >> So people can change them. > > Well, they are hashable, so

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Feb 3, 2011 at 12:08 PM, Benjamin Peterson wrote: .. >> I wonder: Why ast nodes need to be mutable? > > So people can change them. Well, they are hashable, so this needs to be done carefully. Is this necessary for AST-based optimizations? Does

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/2/3 Alexander Belopolsky : > > Alexander Belopolsky added the comment: > > Looks like a stack overflow caused by an infinite recursion.  I am not sure > if it is possible to add cycle detection code without sacrificing performance > or setting some ar

[issue11105] Compiling evil ast crashes interpreter

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Looks like a stack overflow caused by an infinite recursion. I am not sure if it is possible to add cycle detection code without sacrificing performance or setting some arbitrary limits. I wonder: Why ast nodes need to be mutable? -- nosy: +be

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: A quick test against the py3k stdlib: find -name "*.py" | while read file; do egrep '\[[-0-9]*:[-0-9]*\]' "$file"; done | wc -l This finds 2096 lines in 393 files. -- ___ Python tracker

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: > of course, this will not help for other common cases such as l[x:x+2] ... which is exactly what this slice caching patch is there for. ;-) -- ___ Python tracker

[issue11087] Speeding up the interpreter with a few lines of code

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, things are at best 3-4% faster here (often unchanged). -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue11098] syntax error at end of line in interactive python -u

2011-02-03 Thread R. David Murray
R. David Murray added the comment: Great. Thanks for reporting it, and I'm glad we managed to already have it fixed :) -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue1757072] Zipfile robustness

2011-02-03 Thread Ernst Sjöstrand
Changes by Ernst Sjöstrand : -- nosy: +Ernst.Sjöstrand ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I find it interesting that the base line is way below the other > timings. That makes me think it's actually worth caching constant > slice instances, as CPython already does for tuples. Indeed. I have never touched it, but I suppose it needs an upgrade of th

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: Here's another base line test: slicing an empty list patched: $ ./python -m timeit -s 'l = []' 'l[:]' 1000 loops, best of 3: 0.0847 usec per loop original: $ ./python -m timeit -s 'l = []' 'l[:]' 1000 loops, best of 3: 0.0977 usec per loop That's abo

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-03 Thread Ned Deily
Changes by Ned Deily : -- keywords: -after moratorium, buildbot, easy, gsoc, patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10227] Improve performance of MemoryView slicing

2011-02-03 Thread Stefan Behnel
Stefan Behnel added the comment: Here are some real micro benchmarks (note that the pybench benchmarks actually do lots of other stuff besides slicing): base line: $ ./python -m timeit -s 'l = list(range(100)); s=slice(None)' 'l[s]' 100 loops, best of 3: 0.464 usec per loop $ ./python -m

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-03 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file20662/issue11079_extras_py3k.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue11079] Make OS X entry in Applications like that in Windows

2011-02-03 Thread Ned Deily
Ned Deily added the comment: After discussions with Raymond, I now agree that it would be better to not copy the Tools into the Applications/Python 3.x directory since everything else there is of the double-clickable nature, i.e. aimed at the user more comfortable with a GUI interface. Since

[issue11098] syntax error at end of line in interactive python -u

2011-02-03 Thread Alexey Luchko
Alexey Luchko added the comment: I reported the issue just because I didn't find it is already known. I don't think it is worth backporting. -- ___ Python tracker ___ __

[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2011-02-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: The docs should be updated. This has been noted in msg54949 and http://www.enricozini.org/2009/debian/python-pipes/ Perhaps this example will make it clear: import subprocess p1 = subprocess.Popen(["yes"], stdout=subprocess.PIPE) p2 = subprocess.Popen(["head"