Tagged articles
19 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Jul 12, 2025 · Fundamentals

Mastering Python’s eval(): How It Works, When to Use It, and How to Stay Safe

Python’s eval() function acts as a double‑edged sword, enabling dynamic code execution by parsing, compiling, and running string‑based expressions, but it introduces security and performance risks; this article explains its inner workings, common use cases, potential dangers, and safe practices or alternatives.

Pythonbest-practicesdynamic execution
0 likes · 9 min read
Mastering Python’s eval(): How It Works, When to Use It, and How to Stay Safe
Python Programming Learning Circle
Python Programming Learning Circle
Jul 18, 2024 · Fundamentals

Guide to Using Python's eval() Function

This article provides a comprehensive guide to Python's eval() function, covering its syntax, parameters, execution process, differences between globals and locals, dynamic versus static execution, common use cases, security risks, and alternatives such as ast.literal_eval() and exec().

Pythoncode evaluationdynamic execution
0 likes · 15 min read
Guide to Using Python's eval() Function
Laravel Tech Community
Laravel Tech Community
Jul 22, 2020 · Databases

Integrating Lua Scripts with Redis: Concepts, Benefits, Commands, and Installation Guide

This article provides a comprehensive overview of using Lua scripts with Redis, covering Lua basics, advantages of Lua scripting, detailed Redis‑Lua integration syntax, command usage, return‑type mappings, script management commands, and step‑by‑step instructions for installing Lua and executing example scripts.

InstallationLuadatabase
0 likes · 15 min read
Integrating Lua Scripts with Redis: Concepts, Benefits, Commands, and Installation Guide
Test Development Learning Exchange
Test Development Learning Exchange
Jul 12, 2018 · Fundamentals

Python built‑in functions: sorted, eval, and upper – syntax, parameters, and practical examples

This article explains how to use Python's sorted, eval, and upper built‑in functions, covering their syntax, optional arguments such as key, cmp, and reverse, safety considerations for eval, and concrete code examples that demonstrate sorting lists, converting strings to uppercase, and evaluating literals.

Lambdacoding-tutorialeval
0 likes · 6 min read
Python built‑in functions: sorted, eval, and upper – syntax, parameters, and practical examples
MaGe Linux Operations
MaGe Linux Operations
Nov 9, 2017 · Information Security

How to Exploit and Secure Python's eval: Bypass Tricks and Whitelist Defenses

This article explains how Python's eval can execute arbitrary code, demonstrates multiple bypass techniques—including __import__, __builtins__ manipulation, and object subclass exploitation—and shows how to safely restrict eval using whitelist globals or ast.literal_eval to prevent code injection and denial‑of‑service attacks.

Code InjectionPythonWhitelist
0 likes · 9 min read
How to Exploit and Secure Python's eval: Bypass Tricks and Whitelist Defenses
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 28, 2017 · Information Security

7 Surprising JavaScript Tricks to Bypass XSS Filters

This article reveals a collection of unconventional JavaScript techniques—including regex replacement, Unicode escapes, eval tricks, unusual operator combinations, custom getters/setters, and URL‑encoded payloads—that can evade common XSS filters and strengthen your understanding of web security.

BypassUnicodeXSS
0 likes · 10 min read
7 Surprising JavaScript Tricks to Bypass XSS Filters
21CTO
21CTO
Apr 19, 2016 · Backend Development

Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide

This article walks through the fundamentals of creating a tiny template engine, explaining how templates are split into text, variables and blocks, how delimiters are parsed, how an abstract syntax tree is built, and how both Python and JavaScript can render the template using eval or Function constructors.

ASTJavaScriptPython
0 likes · 8 min read
Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide