MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-66061.py

File recipe-66061.py

recipes/Python/66061_Assign_and_test/recipe-66061.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# In Python, you can't code "if x=foo():" -- assignment is a statement, thus
2# you can't fit it into an expression, as needed for conditions of if and
3# while statements, &c. No problem, if you just structure your code around
4# this. But sometimes you're transliterating C, or Perl, or ..., and you'd

Callers

nothing calls this directly

Calls 5

DataHolderClass · 0.70
processFunction · 0.50
readlineMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected