Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class#allocate #678

Merged
merged 4 commits into from
May 5, 2013
Merged

Class#allocate #678

merged 4 commits into from
May 5, 2013

Conversation

krekoten
Copy link
Contributor

@krekoten krekoten commented May 4, 2013

Specs fixed:

Class#allocate

  • does not call initialize on the new instance
  • raises TypeError for #superclass

Specs fixed:

Class#allocate
- does not call initialize on the new instance
- raises TypeError for #superclass

@classdef.method("initialize")
def method_initialize(self, space, args_w, block):
self.superclass = w_superclass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This technically means that the superclass attribute is no longer immutable. You'll need to change the _immutable_attrs_ list to now contain "superclass?".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, you're right :)

alex added a commit that referenced this pull request May 5, 2013
@alex alex merged commit dca6296 into topazproject:master May 5, 2013
@krekoten krekoten deleted the class_allocate branch May 5, 2013 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants