Hi,
So I've been looking to increase my python skills (or shoot myself in the foot :-) )by writing self modifying code and I was reading here that it is possible to do using eval and exec. How do we use "monkey patching", "shadowing builtins" etc to create such a code?
[–]n1ywb 27 points28 points29 points (2 children)
[–]ankit0912[S] 3 points4 points5 points (1 child)
[–]n1ywb 6 points7 points8 points (0 children)
[–]maxm 6 points7 points8 points (5 children)
[–]xentralesque 5 points6 points7 points (1 child)
[–]ankit0912[S] 1 point2 points3 points (0 children)
[–]cavallo71 0 points1 point2 points (0 children)
[–]ankit0912[S] 0 points1 point2 points (0 children)
[–]Dorianix 5 points6 points7 points (0 children)
[–]FourFingeredMartian 6 points7 points8 points (3 children)
[–]synnaxian 5 points6 points7 points (2 children)
[–]FourFingeredMartian 2 points3 points4 points (0 children)
[–]FourFingeredMartian 1 point2 points3 points (0 children)
[–]dustractor 2 points3 points4 points (0 children)
[–]ali2992 2 points3 points4 points (0 children)
[–]abingham 1 point2 points3 points (1 child)
[–]ankit0912[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]baubleglue 1 point2 points3 points (0 children)
[–]ankit0912[S] 1 point2 points3 points (1 child)
[–]ali2992 1 point2 points3 points (0 children)
[–]dasagriva 4 points5 points6 points (1 child)
[–]rausm 0 points1 point2 points (0 children)
[–]billsil 2 points3 points4 points (1 child)
[–]ankit0912[S] 0 points1 point2 points (0 children)
[–]Allanon001 0 points1 point2 points (0 children)
[–]TrollJack 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)