Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5346 มุมมอง

Why after definition of some python classes stands constructor call, for example in purchase module after class purchase_order_line there is line purchase_order_line(), and after purchase_order is not?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

calling a class after defining it like is a leftover wich is not in use since v6 ...
still you can find lots of old modules that are using that, but technicaly... that calls the uper named class after reading it.. .
so no need for that part of code... (also no big harm in using it)

hope it helps

 

อวตาร
ละทิ้ง
ผู้เขียน

Bole, da li te mogu kontaktirati u vezi par pitanja koje mi je lakse ispricati na nasem jeziku?

jup... bole (at) dajmi5.com

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 23
3422
1
มี.ค. 15
11101
2
พ.ค. 25
1164
2 sequence combing for multiple company แก้ไขแล้ว
2
ต.ค. 23
3169
1
เม.ย. 23
3770