[issue33478] PEP 8 CapWords reference wrong?

2018-05-13 Thread R. David Murray
R. David Murray added the comment: In PEP 8 'CapWords" does not refer to the capwords function, as is fairly clear from context. A big clues is that it is not spelled 'capwords', and case matters in python function names :) I can understand your getting confused, but

[issue33478] PEP 8 CapWords reference wrong?

2018-05-13 Thread Amit Saha
Amit Saha added the comment: Thanks for the reply. I think I was not clear - the behavior of string.capitalize() is correct as per documentation. But the PEP8 referring to CapWords as cap words case is the bit I am not clear about, since `Capwords` back when you call

[issue33478] PEP 8 CapWords reference wrong?

2018-05-13 Thread Berker Peksag
Berker Peksag added the comment: 'CapWord' is a single word so string.capwords() works as documented: Split the argument into words using str.split(), capitalize each word using str.capitalize(), and join the capitalized words using str.join().

[issue33478] PEP 8 CapWords reference wrong?

2018-05-12 Thread Amit Saha
New submission from Amit Saha : PEP 8 suggests class names and type variable names to be in CapWords case. However: >>> import string >>> string.capwords('CapWord') 'Capword' Wondering if this this an oversight or am I misunderstanding something? -- assignee: