[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13069 ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -13067 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-07 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +13067 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -4870 ___ Python tracker <https://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2019-05-06 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -4438 ___ Python tracker <https://bugs.python.org/issue31841> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- nosy: -vaultah ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -11522 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: -5065 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +11522 ___ Python tracker <https://bugs.python.org/issue31299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31299] Add "ignore_modules" option to TracebackException.format()

2019-01-26 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: It would seem no one is actually interested in this proposed enhancement. I'm closing my PR, since I'm not interested in resolving the file conflict. I'll probably submit a traceback-mutating patch to the issue 16217. This issue can be closed

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-10-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I asked for some input on this issue in January (https://mail.python.org/pipermail/python-dev/2018-January/151590.html). Since then an important PR was merged (https://github.com/python/cpython/pull/4793), however it mutates the traceback object. Should

[issue31299] Add "ignore_modules" option to TracebackException.format()

2018-01-16 Thread Dmitry Kazakov
Change by Dmitry Kazakov <waultah...@gmail.com>: -- pull_requests: +5065 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov <waultah...@gmail.com>: -- nosy: +vaultah ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27639> ___ _

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov <waultah...@gmail.com>: -- pull_requests: +4870 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32194] When creating list of dictionaries and updating datetime objects one by one, all values are set to last one of the list.

2017-12-01 Thread Dmitry Kazakov
Dmitry Kazakov <waultah...@gmail.com> added the comment: This is not a bug in Python. Refer to this page for the explanation: https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly Basically, [{}]*3 creates a list with three refe

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Dmitry Kazakov <waultah...@gmail.com> added the comment: I added a PR. FWIW, I still think it would make sense to change the return type of UserString.join, and maybe *split* and *partition methods (to return list/tuple of UserString objects) for the sake of consi

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-11-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov <waultah...@gmail.com>: -- keywords: +patch pull_requests: +4438 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-21 Thread Dmitry Kazakov
Change by Dmitry Kazakov <waultah...@gmail.com>: -- pull_requests: -3274 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31299> ___

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-11-09 Thread Dmitry Kazakov
Dmitry Kazakov <waultah...@gmail.com> added the comment: I only recently realized that trace.Trace accepts two similar arguments, namely ignoremods and ignoredirs. Should we try to make the API and implementation of the functionality proposed here conform to that of trace.Trace's igno

[issue31906] String literals next to each other does not cause error

2017-10-30 Thread Dmitry Kazakov
Dmitry Kazakov <waultah...@gmail.com> added the comment: This is a documented feature: https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation And yes, it was discussed before: https://mail.python.org/pipermail/python-ideas/2013-May/020527.html -

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-10-24 Thread Dmitry Kazakov
Dmitry Kazakov <waul...@gmail.com> added the comment: Ping. (this issue needs a decision on ignore_modules vs filter callback, and/or patch review) -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-22 Thread Dmitry Kazakov
New submission from Dmitry Kazakov <waul...@gmail.com>: A few of the methods of collections.UserString return objects of type str when one would expect instances of UserString or a subclass. Here's an example for UserString.join: >>> s = UserString(', ').join(['a', 'b', 'c

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-09-24 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Yes, a public built-in facility to modify a traceback would certainly be useful, although there should be a standard way to "hide" unwanted frames without mutating the traceback, too, and the traceback module seems a perfect place to add i

[issue31299] Add "ignore_modules" option to TracebackException.format()

2017-08-29 Thread Dmitry Kazakov
Changes by Dmitry Kazakov <waul...@gmail.com>: -- pull_requests: +3274 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31299> ___ _

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2017-08-28 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Since runpy also handles the execution of directories and zip files, I think it would be reasonable to clean up tracebacks in these cases, too. The ignore_modules argument would be a great addition to the traceback module. Should I create a separate issue

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2017-08-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: In order to load and compile the module code, runpy calls the loader's get_code method. Because that happens outside of the normal import process, and PyImport_ImportModuleLevelObject is currently the only place where remove_importlib_frames is being invoked

[issue30876] SystemError on importing module from unloaded package

2017-07-26 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Please ignore my last message, I didn't notice the existing pull request... Sorry. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue24548] Broken link in the unittest documentation

2015-07-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: The Simple Smalltalk Testing: With Patterns link from https://docs.python.org/3.5/library/unittest.html is dead. I found 2 mirrors but I don't think any of them should replace the broken link. 1. http://testingsoftware.blogspot.com/2007/08/smalltalk

[issue24309] string.Template should be using str.format and/or deprecated

2015-06-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24309 ___ ___ Python-bugs-list

[issue14003] __self__ on built-in functions is not as documented

2015-06-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- nosy: +vlth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14003 ___ ___ Python-bugs-list mailing

[issue24309] string.Template should be using str.format and/or deprecated

2015-05-27 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: I came across this piece of code in Lib/string.py:146: # We use this idiom instead of str() because the latter will # fail if val is a Unicode containing non-ASCII characters. return '%s' % (mapping[named],) This seems vestigial. I think it'd

[issue24309] string.Template should be using str.format and/or deprecated

2015-05-27 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Ugh, I guess I was too quick to propose deprecation, sorry :( But is it a strict No to the proposed use of str.format as well? This would be a (relatively) minor but useful change which, again, won't break anything. I can write the patch

[issue24275] lookdict_* give up too soon

2015-05-24 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- nosy: +vlth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24275 ___ ___ Python-bugs-list mailing

[issue24269] Few improvements to the collections documentation

2015-05-23 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: collections.Counter: Formatted the code in the See also section. collections.deque.remove: Removed the first occurrence of value. - Remove ... collections.deque.index (a followup from issue23704): Changed [, end] to [, stop] in the signature, because

[issue24219] Repeated integer in Lexical analysis/Integer literals section

2015-05-22 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Please, do tell me if I'm wrong deleting that literal and it actually serves some purpose... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24219

[issue24216] Typo in bytes.join/bytearray.join documentation

2015-05-17 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This if there are any values in iterable that are note bytes-like objects should be if there are any values in iterable that are not bytes-like objects Here's a micropatch... -- assignee: docs@python components: Documentation files

[issue24219] Repeated integer in Lexical analysis/Integer literals section

2015-05-17 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: One of the integers under Some examples of integer literals is repeated twice: 7 21474836470o1770b100110111 3 79228162514264337593543950336 0o3770x1 79228162514264337593543950336

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-22 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file39166/traceback_limit_doc_rev3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-21 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Thanks, completely missed the abs(limit) part. Here's the updated documentation patch. -- Added file: http://bugs.python.org/file39161/traceback_limit_doc_rev.diff ___ Python tracker rep...@bugs.python.org http

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file39162/traceback_limit_doc_rev2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file39161/traceback_limit_doc_rev.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-20 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the documentation patch. -- Added file: http://bugs.python.org/file39152/traceback_limit_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-19 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I'll do that tomorrow. The patch still needs a review though... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-03-21 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Again, I'm honestly sorry if I'm being annoying, but is there anything else that needs to be done in order to make this issue resolved? The stage is set to patch review, although there were no messages posted since the latest patch was submitted and there're

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Thank you, Terry. You got the proposal right. I'm glad you noticed the issues with tests, I updated the patch to fix them. -- Added file: http://bugs.python.org/file37628/traceback_rev2.diff ___ Python tracker rep

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file37181/traceback.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file37341/traceback_patch_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file36919/tb_patch_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I improved tests for *_stack and *_tb functions, fixed a few typos and added more comments. -- Added file: http://bugs.python.org/file37632/traceback_rev3.diff ___ Python tracker rep...@bugs.python.org http

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-07 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Hold on, I found 2 more bugs. Will update the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-06 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Some of the patches (including the latest one) were missing Mercurial header. I'm uploading the properly formatted patch (traceback_rev_fixed.diff) -- Added file: http://bugs.python.org/file37615/traceback_rev_fixed.diff

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-05 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I understand that this issue is far from being important, but this is going to be the fourth unreviewed file in this issue. I noted all your comments to me and fixed the patch accordingly, but ever since November I'm the only one who posts something here. I

[issue23167] Marshal docs say format version is 3; actual format version is 4

2015-01-04 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: Documentation on marshal module says that format version is 3, but Py_MARSHAL_VERSION is set to 4. Search for marshal-related issues gave me an idea that this is a documentation bug. -- assignee: docs@python components: Documentation files

[issue22619] Possible implementation of negative limit for traceback functions

2015-01-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Python Developer's Guide said to ping the issue, in case of one-month long inactivity period. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is a complete implementation of negative limits for functions from traceback module (see this proposal - https://mail.python.org/pipermail/python-ideas/2014-August/029105.html). I also added some tests. -- components: Library (Lib) files

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Indeed, this is an exact duplicate, but I feel like that issue is an embarrassment: too many unnecessary actions, bad patches, and most of messages are totally useless. I wanted to start over for once, so I closed that issue. Pardon my initial ignorance

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22974 ___ ___ Python-bugs-list

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Moved the latest patch with implementation and tests from issue 22974 (http://bugs.python.org/issue22974). -- status: closed - open Added file: http://bugs.python.org/file37341/traceback_patch_2.diff ___ Python

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file37336/traceback_patch_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22974

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Revisiting this issue, I realize that I made quite a few mistakes (because this was the first issue I submitted). The patch is definitely minor, and I'm no longer interested in it. This issue may now be closed. Cheers

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-30 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-11 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I updated the patch. -- Added file: http://bugs.python.org/file37181/traceback.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-11-04 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I'm not sure what would be the best way to support negative limit for stack functions. Actually, I think the current behavior is not intuitive. For example we could make positive limit mean the same thing for traceback and stack functions (load N entries

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-23 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: I think the reason this patch hasn't been discussed well is that it only changes the behavior for traceback.*_tb functions that only deal with tracebacks. I commented on the review page that we don't have to change the behavior of traceback.*_stack functions

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Renamed the cond variable, added tuple unpacking instead of using a single variable. -- Added file: http://bugs.python.org/file36916/tb_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file36916/tb_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: +278 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file36918/4a0ec19e4288.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: -278 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Removed file: http://bugs.python.org/file36918/4a0ec19e4288.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-14 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file36919/tb_patch_2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Here's the updated (optimized) patch -- hgrepos: +277 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file36899/9cb7aaad1d85.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: -277 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-13 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- hgrepos: -275 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list mailing

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is the possible patch for this proposal: https://mail.python.org/pipermail/python-ideas/2014-October/029826.html. -- components: Library (Lib) messages: 229167 nosy: vlth priority: normal severity: normal status: open title: Possible

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: def _extract_tb_or_stack_iter(curr, limit, extractor): # Distinguish frames from tracebacks (need to import types) if limit is None: limit = getattr(sys, 'tracebacklimit', None) elif limit 0 and isinstance(curr, types.TracebackType

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Sorry, first time posting here; accidently pressed Enter. -- hgrepos: +275 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36891/9f618a0c2880.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue22619] Possible implementation of negative limit for traceback functions

2014-10-12 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Thanks. I replied to your comments at Retvield. I'll update the patch tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619