Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Side by Side Diff: Doc/library/xdrlib.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/warnings.rst ('k') | Doc/library/xmlrpc.client.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`xdrlib` --- Encode and decode XDR data 1 :mod:`xdrlib` --- Encode and decode XDR data
2 ============================================ 2 ============================================
3 3
4 .. module:: xdrlib 4 .. module:: xdrlib
5 :synopsis: Encoders and decoders for the External Data Representation (XDR). 5 :synopsis: Encoders and decoders for the External Data Representation (XDR).
6 6
7 7
8 .. index:: 8 .. index::
9 single: XDR 9 single: XDR
10 single: External Data Representation 10 single: External Data Representation
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 .. _xdr-exceptions: 253 .. _xdr-exceptions:
254 254
255 Exceptions 255 Exceptions
256 ---------- 256 ----------
257 257
258 Exceptions in this module are coded as class instances: 258 Exceptions in this module are coded as class instances:
259 259
260 260
261 .. exception:: Error 261 .. exception:: Error
262 262
263 The base exception class. :exc:`Error` has a single public attribute 263 The base exception class. :exc:`Error` has a single public data member
264 :attr:`msg` containing the description of the error. 264 :attr:`msg` containing the description of the error.
265 265
266 266
267 .. exception:: ConversionError 267 .. exception:: ConversionError
268 268
269 Class derived from :exc:`Error`. Contains no additional instance variables. 269 Class derived from :exc:`Error`. Contains no additional instance variables.
270 270
271 Here is an example of how you would catch one of these exceptions:: 271 Here is an example of how you would catch one of these exceptions::
272 272
273 import xdrlib 273 import xdrlib
274 p = xdrlib.Packer() 274 p = xdrlib.Packer()
275 try: 275 try:
276 p.pack_double(8.01) 276 p.pack_double(8.01)
277 except xdrlib.ConversionError as instance: 277 except xdrlib.ConversionError as instance:
278 print('packing the double failed:', instance.msg) 278 print('packing the double failed:', instance.msg)
279 279
OLDNEW
« no previous file with comments | « Doc/library/warnings.rst ('k') | Doc/library/xmlrpc.client.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+