GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fluentpythoncode/09-pythonic-obj/private/leakprivate.py at master · hellowac/fluentpythoncode Expand file tree/ Copy pathleakprivate.pyMore file actions 11 lines (10 loc) · 387 Bytes / Copy pathleakprivate.pyFile metadata and controls11 lines (10 loc) · 387 Bytes 1 2 3 4 5 6 7 8 9 10 11 from java.lang.reflect import Modifier import Confidential message = Confidential('top secret text') fields = Confidential.getDeclaredFields() for field in fields: # list private fields only if Modifier.isPrivate(field.getModifiers()): field.setAccessible(True) # break the lock print 'field:', field print '\t', field.getName(), '=', field.get(message) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |