Articles tagged with python

  1. Bazel: A powerful build system for Python

    Posted on in programming

    Bazel is a build system that allows you to build software projects quickly and reliably. It is a popular choice for building Python projects, as it offers a number of features that are well-suited for this language, such as:

    • Fast incremental builds: Bazel only rebuilds the parts of your project …
  2. What is Python?

    Posted on in programming

    Python is a general-purpose, high-level programming language. It is one of the most popular programming languages in the world, used for a wide variety of tasks, including:

    • Web development
    • Data science
    • Machine learning
    • Artificial intelligence
    • Software development
    • Scientific computing
    • Game development

    Python is known for its simple, easy-to-learn syntax, which …

  3. The Fastest Trending Programming Languages of 2023

    Posted on in programming

    The programming language landscape is constantly evolving, with new languages emerging and old languages falling out of favor. In 2023, there are a few programming languages that are gaining popularity at a rapid pace. These languages are all well-suited for different tasks and have unique features that make them stand …

  4. I Want to Learn a New Programming Language

    Posted on in programming

    That's great! Learning a new programming language can be a great way to expand your skills and knowledge as a software engineer. There are many different programming languages to choose from, so it's important to consider your interests and goals when making a decision.

    Here are a few factors to …

  5. New Feautures in Python 3.11

    Posted on in programming

    Here are some of the new features in Python 3.11:

    • Fine-grained error locations in tracebacks. Python 3.11 now provides more information about the location of errors in tracebacks. This can help you to quickly identify the source of an error and fix it.
    • Exception Groups and except*. Python …
  6. Type Checking in Python

    Posted on in programming

    What is type checking?

    Type checking is a process of verifying that the types of variables, expressions, and statements in a program are consistent with the expected types. Type checking can be performed statically, at compile time, or dynamically, at runtime.

    Benefits of type checking in Python

    There are many …

  7. [Python] Patching platform.uname in Tests

    Posted on in programming

    from unittest import IsolatedAsyncioTestCase
    from unittest.mock import create_autospec, patch
    from foo import is_foo, is_bar, platform
    class FooTestCase(IsolatedAsyncioTestCase):
                platform.uname_result, system="Linux", node="BAR"
        def test_wrapper_is_foo(self, m_uname …
  8. [Python] Popular Search Terms

    Posted on in programming

    I thought it would be neat to keep an eye on the popular google search terms related to Python.

    The list below uses JavaScript from Google Trends. You can use the kebab menu icon to choose between "Top" and "Rising" search phrases.

  9. [Python] Socket Timeouts in urllib2

    Posted on in Programming

    Things have changed quite a lot since this post was originally written in 2016. Currently, I would recommend switching over to making asynchronous calls via aiohttp.

    One of my scripts that makes an API call has been failing silently lately. It appears that the connection is timing out, but I …

My Bookshelf

Reading Now

Other Stuff