Category: method

How to creating python module from C

How to creating python module from C

C always provide light-weight processing among all high-level programming language. Using python give advantages which we can extend into C as python modules. There are several workflow we should know before starting. 1. Naming Convention Preferable we create C files always followed with module to indicating it’s a “Module”. Eg: 1temperaturemodule.c 2. Using Python Dev …

+ Read More

Simple way to understand how Inheritance works in Python

Simple way to understand how Inheritance works in Python

Inheritance is a way to reuse code of existing object. Differ with Java, Python have more flexible inheritance. We can derived from base class and overide as many as we want to. So what most simple implementation of inheritance in Python? Open your Python console interpreter and start typing: