Python Web Servercan be set up in two ways. Python supports a Web Server in the “out of the box” way. We can even start a web server with just a one-liner in Python!
This post will demonstrate how to run another Python feature in Python4Delphi with RAD Studio:Python Web Serverin Python GUI apps and gets the output. The web server in this example can be accessed on…
Introduction to DelphiVCL4Python
February 7, 2021
DelphiVCL is a Python module giving Python GUI apps on Windows access to Delphi’s VCL for robust and high-performance native Windows visual widgets. It uses the Python4Delphi library as a bridge between Delphi’s VCL (Visual Component Library) and Python. DelphiVCL is…
Learn Powerful Python Map, Filter, And Reduce Functions In A Delphi Windows GUI App
February 7, 2021
Map, Filter, and Reduce are paradigms of functional programming. They allow us to write simpler, shorter code, without necessarily needing to bother about intricacies like loops and branching.
This post will demonstrate how to run another Python feature in Python4Delphi…
Learn About Powerful Python Decorators In A Delphi Windows GUI App
February 6, 2021
Python has an interesting feature calledDecoratorsto add functionality to an existing code. A Decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its structure. Decorators are usually called before the definition of a function you want to decorate. This is also calledmetaprogrammingbecause a part of the…
Easily Learn Python Closures With A Delphi Windows GUI App
February 3, 2021
A Closure in Python is a function object that remembers values in enclosing scopes even if they are not present in memory.
It is a record that stores a function together with an environment: a mapping associating each free variable of the function (variables that are used…
Learn To Build A High-Performance Data Serialization Pipeline With A Python Windows GUI
February 1, 2021
Data serialization is the process of converting structured data to a format that allows us to share or store the data in a form that allows recovery of its original structure. In some cases, the secondary intention of data serialization is to minimize the data’s size which…
Quickly Learn How To Use Python Sets In A Windows GUI App
January 30, 2021
A set in Python is an unordered collection of items. Every set element is unique (no duplicates) and must be immutable (cannot be changed). However, a set itself is mutable. We can add or remove items from it.
Set is one of 4 built-in data types in Python used to store collections of data, the other 3 areList,Tuple, andDictionary, all with different qualities and usage. Set is…
Illegal operations in Python can raise exceptions. There are plenty of built-in exceptions in Python that are raised when corresponding errors occur.
This post will demonstrate how to run another Python feature in Python4Delphi with RAD Studio:Exception…
Quickly Learn About High-Performance Python Generators With A Delphi Windows GUI App
January 25, 2021
Have you ever had to work with a dataset so large that it overwhelmed your machine’s memory? Or maybe we have a complex function that needs to maintain an internal state every time it’s called, but the function is too small to justify creating its own class. In these…
Learn A Powerful Python Concept: Modules And Packages With A Delphi Windows GUI App
January 24, 2021
Like many other programming languages, Python supportsmodularity. That is, we can break large code into smaller and more manageable pieces. And through modularity, Python supportscode reuse. We can import modules in Python into our programs and reuse the code therein as many times as we want.
This post will demonstrate how to run another powerful Python feature in Python4Delphi with…