__new__() does not return anything, on singletong pattern

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Mar 12 04:41:16 EDT 2015


Mario Figueiredo wrote:
> But PyCharm flags the assignment
> with a warning telling me that generate() does not return anything and
> the I lose code completion on the mmap variable.

My guess is that there is a syntax error somewhere
in your code that's confusing the IDE.

-- 
Greg



More information about the Python-list mailing list