doc: add an example about multiple extensions

`path.extname` returns only the last extension
Merge remote-tracking branch 'upstream/v0.10' into v0.10