Nag about a possible gotcha for PyExpr.

This commit is contained in:
Tom Rothamel
2025-02-16 22:41:20 -05:00
parent 7bee83dfcb
commit 149d16b1ec
+3
View File
@@ -138,6 +138,9 @@ cdef object PyExpr_new(type cls, PyObject *args, PyObject *kwargs):
cdef PyExpr rv = old_pyexpr_newfunc(cls, <PyObject *> new_args, kwargs)
if py != 3 and py != 2:
raise ValueError("PyExpr was given an invalid value for its py argument. Did you put the column in the py argument?")
if <PyObject *> rv:
rv.filename = filename