|Subject:||Re: AttributeError: module ‘math’ has no attribute ‘exponent_ff’|
|Date:||Wed, 8 Jul 2020 14:27:39 -0400|
Okay, I did not realize that could be an issue. Is there a way to rename the module or should I create another one?Thank you,AlexOn Wed, Jul 8, 2020 at 1:08 PM Marcus Müller <firstname.lastname@example.org> wrote:That's cool, but I'd strongly recommend not calling your module "math",
because that name clashes with the existing Python "math" module.
I think that might be happening: something you import imports math, and
thus the native module, which overrides yours.
On 08/07/2020 19.05, Alex Batts wrote:
> I created my own “Math” module. This is to distinguish from the built in
> “Math Operators” module.
> On Wed, Jul 8, 2020 at 12:59 PM Marcus Müller <email@example.com
> <mailto:firstname.lastname@example.org>> wrote:
> Hi Alex,
> um, where's that line from? There's no "exponent_ff" in Python's
> "built-in" math module, so this is not surprising.
> Best regards,
> On 08/07/2020 18.57, Alex Batts wrote:
> > Hello,
> > I tried to create my own OOT module, one that can do exponents on
> > floats. However, I keep running into this error:
> > self.math_exponent_ff_0 = math.exponent_ff()
> > AttributeError: module ‘math’ has no attribute ‘exponent_ff’
> > I saw an earlier post on the forums that had a couple fixes, but
> I tried
> > those and it did not work. Any help would be appreciated. If need
> be, I
> > can post files as well to see code.
> > Thank you,
> > Alex
|[Prev in Thread]||Current Thread||[Next in Thread]|