Skip to content
Permalink
Browse files

two more passing specs

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 8, 2013
1 parent ad61546 commit 40e055da18ae5ea7a952edd02f5fcd0e9ef77fea
Showing with 2 additions and 3 deletions.
  1. +0 −1 spec/tags/core/hash/clear_tags.txt
  2. +0 −1 spec/tags/core/hash/element_set_tags.txt
  3. +2 −1 topaz/objects/hashobject.py

This file was deleted.

@@ -1,4 +1,3 @@
fails:Hash#[]= associates the key with the value and return the value
fails:Hash#[]= duplicates string keys using dup semantics
fails:Hash#[]= duplicates and freezes string keys
fails:Hash#[]= raises a RuntimeError if called on a frozen instance
@@ -77,7 +77,8 @@ def method_fetch(self, space, w_key, w_value=None, block=None):

@classdef.method("store")
@classdef.method("[]=")
def method_subscript_assign(self, w_key, w_value):
@check_frozen()
def method_subscript_assign(self, space, w_key, w_value):
self.contents[w_key] = w_value
return w_value

0 comments on commit 40e055d

Please sign in to comment.
You can’t perform that action at this time.