Python Programming

-
Moving the Program Counter in Wing's Python Debugger
This Wing Tip describes how to move the program counter while debugging Python code in Wing Personal and Wing Pro. This is a good way to go back and re-execute previously visited Python code, in order to trace through to the cause of a bug without having to restart the debug process.
-
Improve Your Tests With the Python Mock Object Library
When you’re writing robust code, tests are essential for verifying that your application logic is correct, reliable, and efficient. However, the value of your tests depends on how well they demonstrate these criteria. Obstacles such as complex logic and unpredictable dependencies make writing valuable tests difficult. The Python mock object library, unittest.mock, can help you overcome these obstacles.
-
Mike Driscoll: Learn How to Log with Python (Video)
Learn how to use Python’s logging module in this screencast:
You will learn about the following:
Creating a log
Logging Levels
Logging Handlers
Logging Formatters
Logging to Multiple Locations
and more! -
Python Pause For User Input
input() method is used in python 3 for data intake from the user. Sometimes, it requires waiting or pause the input task for a specific period of time for programming purposes. For example, if there is an infinite loop in the script that will terminate based on specific user input, then it will wait for the input from the user in each iteration of the loop. Time module contains sleep() method that can be used to wait a certain period of time in python before taking input. Python contains many other modules to terminate the script based on any key press or pause the execution of the script. How python pause for input can be applied in python script is shown in this article.
-
How to search for data in JSON using python
One of the most used data serialization technique is JSON format. Python has an in-built module JSON to work with JSON data. It supports all types of primitive data types such as number, string, etc, along with python objects. The data are stored in a structured format in JSON. Sometimes it is required to search a particular data from a large JSON string or a JSON file. There are many ways to search for specific data from JSON data. How JSON data can be searched based on key or value using the python script is shown in this article.
-
PyCoder’s Weekly: Issue #420 (May 12, 2020)
-

- Login or register to post comments
Printer-friendly version- 1831 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago