Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

calc: _Result doesn't like dividing anymore #2

Open
Narrat opened this issue Feb 4, 2015 · 3 comments
Open

calc: _Result doesn't like dividing anymore #2

Narrat opened this issue Feb 4, 2015 · 3 comments
Labels

Comments

@Narrat
Copy link
Owner

Narrat commented Feb 4, 2015

File "eispice3/module/calc.py", line 79, in calc.Variable
Failed example:
z = xx + cos(20*y + x) - (x / (y+50)) # z is of type _Result
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1324, in __run
compileflags, 1), test.globs)
File "<doctest calc.Variable[3]>", line 1, in
z = x
x + cos(20*y + x) - (x / (y+50)) # z is of type _Result
TypeError: unsupported operand type(s) for /: 'Variable' and '_Result'

@Narrat Narrat added the bug label Feb 4, 2015
@Narrat
Copy link
Owner Author

Narrat commented Feb 4, 2015

Didn't check what _Result and Variable is yet, but one candidate could be PEP238
https://www.python.org/dev/peps/pep-0238/

@Narrat
Copy link
Owner Author

Narrat commented Feb 4, 2015

In that case all of calc needs to be checked if is one thing defined there that should be // now

@Narrat
Copy link
Owner Author

Narrat commented Feb 4, 2015

Or somewhere is a cast missing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant