Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78134 > unrolled thread
| Started by | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| First post | 2014-09-22 13:37 +0200 |
| Last post | 2014-09-22 13:37 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Re: Class Inheritance from different module Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-09-22 13:37 +0200
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| Date | 2014-09-22 13:37 +0200 |
| Subject | Re: Class Inheritance from different module |
| Message-ID | <mailman.14193.1411385931.18130.python-list@python.org> |
> 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 top | Article view | comp.lang.python
csiph-web