Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Last active December 11, 2015 08:49
Show Gist options
  • Save garybernhardt/4576162 to your computer and use it in GitHub Desktop.
Save garybernhardt/4576162 to your computer and use it in GitHub Desktop.
failbowl:~(master) $ irb
>> X = 1
=> 1
>> undef_const :X
NoMethodError: undefined method `undef_const' for main:Object
from (irb):2
>> const_undef :X
NoMethodError: undefined method `const_undef' for main:Object
from (irb):3
>> const_delete :X
NoMethodError: undefined method `const_delete' for main:Object
from (irb):4
>> delete_const :X
NoMethodError: undefined method `delete_const' for main:Object
from (irb):5
>> undef :X
NameError: undefined method `X' for class `Object'
from (irb):6
>> ^D
failbowl:~(master) $ python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> X = 1
>>> del X
>>> ^D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment