Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5365 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

 

Ảnh đại diện
Huỷ bỏ
Tác giả

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

jup... bole (at) dajmi5.com

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 23
3425
1
thg 3 15
11102
2
thg 5 25
1181
2
thg 10 23
3174
1
thg 4 23
3775