[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2010-11-01 Thread Dave Malcolm
Dave Malcolm added the comment: I renamed it from sys.breakpoint to sys._breakpoint, since this is CPython-specific -- title: Add Py_BREAKPOINT and sys.breakpoint hooks -> Add Py_BREAKPOINT and sys._breakpoint hooks ___ Python tracker &l

[issue10288] Remove

2010-11-01 Thread Dave Malcolm
New submission from Dave Malcolm : Issue 5793 rationalized all usage of C "character" handling to use "Py_"-prefixed locale-unaware macros, at the "char" level. In particular, this comment was added in two places to Include/bytes_methods.h in r72044: http://svn.p

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-01 Thread Dave Malcolm
Changes by Dave Malcolm : -- title: Remove -> Remove deprecated C "character" handling macros ISUPPER() etc ___ Python tracker <http://bugs.pytho

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks for reviewing. If I'm reading things correctly, the ISUPPER et al macros were added in 2.6 and 3.0, and deprecated in 2.7 and 3.1. Tested with a full run of "-m test.regrtest -uall" here (x86_64 Fedora 13), with both 2-byte and 4-b

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Committed to py3k in r86210 -- ___ Python tracker <http://bugs.python.org/issue10288> ___ ___ Python-bugs-list mailing list Unsub

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: FWIW, I'm working on fixing up the this patch to work against py3k; I'm assuming there's still interest in the AST visitor + specific optimization passes approach. -- ___ Python tracker <http

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Seems to relate to this gdb feature: http://sourceware.org/ml/gdb-patches/2005-05/msg00637.html Barry: is your ~/.gdbinit world writable? I can cook up a patch to ignore such warnings -- ___ Python tracker <h

[issue10331] test_gdb failure when warnings printed out

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Alternatively, it looks like having it owned by another user would do this. For curiosity's sake, what's the output of: ls -al /home/barry/.gdbinit on that buildbot? Given that it's a security warning, should this simply be treated as miscon

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: I've been working on this against the py3k branch. I'm attaching what I've got so far. I foolishly didn't check the tlee-ast-optimize branch, instead using file6850 as a base. Rune Holm/titanstar, I assume you've signed a PSF contri

[issue1346238] A constant folding optimization pass for the AST

2010-11-05 Thread Dave Malcolm
Dave Malcolm added the comment: Another optimization idea: detect local dictionaries that are only ever used in non-mutating ways, and convert them to constants, rather than rebuilding the dict from scratch each time. See e.g. htmlparser.py:adjustSVGAttributes etc within the bm_html5lib

[issue10331] test_gdb failure when warnings printed out

2010-11-08 Thread Dave Malcolm
Dave Malcolm added the comment: Closing "won't fix", since this was misconfiguration; filtering out such warnings might mask a security issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bu

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
New submission from Dave Malcolm : In various places within the generated Python/Python-ast.c, error handling generates a repr() and raises exceptions accordingly. Currently in py3k the generated code uses PyBytes_AS_STRING() on the repr. My understanding is that repr() should be a

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Dave Malcolm added the comment: The attached patch: - extends the ast error-handling selftest with code that triggers this crash (on unpatched code) - fixes Parser/asdl_c.py to generate code using _PyUnicode_AS_STRING instead - contains the generated changes to Python/Python-ast.c FWIW

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker <http://bugs.python.org/issue10391> ___ ___ Pytho

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
New submission from Dave Malcolm : In msg#120541 of issue#1346238 Raymond suggested to "aim high", so here goes... I'm opening this as a separate bug as it's a very different approach to the patches in that bug; adding those on the nosy list for that bug. Sorry in ad

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19584/before.png ___ Python tracker <http://bugs.python.org/issue10399> ___ ___ Python-bugs-list mailin

[issue10399] AST Optimization: inlining of function calls

2010-11-12 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file19585/after.png ___ Python tracker <http://bugs.python.org/issue10399> ___ ___ Python-bugs-list mailin

[issue11376] Solaris/GCC/shared lib problem

2011-03-02 Thread Dave Abrahams
New submission from Dave Abrahams : http://twistedmatrix.com/trac/ticket/4916#comment:2 suggests that maybe there's a bug in distutils. Something in the build process for twisted is deciding that I have Sun CC installed instead of letting pycc, which can handle the job of picking the co

[issue10924] Adding salt and Modular Crypt Format to crypt library.

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

[issue11410] Use GCC visibility attrs in PyAPI_*

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

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

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

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2011-03-15 Thread Dave Malcolm
Changes by Dave Malcolm : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.3 ___ Python tracker <http://bugs.python.or

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

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

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-21 Thread Dave Malcolm
Dave Malcolm added the comment: Various thoughts/nitpicking: - is it possible to indicate with a coding convention (e.g. comments) which parts of the code are intended to be called from a signal handler? It seems worth making this explicit. Or perhaps put it all in one file? - within

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-25 Thread Dave Peck
New submission from Dave Peck : If you use `import` to load a package and subpackage: import package import package.subpackage Then the `package` module instance will contain a `subpackage` attribute: assert "subpackage" in dir(sys.modules['package']), &qu

[issue11706] Build from hg fails with ancient hg version (0.9.3)

2011-03-28 Thread Dave Malcolm
New submission from Dave Malcolm : With hg/mercurial 0.9.3, the build of CPython fails with this error: gcc -pthread -c -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I. -IInclude -I./Include-DPy_BUILD_CORE \ -DHGVERSION="\"`LC_ALL=

[issue11706] Build from hg fails in Modules/getbuildinfo.c when built using ancient hg version (0.9.3)

2011-03-28 Thread Dave Malcolm
Dave Malcolm added the comment: Works OK with mercurial 1.3.1 (specifically, this is on a RHEL5 box, using mercurial-1.3.1-3.el5.i386.rpm from EPEL5) Closing this out, and changing title to help people searching for this. Not sure of the exact version of mercurial that's req

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-28 Thread Dave Peck
Dave Peck added the comment: Definitely could agree with this assessment, but it is surprising given the lack of parallel behavior between 'import' and 'imp'. Note that imp.load_module(subpackage) _does_ modify the parent module's attributes -- but it will never put

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

2011-03-28 Thread Dave Malcolm
Dave Malcolm added the comment: I tried again, and I'm still able to reproduce this bug on a RHEL5 box with cpython --with-pydebug as of a recent checkout (69030:00217100b9e7 as it happens): $ ./python -c "import multiprocessing.managers ; mpp = multiprocessing.Po

[issue10632] multiprocessing generates a fatal error

2011-03-31 Thread Dave Malcolm
Dave Malcolm added the comment: This is indeed looking like it's RHEL-specific. I was about to close it out as a duplicate of issue 10517, but I'm wondering why Brian chose to open it as a separate bug. -- ___ Python trac

[issue4111] Add Systemtap/DTrace probes

2011-04-06 Thread Dave Malcolm
Dave Malcolm added the comment: jcea: I notice that on 2011-02-22 you made these changes: assignee: dmalcolm -> dino.viehland nosy: +dino.viehland versions: +Python 3.3 -Python 3.2 Did you mean to change the assignee, or was this an accid

[issue11830] "import decimal" fails in Turkish locale

2011-04-11 Thread Dave Malcolm
New submission from Dave Malcolm : For Python 2 (here with 2.7.1): $ python -c 'import locale; locale.setlocale(locale.LC_ALL, "tr_TR.UTF-8"); import decimal' Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/decimal.py

[issue11845] Refcounting error in compute_slice_indices in rangeobject.c

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

[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

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-04-21 Thread Dave Opstad
New submission from Dave Opstad : Python 2.7.1 doesn't appear to do the usual implicit call to str() for subclasses of unicode. In the following snippet, I would have expected print myTest and print str(myTest) to behave the same: >>> class Test(unicode): ... de

[issue11900] 2.7.1 unicode subclasses not calling __str__() for print statement

2011-04-21 Thread Dave Opstad
Dave Opstad added the comment: I guess I was confused by the inconsistency with Python 3, which *does* call the __str__ method, even though, again, no coercion is needed: Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help",

[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:

[issue12055] doctest not working on nested functions

2011-05-11 Thread Dave Abrahams
New submission from Dave Abrahams : The attached file demonstrates -- components: Library (Lib) files: bug.py messages: 135770 nosy: dabrahams priority: normal severity: normal status: open title: doctest not working on nested functions versions: Python 2.6, Python 2.7 Added file: http

[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

[issue11278] raw_input() and input() not stripping EOL on win32

2011-02-21 Thread Dave Flogeras
New submission from Dave Flogeras : >From the python prompt, raw_input() (2.7.1) and input (3.2.0) behave as >documented (they strip the trailing EOL chars) However the two line test program: x = raw_input() # or input() in 3.2.x print( repr( x )) And then run from the command line

[issue11278] raw_input() and input() not stripping EOL on win32

2011-02-21 Thread Dave Flogeras
Dave Flogeras added the comment: Ok, I'm actually not sure of what I just said. I might not be running the version I think I am, since windows behaves differently when using a program started with extensions vs. started with python. It might actually be that Python 2.7 is correct, bu

[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:

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-16 Thread Dave Fugate
New submission from Dave Fugate : Sprinkled throughout CPython's test modules are snippets of code such as the following taken from 2.7A3's test_old_mailbox.py (line 141): box = mailbox.UnixMailbox(open(self._path, 'r')) The key thing to observe here is the file being

[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

<    1   2   3   4   5   6   7   >