Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33855

Re: Is it bad style to override the built-in function `type`?

Newsgroups comp.lang.python
Date 2012-11-23 09:08 -0800
References <d2e59ddf-d44c-44d9-91c5-539b03cfcfcb@googlegroups.com>
Message-ID <2ddcec85-6a2e-46ca-ae48-7be733fab19f@googlegroups.com> (permalink)
Subject Re: Is it bad style to override the built-in function `type`?
From Michael Herrmann <michael.herrmann@getautoma.com>

Show all headers | View raw


Thanks for your replies, 

Emile, the link you gave is about attribute names, and does not give a definite answer. I wrote this post in hope for an answer to the question how many people here think it would be OK to override `type` in the very specific context of a GUI automation library, and how many people would not like it.

Roy, thanks for your input, we already have tried hard in the thread I quoted in my first post (http://bit.ly/10aOy4H). We found some non-conflicting names, however they're not quite as fitting as `type` and I'm here hoping to find out how "bad" overriding type would be, to be able to weigh it against the drawbacks of using a worse-fitting name. Regarding the website: I had never thought of that! ;-) I guess we should rename it to "About"...

I'm sorry for spamming this mailing list so much... I promise it won't be for much longer.

Best,
Michael

On Friday, November 23, 2012 5:12:39 PM UTC+1, Michael Herrmann wrote:
> Hi, 
> 
> 
> 
> do you think it's bad style to override the built-in function `type`? I'm co-developing a GUI automation library called Automa (http://www.getautoma.com) and 'type' would be a very fitting name for a function that generates artificial key strokes. 
> 
> 
> 
> This post is motivated by an already lengthy discussion on this mailing list (http://bit.ly/10aOy4H), where we tried to find alternative names for `type`. Many were found, but none are quite as fitting as 'type'. 
> 
> 
> 
> For the sake of avoiding a discussion that is already being lead elsewhere please confine this thread to what you generally think about overriding `type`, and post suggestions for alternative names or solutions in the other thread.
> 
> 
> 
> Thank you very much!
> 
> Michael

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-23 08:12 -0800
  Re: Is it bad style to override the built-in function `type`? Emile van Sebille <emile@fenx.com> - 2012-11-23 08:39 -0800
  Re: Is it bad style to override the built-in function `type`? Roy Smith <roy@panix.com> - 2012-11-23 11:47 -0500
  Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-23 09:08 -0800
  Re: Is it bad style to override the built-in function `type`? Terry Reedy <tjreedy@udel.edu> - 2012-11-23 13:35 -0500
    Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-23 10:41 -0800
      Re: Is it bad style to override the built-in function `type`? Cameron Simpson <cs@zip.com.au> - 2012-11-24 09:30 +1100
        Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-24 14:32 -0800
          Re: Is it bad style to override the built-in function `type`? Cameron Simpson <cs@zip.com.au> - 2012-11-25 09:47 +1100
          Re: Is it bad style to override the built-in function `type`? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-25 04:06 +0000
            Re: Is it bad style to override the built-in function `type`? Cameron Simpson <cs@zip.com.au> - 2012-11-25 17:33 +1100
        Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-24 14:32 -0800
    Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-23 10:41 -0800
  Re: Is it bad style to override the built-in function `type`? Ramchandra Apte <maniandram01@gmail.com> - 2012-11-24 23:02 -0800
  Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-11-29 03:46 -0800
  Re: Is it bad style to override the built-in function `type`? rusi <rustompmody@gmail.com> - 2012-11-30 09:54 -0800
    Re: Is it bad style to override the built-in function `type`? Michael Herrmann <michael.herrmann@getautoma.com> - 2012-12-03 02:57 -0800

csiph-web