Tag

Eval

0 views collected around this technical thread.

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().

Evalcode evaluationdynamic execution
0 likes · 15 min read
Guide to Using Python's eval() Function
Test Development Learning Exchange
Test Development Learning Exchange
Jun 17, 2024 · Backend Development

How to Unquote Strings in Python: eval, ast.literal_eval, and json.loads

This article explains three common methods—eval, ast.literal_eval, and json.loads—for converting quoted Python strings into executable code or data structures, outlining their advantages, disadvantages, and appropriate use cases.

Data SerializationEvalast.literal_eval
0 likes · 5 min read
How to Unquote Strings in Python: eval, ast.literal_eval, and json.loads
Test Development Learning Exchange
Test Development Learning Exchange
Jun 17, 2024 · Fundamentals

Understanding Python's eval(): Usage, Risks, and Safer Alternatives

This article explains Python's eval() function, demonstrates basic and variable usage, highlights security risks, and presents safer alternatives such as ast.literal_eval and restricted eval implementations, providing code examples and practical recommendations for secure code execution.

EvalPythonast.literal_eval
0 likes · 5 min read
Understanding Python's eval(): Usage, Risks, and Safer Alternatives
Python Programming Learning Circle
Python Programming Learning Circle
Nov 17, 2021 · Fundamentals

Understanding Python eval(), exec(), compile(), globals() and locals() Functions

This article explains the purpose, usage, parameters, return values, and differences of Python's eval, exec, compile, globals, and locals functions, providing detailed code examples and output analysis to help readers grasp how these built‑ins work in various execution contexts.

EvalPythoncompile
0 likes · 13 min read
Understanding Python eval(), exec(), compile(), globals() and locals() Functions
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.

DatabaseEvalInstallation
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.

EvalFundamentalscoding tutorial
0 likes · 6 min read
Python built‑in functions: sorted, eval, and upper – syntax, parameters, and practical examples
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.

BypassEvalJavaScript
0 likes · 10 min read
7 Surprising JavaScript Tricks to Bypass XSS Filters