| 373 | } |
| 374 | |
| 375 | static PyObject* |
| 376 | PyRational_FromRational(rational x) { |
| 377 | PyRational* p = (PyRational*)PyRational_Type.tp_alloc(&PyRational_Type,0); |
| 378 | if (p) { |
| 379 | p->r = x; |
| 380 | } |
| 381 | return (PyObject*)p; |
| 382 | } |
| 383 | |
| 384 | static PyObject* |
| 385 | pyrational_new(PyTypeObject* type, PyObject* args, PyObject* kwds) { |
no outgoing calls
no test coverage detected