forked from named-data/PyCCN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEWS
33 lines (23 loc) · 712 Bytes
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
What's new in version 0.2?
--------------------------
Completly changed the way pyccn was being imported. Now the pyccn is imported
in a very similar way to other Python modules.
For example, the old way of importing looked like this:
from pyccn import *
handle = CCN.CCN()
key = handle.getDefaultKey()
The new version is:
import pyccn
handle = pyccn.CCN()
key = handle.getDefaultKey()
The Name objet is now immutable, all opperations that were modifying Name's
contents now return a new Name object. For example:
Old way:
from pyccn import Name
n = Name.Name('/hello/world')
segment = Name.Name(n)
n.appendSegment(42)
New way:
import pyccn
n = pyccn.Name('/hello/world')
segment = n.appendSegment(42)