Source Code
Python2 Source Code Study: Dictionary and List Implementation
· β˜• 5 min read
1. Why Dictionary Lookups Are Faster Than List Lookups First, take a look at the following piece of code. 1 2 3 4 5 6 7 8 9 10 11 12 13 from time import time t = time() data = [chr(i) for i in range(97, 123)] # data =

Python 2 Source Code Study: Windows Compilation
· β˜• 2 min read
1. Compiler Preparation Prepare the Python source code From the official Python website, download the source code for the Python version you need to compile. The one chosen here is the latest Python 2 release, Python-2.7.14.tar.xz, click here to go there. Prepare a compiler On Windows, the project files built

Python2 Source Code Study: pyc
· β˜• 8 min read
This article uses the Python 2.7.8 source code as an example. 1. Common File Formats in Python py file A Python source code file, which can be modified with a text editor. pyc file The bytecode file generated after Python source code is compiled. pyw file When a pyc file is executed, a console window appears; when a pyw file is executed, it does not.

Arachni Security Scanner Source Code Analysis (Part 1)
· β˜• 7 min read
Arachni is a web security vulnerability scanner built on the Ruby on Rails framework. 1. Ruby on Rails Ruby on Rails, abbreviated ROR, is a web framework that consists of two parts: the Ruby language and the Rails framework. Ruby had always been popular in Japan, until 2004, when a 26-year-old Dane, David Heinemeier Hansson, proposed the web framework Rails.

Ghost Source Code Analysis (Part 1): Directory Structure
· β˜• 1 min read
Ghost version:“version”: “0.9.0-beta.2” |— content Content directory | |— apps directory, currently empty; apps may be deployed directly on Ghost in the future | |— data Database folder | |— images Image folder | |— themes Ghost theme folder |— core Core module directory | |— client Client-side code folder