[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-04-03 Thread Francisco Couzo
Francisco Couzo added the comment: I just made the pull request, I totally forgot I mentioned I was going to work on this, sorry! -- ___ Python tracker <https://bugs.python.org/issue21

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-04-03 Thread Francisco Couzo
Change by Francisco Couzo : -- pull_requests: +12602 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue21879> ___ ___ Python-

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2019-02-28 Thread Francisco Couzo
Francisco Couzo added the comment: I'm preparing the PR myself -- ___ Python tracker <https://bugs.python.org/issue21879> ___ ___ Python-bugs-list mailin

[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Francisco Couzo
Francisco Couzo added the comment: I think removing None as a valid predicate to filterfalse would make the API simpler, but I don't know if it's worth the API change, please do close the issue if you think it's not worth it. -- ___ Python tracker

[issue28593] Inconsistent itertools' predicate behaviour

2016-11-02 Thread Francisco Couzo
New submission from Francisco Couzo: As per Terry's recommendation https://mail.python.org/pipermail/python-dev/2016-November/146791.html Currently some functions in itertools (dropwhile and takewhile), don't accept None as a predicate, but filterfalse and groupby do. I'd like your input

[issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception

2016-10-26 Thread Francisco Couzo
New submission from Francisco Couzo: Most functions in the math library raise an OverflowError when the arguments are finite but the result is not. >>> math.exp(sys.float_info.max) Traceback (most recent call last): File "", line 1, in OverflowError: math range erro

[issue28475] Misleading error on random.sample when k < 0

2016-10-19 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Added file: http://bugs.python.org/file45144/random_sample2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28476] Remove redundant definition of factorial on test_random

2016-10-19 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: -- components: Tests files: test_random.patch keywords: patch nosy: franciscouzo priority: normal severity: normal status: open title: Remove redundant definition of factorial on test_random Added file: http://bugs.pyth

[issue28475] Misleading error on random.sample when k < 0

2016-10-19 Thread Francisco Couzo
New submission from Francisco Couzo: Improved a bit the error message when k < 0, and also added a comment about it on the documentation and an additional test case. -- assignee: docs@python components: Documentation, Library (Lib), Tests files: random_sample.patch keywords: pa

[issue28186] Autogenerated tabs / trailing whitespace

2016-09-17 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Removed file: http://bugs.python.org/file44707/autogenerated_whitespace.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28145] Fix whitespace in C source code

2016-09-17 Thread Francisco Couzo
Francisco Couzo added the comment: I'm closing this issue since I've created new issues for each case, please refer to #28184, #28185, and #28186. -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bug

[issue28186] Autogenerated tabs / trailing whitespace

2016-09-17 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Added file: http://bugs.python.org/file44709/autogenerated_whitespace2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28186] Autogenerated tabs / trailing whitespace

2016-09-17 Thread Francisco Couzo
New submission from Francisco Couzo: Fix some auto generated whitespace issues (tabs and trailing whitespace) -- files: autogenerated_whitespace.patch keywords: patch messages: 276774 nosy: franciscouzo priority: normal severity: normal status: open title: Autogenerated tabs / trailing

[issue28184] Trailing whitespace in C source code

2016-09-16 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Added file: http://bugs.python.org/file44706/trailing_whitespace2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28185] Tabs in C source code

2016-09-16 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Added file: http://bugs.python.org/file44704/tabs_h.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28185] Tabs in C source code

2016-09-16 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Removed file: http://bugs.python.org/file44703/tabs_h.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28185] Tabs in C source code

2016-09-16 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: -- versions: +Python 3.7 Added file: http://bugs.python.org/file44703/tabs_h.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28185] Tabs in C source code

2016-09-16 Thread Francisco Couzo
New submission from Francisco Couzo: Files I didn't change: Python/dup2.c, Python/strdup.c (Since they are external dependencies) -- files: tabs_c.patch keywords: patch messages: 276762 nosy: franciscouzo, josh.r, mark.dickinson, martin.panter, r.david.murray, terry.reedy priority

[issue28184] Trailing whitespace in C source code

2016-09-16 Thread Francisco Couzo
New submission from Francisco Couzo: As per Terry's recommendations (#28145), I'm going to open a new issue for each case. -- files: trailing_whitespace.patch keywords: patch messages: 276761 nosy: franciscouzo, josh.r, mark.dickinson, martin.panter, r.david.murray, terry.reedy

[issue28169] shift exponent overflow

2016-09-15 Thread Francisco Couzo
New submission from Francisco Couzo: Steps to reproduce: make distclean LDFLAGS="-lasan -lubsan" CFLAGS="-fsanitize=address -fsanitize=undefined" ./configure ASAN_OPTIONS="detect_leaks=0" make UBSAN_OPTIONS=print_stacktrace=1 ASAN_OPTIONS="allocator_may_ret

[issue27482] heap-buffer-overflow on address 0x6250000078ff

2016-09-15 Thread Francisco Couzo
Francisco Couzo added the comment: I can confirm this bug is also present in 3.7 -- nosy: +franciscouzo versions: +Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28145] Fix whitespace in C source code

2016-09-14 Thread Francisco Couzo
New submission from Francisco Couzo: I changed most of the tabs in the source code to spaces, and removed trailing whitespace. I also made some scripts that generate code use spaces and not generate trailing whitespace. (makesetup and makeunicodedata.py) I fixed a typo in Modules/makesetup

[issue26830] Refactor Tools/scripts/google.py

2016-09-14 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: Added file: http://bugs.python.org/file44652/scripts_google_v4.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue28139] Misleading Indentation

2016-09-13 Thread Francisco Couzo
New submission from Francisco Couzo: Fixed the warnings that appear when compiling 2.7 with -Wmisleading-indentation (Included in -Wall since GCC 6). Kinda related, though I don't think there would be too much interest in fixing it (all the tabs in Python's C source): $ find . -name '*.c

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2016-09-09 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: -- nosy: +franciscouzo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21879> ___

[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2016-09-09 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: -- keywords: +patch Added file: http://bugs.python.org/file44490/format.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27427] Math tests

2016-06-30 Thread Francisco Couzo
New submission from Francisco Couzo: I added some tests for the math module. -- components: Tests files: test_math.patch keywords: patch messages: 269632 nosy: franciscouzo priority: normal severity: normal status: open title: Math tests versions: Python 3.6 Added file: http

[issue26830] Refactor Tools/scripts/google.py

2016-04-29 Thread Francisco Couzo
Francisco Couzo added the comment: Here's the patch with the modifications from the review. -- Added file: http://bugs.python.org/file42657/scripts_google_v2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26830] Refactor Tools/scripts/google.py

2016-04-23 Thread Francisco Couzo
Francisco Couzo added the comment: I was also going to refactor the other demo scripts, but first I wanted to make sure there was at least some kind of interest in it. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26830] Refactor Tools/scripts/google.py

2016-04-22 Thread Francisco Couzo
Changes by Francisco Couzo <francisco...@gmail.com>: -- files: scripts_google.patch keywords: patch nosy: franciscouzo priority: normal severity: normal status: open title: Refactor Tools/scripts/google.py type: enhancement versions: Python 3.6 Added file: http://bugs.pyth