Log in

Vault Password puzzle (Python) - are some functions disabled?

  • 6 Apr

I'm not totally sure if this is a deliberate feature or a bug, but if it's a feature then it doesn't seem to be documented anywhere I've seen.

In Vault Password, the python builtin function reduce() causes a NameError: name 'reduce' is not defined. The function name still gets syntax-colored gray like other, working, builtin functions such as range(). I'm moderately sure I remember using reduce() in at least one other mission.

If this behavior is intended, it should be documented somewhere findable, such as the mission description sidebar; otherwise, it should be corrected.

  • 12 Apr

Empire of code uses Python3 which removed reduce() as a builtin function.

https://docs.python.org/3.0/whatsnew/3.0.html#builtins

  • 12 Apr

Aha, thank you.

Reply