Re: Iteration for Factorials



marek.rocki@xxxxx wrote:

class fact_0(object):
value = 1
[...
def __new__(self, n_):
class spanish_inquisition(object):
__metaclass__ = fact_meta
n = n_
return spanish_inquisition()


You wrote lots of boilerplate to hide the fact you're cheating, didn't you?

The OP explicitly asked for an iterative procedure.

btw... writing a test unit to check the tested code is not calling itself.. could be interesting

.



Relevant Pages

  • Re: Poker Teams
    ... I'm starting to understand why people are always calling you a schmuck. ... people who are picky about things like the exact actions of ... People who don't like cheating would be called "normal". ...
    (rec.gambling.poker)
  • Re: Poker Teams
    ... I'm starting to understand why people are always calling you a schmuck. ... cheating, angles, and bullshit. ... I'm one of the most strict anti-cheat / ...
    (rec.gambling.poker)
  • Re: Its agreed then.
    ... break others and it's just a normal part of the game. ... "Cheating" comes down to what one considers unethical behaviour, and you are not going to get complete agreement on that. ... which are clear-cut - like not calling a double-bounce, or not calling a touch on the net as another example ... ...
    (rec.sport.tennis)
  • Re: What is Dillners credibility worth?
    ... them FOR CHEATING in races this year that they weren't caught cheating. ... For someone calling themselves TheTruth, perhaps you need to read a little ... closer and understand TheFacts. ...
    (rec.autos.sport.nascar)