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
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
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?
---
Jean Abou Samra added the comment:
Okay, understood, thanks for your detailed explanations.
--
___
Python tracker
<https://bugs.python.org/issue41315>
___
___
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
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
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