[Python-ideas] Improving Clarity of re Module

Andrew Barnert abarnert at yahoo.com
Thu Nov 28 09:00:32 CET 2013


On Nov 27, 2013, at 23:43, Georg Brandl <g.brandl at gmx.net> wrote:

> Am 28.11.2013 06:41, schrieb Andrew Barnert:
>> From: Ryan Gonzalez <rymg19 at gmail.com>
>> 
>> 
>>> Whoops...
>>> 
>>> matched_text matched all_groups
>>> 
>>> Bad habit from C++...
>> 
>> 
>> When did C++ change from for_each, find_if, and replace_copy to forEach,
>> findIf, and replaceCopy? The entire C++ standard library, the C standard
>> library that it incorporates by references, Boost and many related
>> third-party libraries, the POSIX API that's available on almost every
>> platform (even Windows), etc. are all lowercase_with_underscores.
>> 
>> Did you mean "Windows C API" when you said C++?
> 
> I don't think C++ stdlib and Boost are the only ways to program in C++ --
> take Qt for example, it has the camelCase convention (and don't I wish it
> hadn't).

Well, sure, and PyQt and PySide have the same camelCase conventions in Python.



More information about the Python-ideas mailing list