I worked on a very simple crud generator for pylons. I came up with something that checks
SomeClass._sa_class_manager.mapper.c
Is it possible to check this (or call methods starting with underscore)? I have always assumed that this is legal, although I frowned, as it relies heavily on the internal structure of the class / object. But hey, since python really has no interfaces in the Java sense, maybe this is normal.
( Python), "private". , , , , , , , .
, , , , . , , , .
, ? , _sa_class_manager , SQLAlchemy . SQLAlchemy - , .
API SQLAlchemy.
, , , . , Python , -.
, Python , , &mdash, , , , , ( , ), , .
Source: https://habr.com/ru/post/1697701/More articles:Yasnippet and pabbrev work together at Emacs - emacsEnable local scripts and flash in ie7 - internet-explorer-7Sqlite if it contains - syntaxUnicode characters that can be used to bypass the string sorter? - sorting.NET Micro Framework on ARM Cortex-M3 Core - arm24-hour Gaussian Distributions with PHP - mathAnimated Gifs in Flex 3 - flexJava 1.4 synchronization: allow only one method instance (non-blocking)? - javaD (and Tango) on PowerPC Linux - linuxHow can I distribute a WCF peer-to-peer application over a peer-to-peer connection over the Internet? - .netAll Articles