[issue11846] Implementation question for (-5) - 256 caching, and doc update for c-api/int.html

2011-04-14 Thread Dave Malcolm
Dave Malcolm added the comment: >From IRC discussion, how about something like: The current implementation consolidates integers in the range -5 to 256 (inclusive) into singleton PyIntObject instances, whereas other integer values have unique PyIntObject instances created for them. T

[issue11846] Implementation question for (-5) - 256 caching, and doc update for c-api/int.html

2011-04-14 Thread Dave Malcolm
Dave Malcolm added the comment: Perhaps should also note that this is done for the purposes of optimization (both speed and memory). -- ___ Python tracker <http://bugs.python.org/issue11

[issue11846] Implementation question for (-5) - 256 caching, and doc update for c-api/int.html

2011-04-14 Thread Dave Malcolm
Dave Malcolm added the comment: Interpreter idea: " is " could trigger a compatibility warning, perhaps, to help people avoid relying on CPython quirks -- ___ Python tracker <http://bugs.python.o

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-25 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue11849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-11-17 Thread Dave Malcolm
Dave Malcolm added the comment: Fix committed to py3k as r86499 -- ___ Python tracker <http://bugs.python.org/issue9518> ___ ___ Python-bugs-list mailin

[issue10450] Fix markup in Misc/NEWS

2010-11-18 Thread Dave Malcolm
Dave Malcolm added the comment: Perhaps "make patchcheck" (a.k.a Tools/scripts/patchcheck.py ) should verify the markup of Misc/NEWS? Not sure what the easiest way to do that is, though, without bringing in lots of deps. -- nosy:

[issue1353344] python.desktop

2010-11-18 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue1353344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Third, for that Graphviz output, was anything special required? If so, > I would toss the code into Tools for others to benefit from. It's merely the "to_dot" function from Lib/__optimizer__.py (which turns an AST into .dot sour

[issue10399] AST Optimization: inlining of function calls

2010-11-19 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry again for another epic-length comment... I'm attaching the latest work-in-progress on this. The code is still fairly messy (embarrasingly so in places), but it's better to have it out in public in this tracker than stuck on my hard drive. Sym

[issue10399] AST Optimization: inlining of function calls

2010-11-20 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reading through this. > There are a couple places you mention not doing the optimization when > specific functions are used (e.g. dir, globals, locals), how exactly do you > verify that, given those functions could be bound to any name? I d

[issue10507] Check well-formedness of reST markup within "make patchcheck"

2010-11-22 Thread Dave Malcolm
New submission from Dave Malcolm : Misc/NEWS needs to be valid reST. Issue 10450 identified an issue where it wasn't. "make patchcheck" potentially could check the markup of that file, and, potentially all the other places in the source tree that are supposed to be valid r

[issue10450] Fix markup in Misc/NEWS

2010-11-22 Thread Dave Malcolm
Dave Malcolm added the comment: Opened as issue 10507 -- ___ Python tracker <http://bugs.python.org/issue10450> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-11-22 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue9263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-11-22 Thread Dave Malcolm
Dave Malcolm added the comment: Attaching a simplified version of the patch; I got rid of the callbacks. Still doesn't have test cases. I suspect that the use of __STRING and __PRETTY_FUNCTION__ may be compatibility issues. I believe that __FILE__ and __LINE__ and standard C t

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: > If this a work in progress, you could create an SVN branch in the > sandbox (you can then use svnmerge to avoid diverging too much from > mainline) or an hg repo. Good idea; I've created branch "dmalcolm-ast-optimization-branch" (of py3

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: py3k-ast-pyoptimize-2010-11-19-006.patch fixed up and committed to the branch as r86715; I'll work on that branch for the time being. -- ___ Python tracker <http://bugs.python.org/is

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue10517> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Dave Malcolm added the comment: I'm able to reliably reproduce this on a RHEL 5 box (i386 in this case). All of the "ProcessPool*" unittest subclasses within Lib/test/test_concurrent_futures.py exhibit this hang, each printing out just the name of the first test (so presumabl

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Dave Malcolm added the comment: Minimal reproducer: $ ./python -c "from concurrent.futures import * ; e = ProcessPoolExecutor() ; e.submit(pow, 2, 5)" Fatal Python error: Invalid thread state for this thread -- ___ Python trac

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Dave Malcolm added the comment: Seems to be an issue within (or triggered by) multiprocessing (test_threads and test_threading pass OK, fwiw): $ ./python -m test.test_multiprocessing Fatal Python error: Invalid thread state for this thread Traceback (most recent call last): File "

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Dave Malcolm added the comment: By strategically adding print() and input() calls, I was able to isolate the error to this line in test_multiprocessing.py's test_main: ManagerMixin.pool = ManagerMixin.manager.Pool(4) specifically, to the construction: ManagerMixin.manager.P

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-24 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, I was able to do an almost full run of regrtest on this box with: -x test_multiprocessing test_concurrent_futures Other than those two, all tests pass. So _something_ is going wrong w.r.t. threads, though I'm not sure what at this

[issue10585] 2.6 maintenance branch erroneously uses unittest.TestCase.assertListEqual (added in 2.7)

2010-11-29 Thread Dave Malcolm
New submission from Dave Malcolm : 2.6.6 has an erronenous use of a unittest method that was added in 2.7, but it's only seen when running as root. More specificially, with this guard: if posix.getuid() == 0 and hasattr(posix, 'getgroups') and sys.platform != 'darwi

[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm
New submission from Dave Malcolm : (was misspelled when issue 5650 was fixed, FWIW) -- assignee: orsenthil components: Library (Lib) files: py3k-fix-jwz-surname.patch keywords: patch messages: 123079 nosy: dmalcolm, orsenthil priority: low severity: normal status: open title

[issue10606] Misspelling of Jamie Zawinski's surname in urllib.parse docstring

2010-12-02 Thread Dave Malcolm
Dave Malcolm added the comment: Fixed in py3k in r86932 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2010-12-08 Thread Dave Malcolm
Dave Malcolm added the comment: This is very interesting work - thank you! Sorry for not commenting earlier (very busy), so here are my thoughts so far. The baseline for the diff appears to be against the py3k branch, in that it adds back in classes from 2.*: PyIntObject. There's curr

[issue1705520] API for excluding methods from unittest stack traces

2010-12-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue1705520> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9738] Document the encoding of functions bytes arguments of the C API

2010-12-08 Thread Dave Malcolm
Dave Malcolm added the comment: A (probably crazy) idea that just occurred to me: typedef char utf8_bytes; typedef char iso8859_1_bytes; typedef char fsenc_bytes; then specify the encoding in the type signature of the API e.g.: - int PyRun_SimpleFile(FILE *fp, const char *filename) + int

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-08 Thread Dave Malcolm
Dave Malcolm added the comment: What version of the compiler was this with? (For reference, I see that you also filed this downstream in Fedora's bug tracker as: https://bugzilla.redhat.com/show_bug.cgi?id=661510 ) -- nosy: +dmalcolm ___ P

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-12-08 Thread Dave Malcolm
Dave Malcolm added the comment: Forgot to close this one out -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

2010-12-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- stage: patch review -> committed/rejected ___ Python tracker <http://bugs.python.org/issue9518> ___ ___ Python-bugs-list mai

[issue10399] AST Optimization: inlining of function calls

2010-12-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- assignee: -> dmalcolm ___ Python tracker <http://bugs.python.org/issue10399> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-08 Thread Dave Malcolm
Dave Malcolm added the comment: One of RH's gcc gurus told me in IRC that: __ppc__ is not a standard powerpc*-linux macro __PPC__ or __powerpc__ is -- ___ Python tracker <http://bugs.python.org/is

[issue10681] PySlice_GetIndices() signature changed

2010-12-30 Thread Dave Malcolm
Dave Malcolm added the comment: For reference, this seems to affect SWIG, specifically, I'm seeing build failures using: /usr/share/swig/2.0.1/python/pycontainer.swg from swig-2.0.1 See downstream build failure report for znc, which uses swig to generate python 3 bindings:

[issue9671] test_executable_without_cwd fails: AssertionError: 1 != 47

2011-01-03 Thread Dave Malcolm
Dave Malcolm added the comment: Note that for that test case to be run, it must be on an installed python: @unittest.skipIf(sysconfig.is_python_build(), "need an installed Python. See #7774") Am testing the 2.7 branch now on an x86_64 Fed

[issue9671] test_executable_without_cwd fails: AssertionError: 1 != 47

2011-01-03 Thread Dave Malcolm
Dave Malcolm added the comment: That test works for me on this x86_64 Fedora 13 box (using latest 2.7 code from SVN, built and installed to a test prefix): [da...@surprise bin]$ ./python -m test.regrtest -v test_subprocess == CPython 2.7.1+ (release27-maint:87724, Jan 3 2011, 19:39:26) [GCC

[issue9671] test_executable_without_cwd fails: AssertionError: 1 != 47

2011-01-03 Thread Dave Malcolm
Dave Malcolm added the comment: I should note that Fedora Core 4 reached its "End of Life" at August 2006: http://fedoraproject.org/wiki/End_of_life Do you see this with a more up-to-date version of Fedora? -- ___ Python trac

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-05 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, I just added this patch downstream to Fedora's python 3 builds: http://pkgs.fedoraproject.org/gitweb/?p=python3.git;a=blob_plain;f=python-3.2b2-fix-ppc-debug-build.patch;hb=5659c63442be2e91eb42e60284d7a9a9ab0

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-06 Thread Dave Malcolm
Dave Malcolm added the comment: Adrian verified in the downstream bug tracker that this fixed the build for him (and the logs show it successfully ran the test suite), so I committed my patch to py3k as r87796. -- ___ Python tracker <h

[issue10655] Wrong powerpc define in Python/ceval.c

2011-01-06 Thread Dave Malcolm
Dave Malcolm added the comment: Merged back to 3.1 as r87800 and to 2.7-maint as r87801 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2011-01-10 Thread Dave Malcolm
Dave Malcolm added the comment: Attaching updated version of the patch. I've added a selftest which (in a sacrificial subprocess) abuses ctypes to break an ob_refcnt, and then triggers a garbage collection. I also changed the printing to stderr to directly use fprintf and fflush to e

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2011-01-10 Thread Dave Malcolm
Dave Malcolm added the comment: As above, but I added an extra call to fflush in case the call to _PyObject_Dump leads to a segfault. -- Added file: http://bugs.python.org/file20344/py3k-objdump-on-gcmodule-assertions-2011-01-10-002.patch

[issue10963] "subprocess" can raise OSError (EPIPE) when communicating with short-lived processes

2011-01-20 Thread Dave Malcolm
New submission from Dave Malcolm : If we start a short-lived process which finishes before we begin communicating with it (e.g. by crashing), we can receive a SIGPIPE due to the receiving process no longer existing. This becomes an EPIPE, which becomes an: OSError: [Errno 32] Broken pipe

[issue11154] Alternate name for __pycache__

2011-02-09 Thread Dave Malcolm
Dave Malcolm added the comment: On Wed, 2011-02-09 at 16:41 +, Barry A. Warsaw wrote: > IIRC we thought about something like this during the PEP discussions and > Guido nixed it. FWIW, the closest I could find was this mail: http://www.mail-archive.com/python-dev@python.org/ms

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-09 Thread Dave Malcolm
Changes by Dave Malcolm : -- title: test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread" -> test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: I spent some time bisecting the SVN history in the py3k branch, and believe that r84914 is the commit that introduced this issue. Details: Trying on 4-core i386 RHEL 5 box $ svn up -r REV $ make clean ; make (configured --with-pydebug) Reproducer

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +krisvale ___ Python tracker <http://bugs.python.org/issue10517> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: r84914 was the implementation of issue 9786 (Native TLS support for pthreads) -- ___ Python tracker <http://bugs.python.org/issue10

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: This appears to be happening in a child process when the parent process is running: Lib/multiprocessing/util.py, line 255, in _exit_function () Liberally adding printf() and getpid() calls in various places, seems to always happen when parent process is

[issue11197] information leakage with SimpleHTTPServer

2011-02-11 Thread Dave Malcolm
Dave Malcolm added the comment: CVE-2011-0705 -- ___ Python tracker <http://bugs.python.org/issue11197> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2011-02-14 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, this regressed in 2.6.6 relative to 2.6.5, due to r79646 adding the T_STRING_INPLACE test code to the 2.6 branch. Note to self: https://bugzilla.redhat.com/show_bug.cgi?id=677392 -- ___ Python tracker <h

[issue775964] fix test_grp failing on RedHat 6.2

2010-01-17 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue775964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7737] Patch all tests to change assertTrue(a [not] in b [, c]) -> assert[Not]In(a, b [, c])

2010-01-18 Thread Dave Malcolm
New submission from Dave Malcolm : In many places throughout the existing test suite, there are assertions of the form: self.assertTrue(chips in menu) and of the form: self.assertTrue(cheese not in shop) If these fail, the error message will merely tell you that the condition failed

[issue7745] Remove "isatty" check when setting sys.std[in|out|err] encoding to that of locale

2010-01-20 Thread Dave Malcolm
New submission from Dave Malcolm : Currently sys.std[in|out|err] are set to the locale encoding but only if they are directly connected to a tty (and PYTHONIOENCODING is not set in the environment to override things). The conditionality on "isatty" leads to lots of unexpected ch

[issue7745] Remove "isatty" check when setting sys.std[in|out|err] encoding to that of locale

2010-01-21 Thread Dave Malcolm
Changes by Dave Malcolm : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7745> ___ ___ Python-bugs-list mailing list Unsubscri

[issue1475523] patch fixing #1448060 (gettext.py bug)

2010-01-29 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue1475523> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-01-29 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue5504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7861] 2to3: "import foo" -> "from . import foo"

2010-02-05 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue7861> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Dave Malcolm
New submission from Dave Malcolm : http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure" Here's an attempt at answering that question; I hope the following is appropriate and factually correct: How to regenerate the "configure&q

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-02-22 Thread Dave Malcolm
Dave Malcolm added the comment: Eric Smith: > Isn't it true that after regenerating configure that you need to check > it back in? Or is that so obvious to everyone except me that it's not > worth mentioning? FWIW the above point wasn't obvious to me; if that's t

[issue4111] Add Systemtap/DTrace probes

2010-02-26 Thread Dave Malcolm
Dave Malcolm added the comment: At Red Hat we've done some work on this feature. I'm sorry for not updating this issue, I was swamped with tasks both pre-PyCon and during the event; I did show the following to various folks at PyCon; I attempted to find Skip at PyCon but was un

[issue4111] Add Systemtap/DTrace probes

2010-02-26 Thread Dave Malcolm
Dave Malcolm added the comment: Attached is the patch I'm currently applying in Fedora 13 to Python 3. The patch is actually against the 3.1.1 tarball, rather than SVN; sorry (swamped with post-pycon tasks here), as that's what I've been testing this work against. The pa

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Dave Malcolm
New submission from Dave Malcolm : gdb 7 can be extended with Python code, allowing the writing of domain-specific pretty-printers and commands. I've been working on gdb 7 hooks to make it easier to debug python itself, as mentioned here: https://fedoraproject.org/wiki/Fea

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Dave Malcolm
Changes by Dave Malcolm : -- keywords: +patch Added file: http://bugs.python.org/file16403/add-gdb7-python-hooks-to-trunk.patch ___ Python tracker <http://bugs.python.org/issue8

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-05 Thread Dave Malcolm
Dave Malcolm added the comment: (I faxed in my contributor agreement to the PSF on 2010-03-03) -- ___ Python tracker <http://bugs.python.org/issue8032> ___ ___

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-08 Thread Dave Malcolm
Dave Malcolm added the comment: Martin: thanks for reviewing this. Re msg100537: sorry about the inauspicious start. I've added some bulletproofing for the case you discovered, and added two new unit tests. Re msg100538: OK. I've removed my name and the copyright notice in

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-08 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file16497/diff-of-gdb7-hooks-v2-relative-to-v1.diff ___ Python tracker <http://bugs.python.org/issue8

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Dave Malcolm
Dave Malcolm added the comment: Perhaps this is an issue in a 3rd-party extension module? (Given that you're running Django, do you have a 3rd-party database connection module?; the last message in the log is "Validating models", does that require Django to go to the db to

[issue8119] Minor comment error in configure.in ("malloc support" appears twice)

2010-03-11 Thread Dave Malcolm
New submission from Dave Malcolm : A minor nit: configure.in has this comment twice: "Check for Python-specific malloc support" c.f.: # Check for Python-specific malloc support AC_MSG_CHECKING(for --with-tsc) (snip) # Check for Python-specific malloc support AC_MSG_CHECKING(

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-11 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reviewing the patch. I've changed the pretty-printing of NULL pointers to "0x0" as suggested, and I've updated frame printing. Frames are now printed like this (gdb) p f $1 = Frame 0x827e544, for file /home/david/coding/python-

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-11 Thread Dave Malcolm
Dave Malcolm added the comment: Attaching diff from v2 to v3 -- Added file: http://bugs.python.org/file16526/diff-of-gdb7-hooks-v3-relative-to-v2.diff ___ Python tracker <http://bugs.python.org/issue8

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-03-12 Thread Dave Malcolm
Dave Malcolm added the comment: > Nitpick: Various occurrences of 2.6.1 in the above should probably be 2.61. Good catch - I think my brain or fingers are too used to Python's versioning scheme, rather than autoconf's. Here's a revised set of commands, hopefully fixing

[issue8140] extend compileall to compile single files

2010-03-15 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue8140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-25 Thread Dave Malcolm
Dave Malcolm added the comment: I'm attaching a new version of the patch (v4), against svn trunk (r79422) Changes since v3: * added support for PySetObject (set/frozenset) * added support for PyBaseExceptionObject (BaseException) * fixed a signed vs unsigned char issue that l

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-25 Thread Dave Malcolm
Dave Malcolm added the comment: (adding diff from v3 to v4, for ease of review) -- Added file: http://bugs.python.org/file16657/diff-of-gdb7-hooks-v4-relative-to-v3.diff ___ Python tracker <http://bugs.python.org/issue8

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-31 Thread Dave Malcolm
Dave Malcolm added the comment: I'm attaching a new version of the patch (v5), against svn trunk (r79517) I've been testing these hooks by using "gdb attach" to attach to real-world python programs. When doing this with earlier versions of the hooks, gdb would pause fo

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-03-31 Thread Dave Malcolm
Dave Malcolm added the comment: Adding diff from v4 to v5, for ease of review. For my reference, md5sum of v5's hooks: d3e039bb1279e71e847cc7ade10d3272 python-gdb.py -- Added file: http://bugs.python.org/file16716/diff-of-gdb7-hooks-v5-relative-to-v4

[issue8279] python-gdb PyListTests fail

2010-04-01 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reviewing the gdb work. I was mistakenly testing using: make ; ./python Lib/test/test_gdb.py which led to path assumptions in the code. I'm now testing with: make ; ./python Lib/test/regrtest.py -v test_gdb I'm attaching a patch

[issue8279] python-gdb PyListTests fail

2010-04-01 Thread Dave Malcolm
Changes by Dave Malcolm : -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue8279> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8281] test_gdb_sample fails

2010-04-01 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry about that. "test_gdb_sample.py" is merely a sample script for use by "test_gdb.py" (see issue 8032); it's not intended to do anything useful by itself (though it does need a "print" invocation, since test_gdb.py uses a

[issue8281] test_gdb_sample fails

2010-04-01 Thread Dave Malcolm
Dave Malcolm added the comment: "gdb_sample.py" as a name works for me. I don't have commit rights to SVN so I can't perform the rename myself. (Note that due to issue 8279 the file isn't actually used at the moment by test_gdb.py so it should be safe to rename. I

[issue8279] python-gdb PyListTests fail

2010-04-01 Thread Dave Malcolm
Dave Malcolm added the comment: I'm attaching a revised version of the patch; this is as before, but takes account of the rename of the sample file from "test_gdb_sample.py" to "gdb_sample.py" in r79557. -- Added file: http://bugs.python.org/file16727/fix

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-02 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry about this. I believe this is the expansion of these fragments from the Makefile.pre.in (indenting for clarity): gdbhooks: $(BUILDPYTHON)-gdb.py $(BUILDPYTHON)-gdb.py: Tools/gdb/libpython.py $(INSTALL_SCRIPT) $< $(BUILDPYT

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-04-02 Thread Dave Malcolm
Dave Malcolm added the comment: > A nitpick: on OS X, the gdb script ends up being called: > > python.exe-gdb.py > > Is this intentional? If it is, then I'll add this filename to the > svn:ignore property. (And also to make distclean, I guess. Is python- > gdb

[issue8279] python-gdb PyListTests fail

2010-04-03 Thread Dave Malcolm
Dave Malcolm added the comment: It looks like all of the failures were due to gdb.Frame not having a "function" method. I did some digging, and it appears that this attribute may not yet be in the upstream version of gdb. The gdb/python integration was largely implemented by col

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-04 Thread Dave Malcolm
Dave Malcolm added the comment: I believe $(INSTALL_SCRIPT) was changed to $(INSTALL_DATA) in r79716 (see http://bugs.python.org/issue8032#msg102288 ) Attaching refreshed version of the patch. -- Added file: http://bugs.python.org/file16760/introduce-var-for-gdb-hooks-002.patch

[issue8316] test_gdb is susceptible to tty width settings

2010-04-05 Thread Dave Malcolm
New submission from Dave Malcolm : test_gdb's get_gdb_repr carves up a gdb backtrace to try to extract how gdb representated the data. When connected to a tty, gdb will insert additional newlines and spaces based on the width of the tty (internally it has a wrap_here() function to do

[issue8330] Failures seen in test_gdb on buildbots

2010-04-06 Thread Dave Malcolm
New submission from Dave Malcolm : http://www.python.org/dev/buildbot/trunk/builders/alpha%20Debian%20trunk/builds/52/steps/test/logs/stdio shows some failures in test_gdb: == FAIL: test_corrupt_ob_type

[issue8330] Failures seen in test_gdb on buildbots

2010-04-07 Thread Dave Malcolm
Dave Malcolm added the comment: There's also a deprecation warning in that log: /home/doko/buildarea/trunk.klose-debian-alpha/build/Lib/test/test_gdb.py:229: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 if e.message != 'unichr() arg not in ran

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Dave Malcolm
Dave Malcolm added the comment: ( #8330 has a patch for a DeprecationWarning ) -- ___ Python tracker <http://bugs.python.org/issue8337> ___ ___ Python-bugs-list m

[issue8330] Failures seen in test_gdb on buildbots

2010-04-07 Thread Dave Malcolm
Dave Malcolm added the comment: Both of the failing tests use "set" inside gdb to try to corrupt the memory of the inferior process. I believe the issue here is that reading through 0xDEADBEEF within gdb on this machine isn't generating a RuntimeError; perhaps that _is_ a v

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Dave Malcolm
Dave Malcolm added the comment: ( #8330 has a patch which may fix this ) -- ___ Python tracker <http://bugs.python.org/issue8337> ___ ___ Python-bugs-list mailin

[issue8330] Failures seen in test_gdb on buildbots

2010-04-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue8330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-12 Thread Dave Malcolm
New submission from Dave Malcolm : I'm attaching a patch for the py3k branch to port the gdb hooks to Python 3. The libpython.py code installed to python-gdb.py "knows" about the internal details of the Python within the tree. This patch makes the necessary changes to th

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-12 Thread Dave Malcolm
Dave Malcolm added the comment: > Should we call it libpython3.py, in order to distinguish it from the 2.x > version? We could; it gets copied to python-gdb.py by the Makefile though. The code is intended to track the low-level implementation details of the tree that its in, so I&#x

[issue8279] python-gdb PyListTests fail

2010-04-15 Thread Dave Malcolm
Dave Malcolm added the comment: New version of patch attached All tests continue to pass for me. I believe this will fix the "py-list", "py-locals", "py-print" commands and their respective tests on Ubuntu; I expect py-up/py-down to still fail due to m

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-17 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker <http://bugs.python.org/issue7332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: If I'm reading this bug correctly, there are two issues here: (A) that we shouldn't use gdb.Frame.function.name(), and should instead use gdb.Frame.name(). I believe this is a duplicate of issue 8279, and that this was fixed in trunk in r80156.

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: Assigning to loewis for review -- assignee: dmalcolm -> loewis stage: -> patch review ___ Python tracker <http://bugs.python.org/

[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-19 Thread Dave Malcolm
Dave Malcolm added the comment: > Attached patch is based on add-conditions-for-gdb.Frame.select-to- > trunk.patch and fix described problems. Using test_gdb-2.patch, test_gdb > pass without any error on my Debian Sid (gdb 7.1). The patch conditionalizes each test within StackNaviga

<    1   2   3   4   5   >