Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python 3 and Unicode

INADA Naoki
September 14, 2018

Python 3 and Unicode

Python 3 の unicode 関連の進化についておさらいします。

INADA Naoki

September 14, 2018
Tweet

More Decks by INADA Naoki

Other Decks in Programming

Transcript

  1. *O1ZUIPO w 5XPTUSJOHUZFTTUS CZUFT VOJDPEF w &WFSZXIFSF w 6OJDPEF&SSPS w

    JGJTJOTUBODF T CZUFT TEFDPEF bVUG`  w JGJTJOTUBODF T VOJDPEF TFODPEF bVUG`
  2. 1SPCMFNOPUTPMWFE “Obviously the big change in Python 3 is how

    Unicode is being handled. While it appears that forcing Unicode on everybody is great, it's also a very unrealistic view of the world. It's unrealistic because in the real world we do not only deal with bytes and Unicode, we also deal with strings of a known encoding. “ IUUQMVDVNSQPDPPPSHUIPVHIUTPOQZUIPO
  3. 6OJDPEF*NQSPWFNFOUT w4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w 6OJDPEFMJUFSBM

    1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF
  4. TVSSPHBUFFTDBQF w TCEFDPEF bVUG` bTVSSPHBUFFTDBQF`  w /POEFDPEBCMFCZUFTBSFNBQQFEJOUP6 %$6 %$''

    w CTFODPEF bVUG` bTVSSPHBUFFTDBQF`  w #BDLUPPSJHJOBMCZUFT w *NQMFNFOUFEBU1ZUIPO w 0QUJNJ[FEBU1ZUIPO
  5. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF
  6. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF
  7. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF
  8. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF
  9. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1    w 5FYU*08SBQQFSSFDPOpHVSF
  10. 6OJDPEF*NQSPWFNFOUT w 4VSSPHBUFFTDBQF 1&1  w 'MFYJCMF6OJDPEFSFQSFTFOUBUJPO 1&1  w

    6OJDPEFMJUFSBM 1&1  w CZUFT 1&1  w #FUUFS65'TVQQPSUPO8JOEPXT 1&1   w #FUUFS65'TVQQPSUPO104*9MPDBMF 1&1   w 5FYU*08SBQQFSSFDPOpHVSF