On 2011-12-30, Günther Dietrich wrote:
> Adam Funk wrote:
>
>>Suppose I'm creating a class that represents a bearing or azimuth,
>>created either from a string of traditional bearing notation
>>("N24d30mE") or from a number indicating the angle in degrees as
>>usually measured in trigonometry (65
On 2011-12-30, Roy Smith wrote:
> "But!", some C++/Java type bondage addicts might cry, "there's nothing
> to prevent somebody from creating a DirectionIndicatingThingie directly,
> bypassing the factory functions. There's no way to make the constructor
> private!". To which the free-willed p
On Sat, Dec 31, 2011 at 10:39 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> You know a Python programmer's been at your C++ code when it opens:
>> #define class struct
>
> Why stop there?
>
> #define private public
Probably yeah, do both. Anyway, life's so much easier when yo
In article ,
Chris Angelico wrote:
> On Sat, Dec 31, 2011 at 10:24 AM, Roy Smith wrote:
> > "But!", some C++/Java type bondage addicts might cry, "there's nothing
> > to prevent somebody from creating a DirectionIndicatingThingie directly,
> > bypassing the factory functions. There's no way to
On Sat, Dec 31, 2011 at 10:24 AM, Roy Smith wrote:
> "But!", some C++/Java type bondage addicts might cry, "there's nothing
> to prevent somebody from creating a DirectionIndicatingThingie directly,
> bypassing the factory functions. There's no way to make the constructor
> private!". To which t
In article ,
Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or fro
On Fri, 30 Dec 2011 21:18:29 +, Jason Friedman wrote:
> class azimuth:
> def __init__(self, bearing, heading):
It is conventional, and recommended, to use an initial capital letter for
classes. (Yes, Python built-ins violate that rule, and indeed so do some
non-built-ins.) See PEP 8 for
On Fri, 30 Dec 2011 20:40:16 +, Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or from a number indicating the angle in degrees as
> usually measured in trigonometry (65.5, measured counter-clockwise
> from the x-axis). The class
On 30 December 2011 20:40, Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30
Adam Funk wrote:
> (Warning: this question obviously reflects the fact that I am more
> accustomed to using Java than Python.)
>
> Suppose I'm creating a class that represents a bearing or azimuth,
> created either from a string of traditional bearing notation
> ("N24d30mE") or from a number indi
Adam Funk wrote:
>Suppose I'm creating a class that represents a bearing or azimuth,
>created either from a string of traditional bearing notation
>("N24d30mE") or from a number indicating the angle in degrees as
>usually measured in trigonometry (65.5, measured counter-clockwise
>from the x-axis
(Warning: this question obviously reflects the fact that I am more
accustomed to using Java than Python.)
Suppose I'm creating a class that represents a bearing or azimuth,
created either from a string of traditional bearing notation
("N24d30mE") or from a number indicating the angle in degrees as
13 matches
Mail list logo