Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CPython's bug in feature that nobody uses
Search
dv
June 06, 2015
Technology
0
94
CPython's bug in feature that nobody uses
dv
June 06, 2015
Tweet
Share
More Decks by dv
See All by dv
Python module in Rust
wdv4758h
0
140
First try for CAS, SymPy with codegen
wdv4758h
0
630
Android Memory Leak Profiling - VMFive
wdv4758h
0
200
Vim 手指健康操
wdv4758h
3
780
FreeBSD ports system
wdv4758h
0
110
Other Decks in Technology
See All in Technology
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
590
TSのコードをRustで書き直した話
askua
2
180
2025年のARグラスの潮流
kotauchisunsun
0
800
ゼロからわかる!!AWSの構成図を書いてみようワークショップ 問題&解答解説 #デッカイギ #羽田デッカイギおつ
_mossann_t
0
1.5k
Building Scalable Backend Services with Firebase
wisdommatt
0
110
今年一年で頑張ること / What I will do my best this year
pauli
1
220
デジタルアイデンティティ人材育成推進ワーキンググループ 翻訳サブワーキンググループ 活動報告 / 20250114-OIDF-J-EduWG-TranslationSWG
oidfj
0
540
カップ麺の待ち時間(3分)でわかるPartyRockアップデート
ryutakondo
0
140
dbtを中心にして組織のアジリティとガバナンスのトレードオンを考えてみた
gappy50
0
280
メールヘッダーを見てみよう
hinono
0
110
DMMブックスへのTipKit導入
ttyi2
1
110
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
3
240
KATA
mclloyd
29
14k
Typedesign – Prime Four
hannesfritz
40
2.5k
Why Our Code Smells
bkeepers
PRO
335
57k
Unsuck your backbone
ammeep
669
57k
Transcript
CPython's bug in feature that nobody uses Chiu-Hsiang Hsu
[email protected]
nickname : dv (currently) undergraduate student
CPython the de-facto reference Python implementation
tarfile module to r/w tar archives include those using gzip,
bz2, lzma compression
tarfile module add CLI since Python 3.4
It’s similar to “tar” command in Unix-like system
Comparison tarfile module python -m tarfile -c files.tar files/ python
-m tarfile -c files.tar.gz files/ python -m tarfile -c files.tar.bz2 files/ python -m tarfile -c files.tar.xz files/ tar command tar cf files.tar files/ tar zcf files.tar.gz files/ tar jcf files.tar.bz2 files/ tar Jcf files.tar.xz files/
tarfile module can choose compression algorithm automatically, but tar command
can’t
seems a little bit smarter ?
But
It’s broken :(
It won’t use any compression algorithm !!! ? ? ?
None
tarfile.py with bug without bug
tarfile.py with bug without bug
I hate (love) those dot
fix in CPython 3.4.4 and 3.5
fix in CPython 3.4.4 and 3.5 but who cares this
feature XD ?