prm's recent timeline updates
prm's repos on GitHub
Elixir · 57 watchers
abnf_parsec
ABNF in, parser out
Elixir · 42 watchers
dg
Elixir wrapper of :digraph with a pinch of protocols and sigils
Elixir · 34 watchers
elixir-queue
Queue data structure for Elixir-lang
Elixir · 27 watchers
extripe
Elixir Stripe API wrapper
Elixir · 26 watchers
clusterable
Prepare elixir/erlang nodes to be clustered
JavaScript · 25 watchers
img-src-ondemand
This is an Angular module that delays image loading to when it appears on the screen
Nginx · 18 watchers
docker-nginx-lb
Dynamic container load balancing with nginx and consul template
Elixir · 17 watchers
dist_stages
Distributed GenStage cluster experiment
Elixir · 16 watchers
elixir-jwt
Yet Another JWT Lib for Elixir
Elixir · 14 watchers
cookie_jar
CookieJar stores your cookies and applies them to future requests
Elixir · 11 watchers
elixir-side-effect
Elixir · 7 watchers
blop
Elixir IMAP client
Elixir · 7 watchers
elixir-cloudflare-api-client
Cloudflare API Client for Elixir community
JavaScript · 3 watchers
github-stars
获取你所有的星标仓库,并将它们的 README 文件保存为 Markdown 格式。
Elixir · 1 watchers
aoc
Ruby · 1 watchers
cighate
I hate cigarettes, who wants to second me?
Dockerfile · 1 watchers
docker-srs
Dockerized SRS (Simple-RTMP-Server)
Python · 1 watchers
estimationer
Agile story estimation in realtime over web sockets
Elixir · 1 watchers
fsx
File System EX
Elixir · 1 watchers
httpbin_proxy
Demo of migrating existing backend to Elixir
Shell · 0 watchers
alpine-caddy
Alpine Linux Docker Container running Caddyserver
TypeScript · 0 watchers
angular
One framework. Mobile & desktop.
CSS · 0 watchers
angular-talk
In house angular talk at Zendesk Melbourne Office.
JavaScript · 0 watchers
angular.js
HTML enhanced for web apps
Elixir · 0 watchers
arc
:paperclip: Flexible file upload and attachment library for Elixir
Elixir · 0 watchers
awesome-elixir
A curated list of amazingly awesome Elixir and Erlang libraries, resources and shiny things. Updates:
0 watchers
ayu
🎨🖌 Modern Sublime Text theme
Elixir · 0 watchers
bamboo
Testable, composable, and adapter based elixir email library for devs that love piping.
TypeScript · 0 watchers
basky
Basketball score keeping Angular app
0 watchers
bob
The Builder
Python · 0 watchers
BracketHighlighter
Bracket and tag highlighter for Sublime Text
0 watchers
cache-handler
Distributed HTTP caching module for Caddy
Elixir · 0 watchers
cachex
A powerful caching library for Elixir with support for transactions, fallbacks and expirations -
Go · 0 watchers
caddy-filemanager
:file_folder: Caddy plugin that provides a file manager
HTML · 0 watchers
caddyserver.com
Source of the Caddy website
Elixir · 0 watchers
calecto
Adapter for the Calendar library in Ecto
Elixir · 0 watchers
calendar
date-time and time zone handling in Elixir
0 watchers
canvas
A library for declarative use of Canvas API with Angular
Elixir · 0 watchers
castore
Up-to-date certificate store for Elixir. 🔐
Elixir · 0 watchers
cldr_currencies
Packages the currency definitions from CLDR into a set of functions to return currency data.
Elixir · 0 watchers
codepagex
Elixir string encoding conversion - like iconv but pure Elixir
Python · 0 watchers
ColorHelper
Sublime plugin that provides helpful color tooltips
Rust · 0 watchers
crates.io
Source code for crates.io
Elixir · 0 watchers
csv
CSV Decoding and Encoding for Elixir
Python · 0 watchers
curio
Go · 0 watchers
docker
Docker - the open-source application container engine
Dockerfile · 0 watchers
docker-caddy
Build caddy from source
Python · 0 watchers
docker-compose-scale
Test / Demo
Dockerfile · 0 watchers
docker-filebrowser
Filebrowser in alpine instead of scratch
Shell · 0 watchers
dockerfile
一些常用的 docker 镜像
Python · 0 watchers
DrSync
A Sublime Text's plugin for settings synchronization on Dropbox and GoogleDrive
Elixir · 0 watchers
ecto
A database wrapper and language integrated query for Elixir
Elixir · 0 watchers
ecto-json-null-repro
Elixir · 0 watchers
elixir
Elixir is a dynamic, functional language designed for building scalable and maintainable applications
HTML · 0 watchers
elixir-companies
A list of companies currently using Elixir in production.
Elixir · 0 watchers
elixir-distributed-supervisors-test
Test for distributed supervisors sharing one global worker
CSS · 0 watchers
elixir-lang.github.com
Website for Elixir
Elixir · 0 watchers
elixir-logo
Elixir implementation of logo language
Elixir · 0 watchers
elixir-ls
A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"
0 watchers
elixir-mail
Build composable mail messages
CSS · 0 watchers
elixir-school
Lessons about the Elixir programming language
0 watchers
elixir-sublime-syntax
The most powerful Elixir for the most Sublime experience.
JavaScript · 0 watchers
elixir-tmbundle
A TextMate and Sublime Text Bundle for the Elixir programming language.
Elixir · 0 watchers
elixir_sense
Provides context-aware information for code completion, documentation, go/jump to definition, signature info and more
0 watchers
every-programmer-should-know
A collection of (mostly) technical things every software developer should know
0 watchers
exceed
A high-level stream-oriented Excel (.xlsx) generator
Elixir · 0 watchers
exsync
Yet another elixir reloader.
Elixir · 0 watchers
ex_doc
ExDoc produces HTML and EPUB documentation for Elixir projects
Elixir · 0 watchers
ex_shards
Elixir wrapper for cabol/shards .
Go · 0 watchers
filemanager
:file_folder: File Manager which can be used as a middleware or standalone app.
Elixir · 0 watchers
file_system
Filesystem monitor for elixir
Elixir · 0 watchers
firezone
WireGuard®-based VPN server and firewall
Vue · 0 watchers
frontend
:milky_way: Vue based front-end for File Manager.
Python · 0 watchers
Fukei
A socks proxy based Tornado
Python · 0 watchers
FuzzyFileNav
Sublime Text Plugin that allows for file navigation via the quick panel taking advantage of Sublime's fuzzy searching.
JavaScript · 0 watchers
game-scorer
Ruby · 0 watchers
github-webhook-testing
This repo is used to test github Webhooks and APIs
Python · 0 watchers
GONGLUE
单机游戏攻略秘籍(1479篇)
0 watchers
govatar
Avatar generation library for GO language
Rust · 0 watchers
hackerrank-in-rust
Learn some Rust with Hackerrank
Ruby · 0 watchers
hash_schema
A ruby gem that validates Hash against some schema, works for hashes created from loading json and yml files, and suchlike
Elixir · 0 watchers
httparrot
HTTP Request & Response Server. An incomplete clone of http://httpbin.org
JavaScript · 0 watchers
hyperapp
1kb JavaScript library for building frontend applications.
Go · 0 watchers
imgproxy
Fast and secure standalone server for resizing and converting remote images
JavaScript · 0 watchers
instascan
HTML5 QR code scanner using your webcam
Python · 0 watchers
Intellitip
Quick function parameter hint for Sublime 3.x.
Go · 0 watchers
interlock
Docker Event Driven Plugin System
Elixir · 0 watchers
jwt_claims_ex
An Elixir implementation of the JSON Web Token (JWT) optional registered claims, RFC 7519
TypeScript · 0 watchers
kc
Key Combination Practice
JavaScript · 0 watchers
learn-phoenix
Learn channels really
0 watchers
libgraph
A graph data structure library for Elixir projects
0 watchers
livebook
Interactive and collaborative code notebooks for Elixir - built with Phoenix LiveView
0 watchers
LSP-angular
Convenience plugin for Angular Language Service
0 watchers
lumberjack
A simple, powerful, and very fast logging utility that can be a drop in replacement for Logger or ActiveSupport::BufferedLogger. Provides support for automatically rolling log files even with multiple processes writing the same log file.
Go · 0 watchers
machine
Machine management for a container-centric world
Ruby · 0 watchers
magic-paperclip
Adds magic file type detection to Thoughtbot's Paperclip
0 watchers
Main
📦 The default bucket for Scoop.
TypeScript · 0 watchers
material2
Material Design components for Angular
prm

prm

V2EX member #177065, joined on 2016-06-12 18:36:10 +08:00
prm's recent replies
Jul 25, 2016
Replied to a topic by strahe Python 关于 Python 的一个问题
归根结底这是 Python 语言设计的锅, python 定义了与各种 operator 等价的 magic method (双下划线 method ,比如__iadd__是+=,当然,也就是后来编译出来的 INPLACE_ADD),当你从语法上玩弄语义的时候(+=, []= 合并成了 x[y]+=z ),就被自己玩了。。
Jul 25, 2016
Replied to a topic by strahe Python 关于 Python 的一个问题
并不是一个 Bug ,来看一下 byte code

$ py -3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from dis import dis
>>> dis('''
... a = (1, [1,2,3], 'a')
... a[1] += [4]
... ''')
2 0 LOAD_CONST 0 (1)
3 LOAD_CONST 0 (1)
6 LOAD_CONST 1 (2)
9 LOAD_CONST 2 (3)
12 BUILD_LIST 3
15 LOAD_CONST 3 ('a')
18 BUILD_TUPLE 3
21 STORE_NAME 0 (a)

3 24 LOAD_NAME 0 (a)
27 LOAD_CONST 0 (1)
30 DUP_TOP_TWO
31 BINARY_SUBSCR
32 LOAD_CONST 4 (4)
35 BUILD_LIST 1
38 INPLACE_ADD
39 ROT_THREE
40 STORE_SUBSCR
41 LOAD_CONST 5 (None)
44 RETURN_VALUE

a[1] += [4]实际是两部操作,+= 和 []=

INPLACE_ADD 是 +=
STORE_SUBSCR 是 []=

先发生了+=,然后 []= 报错了。仅此而已。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3135 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 14:00 · PVG 22:00 · LAX 07:00 · JFK 10:00
♥ Do have faith in what you're doing.