[issue19127] duplicate test name in Lib/xml/dom/minidom.py

2013-09-29 Thread Xavier de Gaye
New submission from Xavier de Gaye: Duplicate method names: ./Lib/xml/dom/minidom.py:379 Attr._get_name -- components: Library (Lib) messages: 198584 nosy: xdegaye priority: normal severity: normal status: open title: duplicate test name in Lib/xml/dom/minidom.py type: behavior versions

[issue19128] duplicate test name in Mac/Tools/Doc/setup.py

2013-09-29 Thread Xavier de Gaye
New submission from Xavier de Gaye: Duplicate method names: ./Mac/Tools/Doc/setup.py:123 DocBuild.makeHelpIndex -- components: Library (Lib) messages: 198585 nosy: hynek, ned.deily, ronaldoussoren, xdegaye priority: normal severity: normal status: open title: duplicate test name in Mac

[issue16079] list duplicate test names with patchcheck

2013-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: The following issues have been entered for all the above duplicate names found by duplicate_code_names_2.py: issue 19112, issue 19113, issue 19114, issue 19115, issue 19116, issue 19117, issue 19118, issue 19119, issue 19122, issue 19123, issue 19125, issue

[issue19123] duplicate test name in Lib/test/test_regrtest.py

2013-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: After the last changeset 39f9adc8ad5b there are still 3 methods named test_findleaks. The proposed patch was also missing one of them. -- ___ Python tracker <http://bugs.python.org/issue19

[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is a backward compatibility issue with changeset d5ef330bac50 that enables tab-completion in the interactive interpreter by default. When a user is not aware of this new feature and has been implementing up to now her/his PYTHONSTARTUP file with the first

[issue5845] rlcompleter should be enabled automatically

2013-09-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch fixes the problem on my setup. A very minor glitch: after manually emptying or removing the PYTHONSTARTUP history file, the history is loaded with the content of ~/.python_history on the next session

[issue19119] duplicate test name in Lib/test/test_heapq.py

2013-10-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: It was proposed, in issue 16056, to enhance `make patchcheck` with the detection of duplicate code names. This triggered the creation of issue 16079. The script named duplicate_code_names_2.py, in issue 16079, listed about 20 duplicate names among all the non

[issue19417] Add tests for bdb (previously not tested)

2013-11-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: A less invasive alternative could be to instrument Bdb with a subclass that processes send-expect sequences. This is what does http://code.google.com/p/pdb-clone/source/browse/Lib/test/test_bdb.py This code could be adapted to run with python bdb

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-18 Thread Xavier de Gaye
Xavier de Gaye added the comment: A description of what goes wrong when stepping out of the generator would be helpful. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a consequence of the problem mentioned in msg 177059 above. New patch 'issue16596_nostate_3.diff' fixes both problems by having the interpreter issue an exception debug event when processing a StopIteration in target FOR_ITER: * The same de

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that the only difference between this patch and the previous one is in Python/ceval.c. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2013-11-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hopefully issue16596_nostate_4.diff should fix this. The patch issues a StopIteration debug event in ceval.c (similar to the change made in the previous patch for the for loop), when the subgenerator is exhausted. This debug event is printed as 'Int

[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2014-07-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Sorry Xavier for your patches, but it's time to focus our efforts on a single > module and asyncio has a much better design to handle such use cases. No problem. Thanks for taking your time to review patches made on this

[issue21929] Rounding properly

2014-07-07 Thread Jeroen de Jong
New submission from Jeroen de Jong: I ma trying to find a way to round correctly. So far I get unexpected results for some values. -- components: Windows files: Rounding.py messages: 222444 nosy: jeroen1225 priority: normal severity: normal status: open title: Rounding properly type

[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Python 3.5 is still crashing with this test: $ python jump.py > jump.py(7)() -> for i in gen(): (Pdb) break 3 Breakpoint 1 at jump.py:3 (Pdb) continue > jump.py(3)gen() -> yield i (Pdb) step --Return-- > jump.py(3)gen()->0 -> yield i (Pd

[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: The Py_XDECREF statement in gen_iternext() at Objects/genobject.c is not needed since val is NULL (may be optimized out by the compiler). Actually, the whole function could be written as: return gen_send_ex(gen, NULL, 0); -- components

[issue17277] incorrect line numbers in backtrace after removing a trace function

2014-07-09 Thread Xavier de Gaye
Xavier de Gaye added the comment: The previous patch changed a field in the PyThreadState structure. This new patch is simpler and does not prevent to change f_lineno when it is not the attribute of the frame being traced. The new patch fixes also issue 7238, issue 16482 and issue 17697

[issue21997] Pdb.set_trace debugging does not end correctly in IDLE

2014-07-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Two issues here: a) in IDLE, on a 'return' debug event in the main module, the step command does not end the debugging session. b) in IDLE, BdbQuit is raised by the quit command when the debugger is started with pdb.set_trace(). I do not know I

[issue21997] Pdb.set_trace debugging does not end correctly

2014-07-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: > # This returns to a '>>>' prompt, At the above line in Terry test, the debugger is not terminated and on linux when I type at this point I get: >>> --Call-- > /home/xavier/etc/.pystartup(21)save_history() -> def save_h

[issue22017] Bad reference counting in the _warnings module

2014-07-20 Thread Xavier de Gaye
New submission from Xavier de Gaye: $ ./python Python 2.7.8+ (2.7:5563f895b215, Jul 20 2014, 18:10:28) [GCC 4.9.0 20140521 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import warnings >>

[issue22017] Bad reference counting in the _warnings module

2014-07-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The same kind of fix should also be applied to '_once_registry' and > '_filters'. Oops, no they are correctly refcounted. -- ___ Python tracker <http

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-22 Thread Vitor de Lima
New submission from Vitor de Lima: The atomic operations listed in the pyatomic.h header file were implemented only for the x86 architecture, this patch uses the atomic bultins available in GCC >= 4.7 to implement such operations, allowing it to work properly in other platfo

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-29 Thread Vitor de Lima
Vitor de Lima added the comment: Implemented a new version of the patch using either gcc builtins or the stdatomic.h header (this is detected by the configure script). -- Added file: http://bugs.python.org/file36151/atomicv2.patch ___ Python tracker

[issue20746] test_pdb fails in refleak mode

2014-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is because breakpoints number are class attributes. With the following change, the "./python -m test test_pdb test_pdb" is ok: $ hg diff diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py --- a/Lib/test/test_pdb.py +++ b/Lib/test/t

[issue20746] test_pdb fails in refleak mode

2014-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: Sorry, I posted to the wrong issue, please ignore my previous message. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20766] reference leaks in pdb

2014-07-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file36163/refleak_3.patch ___ Python tracker <http://bugs.python.org/issue20766> ___ ___ Python-bugs-list m

[issue20766] reference leaks in pdb

2014-07-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is because breakpoints number are class attributes. With the following change, the "./python -m test test_pdb test_pdb" is ok: $ hg diff diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py --- a/Lib/test/test_pdb.py +++ b/Lib/test/t

[issue20766] reference leaks in pdb

2014-08-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: After refleak_3.patch, test_pdb_next_command_in_generator_for_loop is the only remaining test that sets a breakpoint without reinitializing the breakpoints numbering first. As a result, this test may also fail in the future when tests are reordered by the

[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye
New submission from Xavier de Gaye: Pdb sets a handler for the SIGINT signal (which is sent when the user presses Ctrl-C on the console) when you give a continue command. 'continue' is not the only pdb command that may be interrupted, all the commands that resume the execution of t

[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue22135> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22149] the frame of a suspended generator should not have a local trace function

2014-08-05 Thread Xavier de Gaye
New submission from Xavier de Gaye: When tracing, the frame of a suspended generator should not have an f_trace function as there is no way to delete the frame f_trace attribute in that case even though tracing may have been disabled. The patch relies on the fact that whenever the generator

[issue22175] improve test_faulthandler readability with dedent

2014-08-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: 'test_faulthandler.patch' uses dedent to have triple-quoted strings in indented form. This allows viewing the source code with the folding tools available with some editors. 'test_faulthandler.diff' is the result of 'hg diff --igno

[issue22175] improve test_faulthandler readability with dedent

2014-08-08 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file36322/test_faulthandler.diff ___ Python tracker <http://bugs.python.org/issue22175> ___ ___ Python-bug

[issue20745] test_statistics fails in refleak mode

2014-08-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: This issue can be closed. After changeset 7bc53cf8b2df by Zachary Ware in issue 22104: ./python -m test -R3:3 test_statistics is ok now. -- nosy: +zach.ware ___ Python tracker <http://bugs.python.org/issue20

[issue22502] after continue in pdb stops in signal.py

2014-09-27 Thread Xavier de Gaye
New submission from Xavier de Gaye: With the following script: import time def foo(): import pdb; pdb.set_trace() while 1: time.sleep(.5) foo() Hitting ^C after continue gives: $ ./python foo.py > foo.py(5)foo() -> while 1: (Pdb) continue ^C Program interrupted. (Use

[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py

2014-10-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: This issue has been entered while checking for duplicate test names in issue 16079. -- ___ Python tracker <http://bugs.python.org/issue19

[issue22577] local variable changes lost after pdb jump command

2014-10-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: With the following pdb_jump.py script: def foo(x): import pdb; pdb.set_trace() lineno = 3 lineno = 4 foo(1) The change made to 'x' is lost after a jump to line 4: $ ./python ~/tmp/test/pdb_jump.py > ~/tmp/test/pdb_jump.py(3)foo()

[issue11798] Test cases not garbage collected after run

2013-12-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: This seems to break BaseTestSuite.countTestCases when invoked after the TestSuite has been run: ... File "Lib/unittest/suite.py", line 42, in countTestCases cases += test.countTestCases() AttributeError: 'NoneType' obj

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The sys.settrace documentation states: The trace function is invoked (with event set to 'call') whenever a new local scope is entered; it should return a reference to a local trace function to be used that scope, or None if the scope shouldn’t

[issue20041] TypeError when f_trace is None and tracing.

2013-12-21 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- keywords: +patch Added file: http://bugs.python.org/file33246/f_trace.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20041] TypeError when f_trace is None and tracing.

2013-12-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: Section 3.2 of 'The Python Language Reference' states: f_trace, if not None, is a function called at the start of each source code line Run the attached tracer.py and see that although f_trace is None in both cases when 'cmd' is eit

[issue16672] improve tracing performances when f_trace is NULL

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: A patch proposed in issue 20041 provides a backward compatible solution to this performance enhancement. -- ___ Python tracker <http://bugs.python.org/issue16

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: A patch is proposed in issue 20041. -- ___ Python tracker <http://bugs.python.org/issue20040> ___ ___ Python-bugs-list mailin

[issue11992] sys.settrace doesn't disable tracing if a local trace function returns None

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also issue 20040. -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue11992> ___ ___ Python-bugs-list mailin

[issue20041] TypeError when f_trace is None and tracing.

2013-12-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: Adding the corresponding tests. -- components: +2to3 (2.x to 3.x conversion tool) -Interpreter Core Added file: http://bugs.python.org/file33260/tests.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20041] TypeError when f_trace is None and tracing.

2013-12-24 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- components: +Interpreter Core -2to3 (2.x to 3.x conversion tool) ___ Python tracker <http://bugs.python.org/issue20041> ___ ___

[issue20061] make pdb through separate terminal more convenient

2013-12-28 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue20061> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-13 Thread Laurent De Buyst
Laurent De Buyst added the comment: The proposed patch does solve the infinite recursion bug, but a different problem appears when resetting the same mock multiple times: it only works the first time. Using the patch as it stands: >>> from unittest.mock import mock_open >>&

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-14 Thread Laurent De Buyst
Laurent De Buyst added the comment: Sorry Michael, I should have read your second comment more closely since you already pointed out that using a list as default argument is bad. It is, however, easily fixed by changing to this: def reset_mock(self, visited=None): "Restore the mock o

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-14 Thread Laurent De Buyst
Laurent De Buyst added the comment: And here's an actual patch with the corrected code -- Added file: http://bugs.python.org/file33463/issue18622_2.patch ___ Python tracker <http://bugs.python.org/is

[issue20269] Inconsistent behavior in pdb when pressing Ctrl-C

2014-01-15 Thread Xavier de Gaye
New submission from Xavier de Gaye: With this script: # START def foo(): while 1: pass import pdb; pdb.set_trace() foo() # END The following sequence of pdb commands aborts the script with a KeyboardInterrupt exception: next Ctrl-C continue While the equivalent following

[issue20500] assertion failed when passing an exception object to sys.exit

2014-02-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: The following code crashes python with: python: Objects/object.c:512: PyObject_Str: Assertion `!PyErr_Occurred()' failed. on the tip of the default branch, but not on python 3.3.3. import sys error = None try: raise ValueError('some tex

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-03 Thread Mauricio de Alencar
New submission from Mauricio de Alencar: The following code demonstrates an inconsistency of this method in dealing with zeros after the decimal mark. from decimal import Context context = Context(prec=2) for x in [100., 10., 1., 0.1]: print(context.create_decimal_from_float(x

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: According to the docs (http://docs.python.org/3/library/decimal.html): "The decimal module incorporates a notion of significant places so that 1.30 + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is the customary presentatio

[issue20502] Context setting to print Decimal with as many digits as the "prec" setting

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: I propose then to create a context setting that switches between the current textual representation of a Decimal and one that is "right zeros padded" up to context precision. Such that the line: print(Context(prec=4, precise

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: String formatting is completely unaware of the concept of *significant digits*. The only format that can get it right for every case is the 'e'. But then you always get the exponent, which is undesirable. I was hopeful that the decimal mo

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: "Digits after the decimal mark" is not the same as "significant digits". See https://en.wikipedia.org/wiki/Significant_figures If I have a list of numbers [256.2, 1.3, 0.5] that have 3 significant digits each, I would like to have them

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: > You need to stop lecturing. I'm sorry, I didn't mean to offend anyone. I just felt I was failing to communicate the issue when I got the suggestion to use format(Decimal(1), ".2f"). > The above sentence you wrote directly cont

[issue20502] Context.create_decimal_from_float() inconsistent precision for zeros after decimal mark

2014-02-04 Thread Mauricio de Alencar
Mauricio de Alencar added the comment: Thank you. This function accomplishes what I need, avoiding the float->string->Decimal conversion path. I will use a slight variation of it accepting floats and a precision value: from decimal import Decimal, Contextdef sigdec(f, prec):x = C

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-11 Thread Xavier de Gaye
New submission from Xavier de Gaye: After an alarm handler raises an exception while a tracing function is being invoked and when this exception is not caught by the tracing function, the call_trampoline() function in sysmodule.c returns NULL and its caller, trace_trampoline(), removes the

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The following code shows that the trace function is removed when an alarm raises an exception and prints: 'trace function: None' import sys, signal, time def trace(frame, event, arg): if frame.f_code.co_name == 'foo&#x

[issue20617] test_ssl does not use mock

2014-02-13 Thread Xavier de Gaye
New submission from Xavier de Gaye: The following line should be removed from test_ssl.py: from unittest import mock -- components: Library (Lib) messages: 211148 nosy: xdegaye priority: normal severity: normal status: open title: test_ssl does not use mock type: behavior versions

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > A signal should not remove the trace function. And a signal should be traced. The attached patch postpones all signals except SIGINT while the trace function is being invoked, and thus the signal is traced after returning from this function. My previ

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file34070/signal_test.py ___ Python tracker <http://bugs.python.org/issue20601> ___ ___ Python-bugs-list m

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: With the previous patch, after the signal arrives and the first call to PyErr_CheckSignals, PyErr_CheckSignals is called for each bytecode processed in the eval loop of the tracing function (and the eval loop of functions called by the tracing function, and

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hum hum, and now with this last patch PyErr_CheckSignals is called for each traced line even when no signal is pending, which is worse than the previous one as far as performance is concerned. -- ___ Python tracker

[issue20638] KeyError building the Python html doc with sphinx

2014-02-16 Thread Xavier de Gaye
New submission from Xavier de Gaye: Occurs on the tip of the Python default branch on ArchLinux when running 'make html PYTHON=python2' from Doc/. Traceback attached. -- assignee: docs@python components: Documentation files: sphinx-err-DH3qAl.log messages: 211311 nosy: d

[issue20638] KeyError building the Python html doc with sphinx

2014-02-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: $ hg log -r tip changeset: 89198:72f9b6222476 tag: tip parent: 89195:dcbbff7e6b56 parent: 89197:f45d4823f63c user:Ezio Melotti date:Sat Feb 15 16:59:39 2014 +0200 summary: #19890: merge with 3.3. The README.txt says: A

[issue20703] RuntimeError caused by lazy imports in pdb

2014-02-20 Thread Xavier de Gaye
New submission from Xavier de Gaye: Issuing the 'continue' pdb command with a lazy_import.py script as: # START of lazy_import.py import sys, pdb for m in sys.modules: if m == 'sys': pdb.set_trace() # END of lazy_import.py gives the following output: $ p

[issue20766] reference leaks in pdb

2014-02-25 Thread Xavier de Gaye
New submission from Xavier de Gaye: After the pdb 'continue' command, the signal module owns a reference to Pdb.sigint_handler. On the next instantiation of pdb, the signal module owns a reference to a new sigint_handler method that owns a reference to the previous sigint_han

[issue20766] reference leaks in pdb

2014-02-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: > the first pdb instance is never freed The first pdb instance is (and all the other pdb instances) never freed until the call to PyOS_FiniInterrupts() in Py_Finalize(). -- ___ Python tracker &l

[issue20746] test_pdb fails in refleak mode

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The doctests are executed with 'test.globs' as globals which is set in the 'find' method of doctest.DocTestFinder, and cleared after each run (unless 'clear_globs' is false). One possible fix is to have test.regrtest 'find&

[issue20766] reference leaks in pdb

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: After applying patch 'regrtest.diff' from issue 20746, the command: $ ./python -m test -W -R3:3 test_pdb succeeds now and shows there are no reference leaks. However, with the following change in Lib/test/test_pdb.py and patch 'regrtes

[issue20746] test_pdb fails in refleak mode

2014-03-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also issue 20766. -- ___ Python tracker <http://bugs.python.org/issue20746> ___ ___ Python-bugs-list mailing list Unsub

[issue16596] Skip stack unwinding when "next", "until" and "return" pdb commands executed in generator context

2014-03-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Documentation update attached. -- Added file: http://bugs.python.org/file34326/pdb_doc.diff ___ Python tracker <http://bugs.python.org/issue16

[issue6719] pdb messes up when debugging an non-ascii program

2009-08-17 Thread samuel de framond
New submission from samuel de framond : consider a program like this one: File: ./test.py #/usr/bin/env python #coding: utf8 print 'qwerty' - Here is a shell (e.g. bash) session: $ python -m pdb ./test.py --Return-- > /usr/lib/python2.6/encoding

[issue1202] zlib.crc32() and adler32() return value

2009-04-20 Thread Gaëtan de Menten
Gaëtan de Menten added the comment: Regarding the issue J. David Ibáñez has, I have a few comments to add: - It's also present on 32bit. - AFAICT: * it's present in both 2.6 branch & trunk (as of 68886), * it's a problem with line 1110 (in 2.6 branch), or line 1122 in

[issue5807] ConfigParser.RawConfigParser it's an "old-style" class

2009-04-21 Thread Vito De Tullio
New submission from Vito De Tullio : RawConfigParser does not inherit from object, so using (to make an example) super() it's impossible. Python 2.6 (r26:66714, Feb 3 2009, 20:52:03) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type "help", "copyright", &

[issue5856] Minor typo in traceback example

2009-04-27 Thread Niels de Vos
New submission from Niels de Vos : The last example of traceback (found on <http://docs.python.org/library/traceback.html> release 2.6.2) contains a typo. >>> theError = IndexError('tuple indx out of range') >>> traceback.format_exception_only(type(theError

[issue5901] missing meta-info in documentation pdf

2009-05-01 Thread Vito De Tullio
New submission from Vito De Tullio : from http://docs.python.org/download.html and http://docs.python.org/3.0/download.html you can download the python documentation in many formats (html, pdf, txt), I think auto-generated by the .rst source. While html and txt does not, the pdf format

[issue5331] multiprocessing hangs when Pool used within Process

2009-06-10 Thread Gabriel de Perthuis
Gabriel de Perthuis added the comment: Apparently the pool workers die all at once, just after the pool creates them and before the pool is used. I added a few lines to multiprocessing/pool.py to get the stack and the exception backtrace. except (EOFError, IOError): import

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
New submission from Michiel de Hoon : (The discussion for this bug started on the pythonmac-sig mailing list; see http://mail.python.org/pipermail/pythonmac-sig/2010-May/022362.html) When I try to install Python as a framework: ./configure --enable-framework make make install then Python

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
Michiel de Hoon added the comment: The patch fixes the problem on Mac OS X 10.4. I'll try on 10.5 tomorrow. Thanks! -- ___ Python tracker <http://bugs.python.org/i

[issue8868] Framework install does not behave as a framework

2010-06-01 Thread Michiel de Hoon
Michiel de Hoon added the comment: The patch solves the problem also on Mac OS X 10.5 (I tried 32-bits and 64-bits with the current python in trunk, after applying the patch). Thanks again! -- ___ Python tracker <http://bugs.python.org/issue8

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
Changes by Palluat de Besset : -- assignee: ronaldoussoren components: Macintosh nosy: mpalluat, ronaldoussoren priority: normal severity: normal status: open title: subprocess module causing crash type: crash versions: Python 3.1 ___ Python tracker

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
New submission from Palluat de Besset : there is a crash log inside the archive -- Added file: http://bugs.python.org/file17898/OSDP2.zip ___ Python tracker <http://bugs.python.org/issue9

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
Palluat de Besset added the comment: Hi Ronald, Thank you for looking into it, and sorry for the misleading title. You will find a crash log and some instructions on how to reproduce the problem inside the archive. Thanks, Marc On 8 Jul 2010, at 10:18, Ronald Oussoren wrote: Ronald

[issue9250] sys.modules changes size during iteration in regrtest module

2010-07-13 Thread Xavier de Gaye
New submission from Xavier de Gaye : Python 2.7 - svn revision 82852 Bug description === Test script foo.py -- #!/usr/bin/env python import distutils.core import test.regrtest Exception when running foo.py - Traceback

[issue9250] sys.modules changes size during iteration in regrtest module

2010-07-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: http://pyclewn.sourceforge.net uses the regrtest module to run its testsuite. The test package is documented in the Standard Library documentation, quote: "The test package contains all regression tests for Python as well as the modules test.test_suppor

[issue9250] sys.modules changes size during iteration in regrtest module

2010-07-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for your comments, that was fast! I will skip using the test package then. -- status: pending -> open ___ Python tracker <http://bugs.python.org/iss

[issue9250] sys.modules changes size during iteration in regrtest module

2010-07-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue9250> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9533] metaclass can't derive from ABC

2010-08-06 Thread Roald de Vries
New submission from Roald de Vries : Exception raised:: Traceback (most recent call last): File "bug.py", line 5, in class derived(type, Sized): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/abc.py", line 85, in __new

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-07 Thread Valeo de Vries
New submission from Valeo de Vries : I'm under the impression that this is issue is known about, however I couldn't find an existing bug, so I'm creating a new one for the following test failure: test_distutils /usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-08 Thread Valeo de Vries
Valeo de Vries added the comment: Thanks for the speedy response! I'm fairly certain that this affects 2.6.5 as well. I'll test and report back when I'm in front of my development machine (sometime tomorrow). -- ___ Python

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-23 Thread Irmen de Jong
Irmen de Jong added the comment: Due to lack of example code to reproduce the issue, and because I'm mildly interested in this bug because it mentions Pyro4 (because I'm the author of that) I've tried to crash my system myself using Pyro4 and a simple torture test but it truck

[issue28673] pyro4 with more than 15 threads often crashes 2.7.12

2016-11-24 Thread Irmen de Jong
Irmen de Jong added the comment: The 28673-reproduce.py didn't crash on any of the systems I've tried it on. Are you sure it is complete? It looks like a part is missing. -- ___ Python tracker <http://bugs.python.o

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
New submission from Xavier de Gaye: With this patch, cross compiling a third-party extension module is done with the command: XBUILD_PYTHON_DIR=/path/to/python/dir python setup.py build where XBUILD_PYTHON_DIR is the location of the directory of the cross-compiled python executable. It may

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > This approach will not work with a "multiarch" enabled environment, and break > cross builds on Debian and Ubuntu. No, the patch does not break cross builds on Debian and Ubuntu, unless you can demonstrate it does. > Afaics, the propos

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue28833> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28833] cross compilation of third-party extension modules

2016-11-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I don't think that identifying the target by some path is the right way to > go, and you should be able to identify the target by giving the target > triplet as used by the configure parameters and then deduce the location from > the t

<    4   5   6   7   8   9   10   11   12   13   >