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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
dv
June 06, 2015
Technology
130
0
Share
CPython's bug in feature that nobody uses
dv
June 06, 2015
More Decks by dv
See All by dv
Python module in Rust
wdv4758h
0
190
First try for CAS, SymPy with codegen
wdv4758h
0
710
Android Memory Leak Profiling - VMFive
wdv4758h
0
310
Vim 手指健康操
wdv4758h
3
930
FreeBSD ports system
wdv4758h
0
150
Other Decks in Technology
See All in Technology
React Compiler導入の効果と運用の工夫
kakehashi
PRO
3
280
AI全盛の今だからこそ、あえてもう一度振り返るAPIの基礎
smt7174
3
130
20260516_SecJAWS_Days
takuyay0ne
2
500
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.7k
【関西製造業祭り2026春】現場を変える技術はここまで来た〜世界最大の製造業見本市から持って帰ってきたもの〜
tanakaseiya
0
180
SpeechTranscriber + AIによる文字起こし機能
kazuki1220
0
110
TSKaigi 2026 - enumよ、さようなら
teamlab
PRO
1
140
AWS WAFの運用を地道に改善し、自社で運用可能にするプラクティス
andpad
1
530
20260515 OpenIDファウンデーション・ジャパンご紹介
oidfj
0
210
そのSLO 99.9%、本当に必要ですか? 〜優先度付きSLOによる責任共有の設計思想〜 / Is that 99.9% SLO really necessary? Design philosophy of shared responsibility through prioritized SLOs
vtryo
0
830
最新技術を"今は選ばない"という技術選定
leveragestech
PRO
0
250
Fラン学生が考える、AI時代のデザインに執着した突破口
husengs7
1
220
Featured
See All Featured
Accessibility Awareness
sabderemane
1
120
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
190
[SF Ruby Conf 2025] Rails X
palkan
2
1k
Rails Girls Zürich Keynote
gr2m
96
14k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
810
Paper Plane
katiecoart
PRO
1
50k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
120
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
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 ?