Python core knowledge

For sure there are much more things Python includes. This section includes probably the most important skills Python Engineer need to have and know.

Includes knowledge areas

Data Structure (Python specific)

The basic Python data structures in Python include list, set, tuples, and dictionary. Each of the data structures is unique in its own way. Data structures are “containers” that organize and group data according to type.

I/O Operations And Exception Handling

Input/Output(I/O). I/O operations are very important when it comes to processing financial data or scientific data. Exception handling is a construct in some programming languages to handle or deal with errors automatically. Many programming languages like C++, Objective-C, PHP, Java, Ruby, Python, and many others have built-in support for exception handling.

metaclasses

A metaclass in Python is a class of a class that defines how a class behaves. A class is itself an instance of a metaclass. A class in Python defines how the instance of the class will behave.

slots

slots provide a special mechanism to reduce the size of objects. It is a concept of memory optimization on objects.

decorators

A decorator in Python is a function that takes another function as its argument and returns yet another function.

generators/iterators

A python generator function lends us a sequence of values to python iterate on. A Python iterator returns us an iterator object- one value at a time.

multiple inheritance and MRO

Multiple inheritance in python is when a class inherits from multiple classes. MRO (Method Resolution Order)

GIL

Global Interpreter Lock (GIL) in python is a process lock or a mutex used while dealing with the processes. It makes sure that one thread can access a particular resource at a time and it also prevents the use of objects and bytecodes at once.

garbage collector (python memory model)

The garbage collector is keeping track of all objects in memory. The Python garbage collector has three generations in total, and an object moves into an older generation whenever it survives a garbage collection process on its current generation.

PEPs (PEP8 in particular, PEP484)

PEP stands for Python Enhancement Proposal, and there are several of them. A PEP is a document that describes new features proposed for Python and documents aspects of Python, like design and style, for the community.

Python 2.7

Python 2.7.0 was released on July 3rd, 2010. Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1.

Python 3

Releases of Python 3 include the 2to3 utility, which automates (at least partially) the translation of Python 2 code to Python 3.

Python Interpreters

The interpreter is a program code that reads the code and executes it one by one. It converts the code into a language that is compatible with computer hardware. It directly executes the instructions whether it is written in a programming language or scripting language.

Python Standard Library

Python is a modular language that imports most useful operations from the standard library. The Python Standard Library is a collection of script modules accessible to a Python program to simplify the programming process and removing the need to rewrite commonly used commands. They can be used by 'calling/importing' them at the beginning of a script.

Concurrency / Multithreading Programming

Concurrency is the occurrence of two or more events at the same time. Concurrency is a natural phenomenon because many events occur simultaneously at any given time. Multithreading is the ability of a CPU to manage the use of operating system by executing multiple threads concurrently.

Is a part of:

Python

Explore

Heading

HeadingHeading

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.