Skip to content

Commit

Permalink
Merge pull request #1106 from jakerockland/no-none
Browse files Browse the repository at this point in the history
Disallow use of `None`, disallow use of `del`, implemented `clear()` built-in function.
  • Loading branch information
jacqueswww authored Dec 13, 2018
2 parents c8bd237 + e72fae4 commit 17a4f43
Show file tree
Hide file tree
Showing 15 changed files with 709 additions and 113 deletions.
14 changes: 14 additions & 0 deletions docs/built-in-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ Rounds a decimal up to the nearest integer.

Converts a variable/ literal from one type to another.

**clear**
-------------------------
::

def clear(a):
"""
:param a: variable to reset to its default value
:type a: all types

:output c: either decimal, int128, uint256 or bytes32
"""

Clears a variable's contents to the default value of its type.

**as_wei_value**
-------------------------
::
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Following the principles and goals, Vyper **does not** provide the following fea
Compatibility-breaking Changelog
********************************

8 **2018.12.12**: Disallow use of `None`, disallow use of `del`, implemented `clear()` built-in function.
* **2018.11.19**: Change mapping syntax to use map(). (`VIP1026 <https://github.com/ethereum/vyper/issues/564>`_)
* **2018.10.02**: Change the convert style to use types instead of string. (`VIP1026 <https://github.com/ethereum/vyper/issues/1026>`_)
* **2018.09.24**: Add support for custom constants.
Expand Down
85 changes: 0 additions & 85 deletions tests/parser/features/test_map_delete.py

This file was deleted.

Loading

0 comments on commit 17a4f43

Please sign in to comment.