XKlondike
  • Home
  • Category
    • Programming
      • Python
      • Go
      • Other
    • Software
      • Windows
      • Linux
    • Advanced Python Course
  • About Author
  • Login
29 Sep
Card Image
Python

Library for Working with Iterators

The built-in itertools package (https://docs.python.org/3/library/itertools.html) contains a collection of useful iterators. Let's talk about a few of them: combinations — …

Read More
by Xor0x
26 Sep
Card Image
Python

Using functools.partialmethod to Create Partial Methods

functools.partialmethod This function allows you to create a partial method of a class by pre-fixing some of the method's arguments. …

Read More
by Xor0x
24 Sep
Card Image
Python

Using itertools.combinations_with_replacement to generate combinations with repetition

itertools.combinations_with_replacement is a useful function from the itertools module that allows you to create combinations of elements with repetition. This …

Read More
by Xor0x
24 Sep
Card Image
Python

Tenacity is a powerful library for implementing retries.

Tenacity is a library for implementing automatic retries when errors occur. It allows you to easily add retry logic to …

Read More
by Xor0x
23 Sep
Card Image
Python

Using types.MappingProxyType to create immutable mappings

types.MappingProxyType is a wrapper object that allows you to create an immutable mapping based on an existing dictionary. It provides …

Read More
by Xor0x
23 Sep
Card Image
Python

How to implement a queue in Python

Queues are a data structure used to store collections of elements in a first-in, first-out (FIFO) order. Just like in …

Read More
by Xor0x
23 Sep
Card Image
Python

What does the takewhile() function from the itertools module do?

The takewhile() function from the itertools module creates an iterator that returns elements from an iterable as long as the …

Read More
by Xor0x
23 Sep
Card Image
Python

Starmap()

`starmap()` accepts another function and an iterable object as arguments, where the elements of the iterable are tuples. The passed …

Read More
by Xor0x
20 Sep
Card Image
Python

Peewee is a lightweight ORM (Object-Relational Mapping) for Python

Peewee is a compact and easy-to-use ORM library for working with databases. It supports SQLite, MySQL, and PostgreSQL, providing a …

Read More
by Xor0x
20 Sep
Card Image
Python

DABL

DABL (Data Analytics in Business Language) is a Python library that simplifies the use of machine learning for data analysis. …

Read More
by Xor0x
13 Sep
Card Image
Python

Using defaultdict to simplify working with dictionaries

When working with dictionaries where you need to initialize default values for new keys, defaultdict from the collections module greatly …

Read More
by Xor0x
13 Sep
Card Image
Python

Why use namedtuple instead of a regular dictionary?

The main advantage of namedtuple is that it takes up less space (memory) than an equivalent dictionary. Therefore, for large …

Read More
by Xor0x
13 Sep
Card Image
Python

Sorting a list of dictionaries

There are tasks where it is necessary to sort a list of dictionaries in order to obtain a list sorted …

Read More
by Xor0x
13 Sep
Card Image
Other

Automatic shutdown of a computer when the battery is low

The script checks the battery level and automatically shuts down the computer if the charge is below the specified threshold. …

Read More
by Xor0x
09 Sep
Card Image
Python

Compress function

The compress function from itertools is used to filter elements from the input sequence based on the corresponding elements in …

Read More
by Xor0x
  • 1
  • 2
  • 3
  • 4

Built with Django, PostgreSQL, Redis, and Cloudinary

XKlondike - © Copyright 2025. All Rights Reserved.