Compound statements (multiple statements on the same line) are generally discouraged, use instead
```python
if expr==0:
    return -oo
```

And you miss whitespace's around operator