[issue42439] Use of ternary operator instead of if and else in month calculation function

2020-11-22 Thread Elian Mariano Gabriel
Change by Elian Mariano Gabriel : -- keywords: +patch pull_requests: +22358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23468 ___ Python tracker <https://bugs.python.org/issu

[issue42439] Use of ternary operator instead of if and else in month calculation function

2020-11-22 Thread Elian Mariano Gabriel
New submission from Elian Mariano Gabriel : Inside the file calendar.py, there are two functions which are supposed to calculate the previous and next month relative to the actual year and month. def _prevmonth(year, month): if month == 1: return year-1, 12 else

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
Change by Elian Mariano Gabriel : -- keywords: +patch pull_requests: +21099 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21993 ___ Python tracker <https://bugs.python.org/issu

[issue41657] Refactor for object source files variable in Makefile

2020-08-28 Thread Elian Mariano Gabriel
New submission from Elian Mariano Gabriel : Refactoring in the Makefile is needed due a hard coded declaration to the 'OBJECT_OBJS' variable in the line 388. This hard coded declaration can be replaced by a pattern substitution function which assigns the 'OBJECT_OBJS' variable in this much