Articles tagged with python

  1. Data Structures: Priority Queue

    Posted on in programming

    Imagine a restaurant with a single line, but instead of a chaotic first-come, first-served approach, patrons are seated based on their urgency. A pregnant woman in pain? Straight to the front. A leisurely tourist? Further back they go. This preferential treatment, applied to data, is the essence of the priority …

  2. 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 …
  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

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    from unittest import IsolatedAsyncioTestCase
    from unittest.mock import create_autospec, patch
    
    from foo import is_foo, is_bar, platform
    
    class FooTestCase(IsolatedAsyncioTestCase):
        @patch(
            "platform.uname",
            return_value=create_autospec(
                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.

Slaptijack's Koding Kraken