Commits

Dinu Gherman committed 5fce32d Draft

Added a couple of Python questions.

Comments (0)

Files changed (2)

Binary file modified.
 % 'R6': class PDFInfo 
 6 0 obj
 << /Author (anonymous)
- /CreationDate (D:20130113171103-01'00')
+ /CreationDate (D:20130114152906-01'00')
  /Creator (ReportLab PDF Library - www.reportlab.com)
  /Keywords ()
  /Producer (ReportLab PDF Library - www.reportlab.com)
 % page stream
 << /Filter [ /ASCII85Decode
  /FlateDecode ]
- /Length 1145 >>
+ /Length 1524 >>
 stream
-Gau`SD/\/e&H6R_s5?.&RE_+F<sicrL+_4g$r(6)h<KB\--B[IOfh6oc$oUdPV'M$PH$o)_h'>.C#8I:*M9)T9^tL;G>\M?15CeF-r:02),QB=0V?2)q/ES:+_p?u#nG1$]0m>EcOYUEr.#DET&Q7Q7VfHpeKm1p#bSo+;^fgD,cjTk!W3dO&6#s,_>HI?cg@0"]AW"Uh-IE,%S/R=Jq1^M32#d(E:D7]44eIC_Us&VnD00_'9S3DY[?;gkS0Nk>"8f`+e-l%c*\-UlH;OKfCh8jCJ&sL3pMY:Ga"%2LHAgVF:'LM=8+&^]>^][+#pnZIuclFZNJZZaZk\>fJ!a]kFa*@OVqp_P[#AemN4b^XZ7qXVCLGJEe!ApcO9\8r9.",cAj";C2fIY\YU4L'P[_:J&X&$R?0N7KXhJB2O0@Sh&!(5Ig5RjZ5[JF`B/\m)&Or=(g8TideeV@I@stc8A`rpYX892(F)VrjMrk?Su=gH,cEHMl!gIS-+k14_^^9`Qg*mS90l+t'>G3P"M_+_P#XF(mn3;Qi:?RJ_5HoNi/KG0PH)T]r.b=%mt(9/:.E;>PIb-+@2lX+30m4[$Z:3PZV%^3n+Q<>PZh*5E^J*MnE&;YrIMo1I5A^Z5ls!(J-I0:4HG*SLVuXb2=9P1>?jChFZ9DVeW%9BUNPpOd9`s8GXC1UV3PIg^7q``d,lk$g*-,a<-:"6ena.+PZkfaM.qi`!j)o8',]9)6u,R^_'qFaN!P:-f<kF(!ppYks7$o<Rf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WlfhD:-Hd;n!B)*Mj';[$Hu^p8lUJ%jm$LpAOf/0&X^W6:79;;g&ZV:SY6a4NpDplIkpX&`%2^F7nL5"Ej(*i)8:ZS74K@T"ED1V/=<`6>d^]hBD_p#4-E#1`p/Z*SQERp:DR3e\q$KL^gOCF-Oo6AgHr*=S_n/=aqOPAW6QCEtF(m3&c4>fT'K/lSFb"(Tb>p!N_3*;3/Z90!UU(-s:q5'q\Xg6D#sXpRcdj.@M>%UEg8C&A6(/DW(?2Tl>GQ&+)Obg&~>endstream
 endobj
 % 'R10': class PDFOutlines 
 10 0 obj
 0000001061 00000 n
 0000001343 00000 n
 0000001456 00000 n
-0000002742 00000 n
-0000003720 00000 n
+0000003121 00000 n
+0000004794 00000 n
 trailer
 << /ID 
  % ReportLab generated PDF document -- digest (http://www.reportlab.com) 
- [(\316N\001\367%\014:\336cR\204\270\351?\330\245) (\316N\001\367%\014:\336cR\204\270\351?\330\245)] 
+ [(\220\222\006o<Y\203\310xj\220\254\367\346\011\000) (\220\222\006o<Y\203\310xj\220\254\367\346\011\000)] 
 
  /Info 6 0 R
  /Root 5 0 R
  /Size 11 >>
 startxref
-3772
+4846
 %%EOF

samples/python.rst

     
     .. http://www.linkedin.com/groupItem?view=&gid=1846027&type=member&item=197213748
 
-
 .. container:: answer
 
     These are the possible assignment types:
 
     To which company did Guido van Rossum, the inventor of Python, move to after working for Google?
 
-
 .. container:: answer
 
     Guido moved in January 2013 to Dropbox.com which uses Python for their product from day #1.
 
+
+.. container:: question
+
+    In which Python version was the ``print`` statement officially replaced with a function? And, was that function also available before? If so, how?
+
+.. container:: answer
+
+    The ``print()`` function has replaced the equally named statement in Python 3.0. It was available already from 2.6 on using a special statement to import it from the *future*::
+    
+        from __future__ import print_function
+
+
+.. container:: question
+
+    Name three packages in the Python standard library for handling command-line arguments and options.
+
+.. container:: answer
+
+    Python included over time several packages to deal with command-line arguments and options:
+    
+    - getopt
+    - optparse
+    - argparse
+
+
+.. container:: question
+
+    On which syntax elements can Python decorators be used?
+
+.. container:: answer
+
+    Python decorators were first available on functions and methods and later added to classes, too.
+
+
+.. container:: question
+
+    What is a *PEP*?
+
+.. container:: answer
+
+    A PEP is a so-called Python Enhancement Proposal. These are used by the community to formally suggest and decide about improvements to the Python language, see http://www.python.org/dev/peps/.
+
+
+.. container:: question
+
+    Name at least five different Python implementations.
+
+.. container:: answer
+
+    This is a, probably incomplete, list of Python implementations:
+    
+    - CPython (the *default* Python)
+    - Jython
+    - Cython
+    - Stackless Python
+    - PyPy
+    - IronPython