@@ -20,22 +20,22 @@ https://www.firebase.com/signup/
20
20
``` python
21
21
>> > import firebase
22
22
>> > URL = ' lucid-lychee' # see note on URLs at the bottom of documentation
23
- >> > firebase.get(URL ) == None # this is an empty Firebase
24
- True
23
+ >> > print firebase.get(URL ) # this is an empty Firebase
24
+ None
25
25
26
26
>> > firebase.put(URL , ' tell me everything' ) # can take a string
27
- >> > firebase.get(URL )
28
- u ' tell me everything'
27
+ >> > print firebase.get(URL )
28
+ tell me everything
29
29
30
30
>> > firebase.put(URL , {' lucidity' : 9001 }) # or a dictionary
31
- >> > firebase.get(URL )
31
+ >> > print firebase.get(URL )
32
32
{u ' lucidity' : 9001 }
33
33
34
34
>> > firebase.put(URL , {' color' : ' red' }) # replaces old value
35
- >> > firebase.get(URL )
35
+ >> > print firebase.get(URL )
36
36
{u ' color' : u ' red' }
37
37
38
- >> > firebase.get(URL + ' /color' )
38
+ >> > print firebase.get(URL + ' /color' )
39
39
u ' red'
40
40
```
41
41
@@ -48,15 +48,15 @@ u'red'
48
48
``` python
49
49
>> > import firebase
50
50
>> > URL = ' tibetan-tumbleweed'
51
- >> > firebase.get(URL ) == None
52
- True
51
+ >> > print firebase.get(URL )
52
+ None
53
53
54
54
>> > firebase.patch(URL , {' taste' : ' tibetan' })
55
- >> > firebase.get(URL )
55
+ >> > print firebase.get(URL )
56
56
{u ' taste' : u ' tibetan' }
57
57
58
58
>> > firebase.patch(URL , {' size' : ' tumbly}) # patching does not overwrite
59
- >> > firebase.get(URL )
59
+ >> > print firebase.get(URL )
60
60
{u ' taste' : u ' tibetan' , u ' size' : u ' tumbly' }
61
61
```
62
62
81
81
{u ' data' : {u ' status' : u ' mortified' }, u ' path' : u ' /' }
82
82
>> > firebase.patch(URL , {' reason' : ' blushing' }) # this one is scary
83
83
{u ' data' : {u ' reason' : u ' blushing' }, u ' path' : u ' /' }
84
- >> > firebase.get(URL ) # notice the update only gave us the new k,v without telling us
84
+ >> > print firebase.get(URL ) # notice the update only gave us the new k,v without telling us
85
85
{u ' status' : u ' mortified' , u ' reason' : u ' blushing' }
86
86
87
87
>> > firebase.put(URL , {' color' : ' orange-red' }) # expect change from S
88
88
{u ' data' : {u ' color' : u ' orange-red' }, u ' path' : u ' /' }
89
- >> > firebase.get(URL ) # put overwrites, but S doesn't tell us!
89
+ >> > print firebase.get(URL ) # put overwrites, but S doesn't tell us!
90
90
{u ' color' : u ' orange-red' }
91
91
92
92
>> > firebase.put(URL + ' /color' , ' red' )
0 commit comments