title: Why does Python give "OSError: [Errno 36] File name too long" for filename shorter than filesystem's limit?
body: <p>The following code yields an unexpected exception:</p>
  
  <pre><code>open("52bbe674cdc81d4140099b84fa69eea4249bcceee75bcbe4838d911ab076547cfdad3c1c5197752a98e5525fe76613dbe52dcdb1a9a397669babce0f101d010142cffa000000.csv", "w")
  OSError: [Errno 36] File name too long: '52bbe674cdc81d4140099b84fa69eea4249bcceee75bcbe4838d911ab076547cfdad3c1c5197752a98e5525fe76613dbe52dcdb1a9a397669babce0f101d010142cffa000000.csv'
  </code></pre>
  
  <p>This is unexpected because my filesystem is ext4 which (according to Wikipedia) has a 255 byte filename length limit. The above filename has a length of 144.</p>
  
  <p>So why does Python raise this exception when the filename length limit hasn't actually been exceeded?</p>