Closed ghukill closed 7 years ago
Just encountered a scenario where this:
tester = pcdm.models.PCDMCollection(repo).create()
as expected, returned True. But that wasn't terribly helpful. To write one-liners, it would be handy if it returned self perhaps? Then again, keying off result of .create is harder when not boolean.
True
self
.create
Keeping as True - two lines is fine.
Just encountered a scenario where this:
as expected, returned
True
. But that wasn't terribly helpful. To write one-liners, it would be handy if it returnedself
perhaps? Then again, keying off result of.create
is harder when not boolean.