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


Groups > comp.lang.python > #78134

Re: Class Inheritance from different module

Date 2014-09-22 13:37 +0200
From Jean-Michel Pichavant <jeanmichel@sequans.com>
Subject Re: Class Inheritance from different module
Newsgroups comp.lang.python
Message-ID <mailman.14193.1411385931.18130.python-list@python.org> (permalink)

Show all headers | View raw


> class User(Inheritance from API):
> def __init__(self, ID):
> steamapi.core.APIConnection(api_key = KEY)
> super( " Inheritance SteamUser" (ID)) # creates the user using the
> API
> 
> 
> [...]
> 
> 
> So that in my code when I need to create a new user, I just call 'usr
> = User("XXXXXXX")' instead of calling 'usr =
> steamapi.user.SteamUser(76561197996416028)', is that possible?
[snip


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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


Thread

Re: Class Inheritance from different module Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-09-22 13:37 +0200

csiph-web