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
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
200
First try for CAS, SymPy with codegen
wdv4758h
0
730
Android Memory Leak Profiling - VMFive
wdv4758h
0
320
Vim 手指健康操
wdv4758h
3
950
FreeBSD ports system
wdv4758h
0
160
Other Decks in Technology
See All in Technology
20260817_生成AIの動向と中学校・高等学校での活用を考える_v1.00_公開用
doradora09
PRO
0
190
2027年のMetricKit
kantacky
0
160
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
1
290
AI時代のアウトプット――変わったこと、変わらないこと / Devsumi 2026 Kansai #devsumi
jnchito
0
500
現場回帰したデータエンジニアが考える AI 時代のキャリア開発 / Career Development in the Age of AI Perspectives from a Hands-on Data Engineer
medley
0
310
FDEの心得
noriakioji
5
6.4k
도구에서 동료까지: 10년차 AI 스타트업의 AI 적응기
inureyes
PRO
1
330
AIにブラウザを触らせて、E2EテストをPlaywrightで書く
koji_kawamura
0
350
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
140
コーチングの奥義 何もしないテクニック
jinwatanabe
0
150
医療の現場を変革に挑戦した半年間の軌跡 - PythonとAIで現場を変える / From Code to Care
soudai
PRO
0
550
Kiro Crew入門 - 常駐エージェントの仕組みと使いどころ / Intro to Kiro Crew
k_adachi_01
1
770
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
480
エンジニアに許された特別な時間の終わり
watany
108
250k
How GitHub (no longer) Works
holman
316
150k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
500
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
620
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
570
What's in a price? How to price your products and services
michaelherold
247
13k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
480
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
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 ?