2015年12月21日月曜日

【本好きの下剋上】 香月美夜総合スレ 240冊目 [無断転載禁止]�2ch.net

今回の話でつくづく思った

フェルにはそこに必要な知識の資料があるのに読まないのも理解出来ないんだな

フェル基準だと、資料読むのに古語習得が必須なのに学習しないのも、魔力の必要な王族が全属性を得る方法があるのに実行しないのも、怠惰でやる気を疑う状態なんだろう

フェル基準に応えてきた地雷さんスゲーわw


いや、理解できないほうがふつうだと思うが。

誰かさんみたいのが標準なら、世の中とうに滅んでる。

2015年12月20日日曜日

Glossary — Python 3.5.1 documentation

Glossary — Python 3.5.1 documentation: new-style class
Old name for the flavor of classes now used for all class objects. In earlier Python versions, only new-style classes could use Python’s newer, versatile features like __slots__, descriptors, properties, __getattribute__(), class methods, and static methods.

Glossary — Python v2.6.9 documentation

Glossary — Python v2.6.9 documentation: new-style class
Any class which inherits from object. This includes all built-in types like list and dict. Only new-style classes can use Python’s newer, versatile features like __slots__, descriptors, properties, and __getattribute__().

More information can be found in New-style and classic classes.




Python Programming/Classes -

New Style Classes>

New style classes were introduced in python 2.2. A new-style class is a class that has a built-in as its base, most commonly object. At a low level, a major difference between old and new classes is their type. Old class instances were all of type instance. New style class instances will return the same thing as x.__class__ for their type. This puts user defined classes on a level playing field with built-ins. Old/Classic classes are slated to disappear in Python 3. With this in mind all development should use new style classes. New Style classes also add constructs like properties and static methods familiar to Java programmers.


python101 by Michael Driscoll said, class className(object): is python 2.x style, class className: is python 3.x style.


other web pages dont say about (object) style.