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
110
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
180
First try for CAS, SymPy with codegen
wdv4758h
0
690
Android Memory Leak Profiling - VMFive
wdv4758h
0
300
Vim 手指健康操
wdv4758h
3
890
FreeBSD ports system
wdv4758h
0
150
Other Decks in Technology
See All in Technology
小さく、早く、可能性を多産する。生成AIプロジェクト / prAIrie-dog
visional_engineering_and_design
0
350
形式手法特論:コンパイラの「正しさ」は証明できるか? #burikaigi / BuriKaigi 2026
ytaka23
16
4.4k
Redshift認可、アップデートでどう変わった?
handy
1
130
I tried making a solo advent calendar!
zzzzico
0
140
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
2025年 山梨の技術コミュニティを振り返る
yuukis
0
150
_第4回__AIxIoTビジネス共創ラボ紹介資料_20251203.pdf
iotcomjpadmin
0
170
「違う現場で格闘する二人」——社内コミュニティがつないだトヨタ流アジャイルの実践とその先
shinichitakeuchi
0
130
#22 CA × atmaCup 3rd 1st Place Solution
yumizu
1
130
あの夜、私たちは「人間」に戻った。 ── 災害ユートピア、贈与、そしてアジャイルの再構築 / 20260108 Hiromitsu Akiba
shift_evolve
PRO
0
470
ハッカソンから社内プロダクトへ AIエージェント ko☆shi 開発で学んだ4つの重要要素
leveragestech
0
570
純粋なイミュータブルモデルを設計してからイベントソーシングと組み合わせるDeciderの実践方法の紹介 /Introducing Decider Pattern with Event Sourcing
tomohisa
1
720
Featured
See All Featured
Leo the Paperboy
mayatellez
1
1.3k
Automating Front-end Workflow
addyosmani
1371
200k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
40
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Why Our Code Smells
bkeepers
PRO
340
58k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
160
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
170
Un-Boring Meetings
codingconduct
0
170
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
34
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
270
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 ?