[issue46902] Typo hint message for from-imports?

2022-03-02 Thread Jean Abou Samra
New submission from Jean Abou Samra : See for example: >>> from pygments.regexopt import regexopt Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'regexopt' from 'pygments.regexopt' (/home/jean/repos/pygments/pygments/re

[issue45139] Simplify source links in documentation?

2021-09-08 Thread Jean Abou Samra
New submission from Jean Abou Samra : Currently, links to source code in the documentation look like this: **Source code:** :source:`Lib/abc.py` For documentation translators, this means that every module contains a boilerplate string to translate. A small burden perhaps, but avoidable. I

[issue44355] Allow spaces in format strings

2021-07-13 Thread Jean Abou Samra
Jean Abou Samra added the comment: Maybe leave the current state, keeping backwards compatibility, but improve the error message by adding "perhaps you wanted no spaces in the format field?" when the_field.replace(" ", "") would be valid? ---

[issue41315] Add mathematical functions as wrappers to decimal.Decimal methods

2020-07-18 Thread Jean Abou Samra
Jean Abou Samra added the comment: Okay, understood, thanks for your detailed explanations. -- ___ Python tracker <https://bugs.python.org/issue41315> ___ ___

[issue41315] Add mathematical functions as wrappers to decimal.Decimal methods

2020-07-17 Thread Jean Abou Samra
Jean Abou Samra added the comment: I would argue that given a function, from math import * def naive_calc_pi(n=100): u = sqrt(8) v = 4 for _ in range(n): v = 2*u*v/(u + v) u = sqrt(u*v) return u when you realize that floats have limited precision (happened

[issue41315] Add mathematical functions as wrappers to decimal.Decimal methods

2020-07-16 Thread Jean Abou Samra
Change by Jean Abou Samra : -- title: Add mathematical functions as wrapper to decimal.Decimal methods -> Add mathematical functions as wrappers to decimal.Decimal methods ___ Python tracker <https://bugs.python.org/issu

[issue41315] Add mathematical functions as wrapper to decimal.Decimal methods

2020-07-16 Thread Jean Abou Samra
New submission from Jean Abou Samra : Common mathematical functions such as sqrt(), exp(), etc. are available for decimal numbers as methods of decimal.Decimal instances (like https://docs.python.org/3/library/decimal.html#decimal.Decimal.exp). This does not pair well with the math and cmath