русский
Germany.ruForen → Архив Досок→ Programmierung

Python & MySql

04.10.18 21:11
Re: Python & MySql
 
  moose старожил
in Antwort MrSanders 04.10.18 09:46, Zuletzt geändert 04.10.18 21:14 (moose)

оказывается, даже если в класс обернуть, все равно будет торчать наружу:


“Private” instance variables that cannot be accessed except from inside an object don’t exist in Python. However, there is a convention that is followed by most Python code: a name prefixed with an underscore (e.g. _spam) should be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice.

немножко подразочаровывает : (


но я опробовал основные "механизмы", которые мне нужны, все отлично работает, и, уверен, код, который напишу, будет правильно работать. но хотелось бы где-нибудь отсмотреть выработанную "практику хорошего кодирования" на пайтоне, чтобы не изобретать велосипед и не наступать на грабли. где?

 

Sprung zu