[issue12276] 3.x ignores sys.tracebacklimit=0

2017-11-20 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Bugs in PyTraceBack_Print()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2017-11-05 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Do you mind to create a pull request on GitHub Anand?

Issue31949 fixes this and several other bugs in PyTraceBack_Print(), but it may 
be worth to fix this bug first, especially if the patch contains tests.

--
assignee: docs@python -> serhiy.storchaka
components:  -Documentation
nosy: +serhiy.storchaka
versions: +Python 3.7 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2017-01-01 Thread Anand Reddy Pandikunta

Anand Reddy Pandikunta added the comment:

Update patch with better assertions

--
Added file: 
http://bugs.python.org/file46110/Limit-traceback-if-sys.tracebacklimit-is-set.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2016-12-27 Thread Anand Reddy Pandikunta

Anand Reddy Pandikunta added the comment:

This patch fixes the issue. I have also added 2 test cases to make sure it 
works.

--
keywords: +patch
nosy: +ChillarAnand -docs@python
Added file: 
http://bugs.python.org/file46053/Limit-traceback-if-sys.tracebacklimit-is-set.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2016-08-08 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2016-08-05 Thread Berker Peksag

Changes by Berker Peksag :


--
keywords: +easy
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.5, Python 3.6 -Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-10 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Either code or doc must change (with 'version changed' note). Doc: The default 
is 1000. When set to 0 or less, all traceback information is suppressed and 
only the exception type and value are printed.

Christian's patch: values = 0 are replaced with a default value to avoid 
infinite recursion and other issues. Default is 1000.

I do not see the logic of changing 'nothing' to 'everything'. I am puzzled how 
printing nothing causes infinite recursion.

--
assignee:  - docs@python
components: +Documentation
nosy: +christian.heimes, docs@python, terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina

New submission from Gabriel Genellina gagsl-...@yahoo.com.ar:

Python 3.x doesn't honor sys.tracebacklimit=0

According to 
http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit
when set to 0, it should not print any stack trace, but it does.

Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win
32
Type help, copyright, credits or license for more information.
p3 import sys
p3 sys.tracebacklimit = 0
p3
p3 def f(x):
...   return f(x-1) if x else 0/0
...
p3 f(5)
Traceback (most recent call last):
  File stdin, line 1, in module
  File stdin, line 2, in f
  File stdin, line 2, in f
  File stdin, line 2, in f
  File stdin, line 2, in f
  File stdin, line 2, in f
  File stdin, line 2, in f
ZeroDivisionError: division by zero
p3

--
components: Interpreter Core
files: tracebacklimitbug.py
messages: 137792
nosy: gagenellina
priority: normal
severity: normal
status: open
title: 3.x ignores sys.tracebacklimit=0
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file22269/tracebacklimitbug.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

Originally reported by Thorsten Kampe in comp.lang.python 2011-5-27
http://permalink.gmane.org/gmane.comp.python.general/691496

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

This was changed a long time ago with 565012d1123d

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

Is this the intended behavior then? I don't get the rationale for that change.

There is no way to completely supress traceback information now; for 
sys.tracebacklimit to be of any significance, it must be = 1; 0 and negative 
values behave the same as it not being set (that is, a full traceback is 
printed).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12276
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com