Skip to content

Commit dfefcc6

Browse files
committedNov 20, 2017
add system.listMethods() method
1 parent 9147408 commit dfefcc6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎13.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
proxy = xmlrpc.client.ServerProxy("http://www.pythonchallenge.com/pc/phonebook.php")
44

5+
methods = proxy.system.listMethods()
6+
print(methods)
7+
58
evil = proxy.phone("Bert")
69

710
print(evil)

‎README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# pythonchallenge
22
Solve Problems in http://www.pythonchallenge.com
33

4+
#### 14
5+
result:
6+
7+
48
#### 13
59
result: http://www.pythonchallenge.com/pc/return/italy.html
610
```
711
import xmlrpc.client
812
```
913
It's amazing that RPC tech has so much long history.
1014

15+
16+
>system.listMethods
17+
This method returns a list of the methods the server has, by name.
18+
19+
1120
POST below with application/xml to server.
1221
```
1322
<?xml version="1.0"?>

0 commit comments

Comments
 (0)