GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OO mode: inheritance · Issue #61 · PythonTurtle/PythonTurtle

OO mode: inheritance #61

New issue
Copy link
New issue
Copy link
Open
Open
OO mode: inheritance#61
Copy link

Description

@darvin
darvin
opened on Sep 29, 2010
Issue body actions

in Object Oriented mode, make several animals.

class animal(object):
     ....

class Turtle(animal)
     ....

there is only two predifined classes. another classes user will define
pictures of animal are shipped with programm and equal class name or class's father name

Activity

  1. darvin commented on Sep 29, 2010

    @darvin
    darvin
    on Sep 29, 2010
    Author
    More actions

    after #60

  2. darvin commented on Sep 29, 2010

    @darvin
    darvin
    on Sep 29, 2010
    Author
    More actions

    some troubles with it:

    in in-game console:

    Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    x=Frog()

    class JumpingFrog(Frog):
    pass

    d = JumpingFrog()
    send()

    in stderr:

    Traceback (most recent call last):
    File "/usr/lib/python2.6/multiprocessing/queues.py", line 242, in _feed
    send(obj)
    PicklingError: Can't pickle <class 'JumpingFrog'>: attribute lookup builtin.JumpingFrog failed

    any ideas?

  3. cool-RR commented on Sep 29, 2010

    @cool-RR
    cool-RR
    on Sep 29, 2010
    Member
    More actions

    For some reason JumpingFrog's __module__ is set to __builtin__. It needs to be set to __main__. I tried setting it manually to __main__ and it worked. So investigate why it's being set to __builtin__.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.