python object oriented programming

: behavior of data types and operations for mutable and immutable objects in python language The examples and explanations in this post have the following specifications: environment: vagrant virtual machine with linux 14.04.5 LTS for Ubuntu language: Python 3.6.1 (default, Nov 17 2016, 01:08:31) compiler: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Python docs at docs.python.org describes: all data in a python program is represented by objects or by relations between objects. docs.python.org, further explains this concept in reference to PyObject and PyVarObject: PyObject All object types are extensions of this type. This is a type which contains the information Python needs to treat a pointer to an object as an object. In a normal “release” build, it contains only the object’s reference count and a pointer to the corresponding type object. It corresponds to the fields defined by the expansion of the PyObject_HEAD macro. PyVarObject This is an extension of PyObject that adds the ob_size field. […]

read more

mini tweet bot

a python application :for twitter automation with Cloud Foundry on IBM Bluemix (0) intro Mini tweet bot is a web application (accessible in the below link to the working app) for automating twitter functions with a designated synced twitter account. The front page has the feature of allowing anybody with access to the app to tweet to the synced account. This is a useful purpose for any situations in which you would want multiple people tweeting to the same account. Twitter offers the service called Tweetdeck (linked below), which has a similar feature allowing multiple users to tweet to the same account; however Tweetdeck requires every user to have a a personal twitter account, and have the private access information (the password) for the shared account. With mini tweet bot, there are no restrictions, no shared passwords, no login process, and no twitter account required to tweet; users simply need access to […]

read more