��c��RDUCK3 u 9��������������������>`������������� fts_main_data�index fts_main_datastats!num_docsavgdl�index fts_main_datadicttermidtermdf���index fts_main_datatermsdocid fieldidtermid�B`��index fts_main_datafields fieldidfieldxk�index fts_main_datadocsdocidnamelen��Vindex fts_main_data stopwordssw�;index fts_main_data\ match_bm25B�docname� query_stringfields+Kfieldsk*Kk b*KbK conjunctive4K conjunctive � � �tokens s ) �tstemmain � �unnest k �tokenize fts_main_data� query_stringindex/Kportersystemfieldids ��fieldid) fts_main_datafields"�* �fields)K � � m �&fsq  � �unnest � � string_splitmain�fields*K,system�fieldqtermids �termid l+dict fts_main_datadicttokensQ�dictterm�tokenstqterms ��termid�docid-terms fts_main_dataterms�2�* �fields)K � � e �fieldids�fieldid� � q �qtermidstermidqtermids�termid subscores  �docsdocid�len�term_tftermid�tf�df � �subscore*main t �logmain 0 �/main [ �+main � �-main� � q�num_docs( fts_main_datastats�dfsystem)Ksystem � �+main�df)Ksystemsystemsystem  �/main � �*main�tf � �+main�k)K systemsystem � �+main�tf p �*main�k  �+main � �-main)K �bsystem ? �*main�b � �/main�len� � n�avgdl( fts_main_datastatssystemsystemsystemsystemsystemsystemsystem w � Cterm_tf &�termid�docid A �tf count_starmainsystemqterms�docid�termidCcdocs (�docidqterms�docid��� conjunctive Z �countmain�termidsystem� � � ? � count_starmainsystemtokens)K X�term_tfdocid�cdocsdocid+docs fts_main_datadocsW�term_tfdocid�docsdocid+dict fts_main_datadictY�term_tftermid�dicttermid�score <scores ��docid _ �scoresummain�subscoresystem subscores�docid+docs fts_main_datadocs�2V�scoresdocid�docsdocidM�docsname�docnameindex fts_main_data�tokenizey�s I �string_split_regexmain � �regexp_replacemain � �lowermain { � strip_accentsmain-�0_macro_parameterstokenizessystemsystem6K$ (\\.|[^a-z])+*K *Kgsystem,K\s+systemmain;mainserial����������indexmaindatatext� __hf_index_id m �nextval/Kserial��� ��zy��D�������������������������� �������� +��]@ +��]@�������� ��% HYLL +��]@ +��]@% HYLLA������������ �X aazzzuijjk���������� �`-���������� �% 0�HYLLu�1 ��0� �@�0�0@A0 @B@�@���`   0$ @0� 0 @ A@ @��� 0A@ @�� �0@�D0�@@��1 @ ��� @@�@�@ @0P@@@�C @��0@@� 0@ 0p@0E@@@ � 0����@A@ �  � ���@ @����@�  0�@ �0� P@ @@�@@Q �A@@  �@ @@�  @@ �Ap0� �@�A @0@�B0@�0@�@� @�!�@P@� A�� @ @00�@ �@�@@ @ 0 �A @    Pp 0B �  @@ ��� @@ �@D@�@@� @ 0A�`@P�  @@@@�� aazzzuijjk�% 0�HYLL@P 0 AP@  @@0�0� @@�@B0�@@ @@0�� @�@  �  � D�0 @�B @! ��@�@� @@@ A  B�0�0@�@D �@@@@  @ @�@@�� �00 @ �@0� ��@��@ A�@@ @�0@���� � @�@@0@@@ �����0@@ ���  � 0@0@�� @@0��@  @�@�P�@��@H��@�@@0@@A @0���@�(@�0  B�@�p�!A@ ����@@@0@@`  00 @� 0��P@� �0` 0@@� @B�@�0Bp ! @@@ �B�  @ �@B @��% HYLLl�!�5`��C�`��������� `���������`��������� `��`��������� �% /`�HYLL5�@ �@�`0@  @ ���@@BC@@@@C @@0 0 @  � @@@�  A@�0@  @ @�@ @ 0�@@C� % /`�HYLL5�% HYLL[`�OA�A_B;      !"#$%&'()*+,-./0123456789:���������������� �� texttext�������� % HYLL5 texttext% HYLL@Adj�j������������� ������������� ��� N��������� �% ��HYLL5� ��@A0@�` @ @A@�@0@�@@@�@@�@0 @@ �@� �� 0@@�  @� �p�@ @�@@0@ ��@  �@  P @ �  0@ �% ��HYLL5� ��@A0@�` @ @A@�@0@�@@@�@@�@0 @@ �@� �� 0@@�  @� �p�@ @�@@0@ ��@  �@  P @ �  0@  N% HYLLQ��� ���;x� azero ;��������  azero % �;HYLL� @C� @ �@@A  � @� @���@00�P@@ 0  P @� @� 0� �0A�@�@�P@ @ 0@` �0� �@@@ 00 ��@ ���A0�@B@ @@��@� @ �A�0@�0�@ @ 0@��C0 @� �P 0`  @P�@@��0� � @�� @@�@00�@� �@��PB� @0� @��@@� 0�@@ 1;��� [INST[INST�(�� [INST[INST%'��  [INST[INST 2o�  [INST[INSTY6I�  [INST[INST�5��������� � �"����������  [INST[INSTY6% ��HYLL@ @�@�0@0 � ��@� 0`0@�@� �� @��@��@@���� @0@@��� P@@ �� @�@@@ 0@��� � �@� @@A@�@�% HYLLA���o�A"�oJ�X8(1�-  $-39=DHLPW\aglpy���������������������������  &,38=?DHLPSY^hlsv}���������������������� &,/3;BEHOY`cmt|���������������������� &).7:<@DGLPTVY^aflsw|����������������������  !%)/5=BHJQU[]bgkosy|�����������������������!)06:?CILS\chlpt}������������������������  %(14;@DJNQV\`hmpsw}������������������������� $)-48<>EIQXadioqv{��������������������������$(.7CHNORTY_dhnquy}���������������������   % * 0 6 ; @ J O S Y _ c j o t | � � � � � � � � � � � � � � � � � � � � � � �       # ' 2 5 : A F J N U Z ` f o u { � � � � � � � � � � � � � � � � � � � � �      % + 0 2 7 9 < B F I M T Y b g k s z � � � � � � � � � � � � � � � � � � � � � �      % . 5 8 @ C I L O Q S Z c g o u w ~ � � � � � � � � � � � � � � � � � � � � � � �    % - 5 : = A G K Q W [ ` d i q w ~ � � � � � � � � � � � � � � � � � � � � � � �  !&*.48?FKOSZ`fmy~��������������������� #-15;>CMQW\_giou{������������������������$',/6<CJPU\aeimu}�������������������������"%*/59>CHOW^dlpt}����������������������� %*17<@DHNRW`cilu|������������������������� /6<CKV\dmqy������������������   $*/4:?GPZ`dsx~�������������������������$.7=DW\bgjpsy~����������������������!%,/8?CHKNSX_jnv|���������������� #*38=CINV\lqv|�������������������� !&/6=BGOX^hnsy|��������������������� %(-?FMQU[dilrx|����������������������  6<?DINRY`eimty������������������������  $(06?EMNUY]`hnwz���������������������� '-18?DNQW]cims|��������������������� ").16>DMS[]bdipsx~���������������������  $*2:BEGNT[^afkt{���������������������  $).2<>FIRY^hlsy~�����������������������      # + / 4 9 A N [ e n w � � � � � � � � � � � � � � � � � � � !!!!!!"!(!-!0!3!9!#E#O#V#^#e#k#q#z#~#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#�#$$$$$$!$'$,$2$8$>$E$J$T$X$^$b$h$l$s$x$$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$%%%%%%#%&%,%2%8%>%D%J%N%R%X%_%c%e%k%o%u%}%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%�%&& &&&&#&'&,&6&B&S&Y&^&f&k&q&{&�&�&�&�&�&�&�&�&�&�&�&�&�&�&�&�&�&�&�&''''' '$'(','6'@'G'L'N'V'`'h'n'w'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'( (((((/(4(:(B(G(K(R(U(](i(p(v(|(}(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�(�() ) ))) )%)2)9)>)E)H)P)W)])d)h)m)r)v))�)�)�)�)�)�)�)�)�)�)�)�)�)�)�)�)�)�)�)** ***"*)*1*7*>*E*I*M*T*X*[*b*g*l*x*|*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*�*++ +++ +#+'+-+9+D+J+R+Z+]+i+m+q+w++�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+�+,, ,,,,(,-,9,=,D,K,R,],c,h,n,v,,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,�,---!-(-/-3-;-@-D-I-\-`-d-i-o-r-v-z-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-. .... .#.+.0.3.5.<.?.H.P.U.Z.`.f.p.|.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�./////"/&///7/@/C/J/M/U/Y/_/c/g/j/m/n/x/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/�/00 0000 0%0.060=0C0K0Q0X0]0f0l0t0{0�0�0�0�0�0�0�0�0�0�0�0�0�0�0�0�0�0�0�0111111!1&1-12191>1E1M1S1Y1]1a1g1n1t1{1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�12 2222"2*222;2H2P2T2Y2^2e2i2n2r2x22�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�23 333#3+30363;3?3D3J3U3Z3_3a3f3m3q3v3|3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�3�344 44444!4%4+454;4B4E4I4R4Y4`4h4q4y4|4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4�4555C5J5Q5U5X5Z5_5d5h5j5o5q5t5w5z5}5�5�5�5�5�5�5�5�5�5�5�5�5�5�5�5�5�5�5�566 66"6+666<6B6D6P6T6[6`6f6o6u6w6}6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�677777"7(7/767<7D7T7[7e7m7u7y77�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�7�78!8&8,8185898;8=8@8F8H8R8Y8`8f8l8s8v88�8�8�8�8�8�8�8�8�8�8�8�8�8�8�8�8�89999'91999@9D9L9S9X9]9`9f9q9|9�9�9�9�9�9�9�9�9�9�9�9�9�9�9�9�9�9::::%:):+:-:/:6:@:G:N:U:_:m:u:|:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:;;;;';/;5;;;@;E;H;O;R;V;\;`;h;r;v;|;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;�;< <<<<"<&<,<1<4<?<B<F<K<O<W<^<b<h<m<}<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<=== ====#=,=6=:=A=G=J=R=^=a=h=p=z=|=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=�=>>>>>%>.>3>=>M>U>c>k>s>x>~>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>�>? ???&?,?3?:?B?E?Q?Y?a?f?l?s?v?~?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?@ @@@@%@,@5@;@E@O@V@^@d@i@o@t@y@|@~@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@AA AA A&A0A6A?ADAHANARAWA^AcAgAnAyA�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�A�ABBBBBB"B&B-B2B5B8B;B>BCBIBMBRBUBgBoBxB�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�BCC CCCC&C,C3C;CCCHCNCWC_CaChCoCuCyC�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�CDD DDD D.D9D@DHDPDUDYD\DcDgDkDsDuD}D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�DE EEEEE'E,E6E=E@ECEHEOEYE^EeEgEmErEvEzE�E�E�E�E�E�E�E�E�E�E�E�E�E�E�E�E�EF FFFF!F+F3F:F?FDFNFUF`FhFkFqFtFxF{F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�FGGG!G,G9GAGGGLGRGXG\GdGfGiGnGtGwGzG~G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�GH HHHH H"H1H9H?HEHHHPHXH]H`HeHlHrH|H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�HIIIII(I.I3I8I>IAIFIJIQIVI[I^IbIgIoIvIzI|I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�IJ JJJ J(J*J-J/J4J8JZEZKZNZYZ]ZhZoZvZ{Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z�Z[[ [ [[["[%[-[0[:[@[F[L[Q[T[Y[_[d[m[s[{[�[�[�[�[�[�[�[�[�[�[�[�[�[�[�[�[�[\ \\\\!\'\+\3\=\@\C\H\U\[\`\b\j\t\w\�\�\�\�\�\�\�\�\�\�\�\�\�\�\�\�\�\�\�\]]] ]]]]!])]2]:]@]D]K]R]Y]a]d]k]l]v]�]�]�]�]�]�]�]�]�]�]�]�]�]�]�]�]�]^^ ^^^^#^(^0^7^@^C^J^O^Y^`^g^p^u^�^�^�^�^�^�^�^�^�^�^�^�^�^�^�^�^�^�^_ ____$_(_-_4_;_@_C_M_R_W_Z_^_d_g_j_o_u_{_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_�_```````$`)`,`/`6`=`E`J`N`V`[`_`d`k`r`w`~`�`�`�`�`�`�`�`�`�`�`�`�`�`�`�`�`�`a aaa a(a*a/a4a8a=aAaEaJaTaYa]aganaua|a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�abbbbb"b&b)b0b4b:bAbDbJbObWb]babkbpbqb}bb�b�b�b�b�b�b�b�b�b�b�b�b�b�b�b�b�b�bc ccc c$c(c4c>cDcIcQcVcZc`cdciclcscxc}c�c�c�c�c�c�c�c�c�c�c�c�c�c�c�c�c�c�c�cdddddd(d1d5d9d=d@dFdQdYdadhdodyd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�dee eeee'e*e,e1e5e>eEeMePeXe`eeekepeye~e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�e�eff ffff#f*f/f7fpEpHpKpPpUpoptp{p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�p�pq qqq#q/q:qAqEqNqVqZqbqiqnqvqzq�q�q�q�q�q�q�q�q�q�q�q�q�q�q�q�q�q�qr rrr&r0r5r:rBrJrUrZr_rdrmrur}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rss sss&s+s1s7s>sFsHsMsRsWs_scslsrsyss�s�s�s�s�s�s�s�s�s�s�s�s�s�s�s�s�s�st tttt$t-t2t9t@tGtKtSt[tftmtvt|t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�t�tuu uuuu%u.u1u;uAuCuHuMuUu`uduoutuyu|u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�u�uv vvvv#v0v6v;v>vHvPvXvZvavjvrvwv~v�v�v�v�v�v�v�v�v�v�v�v�v�v�v�v�v�v�vww w"w%w)w.w3w7w:wBwGwMwZw`wjwqw~w�w�w�w�w�w�w�w�w�w�w�w�w�w�wxx xxxx x(x-x5x;x@xGxNxRxZxexrx|x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�x�xy y!y(y-y0y4y}B}P}]}c}i}o}r}t}z}�}�}�}�}�}�}�}�}�}�}�}�}�}�}�}�}�}~~!~+~2~@~D~K~N~Q~T~[~b~k~r~~�~�~�~�~�~�~�~�~�~�~�~�~�~�~�~�~�~�~%(4:?EPVbs{~�������������������� ��� �%�/�7�=�C�N�U�\�a�i�n�t�w�����������������€΀Ӏڀ������������(�0�5�;�A�H�K�R�W�Z�c�m�q�x�������������������āǁ΁ԁ؁܁������ ���!�(�/�2�5�7�:�@�C�I�L�R�`�f�h�n�w�|�������������������ǂ҂ۂ߂������� � ����)�/�7�=�D�K�R�[�`�f�w����������������������ȃσӃۃ����������'�/�3�8�A�G�N�[�a�d�k�s�y���������������������Ƅ̄΄фل���������� �(�3�<�E�J�N�T�Y�`�d�j�q�v�z�}�����������������Ʌυ҅؅݅��������� ����%�(�,�2�8�@�D�K�N�T�W�[�a�h�p�|�������������������������ÆƆˆΆ҆؆ކ�������� ��� �&�(�.�2�9�>�A�F�I�P�Y�\�c�i�l�v�{�������������������������‡ȇχӇև߇�����������"�'�-�6�<�?�C�N�Q�f�k�r�{����������������������ˆɈΈ҈ֈو������� ����$�-�2�:�=�E�P�V�Y�`�j�p�x�~�������������������‰ɉщىމ���������� �����)�0�4�<�C�I�N�U�]�a�h�q�u�z�~�������������������ÊʊҊՊڊ��������� � ����#�0�6�<�H�N�T�Y�^�d�l�q�u�z���������������ϋՋۋ�������������/�4�9�B�D�K�U�a�j�q�y�����������������������ŒŌЌ׌ߌ��������� �����"�&�-�7�9�?�D�J�S�\�c�h�q�u�y���������������������Íƍ͍ӍՍ܍������� � ���!�,�5�A�K�M�S�[�b�i�o�x�~�����������������ƎɎЎَ�����������������%�*�1�4�>�E�I�N�U�b�m�u�{���������������������̏ҏُ܏��������� ����!�(�,�3�=�?�E�L�R�X�_�f�l�o�s�w�z��������������������ΐՐِ������� �����&�.�?�G�L�R�W�_�h�m�s�y���������������������������ǑՑݑ������������%�0�5�=�C�H�J�R�X�]�`�f�j�q�}�����������������������’ǒΒԒےݒ�������� �����"�(�+�2�6�A�F�M�S�_�c�i�k�r�y�}���������������������ǓГדܓ������������ �$�)�.�6�=�C�G�M�R�W�^�b�g�l�s�}�������������������Ô˔ϔהݔ������� �� �)�2�8�B�G�L�R�V�^�b�h�k�q�v�}�������������������•ʕЕՕڕ��������� ����"�*�.�6�?�G�P�V�_�g�m�q�y�������������������������ȖЖӖՖזޖ�������� ���#�)�/�8�>�D�J�Q�\�a�c�j�q�~�����������������������ƗΗח�������� �����$�)�0�6�<�C�J�P�R�T�X�`�i�n�v�{���������������ƘʘҘژ��������� ��� �.�5�9�>�B�I�R�Y�\�^�d�k�s�z�~�������������Ǚə͙ϙљәՙۙ������� ���'�.�9�<�?�F�M�V�\�e�l�q�v�~���������������������ŚʚКޚ������� � ���"�(�.�2�:�>�E�L�Q�`�d�j�n�s�}�����������������������ÛʛΛқכڛ���������"�(�/�6�?�C�F�K�Q�V�]�d�k�p�u�y�}���������������������Ü͜МԜڜߜ������� �����#�%�(�1�3�8�@�F�M�X�\�a�l�r�v�|�������������������Ɲ˝Ν؝ߝ��������������#�(�+�/�4�8�A�H�N�U�[�d�k�p�}�����������Ğɞ͞Ϟў؞ڞݞ������������ ���#�(�.�7�=�E�J�M�S�Y�e�k�s�|���������������şʟ֟۟���������$�-�4�7�C�P�X�\�c�l�p�y��������������� ɠ̠Ҡՠ۠������� ���"�(�,�6�=�B�D�J�W�h�n�v�}�����������������������¡ɡϡҡա١ޡ����������� �'�,�5�<�B�G�V�g�~�������¢ɢ̢ϢѢԢۢ������ ���$�*�.�4�=�A�E�H�M�T�[�c�g�l�r�x����������������������ƣʣң�������� ����'�3�8�?�F�N�S�]�k�r���������������������ȤӤۤޤ��������� ��"�$�+�/�2�6�>�A�H�O�T�]�f�o�t�{�����������������������ɥΥХ٥������� ���#�'�2�4�9�>�F�M�S�\�d�l�v�x�}��������������������Ŧ˦Ԧڦަ�������������%�/�7�E�M�Q�[�e�g�l�w�|���������������������ŧ˧ѧ�������� ���&�.�4�8�<�F�I�L�W�[�f�m�t�|�~�������������ݨ�������� �&�,�0�8�<�A�E�J�Q�U�Z�a�h�j�n�v�}�����������������������Ʃͩةߩ������ ���"�'�9�@�B�J�Z�i�t�z�}���������������������Ū̪ЪԪ֪ު������������!�#�)�.�1�9�<�@�H�L�R�X�^�k�~���������������������ǫЫի۫���������%�,�0�5�<�@�H�R�Y�a�i�x�z�|�������������������ìʬЬ׬߬������������ ���#�*�2�8�;�D�H�M�Q�U�]�d�i�q�y�������������������������������ʭӭ������� � ����%�)�1�6�<�B�D�R�Y�`�g�j�s�|�������������������������ȮϮԮخ������� ����#�(�1�4�9�?�F�O�R�X�_�g�m�p�w�z�~�������������������ï˯ͯدޯ����������� �$�*�/�7�=�E�L�P�]�g�n�v�}�������������������°Ȱ̰аհٰ��������������"�(�0�,�3�<�D�K�O�U�X�^�a�i�m�w�{�������������������ɲѲڲܲ���������� ����%�*�1�9�A�H�Q�W�]�d�k�r�{����������������������Ƴȳгճ�����������#�/�3�7�B�H�U�]�d�i�q�t�w�}�����������������ȴʹѴڴ�������������%�-�0�5�;�=�J�R�X�b�h�r�w�~�������������������������µǵ˵ҵڵ�����������#�,�3�6�:�C�J�O�R�W�[�c�u�w���������������������ŶҶ׶۶�����������"�/�>�J�N�W�]�e�o�y���������������������ȷ˷ҷԷ޷������������� �����(�2�:�@�C�G�L�Q�Z�_�e�l�p�u�}���������������øӸٸ޸����� ����(�1�summarilitranscribclipboardkilometrefusguidancmultiarraimacfreekcreatesuperusipshelschedcorporsessionmiddlewarcarljmploneinheritancecastmodeljunitblithpasswordresetformabussqlitedbtrimpathdramabirdcondensquibblcrimpallegedliditchplanequadgurmtplibheritrixyourpackaghindsightdryfirmlidensitiasdhelodegrelarribraveeastvalaspinunaridrawnsajipsingleinstpaanticipaopdeliciauhmstatedatabashelotspellcheckisysrootricslibicmpstoragetestcasstacktracsimpletestmissingargalasdairinqueuformatstrgppncrossproductsquaredlengthbacurrentthreadfilecontstrtoklastponewsitemgripesnprdatapointscatterplottextfilrkcynvahtylpnfrfpicklingerrorsetlocalsupertypsegfaultwaldobuildoutnewclassooleancurrencclassableedopenofficnhhttpbasicauthhandlcontractfirmretypevacatereachothmethodtypandattfrefreshxmlrunnervarargbatcheldgeneratorexittantamountsomefunctintervalcryinconvenimisspelfixedlocwebservclubspadedafthiddeninputloglocepsilonggspeediintokenltembprnflcnffoernxfcnefrwebfactscottreconfigurlessoncookievaluwfloatfebruarioverflowerrorfmwantonindoweafnibmodultestvargodsdmydatdothercontradictmontgomeriherodbinforequesetcoauthorkomodopythonwinbzipmountinheritancemanagonetoonefielddepricrvighnkibmildarenamunmapmunmapwithoutvarpythagpyxhpdtoplevelreadasslsockintranetmathematicianurlififormulatoolshopfishintermediaritruetypcodewardixonfgpytestvarkwsystemexitantipatternbooktablguruembarassinglimarkuexecutorwefboneexploratoriobsessscaragilimagefieldutilisbufreplmyobjectregexfieldhamlstringrefsharpensidebarubaxvatarfgrqcrgrefapostrophcherokequotientmimeimagcolspanoddliarglistdtrussgdgenomediagrambiopythonpmubiomponntelmagemagickwesternslurphkclassinfopythonqtbrownnoddytypeminseanslightmydjangomodelclassstricookienamurssysadminpatchworkrakeaddtestcaswsgiapproptisdlafplaitplrelievxuxadostuffsublcassreferentidatestrsaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddsaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddsaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddlistcompdothatnoconfilnitpickfatpyenchanthfhbawkwardhelmnltkgratefullitolistalgoantennadlatrenewwishdeptdepartcommercipurchasascherdistroforumbaseresolvpyserisafeloadhttpadaptsmthhappendsevenbitstopbitchildclasstestdirectoritildenpenaxrecomendpollinfindpathhighthdgxzxlipopfevdnotrussianunicodeescapcecmdclasssimplerandomoldesttslibormuladegradtimecomplexromagefontpydaddercustomintdiemeranimaltestcasreschedulskysciencinvalidargscaretowntoalastestsirremedirealpathdoctrinpropelmvcsetauthorfolkloramorphdidnainqmultiprocfleshbasicsumhungpasswdmyhostfamoumicroframeworkboneconcentryourmodulresponsiblisakeriskibroaderthyselfhampercruftoverlorddreadhonestregressdareperusbeastlottkaizerartificipithylessrandomsitdedfprintftestsubsubtestpropertyvaluenkkuseragprofitscrewwritelogampmtryptichxstrcdarknewstatchatopportundelimetgetlinstringstreamshockislivefilterspecgpilotinodatetimefielddatelinabjtendofreezegunspulectbbqerabgvgqbbaylgurerershfrvafvyraprqfvyragylnygubhtuehyrffcrpvnyvzcyvpvggunayargwidersconfileencodhocdivmodstartfilpreamblunexpectedlirsetendmailratioggridspecsiftmysqldgenommanarogrpenclbemencodignsubmissgemfilbundlerchunksizsaloaddatadgrantbackticktemplatesyntaxcacheinfolrupresencjulienzwphvaluetobeinsertpycapsulpycfunctpydescrbrownnoddiperspectwavibrevitishirtieeegregoriboltzmannmlmathematicabandwagonshamelessligimmickderefseparatedvaluesfielddenormjacobcookielibbuildbotxpopenremovemodbudatagirdjsonpickltackllevelaendnumbantsystemrootcelerytestsuiterunnceleryprojectbrokermytaskcelerixucjrequestbccefnibverbatimcarmixermmmmmmmmpyenvbogautodiscovmenuentriparentidaimaybechoiceasyiergoossunsetrevtimeframajjucaisabwarrantmyarraiquantitimarrigetmrobabicategorymodeldatefmtfmtitemindexsdkjhisdirtaxdecembsomedefaultsomedefaultvaluconnectiondetailtimetuplanargsortdothismostofthetimdothiythonwcompiledfilpathextthroughputraiautocommitunhandltheorifreevarcellvardisassembliqualnamneatliimportantlirepurposjuneaualabamagabidlonfiftinpmstaleatleastbuilderinflectpluralishaloloenchantwordnetmemorbarfdatarowaprilmileearthasincaltitudatanradianoppsitaaltitudgphaversinencodestrfoursquarqpvojedbovpdnarajbftzdwoxyacituhttppasswordmgrwithdefaultrealmsessionexpiredmiddlewarhttpresponseredirectpulsexpiriimpendinactdhtextcharsomefilsomemorsomeoddtextaspxthunderbirdceoctoenthusiastveinsumocrappiindustrisafedumpcostliordereddumpdumperorderedloadpyyamldictcontainmonkeiperilconnectionerrorinwaitisopenbytesparitibaudratttyusbdowncastfkleafparentclassmiddleearthfrodowildcardmynewunhelpfullidodgiodjohnmachinmodulespecfoodfilefindsourcefileloadpathologlikelihoodobmallocarenammapprotwcwithvarfishistracefifteenblessreilliporterrestoncnrinewaxiwallclocktstartcczkesoterphilliacomplishrgbaparrotafraiddispatchermiddlewarwolevcflaggqsprpgkndereferencundeclarhandleraincompletevhttpmalformxxxxxxxxeelinsigmamugetpeercertcertsslvcertificateerrorexpirmycythonmodulsysconfigunintentionabipxdormulatooltatsmodelxtnalytstatsmodelrecompilaggresssvnadminrealtimmeatmitigcheesreallocctciallfilrawdataaptitudarialimagefontimagefiltimagedrawdelintrackerwontfixupdcaridorcharmjencowlmatthewbganaloadtestsfrommodulwigglmainloophogwriteheadflockbrotheralongsiddwfoudictwritxmltestrunntestrunnfailureexceptbaseassertequcdataxunitdamienjunitxmlwrinpsloppiiscallablewithargargdictgetrequiredarggetargspecpyrssfeedparslengthaalwaysasizeaupdateifcopiwriteablowndataunhelptwittercramdivisiblebioverlaiclassnambefounddistributionnotfoundmountainhuntmortemdialoggausssuperposembarrassinglimydirmetshameintropyopenglgigantsymfonihibernweaklisanitlinuordinarireadiliurllistoutgototpoutoutqcsvworkerwhistlbellsiphonnumprocskeletonteardownfreedblackboardpickleablgradualprocesspoolexecutorbaselincntcnoradbinucleardebugtoolbarmiddlewarxframeoptionsmiddlewarclickjackmessagemiddlewarauthenticationmiddlewarcsrfviewmiddlewarcommonmiddlewarbabelwtformhottestblueprinttheitdoctestdictproxiconsequenterprismushstrivespellcautionthingithereabouthmmblisswolfpalsolsleuthcheaplinmaetadexplosscreamqabreakagsuperbcombinatonciaoholaculturinternationreusablredglyphcousinnamedtemporaryfildjangosnippetyundeiviytimgtestfildisassembltomeprintfsprintslighlifixedformatthoopcommontestboxplottestcommonbasetestgettexttrampldynarrangsthdbshellsqlcleardumpdataisortpythonimportguidelinpythonstyleguidredditsocendpointopenstacknovasearchablquickerlaidmyconfigpropertynamenpropertyvaluinidiamondtheobjectcurrentpropertyvaluobjectnampropertynammsiesplitextaladotproductisbetweendariugeneratortypcpastunindindentationerrormydesiredvalucriteriaarbityourdictfilyourdictmaxnlocsomemodelinterfergenshipreprocessorshpamlfavourimptenthblahblahgetfilthrowawaireopenblandvinaiptokenbegininspacredeemvanillastlalfjoinercerrstdiocinsplinedelimnpoposstreamlpvudejaskillrustigtechoicesfilterspecfilterspecdatefieldfilterspecnewsitemadminformnewsitemadminbylinheadlindashboardoccupireliantphilipyosemitparthenonsnaggubfrzberyrgternganzrfcnprfvqrnonquneqvzcyrzragngvbaevtugbsgraqhgpulbhsvefgznlgungjnlboivbhfcersrenoylnaqthrffgrzcgngvbanzovthvglrkcyvpvgylhayrffarirfubhyqreebefchevglorngfcenpgvpnyvglrabhtunerapbhagfernqnovyvglqrafrsyngpbzcyvpngrqpbzcyrkfvzcyrrkcyvpvgorggrvfornhgvshigvzolclgubamrahonkdutchtemptatsilencpuritigreyscalshadefpythonftransliteraviantablixjingbeitransliterunaccunidecodrollbackbaretroublesomchishopcheapestcdnwarturfmoolenaarabramlispcitatadictcitizencontrivgetframipapicoolergnomexdgwittchristianpngfilereunionfamilicommaspacenvelopsmtpserverdisconnectgetreplidocmdmailtestmyservmycompanijonmontilameericgenexprmoonentitltrafficunrecogniselemtkinterbartelariablsetxoamstallerailsinailsinstalerokuodejgementhareindowspowershelystemwhereevmyprintckereuropeanbangemdashhyphengetresponstwillcrawlergemcartonconcatanalogjuliocesarrunpythonunloadignorenonexistintialbegancsvfileopeidbickianuntestseamlessrequestcontextwangmckeenanbilltelescopthompsonpylrurepozcurrsizfromarraigetargblablablaputdatagetdatapixpicpixelaccesspickablstaticmethodpicklabliterpretevaluatcharactermoralzerodivisionerrorlbylforgivpalardsgnzngdkdpkgfrgetlocalvtabloutsmartfragmentpythonqtclasswrapppythonqtclassinfonewmethodknewheaptypnoddytypbasetyptpflagtpkidsentencfunctionaobjectatonedilatmaskconvolvdepartmentstormahotacolleagumclooncompetitmlspklopperadvocrbmstripewallireleaselevelappwrappdecompilprepsubfieldbasseperatedvaluefieldcramerdavidhousekeepindirectonetomanimyfriendmynamchangablinferunsuccessgaussianhistbwscforesenstimerthereofinnocuredundwhereoftweaksuspicionnlespiownextnlprevnlretvallineiterdesperunsafinfamstretchfunctiontypreassemblserialistransmitasyncorprgchesspaidpinstubbornlithirdpartigetnodproneifconfigwmiremovepymssqlpymssqlwininstcxgeoffremovehandltrirandjqgridlevelbwihouthttperrorsubfibtroughfavouritwolframforumlajumblstartnumbpredecessorinvokearubyaroadmappywconsultbdefxefdjcelerimethodologiwilllexubaflookaheadofkokappamarshalbootsolidworkshoptogglinterchangtimeserimattspeechbfactorimodelserisenderdatefieldmanifestarchitectldconfiggavepurepathnckreputmistakarithmetpostfixtopmostrossumglancslangpostdatarushtestfuncsanermaxitreunitregistrihdlraxvlinresiddylibmigrationhistoriefficsimplifcensoreuclideanrecipipointsascourdebiandsansamplcmapfooclassexeaineligjitercgfzcmutablestrregardticklabeltopsecretalrightnumberofoccurrtransactquarternnoremapyankdoesnotexistneatestallevidistractxvecexpandusnodevaluzachpernicigranularsemimetriccapitalisproportiontimmiinvisibliunforeseenabhijitvemmiorangeligfuncnamcoordclimbknightrdbmxsamplurlpathshoulderupcomaccidgreidsidstormuxnextgencatalogssbatchoftwarapologmimemultipartepsilbalancalpharstudioconnectorpyportwithoutclasssolverreconstructbmpvcexpressstfutimothigasubtlihdfbruceietffacilitmegabytgigreeditzotgetrandombitstumblpearsonpytypbasecommandpingrewoundcbcmyformwildmsseattracteagereispeakainbuiltdistrictommandamazinglijprofiltypouurealistskittlfterrorenjoilinspacnulutahtarogrammaturconnahahelluniformlideeperlqmetricwhiteoutclustercentrspatialcombmaxvalgcmgrantpredatiterfindcctemptsmoothlongitudnginxunicodedatarecurrreferrnicityblockastroidndarraiotherurlfileurlbeatretentupsidkazansurroundportablepythondumpfilinfrontpyicumzxwnereulermeanaffhiccupprotocolgmailtearangelopoulcrypticstdliblennonpunchhyperlinkformdatadirtieffbotnsmapneedlesskeyboardinterruptmistakensemicolonpymacxlseperjointlidisttopointdatecolumnwithclasspetterppppphashtablcagestudentuniquecrosstabheuristmodeashotprofilecopidroplevelcringmembershipalexandappspotenddocfbobercsrfberasdfsfyourstrremnantanalyscanopiscraperputenvlablackberriannouncevaliterlencollismytabloldenvosxuntouchismpgettitltrustipaddrgnibblerbsdboundarippppplicatsudokutelecommunhdfstorepioneerstrawbaseconvertcomplaintamaxtexnntpfsegmentnewversquirkftpurlsupersedfirstthreadcreateprojectcreativrichiasdffoldercvirtualboxslnreynoldkeithkindlibottleneckridiculbrlapihbasedlvrdigestosetmacrocydoawesomkragenimaplibpyopenssloserrorreqgraphitcolorbaruserwarnnewcomstartupmiddlewarnoneaendlessairplanhtmlparsbehalfiterencodincarnsymtablpenguinprohibitlogouttfuserprofilmobileregistnullhandlteacherserissizehairisomemethodathformrequestwipeanecdotisarraiftpaddrrecommmendgetrootklexpenscoveragpyoinsertleavgraphemadventcorpfiboworstgolaiswinefluanacondamaverickcomplianchaltarisexitstackmouthpicklersubdomainmakespeaksdolancreepwheezidnlibfreetypruktechaparppppyahookeyordfreqmylogprmitivnytimxtocmsecrunsnakeruncprofilshlexadvocacilibcurlsysloghandlsonwaaaaislugfavorittenurdictatdollarasetheapqfoolconfidythoncorhtmlunitdrivmimetextwsgirefsystemwidcursormovediaustralianbzrtoolpnborderlingreenshineoperationalerrorformulprefinlinodbchelpcaxlinewidthtickerinstallationerrortheyapapercolourlittersomespecificexceptinnerclasstasksetstackexchangvechighestgeneralisshareddatamiddlewarrobotendlgrownextrapolunichrarrowcoarsfedoraquotatmuhammadtaqicandidretainscalarformattffffupvotsnakeviznaokiimituptourcosinedistkmeanssamplscikitjabshlibsquashblindncrprosperowaisdoctoplabelianagenericurlseturlbarktoshniwwaisurlnewsizbirthdatenthoughtimhovicinuptoxmlschemasmtplibxvfbheadlesslastnamunrelaccentcurtainrecognitcondomenicostreamwritnbbroadcastlotzgrainroomautocompletlecturbicyclsedgetpidronaldcrospeadflaskextiostreamhonestimiddlewarenotusmoosjamylakbasequeripythagorairritmessibirthdaizlibdchammerconvolutschoolcommonpathspammersaxdestintestitishotelectronispprivilegrecovcopyanythjasonpytablubuntuonomissoutputnammonitorprevdistgernclustertodensunsupervistrajrelnounspoilcustnumasdlnewlipycurlfblocklinenoboregatewaiflirtpylintrcregexconvertrichvasttypechecksprinklfsyncrequireloginmiddlewareftcombinatorimaxipadminvalwaisindexnationuchartelnetpurposefulliprosperourloverallocimpulsmileagteachercminfragilthreadlocjainoqasomenodjoebobarghrbtreeforgotdipreinstalblindinglibombstungwhinepriorimypiharcreatorserentestsomethvncbitwismacbookjantextfieldreenablnlpvowelpietweetexchangtotptadeckfaenviroyoavramiffexplanatoristaticfildubioufoozpygamfilelockdrastichelperfoofildoublispectolchokerfcfetchsqueezbuttmillenniumlibpythonquarreljjnnybulletprogressbarjoecaseavonpetrushevunintenduntrustsizeofmiliddabellowlegleveragmeowoverwritisnearlibziptiledicunprotectpinpointpanoevadsafetimusicasheeshpetfoometaclasspendevcentgotobdistritzelverartimamisinterpretchebyshevcompactavoilarandomsamplnearestrandomcentroutlierexctypnedisnapyastthingsadislikpgenconduitquasilingerstmtsheetmccartneiseatblockcustomernamdowngradluaanmyloggaescipherrmsgminieddyppostmanxchartransactionmanagementerrorhostnumbbnfhhgopheroctobqthreadwidespreaddisadvantagngcverifreglowalphaspitremovenonasciiweirderntriplidealisteggverslsttoimagclassroomseriaddheadcolummprecomputbrianvotebasespidwinpythoncoexistgoldencompromisartifactprefacisscalarftpuploaddevenvxreadlinmailhostlshwballoonfromhexlengjameaddressbookpumvisautocmdpythoncompletlazypropurlsafpygtkjgconceptugetpreferredencodkoreanchalkchemistrisixtenbquadratsomedaihadoopstrengthwildligetsortkeiexotreprointerruptsergroundlibclibutillibdldbauppcleanestsaveriofablmediasyncropeprojectinapproprinbformatglospuncorrelnauseatmathematdozenlinestylnullformattpystrabortmagicmockandrewbmphrasemultivaluedictacquirmgrdenialhanobvoushotzanitnthemailidcriterayesterdaiillegcssselectlatitudtowritaudiofilrelationshipinfrastructurhtopzopevstackhorriblpyccolormapcounterintuitstreetplausiblmouthoftruthdeseribdedpdontprintabcdabcvafullurlvecenoteworthiunsupportkaltreadbpythonrpylibwebpsubtrelaroiacookicolumbiacumbersomourtcfwbriggjokecountermeasurfoundatverbsmtpserversubjgotimemailfieldpathlibfoggithegreenplacappasoupstrainflattenscottkirkwoodsmoothspanviewpostmongojsonencoduseoffsetqslcondonlibevuserspacjellioppositconcealidentityfilkmiterjcentrbincountasanyarraideltasupervisscarcitipysymtwhoaacknowledgkarlsennearestcentrjccentrevecminkowskiissparskdemandatthomagcaddopdigressmystataixseatconfiguratorformbasicblocknchsitepackagguthypothetinteractiveconsolblobpropertihbrownredundantlihaskelncodeavatartextpropertioolpbankapycryptstreamlinmicroscopfunctionwithyieldpythonistafrownmmapecodightshortcomallocatcaseivogtunformatunpadfilterwarnuuidlalalamiscellanqapplicgrouppartasserttrugauravtoshniwftptypetelneturlnewsurlurlparscidoidpunurlsfilcaiocompanycontactpredictstrictversdeprecationwarnrequiredebugfalsadminemailhandlsigintsecondthreadthumbnailfirstchildredefinitminusprintflinesepmehpyavlsaurikgetelementsbytagnambornisspacpttwlguestbookzelluxdrrvmhackerremarkmozilarubiguessitemontinuumanalytocaljoinfielduserstrnbinrightliauxiliaridictreadtestbarjenkinchunkconsumptrtypesportleaguxsdowlrdfinaratzoffsetbyteordcompnesscomplementwhiteifirstnamsunfrituedangermovementsmitmemoismimetyppotmopycachcasioromanscandirowgetwritcalledanoisirankstrongbigdatadedicinveststrcollpyshartraintryoutchrisgilmesktopincremenetshacondareactiondatabaseerrorschemamigraeracodmystuffebaisetqdecrefplacementstealbasketbalptnbagetpermutexceedingliassosimrnauseatinglifepshareiradiuunevenbrandonwindfinderunresponskuchlpyconnanosecondmilliseondbhendfrequneighborsheeruntarcentorigamarolgeditbooleanfieldintcommabeautifullihabitintercalcrazifromlistwowwwfirstwebcocoarebootrootlesselscrapizzzpyobjcthemesetversgetartistartworkouterclassfunctvanpermandispatchiiinsightterspydatagimmxxxxrebuildfiddliramblsmtpdsmtpaccidentoverriddenbiggeraccelspritetoolbartreatmentsitemapprogrammingerrorsnakestrengthenencapsulcanspeakifacletawoffcoutformattimclarifqryresultlibrelistmyappconfigarbritariweighbcontrolacontrolmycontroldevnuljoelonsoftwareascipyaocurrbartstrarolfhatremapnewlistterminalinteractiveshelisdigitpythonbrewneatergiraffhipporetunbenjaminztapdupelzlibnelsonvarelalcmtclliblcmlibtiffraspianlibjpegacceptsecuritycontextldaperrmyusernamdisplaynamsamaccountnamobjectclassmydomainanticaptchafallacimottoatendefrontiermarchbookkeepsubtypcssmtplibhashcoddogcowhorriblisunnitestitissunnimycaslocalweathtestmycaspriveditsorteddictcontactformfollowupbluenotrelpathcommonprefixcalledprocesserrormvnprocessexceptexitcodquickstartcrummiparseonlythesjochensplatasteriskelihkeiftypeassocunampemecmakeronlineelectioncampaignitemfreqspeedupmonsterpyprocessphysicmulticorjspfudcalcbackportbyproductpythonobjectencodambigiserializportlimitmyxfmtmyyfmtfvqjonathanenotdirmpimginputnaminteropermsgpacksqurldecodsurpresssimplefiltfxnlibuvsultanfirefoxprofilrsyncwhoamilulujfsebastiancheckmarklassevcharmapspringsteenopensourcedgeitemkmdeltakmsamplkmwithinsssampleixsxysamplecentrsklearnavavdistargminallxcdimxtocentrsvmcentrcsrcdistkmeanandymccurdiredikcachegrindvisualvmpstatinadatbimplicexcepthookleepainfullicompanionsophisttinkeralbeitthereazymyfoovmconfessfusystemerrorpyexcpyerrtychdslorelsgraminitfrankliwonaclassdeffuncdefamazonsupervisorlibpathhppreloadnonstandardhandleaorphancollectorreclaimdeterministprettierrearrangpaulitemextitemqtidialectcolumcsvobjectparanoiagladcompounddeepakashallowabcabcmatcherabbrevicharmlogilabgreetegninpindentforciercosmetbitprophetmirrorkeyedmixincomparablemixinmixinyepchristophmeritfulfilrewindunpractnecessmiddlewarevidterriblifoldrfoldlthataxxsubtletimyfunctmemmapsyslogdrownmonstrourationjsondecodeerrorracblownelseifgridsizciphercryptoivcodekoalayourcodsobrecapilocunreservnfesnaidaidintegrityerrorgtypesnipblamelukapythonworkhialphafieldvalufieldnampsegmentfieldspecppathwpathwtypewaisdatabasselectorhsegmenthpathfpathalphadigitdomainlabelhostportmailtourlgopherurlnntpurlhttpurlpredefinschemeparteeyymidrldapmailtobugfixsignifilikeliestdosomethingwiththislinlinescountstartfromlinthumbpostevasynchrnbajogiovanniabbotconcurrlalinskajeffoutsourcregularlipyqtngcvenvcatalogsappassertisinstgauravfixturauthtestcasgcmdeviccontactexemptlooseversclassroomschemeunwantnickcmaxblacktypedefrealiticwmbashcommandanarchistlesseranalconformeggnamhanderdictconfigusablwritablsallimanyrelatedprimarykeyfieldimsavklassquxfqncleanupkubuntupylistobjectlistobjectirrelevpruneblablaaesthetmyroundhoofkernighandvcmqsurferodbcuipythonwmyobjvaguoverwhelmpformattonjulijailbrokenfreemansomelistiwantthijasdstringabcevfrontendminidomfolderdfolderbfolderagetcodstrippedstrflakeunusscrollredvocabulariprependrunnablgenuinlinkagtrawluidsimplierrubinhurdlfactotemporariliscsvbuilrerankluevarminrubiguesstspiderfirefoxmassivpythoncorinicondainstallpathhkcudisruptsageactivepythonanopippdatanthoughtmsidominminicondaoverzealrevostrangershoehornexpertstringbuffstringbuildoverliweightedchoicbrutalouidwannaftplogfdataveclibphilosophfootprintcomfortredoeverytimdmgpytailacuttypevaralittlemadxpathmystdoutsometestruntestdeduclarshcianticdynloadtkscriptpackagplatbryancloudsaucelabphantomjinvismsbuildcmakemonotonfilewrappsuccinctpentiumdatamodelexcitcompliantprogramatdieoverridencompetbasketballleagunxmlnontologidbpediaelementtrebufferedreaddoexensourcfireflimalcomurandomhackimyfgettatrbytestripddumpheikogerlachnewlenucnbitmilbitarraisuckitslefnewinstfornamendiancharacteristcapaccheapbastienbulgerbostonnonsensincorrectlidatettimipdendifpcloseomnivimrccompleteoptomnifuncbarlistddlpydevprojecttoxcodgitignorballonyamlcompositluckmysqlclientsafeconfigparsgnbjrlfinfinradixmantexpfloatinfoyourmodeltextareatextinputyourmodeladminformfieldtextboxinadvertunfamiliarfruitexoduvcvprintfailvpbriefliisolcoldplaimoinpythonioencodbearcloserperceivterminologicharactersamoderntolerubiquunisavtizkiwaveletcheaperlockinaugustsummerrealmmediatemplbuzzwordpoorliscalablvaluablinexperiencbeneficiskillsetcreateinstswedishpreferrfunnidaughtermartinheadquarteatstanfordgplconsonclassifiejuebyvbqxxboxindiasuryaraitabletmaroneyfandtfcdvericnotafanalimepaullitunjeflydelivgracefullighostdoggetsizdirpathinventhadnainmzxxwpassowrdfffffffwhopoptimislibmunsavmydicquaranteonetimepasshmachotpndenumerldlibpthreadipykernelallclosironwinnerunderstoodrealispissbpaginnotifsyncrfimagingftstatsoftmeshgridfromstrnavigautoimportautoloadblinkminibuffropemacboilerplreinitialisgenericnewpytypeobjectnoddiyeahyearsagorelativedeltaleapyticklabelfoulturnovassistreboundoffensytickgcfyauppglotzjowxyzflowingdatapcolornontrivipanefrustratboardtextbookvaripearsonrworthwhilamorttdbustfussexercisfabfileafastanmgwvmaxvminflatcbarellipsaxhlinhetaammahspacewspacekappaouteinsteintesiautoscalygameelevwheelctxcontextliboutlinraymondmassrhodeimplemencommonlipascalunavoidreorgancleanertestmfoordpatchhourlibqcbmweeklicalendarnxresampllsmagicbewarwritefilshortenabidannoyexcluschuckcheckboxhaimultivaluedictkeyerroryumepelasmdisregardreimplementbodatradestringifdrivemaintyparabeasternworkflowrodeocmathiscloshtmcomparingfloatcygnuzfvnoremapzmzrpackguidelinhorsstrikereservascendunlearnpointlessliwahahamcrmvirtualenvnewenvcpvirtualenvdoorcidadlastrowidinfixmmddyiretriuppercaslowercascliunrecognlenientimportlibbluepydocfpattdispositmultipartaspcsharpmailboxinboximappwddjangobookcnfmyiprunservapachmariadblampchflagcopystatdstdistutillxmlqueuelibwhlnvramnifswicapitanerrnogeopointshorthandfolderoutoutfilenamsubfoldrootdirzzzuijjkgfgfdaaaprerequisitcapablarmiircmacoobjcjailbreakunsurprisingliwaveiphonuristylisteludleakfugazisetalbummagsetartistgettagbitratgetalbummpuncommondoesntestablishoccasioneihersomemodulpickiexamingetattrmodstanleiintentionaccussalutmakefilxffaffinmessskimagpoolniterboneheaddelaijoblibparallelismultiprocessohaicollupsertmmmhhhpymongounmodifiperplexpermitpanelmydatafromitlibmysqlclixzvfliontaleinordinpitaasarraifromimagportionimplicitcredentisendgriddebuggingservemailmessagtlemailbackendxwhiteoutputtousslabmistypsuperiorsubtlcpicklpklcompanistatsdprogfromfilnutvenvfaceemitchangelistassertequaminencouragclfrunnoctavnumpyutilbeautilikewiscalframfileobjmaddtypenotfoundrxglatestcrowdtrisumcomicnumbalivttimeniftiliclusterymmvinspectportablpkgutilvarioustestlistslgrabbringpredeactivplumbfsetdasdhavocmonofaintmystrpenamespacunsubscriptllvmrandnsymlinkreviewqtconsolchdirliterpaolotransmissthismoduladjacnewbirespcategoraugmentguarantestrugglgetidtostrkggoaaaansuheugaaabaaaaaqcayaaaafhzuselessonlinpopitemlibtoolstallsudolibglautoconfbindintelboolvalumeaningisemptilddinvtimevpydevbackupcounthalffcrevertanonymdodnamepunctuatatomofbranchfallbackjointfpictrimdoctypmyvarcopyfileobjpartitlangravelpyflakreccomendweaeasyinstalteamtabulardistinguishmediumroutinunsuriewthrcovarihearacbvistawerencorrespondxyzstudidatasetsolvablblazeanimbridgfairmktimemillisecondlogformattlevelnamcoefficioptionparsbeneathuserdictmutposixxperrlowestgaynormatrixtransposfallitemgettmyuserclassgetframeinfointermoneisomedjangovariheardzamphattadeallocpreciouerrorcountcomiccorruptrgbmanhattanopencvatrickierstuckgearmanaligndiscoverimemstarteryolkhtmlcodeinternjanuariwaypointridermarkupphonedevnetgetcwnewmodelhttpresponsnetworkoverwrotblowgreenletxvthumbimagepluginfwrapvsatisfactorinevostruevkpythonaseepossiblimanipulmisreadnewspaphobbnonloctypicalainstantliclassobjmylistupgradtruthwebsittxtevtracesemilogxbasenamduoaccelermklhardwarhpccalctimdtimegettimeofdailibblaworkablmyquerigluttonfourierneopythonfeedbackthroughbeatenrudimentaridigunterstandpagenumbtrheartafaictsignificantlitracecppcurprocessfilthearrainoobreraislistenmlabexecfilshutiltmpbgetouterframafaikversugrvjccutoffpositiveintegerfieldencodekeibrowsitemsascontiguousarraisublistsebergdoubtweakuniformcomicnamunstablspreadpleasantopencvencodingacalamasciittabulabasomevloggerfileinshastacatastrophrobparallelormworkeraltogethfictionarmiswissplansilentspotapidocimshowydaisubjectmygensortathrottlgmtimefileaparayxtgrjhaaaabgyourappconfigpressvariancfinitalgebrafirebugnepostadminmyappcouncilfactorieigenvectormemoordereddictfnoopengltpclosefancompelconfdmacosxinsecursagivauthorkbmysecretradiointerviewcoreutilbeginnmalloriseqlightprotocolasubsubclasssmarterfunsetlistchancmandatorianytimleftdownpingdomhmmmmytestjohndepthbinintegoopinterrogdetsentineldunderweepwreakexempldosomethexitcondtrianglenumlabelbottomxmltodictpartnershiprsspopulcourtesiavigifdotblalibgotolucidclockgotobladiscrepdlopentblablaslibtnumpirnumpiastnglogfilianbickblaalbumtandarddocstrlogpathmaxbytquickestintroductshannonpercentagspectrumaudioredefinkeyboardillusheavilicsumhometownfoobarhuicaifhesqukeyargarguablpyobjectpydictresearchbourndeltaxpassabldestroihrefdarylendblockloospagesloaderpisaxhtmlnotablautomagmercurictshortcutweirdfreetypfatalspecialcharactersspacisalnumdenniblatantlibrandmyusertvetogetsocknamjoelflawawunkrptdiscountlibxmldctholeunquotgzipfilarchivwbzmaaliasimplejsonbadliheapstandalonchromedrivwebdrivcontrarijythonprevalgiluppercocoolmodelbrominvaluevalidshutimproperliparentagownershipscientifcomplicmiddlskipspecialisorientcssincrementgunnerkriggrectanglleiblersubsequkanadvelocmotioncompenscropconstantlicurlobsoletrespositorirandomliunencumbcanaperlimprophenceforthtextaobjtarbalmtaiunexplainnotsetclutterincorporterriblsignaturshoeheckinaccurjapancontrasteatenguidoreaderunescapmanulliinvertadherpylintoverviewcyclomatproblematrpczguidzeromqscenariojsuwpwauntitlsomekeiressourcremaindstringifiincluspyinstalexperimentrvhetoordinextentyedgmendmonrepostgetrandbitmodelchoicefieldchoicefieldjointripformstridislicglosstermglossdivxvivjywngjdhfjixampdatastructurioerrormttiwsearchsortlapackdinvvtsvdreductexponmultiplimersennimpliunliksqugglialertjqueriledelitempayloadproxigmthttpbinshulkwfanciappconfigpysidalarmindeterminchaingbtclosetdateinsistsettingwithcopywarnbreezxmppeffortfailurtestmethodmyadminurlpatternlibimagilibimagwshortendenablfusestrictunverifimykeimyvenvpreactivarrminexhaustmeshsuffixseattlalicsparsifircparamunlimitengformattregexpprintopthbmtkhmbkhmmtwisdominstancemethodfdelkindamockscpclientautoaddpolicisshpessimunnecessaristlacksummaranalogiproportrajendranviewkeiguessalgorithmconfirmdirnamdpisavefigcircumvcapturpkpretendunioniiucinnermostcastjunsetcursorposoappiservicpluralincompatoddthinktgzsmoothliunificascadconfigparsshipallotcurvheadtotravelshootjunematplotsufficweathernetlibghzcdlltheansweroutcomexpatmultitudsnowhettinghealthispectacularexplodoncancelonokmywidgetunmigrmakemigrcategorisolesomeobjtntriangldisclosurconvincungainlionmessagditherwritegifimagesequgeographikasomethinkoddtoolkitmpgwxdcoutperformtoughacmlsurprisingliplattformhasslworsconclusnehalemictcsusexeonatlaopenblaivisandispreadsheetsebastiandimdlsymrtldrblasgemmtranloadlibrarioptparsblogspothandisubcommandtraversconsolehandlfftsweattheoremsilentghostmatricicontestlegitimlongeoptmicrosecondutctimetuplpropreferencepropertidatetimepropertistringpropertiphotoiconmessageshandlermixinrcfileylinteclipsresistinsanfrozendictfrozensetfrozensubpkglexicographvariatmainthreadrootloggthreadnamfilehandlstreamhandladdhandlsetformattasctimrotatingfilehandlstereosoftloudreplicpunishnyquistsqrtuncleardiscretpreformamplituddualstillabstractjupytbreakpointenhancfledgipdbcrastnfornotdotboodebrringnedbatcheldgetopttersestconcludtcoexceedtailaidinternetyinewformsendmailsubprogramfdreussmithfbapiusfacebooknowadaiancestorreadthedocxinzhengsortedkeydictroundfloatfqnameimportfromdirimportfrompathvvdumbmodelnamappnaminlineformsetprimariliwordpresscollingradicentcluelessweekendformsethideboldeololddictnewdictbackdoorishilinvocabsenccallprocessmakederivboostintrinsstorablrightnumexprforloopplaycardnowaitcffittsitjitbenchmarkspitzerwriterowoutfilcarriagboilmutexemploipopleftunboundseeminglifootendforfootercontfooterdtdmytemplmyviewgetvalupisadocuchartfolkopcodunimplbytecodecorruptojitdecompressbitbucketclonehgtenloadabllibpqfriendlinegatagosadlipyscopgstablpervasmonkeypatchcountrynammycountriwolphinstrumentdietricheppmywrapperexceptanklmyexceptiontobewrapmaynardglennapplicationexceptfilepathsucceedxxxbasicliconcisuneasimultilinobeilibpngdatazonsamdpycxxdpypthreadalphanumerminimalistrhabcabcaanarrainewarraisalexaxisomeexceptmartelliyaxifartalistbfjimshpronouncalexknowledgcoordinuncaughtmylockpyfuncunexpectnarrowafsdsomevalukeynammydictionarifetchalclauscurrentframcurframmulsomefuncsomelibchosenslavebytesiowhataimplicitlintcursbatteripyformatobtustinisryessaiexcusminimumlandhurriclaafreshbaseibasexloglogpostscriptyentupcogdomunicodeencodeerrorstreamsendblogofilwoldlibxsltriskuseridproceeduncompressdownloadfiljadjarwirecircularartistexplorbegundoctoryoutubironpythonsinesighmypasswordmodelacodetypcumulhpyguppirecomputtradeoffwrtkernelgentoochromiumwebdriverexceptpbobpseleniumchromebashrcflavourbrewhomebrewtvblipwriterslidefrugalbigintskipkeibandwidthjsondecodsamplefigurbenjaminmaillpastebinpoormatlabhistorlatexqualitianchorbboxlgdtanarctancosinsinpiaccommodguidobscurshrinkfiddlluxurifamiliarmaxvaluevalidvalidatorsasampablokupmootdecimalfieldafterwardpeereoffinprocedurdecrementrdwrsockshutdownlocalhostoraclpsycopgimproperlyconfigurdescweirdestworkincardfrmintrestcuriouindlexsortparspedidxmemoizstareassignrectangularstopperdestructordelegunusuintrigupeculiarsuperclassgamelayerprecompilbracecoercunpredictmultipurpospeteroutweighurlretrievcomiccounthttpmessagwebcomrigidliarbitariregionshiftexperiencentropimutualkullbackacourbonsuddenlucadensgrassdeviatcvchapteropticforegroundsegmentvideorngpgmchannelelementwisastypgrayscalblurpollutsensornoisprewittsobelgradientattentgraidarkbrightscenedistancpixelimreadmiscintervwebcamquantifimypackagsrvsdistprovenpycheckoverlooktunewhichevxdxfxaefrequentxbconstantpainweekhotspureradashcurliprintablnumbskulgigabytbiothesaurupubmedcentralacorporabiomeddomainseldombasiinstitutenforcaspectlegacizillionciteinaitaicusniffdetectorhavenaiadesktopdarwinstumpstandeyebalcodebassomeclassfacilgointarenayouacomplacdullcasualmisleadconniptcpmacromanterminaltborderverichorisonttexttablprettytorgtbltablefmthunchnecessariliutdlifetimcfpickhappilibetafyiskykerandomisinitialisnlognshufflcripteziopypabootstrapsheditseverrunnergetbasepathofprojectsomedirectorithefilignorecassubstitutinsensitinterfaceopdatafilvimsubstorigrereadaddidvszcpupidauxstoodpragmathornkazaccurfluflbarriamsterdambdflfujialaskamckinleicaliforniahalvemadvicempirdealtthingaagrecomprisbluntlipassagunderlifeltskiptesttestlistnonnonetypassertraispaibackslashmetacharacttransitaaaafluffdivisorteachdudestridedontinfilparagraphunmarkpythonpathpychamnetworkalgorithmerronsuspicilintrepetithealthversavicehellorpcdotcloudzerorpcsockettcpsoundperfectendautoescapautoescaphtmlparserjakecheetahcaretampersandaltpximgxcrldhellaspendgotchauncomanuragtablenamprimarisessionmaksqlalchemishadowregisterdpreventcartesianroletransposcaveatusecasordinariliunifklingonsimplicalphabetlatinbasestraaaknifepandocroughlirestructuredtextpedometcrunchfoldproteinhiddenrapidlitoidividdemoiterviewakaundefinonelinlazyroverloadstrftimewaypointformrstcookbookdocbookrpythonvariadfizzyteaillustrecmascriptsnazzierformulafeedapologiappropritediouautomodulautodocsphinxxedghistogramhexagonwarmerfrequenccellscatterheatmaplocaltimgetbbbisdstwdaimdaitmstructepochstrategiasynccaldosomethingelscallbackregistercallbacklongcomputasyncasynchronmyparsbethardwhatsoevmyprogrampavelprioritiutmostadamcoinwholngfloatfieldlatmanytomanyfieldbufsizdevicttyunbuffintactlinqwlfgalgbxoahekxssadvisfibfibonaccifundamentreachlcsuccinctlisimplistglosssegmlglossseealsoglossdefisoabbrevacronymsgmlglossentriglosslistglossaricythonpsycohewgilelimintimverkjgggaaaabjruefhibsxghqotmxkrmqpktpbrzeeugxbrpfymctakcfwrbscrrlulvszwfkexhjztwaaaenmdhdhcmuaqwrvymugswivborwtriplmartineausnfavorxmlcharrefreplaccraigdeductgrowcleanliaccuraciqueuarrivlapspcxdefaultdictbotqueuepseudorateainvcorrelgenfromtxtseedsetosafloweruncentbothercumsumsumvarilitededeniaprpdotnubziriedalstdcenterainversutobvectornpcpceigenvalueigennrfractionpicturmonthdecispremaddimenshighdecompositsingulareighlinalgrollpcaprincipmodprimeestimmaxintmaxsizgreatestcodejamhelpreshapmatrixmultipliworthlinearoverheadinhermatrixmultipitilljetbraingetcwdunresolvhoverunderneathunderlintabintellijospymysqlmysqldbtojsoncontenttypalldaicalevmyeventurlencodsetlistdefaultsetdefaultiterkeigetlistfromkeiappendlistweakrefltgtgeajaxdjangoprojectownpubdatalreadyregistdraftpostmypostpubmypostadminmodeladmingunicornsatrepliagentcompressdeflatgzipconnectionpoolpropagsetlevelgetloggbasicconfigdebuglevelhttpconnectimporterrorpaypalnewincomreactinquirisynchronhangcopytredestfoldsourcefoldthethreadthreadclassmultithreadcallerordereddefaultdictdefaultordereddictyourapprhunwickpriorlinerqtopenglodootestloadpreviougeventgldbulibqtlibqtcorlibqtguipyrexcaughtinterceptexcsigalrmsignumcancelrestarttimeoutdifferentighgathermsgrtixtamttlowthightpricetopenabcdefghijklmnopqrstuvwxyzabcdefgstringiocstringiostkstocksuspendtvolinreportbiastornadoborrowguipocoocontributdefensmaintengaeprotorpcwebobblobstorsdkevoluttipfikillerroadprogresstestmaintestresultaddtestloadtestsfromnamtestsuitdoodadvaliantstarkligenexpsatisfifocusmysteristopiteroxfnmyprojectmyadminsitugettexturlconfsiteaadminsitadministrpillowxcodeupaayrxvdexectmparchwstrictdndebugdtracemnoclangdisallowunpackmyenvbananafibackuptemporarirecordunsetsymmetrwontmkvirtualenvrmexportworkonpostdeactivpostactivhighlivirtualenvwrappherokuivancrashparadigmsleeptimercrontabschedulgnucronexterntochararraigetperspilllengthistoriweblogelaborremakepermutprogrammersheavenpseudocodcbacabbcabacacperumbapermhumanlogiceyzeniziplongesttruncataabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzzinterleavresethierarchportlandgroupbikwdmultiindexrestorpleasdenotommitingplaceholdoverflowswapseriesformattdaidataframeformattjustifinfsimnotebookmplcolwidthyearfirstdayfirstjustificolheadthresholdchoppatdepractonwardautodetectbypassemacresizreprareabmunotepadstatawidthlargerdragsuppresswidenknmbknmvgcechodisclaimcheckercontributoritertoolhnmppobfuscambiguverifianglwearinfinitmicrosoftundersidlaptoppermutwordicoolpartialhumblddboundclaimgetattributfactorcatchlatewiserruntimreadireadonlireadyonlidummiresultsetpolicisshclientcreatesshclikeyfilrouterconchpasswordlesspexpectremotefilremotehostlocalfilscphotspotfocudramathistoridescendproofrenamxrangeabroughtvisibldequcheerhurtsimplyawallapaintwalllandscapunnecessariliprocessorrecalculcircumstbaconsausagexcerptperfreflectviewitemproaugeturlinterestingliheadrequesthttplibnicerjpegsomedomainebcdicsnifequivxmlunicodedammitmozillaeducfluencicomposqqdkjvzatxzqjvenglishfluentchardetimpossburibingpardirsituatnormpathabspathcrosstwofoldmysitabsolutslashncolnrowlayouttightoverlaptallwebpagfigsavstackimprovcfgnosenocapturnosetestpiecinterpolmaripycharmmaximumwhatsnewaaaaaaaaaaaaaaaaaaaasupercomplainscalarpairwismyfuncmunfuncsomesequsubstrsubscriptfreezshouldnadriendistinctfeaturprotectinfluencmethodcalfrontunhashticketgoodistatscipimedianstatistexceldimensionpercentilchrcombinspecifiomitnightslowliundoimlyndaunambigudiviszamzipleftupmouseeventfconpywinwinxpmouslightweightpingdomapiwzsisudsoapwsdlconsumglobfilelistbakfortrangendisappeartestlistintersectaddrwikipediasubmenukingmydictwrinklgraphicidlheavibeginhardcoddevmjplaintextvulnersamplyieldnewslettdeferolderavgarchitecturduplicbucketmaxsplitmangocabbagsmellreliminimstylelistrowvalueerrorenumeralumniavoidsharetoreturndisambiguactclosesttzencviablconcatenfumnumerinefficiprovecolonmoduleiassurinitithepasswordentrypointwxaggrcsetupfsrcoddfltkaggsureissubclasssetitemcachcentralbeautifulsoupropechmodpycryptoreadmprodusstreamdisthasnbetmatrixapparsignhintdynamicintegerfieldofferhallnovicdeepcopifaildatetimrequestflickrapisigfebgoogleappenginelaunchgraphvizfeasiblmodularrandendswithactivdestlostgeorgbackwardchildrengetrusagpipeunparsbrutezoneinfoaasubmitconvenistupiditmfeesubstanticreationhstorenosqlprominclassmethodreplicamongodbpgfieldtalkintegerfieldrelatcustomdatavalureportstatudealtrickiimmutrobustelementrambookinjectcribencodimaginarienteripythonchosemyattrppmidsizmillerdeliberstevenchimehexdigitwxtemplatletterdiagramaddendumrewrithugehoodbeautifulcodecbvcvarsaltoivotuoviewervariablenamruntimeerrorobvioublobmatclincherdeploimodelformunsubfillserilookwalksubdirchurnfastestnightmaremphasbusiflushseekwrongliurllibminutmbmultisetearlihappensubscribsomedirrepaintinversyuptopicstepsubdirectoritodaidynamshowpagtagslotmodulealockcostforeignbenefitacademtransfercallablthoughtbytearraiinterfacpytzagtimestamptzquotsnippeterrordocuinstancclslatkeviaffectbbthetargetdirectoridllpipermaillengthfooconventsinglpublishlaunchpylonclunkierwhitespacslowdtypetrickmetarelocatviolatpotentiincidentpdbanalysimicrosynonymfailunlessequequatindentrecordtypspeakkindelimittestaidiomtarwgetaccountpreviouspreviewcuriousoctalbindigithexintegsyntaxerrorinconsistaggqtaggxadelowerupstreamvassallordconstructortdiscovsurfacabcmetasubclasshookharmlessdivgetitempollpopenstrptimedetectolsonutcfromtimestampcirclbrainnagxaviertrippythoscopprogrammattextconvensurpassphrasmasterbadcontrolabcstudiomingwmimetransformcorrectscreenshotreduccluereferencunboundlocalerrorincrediblicarefullifabfilmagnitudunsubscribrecognisnaisfiltrivialindexerrorparenthesidrawdeemrearaffordassumpthandsplitlinreadlinhorizontactivestgregprematurslowerturnocrowrepeatedlicontiguhstacktriggermembercoalescexplicitrealizassignrelsuspectthinkkindergartensupposedliinvolvgooglsimplifieventmeasurdynamicmodelfielddynamicmodeldynamicapphardihookcheckoutfasteremptiwisepostgryorkunkownenumvalupowerhackdiscardclunkiusercustomdatavalumultiinchpdfgenuserguidsimilarliinvokjavabodisetterdecorlaziproperlihowtoexamplsubclassresolviusacollatiurytiearlierintenslivetendexpandgarbagpacketwouldnexplanprecislieminestraightmathremotuploadverbostermsessionvarvoidhllapiprotoexecvdaemonstoragextradtnaivoffsetargumentdefaultshelpformattcallleqrespectdiveintopythonconsecutfoundmymodulentriinheritprocproperwikixlabelplotdictionaricountlibrarioccurrexpecteditorremovmodifizxvfaliaspngpprintdecreascommitcocoaaggfriendliervisitormodulorabinpropostraditurgpathsepholidaimodululocalpythonmkdirrecaloctintegmyabchasattrnotionliipleavupshotcycldiscouragundocudeprectestcasunittestgetattrsomeobjecthandierbulkonemorevaluxrangyoursequenceofvaludrugcomponstackoverflowsuitabldebuggcheatserialprettyprintjinjatoldtimedeltapastpeachkiwiabcdtestboffendprimalitytestrandintexponentiunequpuzzlprimalpowexpansstartswithdeactivmarfbcefbdgzpypihomeprefixpthunzipquietincreaspermissdonaspawnapranoledjulcornerremainbrandltechnicimmediforbidsvnlegaldecimoctdigitdigitnonzerodigitdecimalinteglexictokenbrokebafflsvggdkemfcairotkaggqtmacosxgtkcairogtkgtkaggsymptommatplotlibrccauliflowyummierrespondinvalidyehitpresumemulqtipuninstalduepyparsdffedggraphcouldnpydotmotivnastidatetimeindexpdtrappitfalvirtualdebatrareclearestintentpolymorphintendflexiblricheryeroosuperficiprinciplhonourspiritcontainallthethnotimplmroabstractmethodmetaclassexemplariphilosophisubclasscheckinstancecheckcustomiscoverhaveneafprationalducksillitackdateutilnutshelwidesuperfluflipamericabottomudimaxrssrustreamdatahasnamyprogtzlocalcanonscorehttreeimounencryptoepnsslsmudgdropboxbugsingletonmankilobytrusagsolaridiscussunixindirectlichildsectionreturncodoptopenrtspspsubprocesssvenopaquyarinastimezontzutcautogettzrulebigtablestandroidelementaritranslatinstructbytecodfuturseptotalrefinridkeyerrorgetattrmapgetlanguagfindalmydivsdatasoupcombelredbaronmeetroundpreservmachinerirerunmutatastlowprobablattacktheoretenscmsubmodulinvestigbehaviorconfigrenormgitattributreposslaesaltdiffbashgitencryptbasicopenssldrivergistabilcertiftransparmentionsensitdecryptaskpushgittechnologiencryptvcrecogngrammarbracketparenthesenclosfewerbazsequencnoticexshtmlukvoidspacfortundistributvisualprebuiltchoicbatunablextracttestdatatrunkwebservicneatbrowserdishpercentbuiltindoesnamoveclaritinameerrorpyshelreceivcubeperfectliopinionsugarsyntactcapitboxworkaroundmaximcouplrebindsignaladequoutermostfellowmydbinitdbdbnametestusobservjobxticklabelframetestdecskyminduglidesignshortestgoogleappenginnonzeromdwhatcotthopeenvprodstagefabrictargetfriendinstantielifnewsletterformbuttoninplacdffillnawhilstsparsisnandataframnancausallistdirlancelotarthurtimholygrailparentintroducnovwastblahmymodelqquerysetextranhighlighthigherinterestmenurejectpersondemandwowusecfofiemtimeitheaddecentbyevaliddiveescaprepregexproducwritelinsymmetribreakexploitunreadrstripalternlabelsmajorminorfontsizfakeplpylabsimplerverticrotatsmallerfonttickdevelmyclassclassicfiretreatmeantrecipreflstripabcdefghijklmnopqrstuvwxyzbasenrecurseleghexoctdescribunimportheaderxaclouncextappenginbundllinkurlopenscrapenewlincommatechniqueviloptimconcerncpythonstopoutdatanymorstonesuddenlifinisharenextremmarginouphundrrecommendtimeittastfastreadablsomestrstringfromelsewhershapegapmentalmatricnotatmomentsidecaservcontextcounterapproximhashablquickunordsymbolpurposresoluttelldisabldownloadwerkzeugrelevidealpypdfpicklcrucialsessionstartupcurrentlosedotprecedmyfilconsolhieroglyphpromishierarchideterminvisitnaturmodulezmodulexsubpackagrecurforevquickliurlplentitutoribillionthresponsrequesthandlwebappsomehandlhandlerparamcherrypiturbogearpyramidfieldstoragcgiphpglobalfnameretkwargprofilproffunctoolduratwidgetelapsblankdynamiccharfielddynamosimultanordersufferstabilmagicwatchdjangoconmichaelhackishincredinspirsyncdbmutantspambarmodelfoomodelembeddedmodelfieldcontainexposurspamcamcameraexifdictfielddjangotoolboxlistfieldmanytomaninonrelmindadaptnestbooleansubsetthousandsenshstorefieldcontribadoptjsonbusabobfeverenumunknownenumgroupynucountricitiweightheightdatatypleaderconstraintmaintainharderpaircriticintegrpatientencountunregistdetachattacheffectagnostrepresentitiforkthrivemantainlongereavultimfitschemascalepartliflyemptivprelibrazodiacuniquusercustomdatafieldconcretcustomcharfieldforeignkeimetadataabstractcustomdatafieldjsonfieldadminapplictenanthelloworldsufficibunchjpgardrawimagcmcanvagrepreportlabembedctrlmergsplitembexperippdforgantechnicalintuitnegimaginindicstraightforwardmadeweakerpostconditpreconditrestrictstatesemantsmartenablinvalucomemaxenlightendemonstrranannotoverwrittenunchangassertionerrorassertfgetownerclasspropertiprescribgetterdeletscratchdescriptorsetvargetvarvarreproducessentiderivadvantagconsidersolvbehavioursimplestbountisetattributgeititempossiblextensdelattrnotimplementederrorformatpermswritdebugsftpclientinfopropertisetattroverridslightlistrucknullvarcharcolaltersqlcausmultibytmaxlenmatchwarnquerididnciseccharsetclientkramarcinojojaszukieakrzysztofrowcolumndiuslatkeviamodelauthstrangsavedatekeepworrimachinhostnamdecidfirstlitieemailmanualreleasprocessautommediainvariserverdeployexplicitlistarunwrapwonargforgettrackkillperiodkeepaltaskbackgroundcontinupracticclearerflagthreadthinwasnrepresentexcefactjcolladocalcullargestsmallestemphasiintegfloatfloorceileasierplacetwistputlocalpaththeusernamusernamtransportportthehosthostsyntaxparamikosecurnormalgetpassmainquitstorstorbinaricwdrbbinariloginftpuserdirputfilsomeusftplibpasswordlocathardindependplatformsftpneeddocoseparvariantignorfourthpointerconsistfairliehllapiibmshownhllbyrefcharhllapiparamwinfunctyphllapidesirehlapipcommwindllhlldllactualctypeeasstronglinativexposadditeasiestmaildelissudisplaiidentlspawnvsdfkljhfbrokenblushindividureststderrfilenofdopenseredirectteegreatscreenmodeaccomplishrevislogstdoutpuredelvmemoryviewviewcutzeromillionmutabllargshortabextendslicesizedescriptbuffertzinfonetsourceforgeventuutczoneinsertpgadjustpartitimestampunawarutcnowtablpostgresqltimezonsubtractappliargumentparsfashioncleverrevealformattpeekexituptimreliablconnectusagsecondnargscancmdlndiagargparswinamdmscsnapshotimpactmodifattributeerrorstdincopideepcommentvalueiterlookupsuitreasonviewvalurepeatitervalucuriosexactwantcmpawarbarattrkissusualsolutclarififolderattributequalhashcoderwiliincludpublicholdsecretheldbtwworldprogrammhandcuffintrospectconsensusocialforcefullimessagcarritrailsupposmeanunderscorleadliferealforcagreementleveladultconsentprivacimisunderstandnumhtmlfileinfoorgfaqwwwprivatofficiauthenteustuvelinteracthelphexdigesthashlibcdfbfabdocflickrsumlauncherpepshebanginterpretclickdoublparametchanginstuctfollowformalavailhouraforementchooswxpythonimagemagickpilimagfilterspecifadditionstripopposaddressmyriadamountordsimplideadsurprisspacecharactsoftwarpluggabltoolgraspdifficultassumretrievpartpkgparsbelongapiidgroupepsetupdeclarregistmypkgmynqualififullirefermatterknowfreeimplementmechandirectregistrfilesystempersistprovidarticldonpeakeggdocumentexplaindetailcleancorrectlihandlactionpatternoccurexceptmannerarbitraricursorobtainalloclanguagsafeflowstylewrittentypicbigarbitrarilikindpullinmixmultiplmimicoperternariexprstandardsimulsupplicomputthrowngenertakeintermediarraiefficicompactfeelgreatersquarnumberprettiscopeouteraccessinsiddefinclosurwrapdirectliblockupdataccumulitercommonachievgoalclearcomprehenscreatfightcommunaggreghappianswervarietinormsomethingaboutlistcomprehensmumblequivalidiomattruthiconsidnilconstructloopsignificsimpljavascriptluawroteprimerconceptpresentsimilardifferrubiymaxyminxmaxxminxlimgcaadvancmarkpriceaveragxtickebmfcmmarkercolorplotdatapricparamvaluappendyearaxisbgaplottitlsuptitlfigsizunsuccessfullilimitlablnrandomarangylimirctemperaturradiatylabelgridloctemprnswdownsubplotfigurfigregularmathtextrcpltpyplotmatplotlibnpnumpisuccelabelaxlegendtwinxaxisecondariforwardstrictlifullbackenddbargvfwiwrecreaterasstoresqliteproductmysqlpreferdisktouchentirsmallideamigratsouthrebuiltstructurdownsidssdspeedwailongunitmemoridatabasjsonifisendfilenamidentififnroutthingdumptruereversitemlambdasortintstrprintiteritemdictcolnamyfilecsvreadexcludformpandasummariaimframeworkwebflaskjsonprototypmapisinsttypenamsupportletnicewrappermissshorterlensauktiasearchaheadpillswallowmetaprogramcomplexsuccesswritegoodexistlikereplacfieldrefactorcasedoesnbinarytrevalucarepassallowcollectnamedtuplconversvalobjectnodeclassdatahollowlongishargumentkeywordtuplnameshowgetdefaultencodbuiltinformlicenscreditcopyrightgccdecdefaultsetdefaultencodreloadsyutfsitecustomcatfinalbizbritebcvrypangithubhttpsuccessfullipostappstaticbasenoterangordinpositxeunicodtextconvertmdpluginplainmarkdownoriginrenderrootjoinopageinitlibenginbinlocalusrrecenttracebackwokmkdchinesblogcontentnanositengokevinbytedecodcodecasciiunicodedecodeerrorfunctioncallshelllineconfigurautomatpreparpauspeopltestspecialremembannoikeiinputrawadwaitcodeclosecmdbackdropllenddirectoriythonaddvariablenvironeditcheckpymyscripttypepromptterminprogramrunanalyzstaiinstantanappearfileopenwindowoutputscriptleopardnewerheadachgivestickdependeasiliswitchcompletgodsendconflictprojectvirtualenvbitcommandrepositoriproblemlotfixattempttractiongainpipoptionresourcamazindexdjangoeasisetuptoolsystempopularapprecigreatlisuggesttipfinkmangerpackagsourccompilversionapplquestionbonudevelopmethodwonderapproachwordacceptfreshmanaguniversisnimpresspokeunderstandpointselectsetpathplaitimespentvestuffuniximacporttroublimportfineaptubuntufindlinuxlovelearnstartmacmodulinstalcompatincorrectcozthrowresultperformexecutpopwrongcomparisonjumpopcomparrottopdupbuildconstloaddireturnfuncdefdefinitstatementraiserrorconditevalubehavexpressworklistbooloperandleftrequirstringtypeerrorfalsconfusparsermakepythonassociinst8 �+�:l@�� �t� \�A-A0сA��@ �� ����`ADhRp�7���*�@2��� �h�9*́�\�@ ��� (Lc�(�� O��1� \q�r@f�P�@�& �q�D � ��C��h�q�/M@$3��B@0�$2�XP�M0�C5&���PH �� �`�G`��'�C0� E G�`� T���"(�� `R�0� q� Q�X��B���$2 09ЄDXp��L�8�3HP� �J*��C[�!�  �;$'HE� ��� t`��lT0@A�P�d"�#  A "@� �B���@p��'$�pD�:��A ��(P� @8�H�P� �� \0@ hqD ��P @�<1"���6@!@*���k�����h0� I �&��@I �P�� �������@ @0�t �h �t05�`�h�� � p�C�- P7( ,D ���A 0�4���H@>L`�� �a @� �M� �;p�dp@0 ` @<`AAo@&�q4@.dp� `��0@$(P� �@TPB � 0@�p@�� ,`@@40��� t��<�� �(�����,���C T0 $0�%D@���@T��L `Ї l�������>`@8Z$ Ђ P@����l���$0� �1 0OtЁP.4�@ B�@`C `A���0��L � p� �PB @�P@T��0@�@0� P `' � ��@`�p@ p� `��8�$ЀH��P� @� 0@,`�` H��@�@��4`P �L $D )$@ ���A0@@% ��p�, 0�X0�D0�;@�0 p@��`� �T@�`�@� @�� @ @�Ap�$p @��Tp@��T0@@(P @����0 �� @ @<�A���@ ` �(�@�0@@@C�@�A@ P�<0@ �"$0� 0@�@ @P�@ T 0�8� @   � �, �� �@�<@0A� �@ Ѐ�<P@�D`A 0� � @�@ @,�@@(P@ @@$P  =4 x��D,��L @��@���PP�� p<00��4��1 � 0�$H@ (� @4�@� <0� �T�0�0@D0� �@ ( @@ P@@� ��p"l�@ P@�0�@4@@ @��,0@�p� <���L � ���\` `�)40 ��@(�� 0�$p@� �A P@@@� $0� x @h � ��U�!L! p�p@ �0@`�p���C�8@4@0D ��@x �H@�@P H�D @``@P0���� d@1H0DR�� �sƀ�.�t�@�!0`DQ€�� �H�` �@0CA@ 5A� �A� 00@Q�P��PDG!0 ` �� $`1IP�� Q0�  ��05BO ��@P  � �Ap(0� A@0` �0��\�0(F a @0��Q� 0FB�� p� �E@RHa@@2�0� �E @� �@@ @�1�A0�p FR@AQ@0��1�  @`@ �@0@��$0 ` ��0�P���@p@@�@@@ @� ` �@��D 0�@�Q � P� L0@�� �A�@C�   0� AA@ @@0q���E PB@ @@ A� ��CED�0@`F G @ PA0B2�0@ CAI@� E� �`��0@  @�!�AA�@ � @@A�@�0���AP,�ub�0(@A� �$�A��� @A� ��@`@�1@D,�� �@@BA @�@�@ @00E 0@��� @@  Gp0 �vJ �@�p P�Q���0 0 0  �9�� �(B@�@pD@@QAPE@C@@ � �@�  � 0A B��  `  �@��P6 &@  "�PP uP@#Aa"4 `  0"!P1 @ @! ! @ A  @ P    0 0 0  P3D !`!0   $Q!0  0  p :0 010 10!P!!0 A0 ` 2@�! ! 0"0 0 @# @� � @@�@@� ��  � �  A�  �@ @�@A��8( H !"#$%&(+,-./012345789:<=>@ABEFGHJMNOPQUXYZ\]^_bchjlmruwz{~  ')*6?CDIKLRSTVW[`aefgiknopqtvy|}��������������������������������������������������������������������������������������   �����������������������������������   !"#$'()*,-./037:;<?BCDEFGIJLNPRSTUXYZ[]^`bdeijklnorsuvxz|}~�������������������������������&+15689=>@AHKMOQVW\_acfghmpqtwy�������������������������������������������������������������������      !$&)-/012���������������������������#%'(*+,.34589:;<=>ABCDEFHIJKLMOPQSTUXYZ]^_`abcdefghijkmnoqrsuxy{~����������������������������������������������������67?@GNRVW[\lptvwz|}�������������������������������������������������������� !"#$%&(*+,-./2345689:;<=>ABCEGIJKLMNP����������������    ')017@DFHOQRXZ_acdefhiklmopqsuvwxyz{~���������������������������������������������������������������������������;dsx�������%24{���"���� ?Tgt����SUVWY[\]^`bjnr|}�������������������������z�s��P��NT�\_BciHH�No���YO]{�q�d`�gGIk]�el�@�F�s\gYGR�<v`p�_�DFX�RVmFQi�{��E�'.$)/3)%-;7*;"<+?2'?-91-839:0#*7#'6/$$)9j�g�N������V��J���0}VVt����C[dW��bObk{AOIU�t}WWTI\BX~N}�r]���BS�FuB�eAQO��EG��z�_2�/�B�}�rN�eTdGFbkIz!#<61!6""9';8%29?3;(4:16,:"$.10>(8"%57*|vRSmqxkM+E��PSB����Tc�dW��\IX��MR�kH�� �n\���h�TVML��Hz_GZ\�Q�]m�ZXbagH��t���n��BC���r74!* ,3$*3*$0?:-'+<*-?;;36:;*?82.2())6)j}�W�\Hp�R �SXr��d��.B�jEh��VkcyK�ebR�t{lHQC�gdnD�CJOt�E��h�C����NJmi��|k�[MGsF�hT]�"3-2>:1,!'/().(">1&'')2'3'.",/.,1*(,;?/>3=�brK�tE�U�/hO���O�f~�&]�S��i�WHZ�M`!S �v[LcK�_���AS��Nm @F�\�l���V[kzU�}Rt{W�ciMQ�DG�]I�YK��Yt]tY�U�^��5"$'4),-8(/4+*5+/10=6#")8!>1?&:=122("%=7+xdE�E�R���fu���dbTrbSybG�KLDI�����BY����\�im�M���Pq�H��JCQqi�L�XQK`�o1F\�v[T�B<'>:(?#5::,)144%30- 6(3$:11%4=,7*+/*?42���Wu�N�Y��Q���^��a�| K�H��@F��AX��G@�_�j�T�Mp�f�fVE~-���}��� Ph�EVD�5�{�i~���[JYz�\fwd[�HJ��7�vr� 77>'/$,).(!!)&#*6-),,:+-)4"-77=:-%>�Oɍ�Q߄� � �@@��0�H��8@x @0@&@� X�Ȁ4�� p� ��@��$(�L�� p "8�2| �@4� l��@D�� p`!AR�� ����0� h�@��@(`� L )�Z��1��f�Р4�� ��89� v���x� ��!B����"�H�A�0�%�1`B��(D��^0*TAV���l� ]���0,AYC� �1��a� �0 e0� �,�! jX���7��i���a .��\��4�� E����H�u�B�`�;X! xȃ��*�}����@�� �@� � !�B��� ��D(b�D�8�� ��HHb��D%,�(��Ȅ&6�N����%� P����'�.�(�bȀ �K1 S�EFE�S!U��E^EX�E�`p�#� ���P�$6�I��Q@` Ŷ���-p� S�b��/z� W��/X! B���-�� a<���@1� ` C��/��Vl�� �1�p d�!��0�![d��x+Q����HF1�A�_c�Ex��G�"X3�� B���-�� b<��Ȁ3� B���-�� b<���B4��X�b���4�Q k,� �Ep l�"���Ʒ� nt���7��p�B��� ` C���8�񈽗#�8�9́�r@���ҡ�uР�h�;ޑs��/0<��r�#{@9&�y� ���3|�c�Ї>��� � �G?�� 9��>���~(� ��G@2�t�� �=�Q~\��@�>�a!󠇑��y��G?���4��p�C>�N@$"�E*��\C�G:���t H���� �G:0����c�P@2�t4 #�H�>z� W@# ��=���}�C��F:��!�� I�=r� �#I�<�A���# �G:0���� �H�A��� 頇H2���c�P�>������G?��}�C��G:���c�P�>�� #!IILr�|�D)�JT2���$I'F�$�#%,i�KZ���0�I��!��$9/I2LfB�$�&5��(lr���$'2�NH��l�%�O~�BE#��3@�� d0�P�B���(@H�Q���$e'�PJ�qSX\(KaJS��S�)�TL!��GE*� �T�R� ` V� 1�U�]*�0�P��2P%� V��hC�0��S�a(B��1aX%�0�9�"aX� �0�V��aXEd0�9�"�t� \�U�"��$�+d���J�� o`JS�b��a�X(A�%�e,|0 +�A���E,d�ZҒ���-j�A[��t�.l�KY�B ��e�@��Y�R�%�.f�KY�2��,u1K]�B���.e��P�!�%/�/�𢗽�e|)���y�E,d1K]�B ��y�Y>�����.�0 Yr����@-ka�ZrЖ��%oBZ�R����/sI�_�B����/paK\�J��/eY2�b����,K]�B���e,)˒�P������_�����/e!�_c��ܥ,C`2�2���e^���� �/e_�">`b �Z�����ɁZ����e0l!̒ SðE.�) bʒðeɊY c��@�-�Q [�"�ɰ�ɔa�]r���c�b L`*ȥ,l�LY�p�d�,C��f6�3�� gd �π�3 �LhD#�ѐ�4;��iN���� �Y kZ׼�5�iHld3�Ԧɶ��mr��D"7�q2k ���}7�yEo�����Bx���p�5�(:��@���^���3Q�Bp"�' �3��p�"⼢8�xK�3���!�� q���x�%1�$��47�y@���4`9agB"��3�0Hs��g:�t��D:�t���@�:��t�R��)h��㙐�F�g ��\���Rp�#��N?�����3�8���(���x^}�#݁� ��x�㬰�+8����&��x8� ���@'N�ΐ ��^!��Dę�+�(4�#Q��v����#�y��3�'=oP�A���=(h�v8���>���Ӊ�DA:�i�vPp���2�W��9�|�S��>���\�?��r2��b���)�����?��?t��#���y�R�O:!�'�ᇁ�A�ỹ!x�>^1�(A@9PQr� � �J��$� ����� d�(�AQ.B������x�\�A(B€�$�W�#�E����\� A( .H��4�Bbp��Q BT� ���\��#:�<�� ��7Q.��̓�yЃ6 �D��(O)1�(!/PЂ�|�W�:�0�"Br�+J3~<��C�4�"�4�:$($��� }D!�4� 9��c� #RH,���%�q^��&@U҃����,iiK\�x���%0�K^ ���4&2]Be긙p&-�)Mj��8��6�� �!N��� 8B:q���T%��'�S����Nʅ`��#H(�� S� )'��BP'� `:x���3 !�0W���|r~�&! H��'�I������=�iO{��f�����W�L`b ������Ld"�@�iO�Ӟ<��=�)'��te Q��,�0D�*CD�����I ��$P!�M5(�dP6!Ԡ"q�Be��0ԡ��B5&iAрF�JFT$\�(�jP6!ȠlB�A@Q�����E�D���A�, &��/�LF���� ?��E�dQ0Y+��< R��S �,jQ��V)9HjR�`G;��, &�ZT�a�E�RpJA�D��W�R��=.�\S��I:�t�K]�bWȇ ���pW����s�$�8��qt.1�K��3�B� w �]avW��劐�b�p��E�s�k��ɹh�s��\�:���ՃF�4�W��,�e@E�h�A�%� dȓȁȬ"z��^�—�]!1��^@�@'4�/�&4�@#г�z�� �zM�%f1�Y��xi�� {!��:�+���Wd�]��p�F�^8 P(��t��_� ��q��]�x��n�I���0�9�4�9!� �l`��� 6��n+��:q�� SX�sbfB,��`��:�0��Y&f&0A���` �ř��3?,ag�X��3K �(�L�<1[ � 3��:�sP a�؊-�����H��*f�H����rp��il`���.Ʊ�m�`�X':汁u�c��X� V0�] o�X�!��c+���̱���cB'8� ����|�����#��� 4� �%�NLv���9H(S3�I���,e'c��\� ��d*;�HV� ��`Z��"�{d�dNaYZ���0Y��j�,&+�+2 ���e�8Y�2p��e@'k�a�$�"fi �_�/ˬ����f�e��ffP�"<�e�) �P���h��/�LC�ٗ�7Af_���11�y 2�΀��7�@gp�����}Yf����x�)E�AbC����3EH��2ۙ*��Wأp�+�� �c�|��]2�2� lq�~6䍼��@�eÊ l>�ٗ��#�5�>c|�/5�>�pt��`�gAÀ�.� �,h��0 ��``#�H"����XJ#����*d�œ��QUE��,���hBX��V��! �!�*���S(m*;QZ�eS�� �C�#2��U�B�� )�-'C��#VQ�-�iCx!���!�N���3`+La����:���)�� �ڝF5 kZۚ��0��#����5�u�k � �5�m�,|V�6�Q�,TU�1�xM�CC[9<4�M��CCJ9<4��4�CCHA9<4���CCC9<4���"�T�ֆ@�T� ϩ����1�rL�lxN�o�`6 L�7���R��8P�7VS�����mk$Gٶ����*D���"T���ԥ�G{��x�����N �|��P'�.#�:\ ���ܦ�� ��s�n�ׇ>���W !qؘ��^�� (n;҇���� 0��0���x�]�q&7�����-�n�k�Ǹ���� �Xq��#��/\AF����G��� ��`��f�D�n?s�݌��:��Ntێ��Q�=��<��U��F<�6��q��(X# q@�#'9<�fr{��>&g� ��r����q~,��3yL�8�9�qh��M���9�q���g9�3�㍳��g9�/�㋳����8�㋳�����Q�r_�| ���mr�և�����9��3yL�����X��M�8�y|qh�^��Wh�G�Ky'8'�Wh4���9\�� ��+M}{h��{E<��e@� ȀiЬ���f��>�B':l "=�>9qFG���, �y`6���G�Wp�N a��5�_@]#P�:�Y�IӜ�K5�klH'�PGL] �Eau�` ~XB��u�{�CP� �. ���5t^&a ��!�:H�E �M��� �6�#ăd�"�(v���l_ *ҎE�����p;��Y,�]�h�.��T̝� -��� X� � �8�"w����r7 ��Ѽ���b�;���w��9��<�2 �nt��f�N�{<~@�_-!H����0��#!������C0^�Ѐ'}�jWC��ړ���)�K�-��<[�c���Ֆ繏�c��ˉ>��!OE���Ֆ繏�c��ˉ5��<[�b��GB�Ҽ|$�8�p���E�y ��򜧰�)Oa�g^>�1��)�y ���<~�z���m��0���6��n�h�%�y Q���=�1/�P�훳h����@��4Hoz�f^ۆ�*�U�g֫^���'�7{��G#�ƐV�x�k����?!^� ���,l�{�����:��j�K�Ux^'~4�Bx2Vi�p5���|<����p���A{�3��t>��� ������i/> P��򡵽 A����Ǿ|�/����D�>� ��cR�ǾܸOS�Q]������|���̧=��N�� ��W�FФN�� ��W�F��N��M��W�F��N�����W�F@�N�����W�F@����ͣ�qH?���4��Ǐ�؏~����G �ݏ��?n���թ����Ǡ�i�8ګ���q��i���ß��i��O+:�5������+Ҟ�Φ=�i����*Ty"�h�GZ�_ � �#C�$���!��hU�� ��UIH#�А�uDM(���cE�`D���C�(���|��x#�_B<2����P��+�?�D> ��'2,� ƃ���l<���R�G��� p�J���A��I:!90�>�v��-�sχ�R��ܦ'��m�1�2��[� Dʐ�IM�NJ����c��XQ>DA�C� Dϯy2 �Y$C �Bb� 9 wbi20>� Ɂ����]m� d��q�.0,Z ��@�6�k���^�j=@ ���]��WK�>$x����j�{ ?nӃz\�|� (��]��L�4(8 ��H�/�Ad� W����� ��9�x��r��|���@a>4�� �"���L8� ��0��$�#jCgC�$Z#�IRRI(����9x�J^C���cd�8Ib(�wL%Q����1m�$ 2�� s�z����+�#TR�P�D%��L\����P�ĩ�+����\� �I�>� a�Æ7������%dˡC���΁��n8IP��zč J;|��� �,�:(u:��ɦ��A�s d��9�ae M�O>�!� 9�pl(u�0&x��Y�Q�� �B|��Db�%@� 8'o����8�b/�7�� ��8����`  ��b��ybW��>�%@Ll/� 瑅 Z�_M�8Y�D"���G�$ 8���k�) �Ȃq����B����,l��F�S�$~Tw�@/� ė�,^l���E#z���IN `@�!���>/�;q��р!���C~��u�¾<���L97i�+�F�  b�@B`�� b �B��hM�R����z;�C�� S# n�K�Z����gPHǝ��n�#A� rq;��Nrb� ,`�I��� �@N"��g0!#��To���@ �� L�M:�>��⨚��������̌�A"`�U�CE�nCi��-q�N�pJC'����րp�t�mZ�z���uVw�m h�M�р��$�5��:���fE�|lmk9@ Z��F�@S�> � �G�s��ĸ��”���N���P�F@b��I��p����� ��sl@b�р� �p �����+1B�X���PQS���CEA��\�HzQ�c��4��@0��q�����>Hb��9 1�H�1�X�;xD@҇�%� �g���w�GS�Q�9td����Y�> `��9F�����7�6ű+���T��Y(Y��� �TiN[ه�œ���4�~�>D�B@ψF,&� C��ψ���~HD�DJ{/Ǿr�)���p!���l�� �LG"qq�O+�ӊ\� ��V���"��f�ȉ=�R�{9��X�b�h�4�Q }IJLW ���NЂmo�2��X�+�@�&�6q���p�����!����� ��!�4��5P t�#�d���5�t ���׸�+���G*�נI�� ��ld��Bs4�`DR��zE�� �LO���5/�I �4A�5Nv�0PR����q2w�=.P�)]ߒ���+9��_��ן&�� Zg�@ @�!�!O�]@&��\}��"�0��&��W �����<�}ȓv��L\� �2qE� OWD��p!Ŋ��0�#X��FɓurE�]9�e�4K(s%J��e��(�R�!�S���5)P�)����LŒ�rʸ�riْ� J��F�T%(ͲdP�P,�d�AIC�����ɕY,D����+�2���: <+ay[;�������v��ɭ�B��E��u]X� BXO �% � 'z(�99!n�"S��?% y B �M�!XB ��3qz�Y� V���(*$+\� B$畬`FX� B��eH������Qh�l� V��֬H +2���\�֬� +l͊X�"1��+l]H[[C���e(q�B��ִԢ �t y�B��(DP�"h4�!srxtWK�$�"@�(������4��.��B!���-m��\��4�c[�BЈ�MlyKI@�= �|4�,�q)��HP�Oz�A�(��Cx=�Ѐ��"�@&1g� E�y��u����~b"�%n��~�Ue�q�z@SQ?�2�"��@j�.#t�| $Bb��y�%�DWP���I ���iR�����#�IjV�0�5�!�`��0�5�!�`b ��!�aM�C�v�W�P�'&lE�0��m !��״=�M�h-%��f�F"lb�T� ��&P�g� �'+�+����D!u�f>�lb���:"l��������M��� �f7�l^ݛ��&6��Mlz��XǦֈ���|3'7…7���o�ě��&6Ё�`�dP�JB�4̃��Ğ�J�m�d��h��_�P4���:�U���#�*Ѻ>&~��'di��ҢN�`���c}�d���w�6�.��g��� 6����G�y!�`:F���*m �3�B�"H!�@"C���HN��4�<��x`�Fr< 0O#9���9�8?X�J��&ƩtnC��� ��MP��@�7� =�!�3c�$�9�^�ltB � ь}��������Ϲ�s^`���::/�u��$�Kg�ҙ1��$�Kg�����IaB�z�ә�tf,��2�3��M�f ����tfl~�>-��Ł�KAxZW{*�P=�l� �3c"@�aO��>C���� t�B0E:v�tf�D�:ө0ߧ3c�$����Fl���)���� �[��NL��W�[G6n��NBCh�$��B;�>�� ����؅2���9����O��"���>�mj� A�/����I�ș�&��L9�Dq���`�DN �����05�� �?��`]r�q�x\&`zr&���B���+& Q�� zE /������5Pm |R�BBi�i�~"���@N�%��d� �A�f�� ��6�MQ�t���蒗�)�I4�9��r0�.y�C�Ɂ�&�&M�B;���)�� �@9꒗V�l��`?�TM����4�����r �D�PV�AZX�1t/h�$��F���X� A��N�%?�'�Z8 SO�8� 90&Q�Wc�AW �q�|���'>?ހ_u������qr`�C�@_�%��S(-|A'����T(�(�A�����0��p0�b6�ȥO����`E!a�Vf;��@VT� $4!Ih5.@� 0���B��j��!Ih5B�fS����+�PV��ٔ�C�M��4� K����F�Q9~�՛Hh{h@HV���4��mh@H���(�6I{'ڀ����f�+��췜�6 p&D���2;�@@�i��@��ՀG��{]��(I1Ħ�A8�xb��D�B<�C��h�#���k�Z\� ՠ݈@����1QJ�C�(I1(*$��ŢP F� c�8�D�v�����F䀃�� ��h⢦��b_>`ɧ� 3@.���Q?��5�ho����F'��O@M>HC ��Q�7�S����HA.hAG��0� J{p����,�a~�� '�J!� D ��L� ��� �?�1��N)�B*�R�)IadED:��SS������tr(�#S�=F@�dj��;��8�LM�󩤽��@�y(�Ԕ.)�PRJ7`�ۉ��d�i_��|2�I=dj(�f4�06SW?��@�Rp���W�OSs<�(g`j~��h@iJ��RJej�AT�� P�r,��R�P�� ����t6E`iQ���\��� �4=@�6��`��Ð�!0-<(�B��Cv�&���Nh;�B'xʒGb:Pu�&�,,t��0 �� ,t;xT���e�X��^� �hb��B'~S(�D�H�*���"�ض)���lH��� ��0U�& U�6������y6T_���sc��D'������ij;���ҡ!�Sl�� �^:�����: �Y�V��U���[E�>�/tO���#!��Vt��0?!~�a��Y�#Xq� xU_�X'��V����V��Ut����Iw�!��wB&b]�be"��.v X��p$�2�bk�M&b]��+��H&2�b���J2��Xq$�.v�c��d��W G%+Ys �W@��g���o F�\���88�o�x�T�&T��|�����w�����t���up�8��ħ�y�O��@ ��8z|��+^a��5s�4�;5�� rF�y$�QV�N�8���ก@ϐ������@��/\��S������ `AVS�ZKP�w����%v�̦5@Qd6�V]�U�����*d�*����(��|\E�k�����+��@�����S���yq �@@�[���^�9�~��Xq������Z�HG���U����Xq���z��d�zr���B�^Ϗ-�CV�R��b� Ċ���k�"gy�[S�h��4%�(! ���[��S��TX13{P 3�+|�8�p�#@ {L`L���=�l�/� M�Y �$@ ɔ��\�{9��,�0���A��dJII>*�JN�bP��JN"1�"�� ���:!��& �T'@��& V�D�Z�|Ե�v�k�U������Z'+�'��ƫ^3Љ!��{� �����u���L�е�z�k��z�������^k���u@C�K��{Wxb��&Eq(>��P4�q~�u(�B�c����|� ��WϿ;H~�R��:EV����\��3x� ��d�3M����������l1<I�Ђ�-FrӚw<�����+����kJ�H ��*V�"MSg��_0@�Ʌ'�g��]C `��{F0m�s ��,�Y=�K�RR ��Y��%\�/0m�g��Y`ֲQ�%5S(0mj�Y��)R��6)���# ����qȁ|�q|�q=�q|" 'Ӂ�g2�֑"�?)�����@[�B uf@4A�m =r#���z%Ӂ��q �7 2 *2��q �7�6e�!{#{�C({#{�C ( ��%`p"��#(>P� �@�7b�`%H��!2�7 &xp�/�P��/ �&X�!�_ �(2�91q �a��QFV�2!`�0�����2�!��  ��T� @/Ps312�>����1 �P � ' �qT�p/�BP� ��n� /@m���doM�� �� ��k ��RV#�*'X���P��*�p�ePV#��! 9�Q�r 'Xe0" Q!`�6!W��Ma`��q 2Q �� ��``���12� �/d�2� 6!�2((hqy+��%�q)���*���`uh��"\5P,��*�Ԃ.�(� +��(�9�i�Б(�(Ȃ2�]�3胂h�� ��C` �#C�`C@ �� �@ � /@ �����C �� ���C�`C0p��F ���FC�j`�q2��p2 0 ��p � 0W0'����+��+71 �P�+�+�"� ����Б�C�Tj� :_�� ��$0�:�:�q2!�q2�B��B:p��2!�q2�B��B-T�~�Bp�B2!�q2�B��B ۑ(TPs�)�1G@'� �fF �kfD'�pe~�b ��kf��fF�0��@��!X�1��5��@d� �(���e���'ϑ �a�����P�25�w4p)�NG&7 �&�p�&G=���� ��#��`'&g�Pms` �Sp0j 3dP�0�Sp� c�u�1���b5 ��G�:� �@ ppP1�#�';XR��Ѓ�%�07QR��+�"p p2!��7q p2��`��ϐ)�t p26�3�P8m�� 3!π � p2�p2�- p22q 3�45P��1�C��� (pu@X�s V��088 pVCP��� ` �`� � �� p(� �� !�!p(��>��>s��3 >����ٗ�h���Ёه�7�p� A� 9�hhh�}� h�}Б}QR�bh�h�}bq %;"8"��� A0�p� p�p2�0�2� �� ��(����(�pCh�p� ����fP(C��W�%�� �$2�!D� &�@�� A"PR�R�#2� d�2� 2q  �d�" @��qqdp6 @�!!��+"�"�L��"r!@�� ��"r C`���qGx��07b���q�!�p#RC`65�v� 0B@CPd�`�aGZ��P�H(�{������.��}���� �����{��Q�HH ˡR�a�ˡR��s2Qt�Kh� �0צ 2�%�3���.b� yc` �qr�P2�yséA�KȄ��MȄKh�ЄNHKO(��!r��A��2�CJP�dj�T��"��1S(,Rr�!�A�2q!T� 9�k�9��� ��l����l!Ql�df�xalQ��K� u dv lQ�V�E9�k�pQl!W��pQ�V�lQ�V��P�VX�V` B` �P�d0��v c Bp � wMm� ��%%d�vNBmY(��3Z(�&E�0;o [�vd�Pt`'X� v2�@ �󶰅[�0;o [H\h B` XBN�0;o [��C�5�0;o [�v�&R�vv҅��v� t�0;o [�% �󶰅[� ^h Bp � wMm�vv�dZVG�R8���!^�d`dZ(�&]0-` a5�g��O�Pv � `��g���gQ�{���|�q�&�q�b�'1{&&gr��q{�'&�g2�8�g�01|�cRx�g �q�`r��q{&&w �01��q��@I�g&�&�g&�g{&{�8��'�01&�#� F�w�@c�`D�@{ fD��w C�62@�w@@�e�${H*���RR&%5�3Lfx����5��ڟ�8�RIp�jx�lG�n���Py}᱆��z �Q�HF��we�1n5n�Іn{�n�qro� R����s��U5{����w�!4{�w�/{W��wqH ��w�vN�wr {�e�d.P�@�K��z�H=dD���0��R�t�"q��z,m��E�0�t(�K�W�v�t�C P;=�1B�K�w�t�wQ���CKwHw� �VR�H9t7xX=�,2�Cy� N�izXR�d���d�{��0q! �W�00�10��4����҇J~8E0,{���dÒ8�""� qJ��L�A/Q���8A� Q�@E��<ׇ0�-���|���8A�|��!Q{-Q�"<�!�" ò(�P@P� �p#�p#6(�'��" �a!�0�O���r8��m@"C�O�$B�@ y A�k�x �r|-C$���6#~m��("0 �" `���(����"@�!���â��"J&��d�g��� ��d�P@0,pr��'4��pr��8�4���"�lej���pr��2,�q�`7��8`�P'�A��%� �Q��� �� ��(� �"5���������N���}�`��� _� �(5O{G�4nr��(�� l狹8=�!f�� ������*�`��a�� ��l�0�� ��K�P�@�P�� &P@"��� f����� ���؍ ���؍}�����������������؎ ���؎}�����������������؍ ���؍}�����������������؎ ���؎}����������������ݢ5��-��$�pˢ"�� )�M٤5f�Y���٤5+��PQ�d��Z7777777�5Œ�'�X_��Έ3�E)I���S���H%��� ���u�XS)�V���-҈��ӈ=�RS��� >2�M�������bD)a닰�������-��6����-���h �x�)1��9[�9Z�(1,ʱ5Z�2��)��)1���)1h�)�[�5h�-��[C���9[�[C���9Z�[C���C��8h�ݲ��؍ި525�85�wq6O�h2{?�����5���s7Z�9w�5��5�3�7!��h�4��(%?6@��fθ,�$�78��3�i�qh` ��6qy^�h� �DVV��1Є@_� �-�ȍ�`2C`2&C�č�2���-����f�Z�H��-Z�!�+�25ߘ`�2A!S���25��`�2A!S�ݲw�P�0ѐ�wJT�{��Ӂ��-J�-q6OӘ9�$^�MӈY����9Zce� �Q ��2���b2{�1sM`2E����7�!2�x�{#��?�@#6b�?�� Θ41b#�-��-��5�@��5��5�N�w� ��!x��0)An5nθ�(J{sZ�=��w�w������V��%��-���@F��5Ә��Z���;��-�s7Z�4�9w�5�t7Q�4Z�2�-�s7[�4�9w�5F�[3O(7��5�؎J�[�M[7��Z�2@�-HE_�q �؎��9[�41F�[�� �`DӘM2� (1�_2���9�~�@�!EQR�3�7!7��(.)�C�7!��-�h��C�CF�j�K�e�0�}ݒh۔9�T���-��-�xǁ%�-�8�R�9��x7�R�2)���cD��@Ԧ�%H�2�-l�4a2El��A^]�-Θ4���!!x��0)An5n�h x7�x�����@���B�H�`tH�,\d �R�q�`�_�I�T��7�%�7�X�q� �[C�>3�� )A���M1 ��M)�M��?�N��C��sٗ]��}��(� ?�mٗ�?�H�M뗝?�H�R�D��d2A���#?�}��sٴ^��=+��[C���) ?�cٗ�?�M��H뗭,)���d�e�)q��Me ��}��sٴ^��~�����Iv�e ?�dIfٗ�?�M��H뗝MI�M�(?�r�e ?Ifٗ�?�M��H� �� ���`I���;��W-� y ( ���v � G�p 7qx�qrt x�q�� �` ���=���~���p���ȏ�(��؆��*׏�FI&o�Q�� `�p2��3��볃�p2 `��X8o���r��(�105�GI�Z���AIc�s?�s����+�x�g�Cx x�g��7��9xx�H-�� �+�+)�2�!�7��29m� Ӗ�I�i��+��9m�S����$ �tym�y����q ������9�e� i��`� А:� ��i�R�N�(ڠ�� ҁ��(0m��Ӗ�i�������$� f�I�I�o� b&���4�'� �$� f/ @4�D�4��������I �I � b610�/�=)��  ��i�e4P�.&"�B��'k_��4p���p���dYO��I_�39�)2�_ ��e�QOw3,1��Q�_f�4.�H_���i��i�j?�� n6G0�2�R��@a���Q�$���R(�e�j:#O�e����.EБC�(��P���j0�0 s��t �� s` � C �@g5�1p �sD���!��" �[� !yi#���[� ! >ui�0�G�d�79A����$�&�n�d�79� t` "r�O��[� !Y���N���N!�[� !y4��@`���_�p���_s �������[� �?��N�����S��s�_)Iy�_�HyC �0 C )�w��(6N�����,� �� �[� ! >ui�0��8$�8,�8-I��S�[� � >ui�0��8,I���8,���Ò)�8-i Ƹ8.9�/i��S�e����-�.�"�"H��.�"c�E0�".q�ڄ@VV����NX�"�_���X���q7Y�"h�KY�/Y0�.Y�"�� ��-�6������ �`a�d&�,�72Y�d�� 7B> dP<�d��<Ń@�A7m7 ��H�PePu� ��S�P�!�f >Y<�0�=�d�=��'DY<9P<�p���pR<��C�QE)"C` ��C�P<�{���c ��H> 7�i#p �6� �t�!6��!� �P 6����(��N�)H �+ �a��6�7e�����e�R���/��I`��E�r����V5%V�-�QS�QS�s�!�fޢ�Q��EF��Gq����A�7���0±�� rc8�J�K���F� �&]� ����a7� Da �` @�@��*a ��@�` ��׉@1b *�)�'Q�N���ls9` /@�bӔk%� �!�!攦@�� h ��013a ��b��` ��9�` ;�4��9��9bNbNi �� Ȁ��/�3�31�@�31/��b���31/�N ��b(�"N�!�N�) )P)�-C��b�� ��!攦bNi !攦` #��m �bQ��ڛc �`(5q)H-��0��-)01<��@�@�` Ǵ� ��!�d '�b�f � !�n�` �� !�@7�i� 1�i� �c$qCI 7d>p�� �sC?�n��OO�>��!��O�$Ao��<���B��i� ��� �P($� �}dX#TP�6HH_@�����VyC�q8{pCDt�7��a ��5d%7TC�B�rE�wE9� "VYCYyE���z����QCV�HY .� 'XIVHv� ���pCC@`��7dUC�#&� �pC�p��>V�"XYC6� SqEZ��>V��5��b��&z��EAf�� 7���X�d�ݕn02d%�H��6�Es�R� °!*rC^�הpC� c�<`�p&�C�rC���pBVX�4]�$��r1�/_9�~E`�b�$Q�0�dyC4�o@x��5�mA<&�6e�H���C�(��Mv�5e�6e�r�d�*�Mfi���%7r�h��*�Mf�r�d�fi=�x���*�i9� ��Mj�k9��i9*�M��-��31V��lYq��ia2*�M��5iٖ��o �f����ߔ*�M*�Mr�r��*�Mn�r�4�*�Mn�r�4�*�Mf�r�d�fi=*�Mq�r��qi=*�Mi!*�Mi9��rޔ�*�Mi9�2 ��r��*�M�6�*�M@�e�H���C�(��Mv�5e�6e�r�d�*�Mfi��S����=��+�d[SoS*�Mq�r��qi=e�H���C�(��Mv�5e�6e�r��*�M�6u�ڷ13W�mj��FF�(vi�7�W��M��C�MhC{]�v�d���=����M��M���11�� ��w9ۦfӀ6g�`"AR,�Y�6��[h�,�mj�6���� �� ��Z���� � ұ=�z ����W9�O RCxy5���$?D�q @� �@�@p��C92A6@�� �O�PC��O�ė5Dx� �Tۧ�C�ї2їdC6dC6dC6dC6?t @��� ��j�3�Tۙ� �]�5� �~�� /`A 3�@���� �p��C2A6@��6� ��)4`��{�Rx.��D3z6�2q@���)�.��.��c��_!F%�.,"�)����'ؕ�]���9�o8��0��0�J?��)�%�U��/���c�G��c�� |@�Pf �� q5e6dP<|� ��I|@<�C�`Wcd��S sr5�`�CWC<��LWs5�� f� d@:��("0Pd$�� �@ِ���~ێYf�]C��`T�0�I ���`T�� ��0!&h� ��A�0dV�I9`�1��i�X� vĐɞ��� ��sp�s�N ��ɞ�~�& `��& _�! ����N_% ��ɞ�l��>C>�ɞ��37q���r�����~�w�9�(���{7qӘ���n���(3��2# ��0<�B#3�����(*��012� 0��IC44�1��!22��!3������T�"�axB{�PS�b}y7^��� 2��@�2#3@ �i�2#3�P��i��y��ۗY��I 3d���� � ?�N5 n"����R���Y1Q� � Q����&3� ��T� � �Y�Q���� {"�)���� ��Ն4d� ���2{Ȃ4�� T`�4)������!��z@<�zH� �)!�0���6���Hp���,�`�wL�� b�,/� Ԇ,e�9�����9�z9�,�:yc�X�zK� b�zp�H��C��;�9$hȒ� 6� 6�)9`�� 6� 6��ч,��7��,��,�I�Ȓ7��,�2���K�z�B�Ȓ7��,���� � %��z��w�zY�t�ܰ)� %@�Hܐ1� %M�w����� ���zDӱ���H���3�45��ּ�HDӚ�� �H���y�zY�t��H����r5dP<��W#Z��H=DW� ڐ�3,W�������-�`C0 �-t�LQ������ �-��Ss��z��0��0� ��"��z S<�� �� �`=T<ˮ �1,�y5ų�����ų���0! S<�.� � �g�r� �y5)0��QE�2���=� �Lz�C>@X� ����'=��>0e�o�S��}5-s5 ��^<���R��0��ڠ��9�����L��W�+�0��0�c � �^<�� �������Q<ˮ � ��0ų�� �`�M�i>� �� ;q�ᚮy5�0q���`W3q�`{�7qL�W�'�c ����������L��W�+�0��0�ᚯ� W� 0���d�zHÙ#q��G�z�����=��zڐ0��'�{}��0$W���xn�9'��������l�6�uc|3����+{�w�2{Ǜ��({כ�) 7�)(��&��������I�' �� �� �>��z� #A�'h� ڐd��0�� HC��#A��8�!�!1@�1p �y �I��y�=�iT3�� �I<#16��9�� � ) �)�dpT�i#�z�w��� ���'h��dpT�i#�z�w��� ��� ڐ��!J�d�!��JU�J�dQEa ʠdQ�(��.0�J�d7!17A5C��10M` Q� �!� !� HJ!aJo�C 5�!T!�pT!`�����`�71T�C@�o W�Q����0%m�b{�A/XT ���' #V }V#�6�!s���"��t� �� .�.`V��.����,����� >p�` ����@!˂׍`��Ŝ�q����0�����!;at�ݜ�i � �b c��u;bdщ!)� ��g4�N��) �A ���@JAt��D�B ;R �� � 4�_B�x}� N/��"3������A2GБ{�F�m��� ����@��1��J�7,S�'01�"~��ՙ��b�!P1h���_��{�0L5�� �)M��9�i�}��i�2�M�V�"�D�To�ŝ{�s">0'��'Ss�+��sb bs"�^ Q S5�2�1'9��i�۹� S��0���0�0Q_��f5���s2h�fh�f`41'��01'sR �`� �9 S��`�s�~Q �Y s� ��/!��0'�@0'�C�2� ��#0'����+� � �QcP��Q3L0'�W2f2E��aǭ���� K5�P�d� � ��p ��p㙂ɍ-H�hQ��牞� ���)���kՁ싟{�T�72���ОO��鞿 �$O��a �)����aO��5Z��a�&VѾ�hQ�ʽ�� ��)�>�A��?2 �)V���I��!�����bu#Q�DQ�0��V��1 �a�4�i���˽ܕ�2�I˝ ���8�3��c��i��8�m���8�i��3��Ga�8�)�v��i��i�̽8�8�8�}���8�9��c��i�pF�i����i 㙟�#�)���ܰT%M&��pܰT%Mv��)��y}�ğ�=� �C�9��dd��h�M�M��Y���D� �V���4꟏��M4��0�@ �i9�Y)�����iQ���id��5���Z����]����i0��I�KF�� Q�����q�3���M�܋#�0��C��D����80��I��D�i�`��i���Md��)�`�0���8�8�i��8���8�9��i��8�����M������@ ba=9Qfb!e&�i=���b!�����e&��������lt�i�D��M419`-џ-1�����0���﹠9y �i� ��i1�͍˘i��-Apl�i��+ؠ2���2!�9����2A��)�^�2������2��M��21��)�9���Si�21��3��-�3��)�0��3�e�Dj��-eQ2A�2�9e�� eA�iQ�e� �ࠚ�82� � �� iQ��� iQ��0�� 񠁑�� 0 *{!����6&��1&�2L��j��) c� ^!���)��3 ��י0&�C:����+JcB�Jc &S���D�)c�PO�D� O@ ���hccѝ�x�zD�)D�)cJ@1&�b z2�e!y�3@�������.�$%�B��Q��B������)�R �/�d�{�{ǡ��w�С��3��Ѱw{7;�w���1�w��w��H�`�-�B�$�{ ���������0k]�r8�B�$C�/tK��#*/)��RR'�` /tK#&*%��r����p ��x2131�@!"˜�x@�����@(�!�9��!��������!2! ��𰁯� 9� *T0e�� p��HS@�I ��AE���N�7�� 0!��� 0� e{�� ��� ��� �PPΆ!S�p�K�!0a ނ1�$�P @���e�p��� �`�j2@�6p�+M�*�h��� ��O��=��O�%��&:�'��)��+Z�,ڢ.��0 �8vK>pv}spr0F�DB�s�N��Ni����Y�DI1J�t�� ��Ni��i��HvK����&s qh$� �*"_�P��(���0s q�d �[���d @�!UjBp#�@z�@0�#D ֐>�Y  �Y�s q�zW P� �w����2P� �$��d"؁dp��H�#�s�$f�G1�r8P�#3~H�P�F� Q(�� y� ��%P� hP��5��s0rlQ� �`��W ~�_gE��@��  �PiT`>� c�~π#!rP#!JV(7Z7J݅��9!:��:Z��1P�;��<ڣ>j���qP����@��A �2#1φJ� #Q�q�00 7Z`�!,!��t�Q�KU5h73h��wGK ��2sӡr~W�$�� ~�g�1` ڀ!�1�!"���� ��`���O1�� �Q1����&�� �G�0�aO�p�N����� �@�� /`��� �� ��qA�� 7��21�����%C I���Q �� �@�� /`��0��A��@��4�0���p� '� ��G�WE��p6C:ӡ�g����'��F:���� �q ]`<�1��C:�� ���1A=_���%)� C����'"��=C1DI��{G���9A9 � �֍�� �� ��x��{I�� �/�8��1�b.�g�� Q�07�$�P pp �!wP��Sه�=�2������vq�� ׭�J�9� ��J��>�Lʀp Q�Q  �ǀ�t�+����2��� �~Q l�� �� 71 K�8������1�~�s$�#�1~?�+ӑ���h� ����+� ��-��+Ӂ1�h��~�s��+ӡٳ����F ��0 NG�t� Nw,�/Nw,����BN���a��� ��+M� �2� ��+�� A"P�d� %���b%x��r+��%M�%�p+��%�F��:��%a��p+N��r+�@�a�P:� �P ��s�:`��s�dp5C�Q5W�0W�< #�W�R�R5W#�W3�Tz5Sz�UJR�Ä,tC *���*q��3*4��M >�B !�*��!3!���R�N+"��0*A ���*�@ �3*4��J >�B !�*��!3!���" �0�}*! ���0q5*���ZwĠ0>�BC����3*�R�ڭLR�+�0 �w5R~!@G��$�e�g��۽Q}W*p4e~��nPiT �� G~�Q9aXzI��~�Q,!r�~��p�t G9�~�Q9a�L�!r�~��}�t G9� ��}�t G9�~�ݧL�!r�9���}�t�� Z* G~�~��L��2&@)�� �P���4q� ��21&[�������-�2&�` qץ�!�=#s ��o�A7�pT9@)9`�॔B*0cb��0&2a�B^J�`�)>C�3ր'21&�f ��L21&͔��21&�`q� ����@�B*@ ��q��� ��)>C�3�Q� H��Q� �,`za� ���%�c� �dn��Gd ^y����������^e��VfJ.�q�9 3�/32SN�3*��1������ �0�$�$%H&3R�2c��� g ��C�r�@�71��p��B{W�T!9@��@��@�����ݝ�j��2�����d��k��ݞ�l�F��q&�m��� �ަ�p @��2� �� `2 �&C{�@��@�0o�p�C0�Pc�dp�d��V�gjo�1,��:�@!��X�Yp�B{z��wz/P�r��� ���§�AP<��+���@�`S���z�w�S����P S3�݁105�15�b*S�`� b�)��z�'V�S#+N��ק~*+���� �0>��N�e֐(�2>�� 105�{�`+-'+`+�"+�����@�!� �A'wС>'��������j�5[[[�5���[�6[�6[�6[�6[�6[�6[�6[�6[�6[�6[�6[�6�Z�=���1�' �(t��t��[�5!�5!�5[��[�6[�6[�6[�6[�6[�6ְ�[�5�{������Б������K���p!�!�A'��!�q ��@�`���j���e�� �!xT�u�A'��q�=�������3�� ��8��3�3�� �q����>����!¸��xT�Ҩ�A�����3�� ��8��3�� �q����>�7q��V0����`�=B�(p������ �6 ����v0�!���@�𨽑�����3���Б�Q*q��q!� !� Б��#q��`� �� >P��Ё�?��! �+�#��?�?���#2��@�x�x��x�!���>  b^) q2� 'Ӂ��ޑ�&S��Q�J&CK&����� �T�#�P ?"2��6 ?'?�8�"��[�&vc�`Lv#>�$%����p�`7`7h9�-4'Xg7�6 ��@ vc�`�[�&||�K+2u�%��1�7Bf�2�Z'��p+�vs�j����zfD� )��C��R|g�&�ϋ���2�X��ʋ��K����`7p����q��q�v��qP~�z y���qq��� �J� ��{ˀ1�{� t �nf��1��_�*~��{�� � �zV�Ux�� %Rr�g5e��N�=0G�:��Ω�@P�7��v��U H��ː�g�_d!"�_d��{���� ѩ3��2��23� V���̀р̀3>򩠺/�� ��р�>�pR� �u� � S���݊�� #�p PvD����:���$0�s�� �pr3 � �р �3� �3a ��` �ѐ ��� ���`�b�h�b�{P��T� 抮Hh�R'�0xB�����Z�_b,ኰb�;� b�� |�T�i8%S�}����,<��W'�zruBmuR'W' vrur5ubu�|�'W'�b�@xubB� � Q�zu�{�A�T��b��|�ަꊬX' ኝb�P'��CP'��lur!�b�� @F����� 7��) .�a� �P*7����!�r��-��!�a!� �/�p����a%��� ��A0�Z���2�@R!� �0mb�p 00F��� !�0G �!�<���Z  l�Z ���S<�)����0P�"Y�B��0Hvw� .�<9�s ys�ϑc���W0 ө4�� � ��s0 �{Y�������V/�0D�/s��p�0a` Y@zs�;�.�/.�.�.�� a�YV��#s�����B� ��5� 0Q��5�c�Z�[��q ����ڪ9Ъ�� 9� �Ъ��*�j�j�p�`Ca��<ɣ0��* �� א�A� >�@V9 ���0dP�_7���@�701X�>�р�Q{����w�P��m���w�@V9 ̟��޶*����� �@�� / � �0 �p��@ �P{�ѐ���р�!��w�!�� �{ �P;at{���{WR"%�V��m��&% !%� %R�w� y#%��7R"h��޶*hR� 9 ̿w�@V9 �/%R"h��޶*hRR R"%{W2�7R�� �@����2�7R � �@ �: �P ��7р0 RPF�2!3�7R"y#%�P�t$Fq� ( %��w@ %{����*�+���,�r�rv���r��r�r˧r��LP�޸`f��;*��*�rΨr*?*�r�y#������"�aG ������� �%� f�޿���? "%��"�-��S&� Sp%aHr)%Q ��!×�7�� o(%�  @!d`�RrK�p pKR�R��*ǫ{���Z R�ҭ �� �r ��� �*��rV'�A�8!~(� %���0 V %@d#%:W�*���)ݝP� � ���-%��Ӂ'�wd`�RrK��N�؁d��*%𫿺�RB���RBRBRB���RB��]0�sR��B�����0|�4�N�m� �zKm' ��h�vc�8��c�8� &��-���š6%AՁ3S!� HG1I� ������ ����3&&���W�x� �� %��d���m��`��`�Ǫ&@49`����� Q���{sc�D���O��01��-6�c� `��#6�*6b�)�� Q � 6��&�0��{�D�2�DȲ�ɪ����D�8ƚƺ8Dc�D� ���qcDS��*b��j�*6�B��a[��2� ���-���pP;�A�dxˊ��o �&�"����Y��͊̚ ��������V��� PR a�;���,��ߝ�=;�r �V��y �r��������`J�� ���� � ��|КG(�����zv �4�PJQ "Zt���|v��� X�  �10��;2��|X� �0�@ X �9�g��Ȱ"�ӊ�0 �� ! RK�@���� 2O:��@���� 2O:�� ��` X� Ȁ� �` �)��߬� � ���� � ��2� >P��1�� � ���� � ���:0��` )��� ��(Vp� �!˒6̏i�6̟6�6�� ����2G�*#��S W/R �zK�*�lU�*��;�$o�w� �@0�~F�����a q2���z�jd� �� �� �z�z���s�*��S�:FK�0�b��1!f�0� �!�6H����!F[!��nb�#�2Gœ���#s�!'�`��p庵�Z(20ǜ#� =Ÿ� *'b��2�=B:Ԋ��q� �H61�Q�5��$�Q��7꤮J��ʞœՒ&Gy����%E�����Ww��0b6|P(Ү��E=2G��Q�?����������!ۃP;��P;@i P;P;��SV;@i P;�"����d��@�� 0e������3Q;Q���P;��g��q7(�p�Ci�,������2)���,�@K���Q; Q;�J*R(��,���Z3 $rq����*��J�� �pk2� ����*��J��,�-1(�􎔖����j�����3M�� �pk2� ����j�����3M�c ʑ ��Ap�"| ,J8¢� ,J(3Q;�#,�#,�#,TpyI� Pc`3�d3qkF��!���PH1��|���Qi���I�&���� �� ��d��pk�jq��d�Pz� GT������� >���!!X��*�Q@�IP����Nկ�O$!���㯎�0� �X���H,?�#S�� q rIg��#S,� � ���P;� g��#P;�����Р5�:�!!e൓�r jt5 Q;y j �hp�h��"�F ��7�n��1�w���� �p�!>��!��ʠ��3�-���q@ �q'�q��q'�q���0�T��.'x��`T���'o Ǥ��1!���qV�''�g � �h0dʠ h �ʠK ʠ�0�� �� �t�!>��!��K >�ۮ� Ġ �@ �0�@ � ��1`� e�B7�� ��#��8�#8�A8� �#8� � ��o��@�� ��Q�o�prk� �� q����# q�#��� ,��,8S0 �Ro�(��o�9� {��� �qo�9PKWp� � �� �t��� �� RjBp� p��['4` /Ptp pt�����` -���������"�@�  ˰�� ;B?QjODB@=a Bp � wM�Y�,�@� dPDa �` k d@<ij <��C��"�X�,yC<����2��N� 6Ȃ%Ȓ7�bY�,qঐ�P��,-D<*��x�=�D�` �,Y�,�E�� X�t�>�:ȒEȂ����00@0��/`�' '�& # vR - �Y�2���+����Gi0c�i0.P#?�i c�b`�� �K�� � .�� ;��� h@ B iP  �k5!>0e�k5�   G9���[�L�!r�~Q ~q��s�t r�~���[�L�!r�~����9�L��9�V���0r� r�~Q ~q�5��������A-��@5@� 55RE!P5"5����s5q5!"���G G9���[5�5�SF +�a! ��5� �x������0b�Y�_> s� ����� [o�� X -� �0b�E.`��+[� ݠ��� c�Y�E1e=� ݠ��� nm��30.�C7� ݠ��� nm���;.�Y`��s��CY��� z�H�� .[��֖[߱Y�c�����E=��_[߱zP;'��_ŀEXp���Y'�4�q �!V@��w @��I��~Lc���EI��Ca"���� c �� �&Ca"�:��0�����XK J!�-�p2Eq2��<\�!�T�2 �`"��G&��/;b �7^aT/;'�a"�� �@�@Z���� *�C��� ���� I>@���0���@�@Y�@��A9� �� �P(@p�/�7B֐���� �0���2��� �{�!����{��*���%��%?Y�i��K�0��Qv2��*{X"X򓵁%��%?YK���5�d{#��p2����س�.Y�E�� �%P�_��9�2?��r,g���h�H��72?��r%k�,g��s�ܰ_%�u�'�'{�,G [cٔ�5�#,g��s�h���R�6BA�5�*7�*恲ܰ_%���(�(����5,g��#��r��?(Km)��Z�����,���*��D�� ��h��5�.�,��U ��*{~������{ײ.��� ���w�����o�8i�)H����wN���E�p 2 ��70�i"�3�w]����7�E�>P�6kd?q { ��{��{��{�@��7{W��@��7�TO �w~���0h�P�2��@���� �=��?��H���У吋.[- ;�7R �P�<+{W���|% ~E=�00 -Ko?��fD�У.۲�@@;e��d��r�wԲ�06A+�?�V�7�4�c�H6-��>`u/P;�@���ֲ �d��)F�w�P�S�r�w?�F۲�p�� �A�H� �1>h�AD��5�A�E�X�|� �G���@�wlP8�IK?kL��&�H�w� ~o@VJ��L�b�o�ADopOA�EM�~�{��+�Ќ�2�g�N��Рf��7w�+P��`�v� �SK�PT��� ���.+�cp��� rУ{W���T�!�p\�ڹ�V0 w�[=*��w=Jm"U�!>�C�`�*w���!�q�=:n��bT�-�n����!� ��!�в��!��H ��H]۵F�w�@ a 0Ҳ.��O�dB r��`D^�!�`D.۲��~q��� r -C _۵]+ ��] ��H��Ha�a+ ]вI�]@ -�� �� �A�Y @�Yp�� t�4��d��E��Y �Y@���Y@�/@ ���O ��������09@�/����A�Y UA/@��/� �/@���>�Y@���Y@�/@ ���O ������ � Y@���Y@�����"B�+B ����R=��A Y >g � ���M�s��4@� �;�Pw�jnx�d� �s��s��jl� �0:�1:�1p6C�:�+� �6)�0(s�:�Ws5�A��sWs5W�0ā��i ôW�<��qqcϓ 0���g ���VGX�Q50 �@j���v/@���Sv�h�6�1��xrPw4��XP*�o�e{�>`��>e{� e� X���=�����@a`'i�Y���� �g��p�E�pa����ip��[��Y�9��"�@0h[!��.����ip�����B0"��i�i i�� =�t �"R�,�@B�R=�.�����Xb �Sj�,"o��5�7�ɱW����:j��jD���*0N��"�тm�+x���o�+���"+c��Y�+�6X�,ž@�A,�F�I��"H&C�,���Ѕ ZZ߂��@q�"Z�@,"��]1,2`X �qr��s{3P1,��$���QAH���"u��p���"U*�5ny�2v{�x�l�!@\,B\y�"z��,B"y�T6��y[*y��!�"|[O$Er��"_?���xt�i,r#,򶝁!,����F?�@�� }�`�"9��Ђm�nۂ��т9�#�11��,� }2�01�@�,�"�� }��ڷnK~k2�ڷnK~k2!,���*_o���"�񶸚+!���ڂ�q!�"��������E�Z1�����+���S���ۂ�?�+?�����S��A��"n��!`��!�Ag}�"�{}�ٜ�,�зЁ��F �-b����]1�#��-�x�v�ق�ٞ�ٛ��������/��01�012��,,���;������|�"!� �!!��÷������P��aE�D�[R�t�5�JO`E7c*�;n���d��1nu��,R.s$2��~w�,b!��3��7c*Qp7�{QR�H&]P�+/PVp3�"�����7O��Q �a�o@puo;���X���{�dj^�o���{�d����d����R�np�)�C�5O�"!P��ָT6OO���T6OpKe��i��%��,2����p ��[��T��čm��a' �H �� 5�p�� �P��[� S��]�q� 6���P��,�,��0���!�K���� X�p�K"��0���!�K����p� ��ɜ�K�œ�K������� �@�K��2B�u�K��3���3�K��3����� ��y�!y�!�c ˒��� ". ˒�E�t0Xt� c'>�S���S��@ @'��K�E,� 9�t,�t��"� N�b�;��;v��'W�A�3e��TC�a��E�A-�s����*�Fd�XD� wTC�#�W(�p�X���Pb����� 1���K�Ɛ�a �D,��`'1�Eb?��Eb�C��Eb�=� N���"KwH,r!=��X��=����'����0��E��/�D�b?C,ʡ�31���%�ʑ�3������C3� N�b���Cb��!.�b$�XtXD�Eb�C�� āEb/=���?3���>��;=4��$ .����X$�=��2�C���31���3����C3� N�b�Eb�C�.=$1��� �KG�=bo 1��0I6�X$1�K21b?��b��2!�S#b�E�t��K�t�� N�b�;���� ��� �(�p$�)r@�������9 Gr���!Gr��r$)r@�������9 Gr���!Gr��r4��p �(��kf� �kf��� e�!�a�db�'�� V� �{���{� ���p�1A9� p�{��� �`���W0A9� p�0A��D W��O�D�{b�r���!G J6'��S���d*) �B�s�*0'!1'���"01 �1M� F0! �s� �� ��(������� �@�� /p �1�s�*�0 0 ��"%"N1�K�N F�} 9A'9�9��OR�-�� �1Z��9� �1Z��7" 9Q��B\K �;���N��+�U�=�����9�P[µ�^�Pг�������(��o�V;�9q�xP*��5)�M`�MZ!o�6�� 6� P*ޤ5o�6�7i+�5o�Mo�Mo�6��`�a�`��)�[��[�!o�66�޺��6ߺ��Mo�Mo�6���bad��M�6o�6P*�� ba �!� i� M�W�epu�/�t�M�"qu��5��q$����! �P QP3���j'����"rQ��� Q� '� QP3�R Q��SWA��d1����+��1��� �0 ��~�P|� �W|�� P|-��-�1� &{�2�@:Pϳ5h5�<[���qCp��Ƃx2��b��#\q1h��1,b�ǰ5wii��Ò�bVq�F��ϓe������ i���>G��j�07�ks ��Z�;Q�z�j ݁4�a��� � ��d�dEZ��R1�0���[��[�e��Z��dE�4�Q��� �Z��� ��� �)@A��k�H3�Z��� �p�Fx} AWCחW��_:�a^"s��!WQ:W��{�3�Wqr���� Fɫ�@�d�W��w5dp빔������W'����ļ- p5Zw5 ��-Df @d�b�Dx DFdi�"e@d�Bd*R�b@d�g�,D� �� ��(����D��� �� ��(�����V�`�� �@�� /�k&P��d!@�q1P�KjQ�d�d CK&T�� (�+d�=�[U�'��4�#�;�/�BA��9d�dw�ݑE� jA+��0d!�RB�d<g�5�qd�j�l�h�i�iA�iA�p�qQpA rQK��k\K�/n�[K��kB���[daڻ�eq$%f!t����&�+>aC8�["�[(�K'�k s�=V� �� �[��9���� ��*u� pQ�䫽]��٫��V�֠�]����{�� Uh�u�e �2-C�q1P�j�l�h�i�iA�iA�p�qQpA rQK��k\K�/n�[K��kB���aeA�a�[d1fa0��ڻ�eqpQ�䫽]��٫��V��0f^�`^�{7��fbcF&� 1a�kM`^�� &C%0�d����D.a^�0:a^��`^9�� ~��m�����9�M9ar�/{W�`^9����9��`5! p5! #a��M��#��e�p�H-�#7�-�#7�-n���Cd1.F��q;��k�` 1N[f;B�2�h�_�2#>���f�%op n61N�R_2�h�F`�2�C���`� 1�-t 2��1.R����7~��I�~2#H�����H�[\g�۾� �x�[�0` . ���4�@��0 � |� � � � � �� �q���{��� �� ��%a�����-�� � 2� �@� B�P��;���0�t ��2Q7��2�5 �'�p"�� �@�[�-���U�� Q$��� � ���[��[�� Đ�1@�0 ` Y0�5.�i��,� ��i��d6>����;&6~B�E�� �6�X�,� ��i��d6^8o'�+��q�#�Wź)�� �@�[�-���U��� �p��E�K�0 ` Y0�5.�5��@ i�� � ���[��֏� 1@��)6>����;&�b��'��{f��1 ;�N"6���/�k I���� p�6�0�;Q #5.�:% �� ��i��d6����; �%���,a� #�0 6.a��0�9P�6�0W�E6n �P��S6�S5.�6�S�pa:%1�BC�)��`Ly�� �[6 �d͋�)��;�S&G� x<�4����ksŗ*�Va���//�BC�)��!C�B��C LLL=����:�`E�p�C9`�v� �g���z=����=D��@ �=�w�@ =�w���ST�E�@4=t���P�0 ,�CK�z��K�z=� 9�t�wH=�9���А�P3�s��0�ETCK�z�� 9�t��E��CT ��t���=D9�t��E��CT��� 8��<.�0 ��HK�z��C�����#�lK�z�� @�>ܐC��%���K�z9��XD=D5�@K�z��C94��ㄠ�C�p�tXD ����OA9�t��E��CT ��t�wH=�C�@=N��C,A �@��_{���@=ۑ�@4��A9�t�����@��_>N0=�C��_K�z��C9t�?�9���H�����9��M� �ubr�$�p ���0����� ���q �01�01�C�P�<�/��C���P=�t@�C{WOx���w�pK=�r��CK�=4 ��9�t=TI�t@�C�P�!K�=4 �P@h�C8 B=�8� ��0_ �o�@�d0�`�b�y(�@4 ����!%ÂI0 �  K���@�����s���[�ٔM��MPL����R�S�M؄M؄Mؔ [SR��`�PL����R�S�M؄M�ٔ que`��M��MeP�Lb�F08dFO\��0���O��QC�� P8����A���� J� � 6�(&J�q�@�|�����b䋂� �A�b�P �L�"�?)������ ��K� K���C��j�j�l�j�� �r����-lQײ�r����-lQײ�1�K�q���rl¹�De�%����l�_�р~�"<Ÿ��@"���x�I��$�!R��� 2%l�2' �pJ80�{ ����W� ��*�w�0��0�nGHR�� 0��0�n0��aA$dx}�P_�q(01(,���B5Qx@8� � �y{c^�`^"�-g^�%2�b^�%2��Eݒ�{�"�>h��K�{C��!) s42ot �{c���g�7�7*|7!`�7�7�7�� ر�Q����"���H�P]0xbrq ��Wa` a0��9` �&g -��� 9��/@�k�h��h����p�@ �0.�9��//,k��/���� �А- ��9���I�9���K �A��HSq1�'0� J_��@4���4 �11�����! �1 ,��"S���o �1#����Û� ��#�Q�#��?���#��U1�4���5���N� �%P�-��-�ypB9�l�$ 9�̶5 �Q� Q ��QpQ�7�Q���� ��`����O�o�2���gB[y#I�~U� \���gӪD! !��'Eg��+�� �E'@L!L����D 8� q!` �*��5vJ& �P�%�� �{��)�0��� 0 W��7���`�6/ⴏ�@6���mK�|����+�D� ��96/�c�@�! �J�7q �A���� x�����k��� ��05���z�z� >�z�� ��7S�z�����{�!����20Q�3���3u�30&�0@i0c2�@D| E��S�F �� � �� �� @W/�K;����tEW�` G��O��pĥ� ��� EJ�@  �P ��`�@@`�� @`�����@ ��  �{�*��{�� 0��N С5[�5��5Z�5�cpo/ŧ�R\ !ś\ !ŧ�R|��,ś,� �������7(�6�O� 0(�q���/�������m�@�1m+��R�2T� ��q� r�f�#!0!J& !q2� �PPU�?BF�#!��+��{38RT��&a�C=�!0ACN�1�'=DCE2�=�C=�C@d��!��!@d��!��!�v�����!r �Q>P� �9�!V�!�ڵ�'8` o��.�0.�s�.�i��@+�BjAj�jp�5�@�7�p���AV�E������<]$��!!Yܣ? � p� p�_ZLt���0 ` Y��'�'�|@6�P4�|@�|@6�R>@F�p�0q���)��_� ��S��di`��S� .� \�IS�I�a �f� �� 6�],��V>0E�9o�#s$�m3*�R�Kx�\oT~r^l�Ppa��Ppa���v v �p�A�=�=`�Ppa��p��=��v p Ppa��S�=��v _���&NKNv Tp s��!��ȏ̯ ��qPܬ`3őRs�#2v � u�D/ 8��P7�0��D/P7���| >\���l�0�X�s�b/�%�9`�o/P7�_7��vT��5�E-d /���8r����8������ -��0 �� �$�$rP*r� 2� �a,;�b|F2!�� c,. Ư���s�� ��p. �2�b�b,�t 2� �*�� ��er � x���p. �2�b| . �2!����#�0����-�p ��� p3>� 1���A������PH�c OƬ�*Pư�4�@��O��A�{HCd�D����c�ߠ����p f|Ʋ�d����4�@��Зw'c� !��@h2i���� �F�� �� h2i���� ��� �F0( )��� �n3��q2�A�k�7�,G9��9r��rtp����9��61�B3�� ���6���P�69r��rd 317���3j�� ��W�qe�`3�-4G�� �`�G �c�a` 4 ��!�P*x"[�{x����$��1O�h�ii�(2!�p�AK)sF�QPS?�5���U�Q]��)@�2d��^Cx�x?�sБÒ�d*�x�xC6,�0,�x�q#ha*��G�7�B�Aop�ajCf*�r#���7d��MT'ہ#J� ia*iq�� ���dp�  q ��#�A���Q��Bs���Q4a���Qt6l�"��l�l��lO������� ]F� � s��9��L�����[��r-�r緾����k��Zɜ0�` -�e[c -���jd؊�F�.G�0��0��0=.-��-��-�0{�/*�/� �"���D�)@mG-d@m' � @�P�0�@C@C��0 �� 9@mGm�m7Fm��C��0 d0/Ш�'��cPo6�V��d�v9�vcD��C0��vc旜 `~�d���+C@�`�7�/# �0ht�Q��&� �2�@�/�1h����pr�,s����2�ỹ/�''�}�1h�? 3� �p3�7 ��y����S�p#������ �t�5Y�'��_��q>�_��qȢ_��qF�_��q|������0��'�{7�����x��@0B�E� ���� wm[���'��fp#O��0�&��` ͯ_��q2u#� �@0�a � ������ ^H�o Bp�^h �o����� Z(e B` �U�`�""P � 5`G��5�9P�'��&-p6��f p6��V� p�� �9 G�P r��6119`2ar$Gi�6!6!Gr���<19��2qr$Gi�6!6!Gr��6119`2ar$G����,�!G6a�a6q`ۑ5�l5��&ۑ5�h�9��~B9�l�� G�fr�l5,Gi�Nr���N�P ii�Gi�g2) ����)��$ui��O�����!�������������+_R:������s�!�� ʓ���Q����/ʓ �����-t�=c�#�� ��� ���U�F��QH#ʉ�4X� ��t������/�@ʵo�@{�� ���pr� �����a������ ҡ�d�Ӡ� a�8�P�d�8�� @�d���8/^�hV�/��ԋߣ�p ������Ԩ��x�Qi�( ��� ���|��AB�� ��ʗ��O�� ��ʗ��O�����o�!I �_gP(�a!y�L��*wK������̏/�9�r��� p ʧߪ"����q�����rb ����#b!� 6  ��Hd�W�v*��<� Ws���<�c �ʃD�<�B��<���p�`j0x/d g�6>Z� ��%Ԗ��kw���� mW �76� q ���,!A2���-��k�`��uL�S���Ɯ�We��P˶ ��d�̙5*q5��v�����2��@5�t5zMRs��cT�WW�H��_,�|�y�W�2z5WSs��h�wW���I@œE� *r5d` np5*�<*˸�<��<�D W#z�;A WC���̣LYD W� WS<��˔�6c�����T<����BœE�#�$��T��I�S<�E�!W9DP<��} q5d��0�J �ţ�����@ ��z`x�&. �"x�&. �|���!�A ۑ��� �� �?�� �@@ �r�9@ !A ����!G˜�ȏ ����!G� p�qr$�9��? ����!G?�� ����Є90Mh &�R/p����>0��9o� ��������@ �` ����9�9a ��q��w��q��q�����@i����<1��q��ڟ���q0���/0� �� �� � ��M��ф\������� � ��M��ф9������ #�L�0 ` YЄ��M��� �����l��K��0Mh �` ���9�q����q�c �7��a ��Sք`B єB` �`Fw�`���M�4�!>@ ��Xb �D���D� 7�9�0�0���+�P��&��!x��w��&s&�`2&WU����JqD_b2�Q� ��~��� `r��0ar���š��� ����,�0���n����̮�d�<3 '��03*u�� x;�q|"o> 72 �+�p#7"2�!x�  2���2�2!��2Q�!2���2Q�!2�<|�q2�q|"'2q���''�2�q���2�27�D� � �0� Od 7b /��9` ����0���8i щ�5�C �� �J$)�B�dҺ#!29�z-�q#� C ��*�� A"P"R s0qR ��B@ s��.P1 ��� %K��q�IR�o Y�sps` Y�.�H����h�BY�s�f�1��hp"h!D���B��2? v�[����% `�bkj%��� -d Y �7R@ � Q��� -d Y �etC ��$���%v��<@ ?a����N7�B� �D Ά#Q�ŬB� Ŭ�Q@7�wr05V�g�� Sce{�`��%0q��<@ ?1�QB ?a ��g�0��0��0<��� ���� #��� #�� 5���,!W!O4,d �� #�C�� �� !9! �C �19�1 C5��#���f�0� �0� ����#9��P�� �!2�P'0! #����f� !p���yp#���� q#����#����6�pi#���0��G Q'� ��8" .  #�Ig�>b@:N� .h��.�^��P�H�Ebp���e'� �vb'�s�P�����mB'�`���X$�_X$��vb � .`'�Q� �`'b��q���P� �b����mB'�`����Q�mP�Ebp���e'� �vb'�s� �.p�q���� F��1F�D���1��)�@�s����%����b�%�Us`�Us` �%�U[�_a �� �0�%����N�0 �2s@z�s@z��'0��p��NCH�LIJ� �7`g��D���i'͔H�� A�"s�����q.�_���L��=N� �����LI3*%�������� R�43JI�v��9q#�t�q翁#�LI��O!q� � �bͳHF!�` ]���'V ��-�p E���|���q�H� c��rPfJQJ�B�@ h@@ hp6�q�w6g��0A�apHMp6hp�P'�p6��� ��h@!��>C�3�@!�a�hp6C �p "��x�Sw � 9����xO��g#W1zgs6��>C�32q6�g�  π��c=r�a��#Vl|�2�&��.�&��c��&��-{^$o=�8;���v�O50� �+r� Pa����l��o��`�r�/ݢr�!�p��/�,� �"��Ȓ7@���2���AȂ�� 9�,9�,5���2��N�Ȓ75�,5σ��*�*��cRC� *�>�5� �� �7�A0���@����r,�� ��P��"2ÚȂ,�9��Bϔ*�� ��H9�,{�,�����cr��2���,��,{��?Q����<��l��B�-�{��l�2�7�|7c� ��A��\�1|�?hG���" 9 ��h � ��p#��7btlE���dd��Ap}t2t}����t֍p}��t} ����!!�4�Ё1�?epI @�!@�xDxC�e���9a��W_�x$9 �` P���b��D9@PYpDM�$/�Z�/��Pj9�YPSY�%M�Y���DYpD�2]�D_�DY�� �D_�X�DXr9�/P!Yp 9P!�y���Y!�����"���#=BxZXj9� �<��� @� �F0����, 0��� I����d�@`�ύkn�ϼQ(�ຯ� �`?��xr`�0A`D5�B1�5!�,ӀD5���D�A�y05�9�����3~~��3*>�Bsr���q�q�&  0'��usB5}�'��00]c��O��(0's�>11's�>0'�,����9�qYt�h�EhS� S��q���p�B�!c���E�� �p߯mx�� Y�E33��Rh�g�r߃U`���]8�m'�Т��&��#02�v����1�����m� �0�8&�&�YD c!Y�ETC-S���m�] - �Y ��@ ����#�}�Y�H�=&�� Y!�0Pp�crJ6&urr�m���p���EbT��d�Gi�U�q��m� c!=cr�J$�0,JD��DJ�JT�0�i� W��t�dP� �p5��H��W31aW��W�\qЅ��+\q�^�S�=5f��V���� �a�P�� ��=2@J&:���@P�@Ea2 ��W���Wc71bW# Q�� N �zS� S�z|��=5�}�Ўb �@�!N � � �R��-N �W�P~{7� ���,����7�����쯀ނ�O��Ѧ���{���� M$��~�� �� ���= ��{ݡ���=h���ha2h���ha2h� �.G�M�h119P� �a�"�����p��B�]�P�/4a2&s�-/-/-/�"/�r.�p.b&/��"f�"/��"f�b ����&��r��5�h119P���>(�����@D��l�@�� b6�^� �gb�!=�i@`�&q��-�"-�"-� �& qs�(�p�+�#(��1����#��9r �K6��#�о��#1оdӊ9� L��)@/KFO���m��gd) h�����+#�P_(� ��܏�Ew��X4ҩ�H����)���7� �  ��F�)� ���)��_��~`��%��'��K�)]�_շ�w�m�+�( ����&��U}�u�'��!P�Z��'�h2�ҁ>2�ƠҴ+�'��MT��ɝ5��ɹ�+�'��� ���,��V�,mՁ�q2��&3( 32�{�b���l('3(�h2#3(�Ҙ��� �q�+�X��i �i (p�'3˒h2�,(�ҹ�+2C���'=֣�.3z�+��i� ��3O�a��U�o�\���Z�� �uH���+���!h�l h諠"��(���+�,o0` ��ɥ�DU�F��Ɇ2e)54��(��n 6��r����U}�'۴-�0�w{��&a 0` O�K����U}�'�-�0@4,o����@4K�)]շ�w�݂h�DU�ɝ�h�i�~Q��+i�~Q��+r�M�a�+��+V��������+�������+�������������������0` ���0@4����l(� .�Ɇ�a �� ��DV������������+�������������+���������������������������0` �����0@4�����.�+'.p���i��-�ph��!/��O�yp�d�u�d�Ah!.���f��r�0����hap� .� h��.��X .?��.�0` P�0�1��(],o�������� h!F��+�����i ��1��FvU��&� �q2�,!���+o=�!3�7i��!3np��V�bq�����"�(�+����3=Ls��#�� ��`B�+���c�6� ��.W�"�1�U4O&4Om0O�/� 5M5,B@&Hv��6 ��>O��-b�l-�7�H,��-� N��f-,�d-��Z� F� �����(X,��"���!�9���'� ��N�"9�":��` ?a[�,2?� &�wcB�4O�2O:� 8O8�"��;��8a B��?1O&� &�� ��d�f JFi~V�����2&Nq��d��d��9�p=]�c� c� �� q�A B4� � # @iJ B�BnB��� �}=]�c�0� �� q�A B4� � # � o8�~~>��#� %�$P�0r���_ ��r�}:�W]BP]� ׀'orՔާ A!�r�}*.�P�� o8��@-���0�����G�o�XC�J1a#��>�N!� #�� @d���ðd/�dDlaCle1�q��$2J�EdJ4=� ��J�JDfb�9�l�KV lJ4$�"��J�Dr�J�E\J@\�n�E\l!lQ�K����0�qu���quA�B-F9!�B-F�'�b$F0�����'� �0�2�P'�������5p�qT�l�X(�R Q@ ߒ#^��`� ��V�����P'm� u�=C=��|� C C��� �� ��� �y��T Qp}��4a2���A�at�Q Q�@�� C@�d��q��9q�a��!@'�@'y�W���0�F$���'Q� ��4�:���r �` �a ���0sd �G�@'!�D�� ����%ѧj �� vnQ����0�p���pӘ���pӘ�'��pӘpe� . �� ����� �� �� ������� n n n ������� n n n ������� n n n ������� n n n ��9��9��� � � n ����9��9V@�b�V@�Y`\�n�u!VPY��TP9P!g`!b`r @�VpV�.PU� �s c�/���� �`��V� ,� ���ik�0V� �@���`��apV�D� � �0V��� �`�0� ǐ�Ȑ0V`V@,�"V@�p#V�"�h��9��] �z���� �.�J�zd�I!W�E}5Ws5��9�7q5Ws5��9W�W�nٰ�a �� ���� Z� M�8��!�r$p# � �C��sS��!K�F� f��u�� f;�E��`԰}Mq�`n&&��ـ�P��P����/���4!�N��% @���n'���z��� �PCH N����v�Mf ��v1N5�QC����L����x�:���U'4�P���P��'g3� � �S���XC5��N����8 Ѕ/0 y3 m!$��1 0 �� g-�?7�q/�80�/-ԅ/0 ��B/�%��Տ�8��2�89 ��9�8� ��%jB-4�@�09�d�C0�|2�|8� @p��2�|�pְ%@2�2� '0�|��� E0,�"HV99` ��9�i��C��� �c��C��(�V�aD�3iK8���'���p��X8sp,�5�������x�Jx�(��|@"x��#�0�<�V� ��!���X��+� ������^���utƀ�v:�Cx�!�^JXGg G�P��::c@WK�,�P��::A`�6��P��::��Q�^M�z`<�#��$�jC +%�� �!nC`�G�⠋N��+���HPL���|5��G���3� Hl�0 ��C�A ����ut���D:8 �t���z�=�領�{� ��=0& }�!��� Q�P���B`� ��%��A�6� �؃`ZIp�4��}pr.���>�g }@ 뀠�y$���<?�Ġ�� R����ut���y��Q���(��G�?��3$��y�B�"9��d��r����59��d��\<�8��F�"�-c+�U@���3��<�� |Fd L�0���!�  @bK���!d�LBpW�� !�=��2�zH:���̃tP����[����!m�[2�zH: 2d� t�6p#rv=$ć'�hـ�z�6@l����j��|��� ���$H5��"/; �B(�=.@蒦�N ��`�<ٙK ��":��)�dg� �߂� ��p�l�P �K� �N�  d� 2��[7�C�8��P ~��~� � =.L����y�3��h �� ,�� Ȇ�07*��:S���)R*�� `�5X��� ��ed܈Pr��"�@�H4E��y�� t�)2E�C�"Ov� ���� .L�';s�� .ȁ�0soC���a�l�H;E"m ��:��EZ������di��� TB(�%�ɘ��a"*�� �� �7i���E�- QPr &� p����#I/�)��l�μcLM���1��䒥a".�P> c�� ��o�%9 mԒ�a d��d'� �PK A���$,�Zrj�Ҩ%icif��ZX2�,;�|@'�%��-x;�0l��YP �-ԵdA\p �C��%�*§a j?�fT��B4UH�������Z` 9-��|���vb �.���f ���B4U.T!+���Z` 9-���Ȯ`M ի���\�r�,,�(X]AY�p� Y!�P�L�@ai��!��FW �\t��3PK#c�������hu.�w�42��� cid���4�X�� �:p� �Ҁ�jBa�ܥD�  uF@ߵ4PXy�h( ��dC��]���'�.` �b�@@�d.�$d`d�K4��XDc<���s����S�.���42��K#c��a dn@�#n�!�� 0G$`rX�@�� �)� �t ��JF#�4�& � @��`~4��ЄRP(j�1}%� �RP(��(���� ��@�M�4��j\�3@'co��r��`~/�&� T�z���8l����T��� `G��g�L�0��A��,�o��nѷX�ZX �� �-�-�i��5�E0��"�A�j,b<�"!xπE�<�"�F�iAm�����ւ��=�[�dڷJ��< ������Z` -"��"� �`���<Ζ. �` ގ�5_���p�I��d� 0������rr~F |8q}̀�Az�[@[LDMxO�*�d��`7T99` �T��� ̀H�dg��(r��X�DA�J�S��$9@xr��o��9`�d��pb�9`�B�q(DFX`VV'��".@X�,p}~���.9!���@px�(� ~N �TA�~iTAZ�s0 ��Rp���)v�>d�'�#�����D�s� U��z+�#�?�����0@~�9� D��=�Smh���܆.�H�A���*\��~0� ���0 ��ω��=�A��� F�*!� �UT���K�:���@�O8�G�~� ��O8�G�~�)p  '����� e!$�:`����EL�� .��� �P�a���/0���4�͍�X� �d�-�TA<����#�/�*�$#lA� �\��@�i� ��!�����:��I�C����` ��f�lp��GE�e�"A� ���0:Z�Ӂ�7���p���������D �a�@�\'t��������'�uN�@k�tx7�a:���0G�@ С������u� @@��>�s��¤�)�<`>�8I&$�xzC�8C@h�<�t&h ]�MR��2 �B�5�I{�6(���>`K�)!���`z�FX0�"�d��5�=�6(DX�IH�&��|`F�A�5�P�QhB>� �ȥ2` ��J e@o�M҂_0=Z�,o"�����ZCW숔P�AJx�P"% 9V�D� �t���CG@ �!-@J�5�tH �!���B+Y��f9���P�L@ i!-����(�րi!-��(�րi!-x(��CZh�!-���t(�A�Tg�PT��� ��� Z��V���3���a?���� ~�7T�7|'�4�::�B�N�~C�������� ��!����@��� X�ͦ���oH?��(`'7p�Jt� ��T���2x�B������� DA>���Q�L`NP5�7X! C� �@�@Q DA>p�`�"�~�(@1��@�s�rZH2��[���;�%� >@,�sV` 8wH��ܺK`jn P�f�t�sZH  ����`�0�3�| ; �H.0���d�q�/0�Փ2#=fg x�,0�ƢX�&F"h�� $p�n� Lw�_ �s7�� �u��L�k� @ -(U�o� �o@E� D"�N�(�g�@c�� 4 �8������u�����P��(d�%��8i�H�Ip�&�Xt�@���A �#x�� �4,@;�H���V ��1"OX`D� ���W :��� O�B@� �I ��p��#K��%��Y"�`�-�G�%x"�@Xቃ� �Ax�@�5c �!0����6�����Wp#�C"���f ��"������^�3�� t�!@Z�@,�'���� ��ø"��0 Z��/�����q�����@h�����~pj� � 6������1�)����N@�+ 45�!<�W���Ł>K��G� |�+ 9���P�C����7��X�:�� �:�F#x_O���_��IXG�K$���Q�� ؁���x ��j����{�@������@��I���Ȇ�P@6�m89@����Kpx��~����N��h|�y�A��Wp �9x'G��6^��y9���sl����v��N`^��q9`�����h��������>o��1E��9 ����T�����}^�B0/��� b�+�@ }��r �@t}p;����Svq��!y�����=0��8��⸝�aqA��C����8`��8�,�ǁ�š��ݸ�#��8��g�  =��C���qX7�X� �8��@��8NN��ǁ\bp����N���J A��\bp��q�`qd��p�5 �  �� �[M(�T �!���q�AN�| .�L��������� <�)C pg��9/��L�E� ��,`'���y,AB�s�F��:'����H�� :'w��3e�Ω�,A��q��q�9q��hw� 4�9д��c���A$�@���s !�q7B�DB�`܍V �P0OtN��9:�!8Ot�<� �D� B0d���1� ��$�r ��� :�P ���n�` :����H��9DF��J�stN��9:�!�s"�@�8�w#��1�IP�� 48!�`W� 8!� `�NP3Џ�3�V0~Bx������8'hi� @����;�S<+�G'����$�� @�>ؠ�0 ~����D����\��Pmj��#p �� ��P��aD���`N�g�O`= ��� �<��� �>����&ȞjF��a�4A�� . �� 4�)���� 4�q0%2�Ӣ3aJD�.p � �_�� r�>��@ &�&C�B�coP4���N�# 8-*� . �� 8-*0�7�0T@�d����HF#�9��r�#�A�(� ��2��pZT'q� C�HF�I#�$9�.�1���iQ��p ����r$#�����Qw'� kx���� �#�`6� ـ!�(x �`���\8�l tCp�38�� �A"���N� 4������#� ����'9�l�H��?; �� 3�ߐ>` �Vpx0����x��� �Vl�H��'�It�x`Dr{�E6��>\3P@0��ɬ��-��Up��w ���Z�� ]�@:�SH � �%듲���bM�<ɧ9�3�4h��$c�I��@(�G� Ҡ1P�h0���al��v�8) �A���I&� t�a A~� ��}�(�+ x 0�U�Ņ >HI��$���P��)( R�@�5�� T�hd�j���m��`xވ!0�P�!a���@�R$`���tP ���v"�%����� @0��+�C�*�!���� Ca��!����] �we i��G( �@(@�(#ҁ0 \�+P��0���(\�`d ߕbLW� �:��PC@(@���� ]�*�������A�AB���� \!c�.��F�� #x�!P��� 9��l��F���*�B���P@L�nP4@L�PC,�G�?A���j)@����$�Pm6�� ����C"�=��4��PN���!���Np�AN�T�f��7���5��N��Q���9S|䁞�TA5�'L�SM�F�y02��&* ����!x�@� 7�&�C�1��k���!d�ϸ@܄�pl���Z�؍2d�,AE�pX!` *��x`�v ,a<��@������=� � +'�drk�MY��`��Y�8a�$������) n&4��k�l8�F \ؙ� � �02@N` ��I0(�lA���*p`E`'V�[�A�ǫ�BkD�W�VB��V�p�F���l X!"���;��7����|�A x]4x�@�l��@`���7��+��M�M�7���Q� � ���@{c;t �@��h���:��@�l�20 N�m�0���W&( 8C�?07*�8 &#a4(@� ��P <0&l Q�D� ���8��g„B����t"�$�H��$�HD>� )��ŃDH\�H"� a�]��0�E��#L�@& IB ��� @�8��� � ӡTH��x�g�P�`o�p�x���}�q��@H�e���&��݂y 0 f�4��E4�Fp�Qp�����F(f�1���� :�>89uB�� }��8'1x}p����8������1�L�Z�����W2V� ���-�� ��#̦;� X��!�$�6ȓ7D��`�j�j�.�P�Lp�� ���DA.>� �S��� � �+��@�8�+�%�!��#f�>�8�`bx�@0`&胙�@�9x3��r6�@$�Dd��!@��$�+Bl���A ���D�L ���b#B|H@R �`o(2�v��r�3��^���V��>`:��� �FB�� |%�D<6@�ʓ����\@6hC�` ĕ�@\Q�I ��@ P'F@�*0 ��v��� ~ ��v��@���` ��� ����wr�$P|�PҪ� �C%��8�7 X��vd������ ~����S,�GPA %HB�j�@���)�2PgȀA�Ma�p�l@@�pL<� I�ɐ$�e���Д%d��C p�^�w0//�dH��q2r�5��7�ȃ�$� � �� I"I �#�R �N`LBG'�TKt����T��R,�� ����!Q��� ,�0X`���*� �H��X���!�� ���b�8�_����B�f�� @0tB��A'V�q�*l�[p'� ;ĕ儜���#�v@2�J�f<�'􄯠G�+ Z�+������+k����4V��+x�h� � �ț,D'��@�%B�z`��=X"�MEA�9H�[� S�`4���� 6�� �A�,�wƑ���l� � (D!�BPK�˔IP m�����桖��� ��0��6@B� �F-�%��(�|>yI��� �ZC��i��xQ8 �H ل�"�M� P�l�k0�@��N�؄WP�C��@�4/��M�������" �5��xo2~C}BQ��̄�B JD8@p4�!XDCL%,r�A �" ���<�Ed�yX�@V��Ed�y�\* �+���xJ����pXd*M%sp,�p�D�� �+���c�fal������A�(^A�a��# � �C�q��!� @@1x@T�� � "L:i!�AT�Q� ڎ+�4�j��JF��&�P?p����~� �-@0a@���<<�~�c�&��q�C ! |��0�p������1p�+��ۜ`�B+�!:�F� `��( �@��oqdFh@��M1 �*L����ŏ@@h:<0 n�h@�4<�j� @(*'@�JC( K�`�����4(�@�i�e ���ʢ(h������$�0,��Q0�O(e�`��`3�i��3�z`3�< ��������� "l�i� ��|� pB86���#d�<��f���L 2X 4�D�"R��@A�`���@d��7��V�+` ��:�"l���#��q��NH�E+b��@,AoX���ȇ�~�1�&��'��U�J�#� �@K�l��"����t� ��d� ��Ђ�X�a<��V2t� :���ת��&��Wp.�[h�d, ��֢�9�z �p�A�M�z ��Λ��  X�Λ7b8��d��$<�� �2�q� 2��<[A"p�t@8��|KP;!��<�/|� �y���rW.�.�B8��Z� .@��C��!A�� �Ɣ���p�r �5��t�0�����9`�N�%"�!�92��S@\� <��j���\�x*F%4 � !�@!�T L�X�g�{`E��I�m�$@8��;����Ch�G4 0L�����A� � ���Ah�� ���� Ϡ4�j` ��,�9� ��p��B_@ }:��!�8.�sƅO���[��� �. 5�[��P@-�3��( �Z�'�Z� �t���j�5�=�����7��~�V/�%��P )@5�[�[RH<�`� Qd��EQ@��7|�� X���=��D�.�6:�G!V�q�A��N ��!XW�B�x,4�W jB���AȄc0]�� 6�O� ��`G'�O�(��`�`(~¨��'�J�`b�S�t�a'�o� Ó3 T%�� ��� Xh�@\� r $@�) � �.��� d� r $�%H��8� b� @�@e@8��W�q.�Ǒ ��� �s<�L���L�"^q8&��M�N���8  x � �& �3r �n>a�, �.�%X2u��Ǝ7� �"P�VL���L]�S"v���ϒ�k�t&L���JВ�k�4vL `0 ����k�tJ�`@Q(��X2u��Ǝ�1%��T@mg��5�v�锈 ��d�@{�F�4(�! ��Q�!=g#�C^sB� �4� �A� �A���P`@�7٠dX�BɈ� �Ĝ �&��T����5 H�K��/! rNι ���# �Ѿ�Bx>�0D��9G� �3'�D��� ��9�q�Ǚ|bN��w�>��8�O�JsRE�99��4>�'Lʜ !P�9�'�I�|bN���DA�%�>�'L �0)&�O���DA�Y/�J)��c(��H��D�.#0 ��}� ��3l�d�G`��X���u8q�Dy ����0'����s��F�M�ZSI�h`O�� �ľ�D���0'��l@��d�BR��� �|6'R��&0a@�X�A*�Px��Wl�T�5�U��� J J�t8�cq����.D��X\��<���A�0v�`��J .�RPI���L���e��> V�� �M� ��4�� .����A,C�� ��5�����2\@��@p��Y`���1�N��� �"�+pzs�*V=8�����U������1�n�͹9\+���?��T6ؠ�Vm�I�@4�� s� ��$�� �O�#K�ЇW@ރ�3T@`�O� Ȉy�~|�0F�@3��� }Sg��P�#��6��%� &��z�p����`O��n�+�&� Y���rR�j{�. ��s7V01 O"@>� ` �@�.���D�=;@Ȟh� ��(B���Y ��XA��3�DB�d�-�i� <V@ ��3$HF؂,���#`ϐd�4� =B��nx�,���GHb��� ��K.@ <Úg 4�� ��� �a��I|��8 ��o(m���`O.�ă�� (� � %2z�/p�`����(+!�- be�hH +x����r6��%��x���~��1�.@X����Iȁ���ހ����PV �C0BX��°� ?�(�9�~����G-W0l_�\� �p� �%�=��\�E�m�3�dr�m� �&,�a���pFK�{ƅ� �J�@9@-����BZP 9�-���4|԰vO�@ m5��6���tvz��M ���^k��F8��#�޴��N�饆p�-�� \�5ĆrA9��@ �BҢ��/�� S [`2�0���� GI�I%l!2�����xc �p�2�t���e �rC���%�rA9��@ ��, ��/�� S [`2�0��&6V �@�lanYƐN���ݲ�!��oހ!7d �,P`(�mY� �@.��� �°- e�-� 2��X� �bD�/��BZ�ja-��P؂\�BX�,�o�ʂ�K ~�/|Cp䂫�e.P���-�ݰ,�yl�0' e��� ����hx� `N��9���� �p�B���ph �� �� ��C[�=�1���'؂�)�l���{�V�� €-��r�'M��` ��ܳ�S�Y�*a ���k��{ʽf�h�E��S�!��a ����}++hE��49�>� �@@|�f� ��T��z :D��=���Q�2B�`�NK�:��HF(t��!:B��f LH�� ��F�*��sh0&���z�@�90��<�Hp7n��be��� �C$ �s��p(��P2���*�����~a %3��P�^�zҿN0 �Wp&C�D�q ~P�5�4���,b  C���|�2�n�2 �H�P�2�mP��A�� �D �A�$%�`hA.��u�_�:|-���u�2�n��{��A����8�uz���+�۠���( *���֠Tq��N�U��K�hPŭ��M�T�i�%���6�;RA��b�5#����|�A�=iv ������НJ �۠t�ޢ���'ڠ�!�>���y�s�@��# ��g �Re�# ��4:�́9��g �Re�����. �r���<B` ���� �%, ]�� ��# ��8:` |V�����.�|��!U�� w�Cj�9��PK r���vP�e4Ƅ"x�a|�0���o�}b��Fx����B��FXm�n�>:]A�V��P$$C ������xH:AxX�N@I��t���L���� "�O<�PPR�T�k��4��&��-B��l��&��=�2��Հ @>���/x�Đ_@5��|"�e� �2�s�x[�ed�-�����W0�-J ^�\�� F@�'� �j��D � [D>�L�E���@i��F�5�$�M��� � �`@� �0$�@~A�' �� @>F@�l���D�� ��ޔZ���Mыy��_�f���5�BX0[�,4z�Ђ_0=�M���r�Z` o�-��|0e��=xSlA��xG� ��,h���-�q��(ʢ؀�{Se�M��!@O��Y�=�"0 �a�|S����w�N›zS�7�z�W',�`�c����<oꋌ<�H����oJ-����[�)��,�pHrZH ����C� �<��-�|����Ax#h�� �g�,���|n����@�{��d���{�M @:P�&�O�P�g$� �&�O^�d�BY` r�M�yX>kB�e ��J޽�>� C W X3O���'d�Pb��TY�0-��Y؈*1eaD����gM`#���T�-�B~cbeቁ�0̂Y��`� (�d�� 2 �K����RGB� l !�+���O����?��&h��a���'fA���0�a�� e@��Q�"�() w��PR؂e( Ol��Pb@�( Ll��Pb@�xgu ��:�@<� �b�>������b1��s �@D ;A�h���Z� x=�aj��s@@�1L��15^O�1 �=���l��'�� �ԘS��d�����@ ���X��ў�:"2`j(������@ �1ԱW�2����%d����:B S1 *� �b��d(Ġ׮:B �@ ��p�b�?��\��3%M����8%�%�S1d�)����*�~1@g5�3�{�1�>� 7��DDfG�,4�����#$���&�܆}�A# ��O�!'g ��`��>��L�$@ $�������^q ���W�TM��4�9�X��hn�Ӈ7���q�D�w ���>'g���As��ə1�� �7�89� ��b@g���B�4�&��A89���� ���A89�`�ԉ�OO#2��08b�3B� ��b@ 18���_��U(�@1���C 2?�� ��Q�@�� � ��+� ��� WM�1�3h`h�pr��t��5�f��h��A QS�[`V\@B.5���P��O1�ńO����@'��n�,�j$|�2� Q$D�s�Ci�T#������ >`��7�@vBD؉�%������@���@��Cy�F@� 4'!v�;AF5�Ո4� �%h@T#�r�X`Y�eA �[YJ��eA ��XJL�e���`�"�T�\�(r]��e�"�ߊ���EnN���!�� rS��� Q��τ:bp+w����;�,0� ���ȭ�� ��p]d� �xjT!��@� !�A���9���^��C@� !@�@M� �=t�W�䁟�"T`X����+��e�.�}G������m�.:Gp�šԀ##:*T�]�=t~�<�+� ��kp\� !��`G'��ӁP�N�`D�9$QP! ���"_�! ��0� �S���p�E �4�� h�6 L�(�&��3��`���)gv'�t�q��OQx�+�.`j؞)c6�@$�S��/�T��r�81�~0�S�j耬�jޔ��)4p��m ��0� v7` �J�b!���"�` <��y���m�>��T4�%���!jM�,�G�� \����T1O��5 ��8* S.L1���@��0�̐��� �aV2�P�'�A(蓒4QSxK�T�DPA��m��60�*nC6H� ��A��� ��8���E�@��d�� �0O+�E<����˚7D'El K�4��@��HSxK�4�C� QS�8P�C}��#X��}����xM�]D���l�8D��!`D��("}� D&��l�*%��0���b@6H������V6HBA�_��6G!f�O0�%� ��mH�!�4�����mHd�6L�"� G�8D�@($�G�AS8D��)܆T�J�OSH�` <��p�P SHB�P����o���)4�D0� �A(P���A"� �� 0�T!(A6��@,�G�>�A�� ѧ)�l��BSK�4�l@ R�PH�J�\@6H�0�T!�A"K���l}nC�i � �%��B6@%��)� �p5(�Jb �7U�����@Zt@(��@ �� �� �%��g6�>�!�4�DPA(A6�MA($���xM!4�l� �B ` K�jd��X��}f���V����)�D ��#h nC(��#�LP2�`�P�d��JF�D�( �I�@&�Q`o�~ @E���cd T'� ��$�Q`E�(�2AD7��gF�`���( L�(� 0��Q�dƈ�B%cڃr�@D�DAL�@�Q`c�L� ��xd�(���u��� �� \��p5�A��WCa\�(�0���P �j( ����P�@��~P��P ����Q�m@<'�ȵ���O��T����A ~K����i o!H] P]�$�@b ���Q��)� >�����@�y��q������Ox>A ��tP�b�l�l�'"D6�ـOd>!�@6�"��l�'����"x�@����|"Bd��'����'Bd��'�D������ �!�D� D x>�'"D6�8|"x>�q"D6�8|�ODX� <��8�OD� �?�Q�O� ~ ����r��x�C5<��|�O���� ـOD�l�'���|"B�l�'"D6�ـOd>!`E6�8�d��'�D���Od��'!�����>�'��\�|��5��q<��8|�O��� .��|"Bd>� �D6��d>!���|"��+���!D x>!����'Bd��'�D���Od��'!�������� �!����|"B��l�q��lj|"BX� <��8�OD�`j�\��]��x�C5<����OP "PR�X����"� <������ �!����|"Bd��'����'B�l�q��������l�q��lj���� >!`E6�8|��D>!���Ox��'"A؈��x��q�%r����+���!D x>�'"D6�8|"x>�q"D6�8|�ODX� <��8�OD�+����'B��A�3hJF4e.OHP2�|�%�|��xJFM�z�,L�@�� ����Q�G�&�#pG�#t��S 0Bo�GQ@Wf ��3`?��6+�f�����<�fp���� �uu��t@ �:䄜�*<���@:QJB0:�H`Oe�fM�OT��r( �< ' �( t� 'L���F��}`�4͒X��?1c�O��M�ڄ(p68�̂W� ���m�t3� �� p$�t��Js�H�h�H� �K�`[��̂6�����lk$��T$槳h &�� p<+xi@$��6��h�@$�����s�8��L�r ���`[8G��6A4���4K�? �������E� H���x���L�6�lp�5�S!^�����Y"����\>͒h��\1 �$ l�$*�� \O�p l�*xV�^�a���!�%�_ag ��y�DSנ`�L���Z�8#��D���:�נ`���[f[�K�02A$��6��Rx��fId��p{�%��H}�xYp���؃�wr@"��`�_� �>����%>V�8�xdQ�pړc:A�}���^��i3 �� d�L�i9-�=�a�� �Áx"�L{ ��8�9 �r�L�iO�>മ �X�����, ���3��+������lj>+�� �!Gx|+#WX����!��6��|N0 W�! Vr�L�k?�T� ~�4B��D��+����{0��\!r�ru���� K����0B`&kb �@�9�@��\A �A�� �@�D�a \P`�Q�&c��[����� B�x��o ���T�(���1 �pBp��"��~!����S�_�|(��F��XR`x�@ h$s�<�A�A#e� �_` x�!A-�jPr-� x��@&�%E`<�L) L�D� J.�vHCD`�"�3(��H�S�D �'�2Cx���Os����2CȌ��a�)��2�侇�a=A�����S � ��A0:x �z��OՋ@�K !��� ��C5H/0$�)���g@ȁNpr0�9� ��Sh �`��1 �ls�)&�P�2�`+�70�X�@x��A�8q��h XA;����^`������ @!)��4���{��p5"h��� �E�Zp�Y�i� P�� �g('���P,� ��Mĉ����c{u�=�7b'��*��nO�U�"��� zb�(�� �V1 �b.�~Bq>��*�V����E��<ۡ�J>� |E���FQ��b:�7�!����`*W0�G�]A��J��j�<��ʀ�0�G��c� h����Sq��{4�a����a#p1�V�(Z�9�H�B*n0Z�"έ?� )V�*�aNX�Lq-�%}��"�� ���B��� ܆;�/آ�A��Bn� V`؂,�q� �8�@�1�<�  )��_~� Y� l@Ҁ�q`�X2�t�$pY��0I` ��IG�74|���%T�d0��85E��́O` �U�"��l�P�U@�Z���h�;�&�*�d�K p�5!=x#P�bM�!9$$3B�9!�����B2n@�>��n]g� C �ϡ����k��Gu����7�P�I�)�OK�A�-�f䀡�\�έ xfh��8����P�&�<�O�4�@��O� �W� d��) ����%���Cs�@ >�`�؀�JQ�L��p��T�!&�?|�ܠ^p�JR�!DE2�J@I���!t2��6F9�|�+��0;d�F� HE)0�� �Qd�E�%1�nh;�*�($r8��S��?�P�R�('q�|�"@nW�S� 4$Qb�.��JT�2@��F�J����w�� P�q%�� �@p�0k�+9�����EU��X�<�O��N�V�!XE�� ��n�_���2�N$��J�b:�7� �ʗX���A:� ��0��Э�R).\��TZt �������d=��� ��h� ��\)ؘ 0y����BӀ�J[���h�0�!�)��b�W�Z�7$�O�oۆ�Jx�@䁝�چy�����z���H�l��Q1�>�Њ��x��������p��72����#l�OCl���FL����[� ����[]���7E��@M�� t���Æ���5ЂB �B��7�8�� �5@?T4�@w��� ���6��A� ���C �k5�`��PEj@NP{�G?�#DP�y�S?�0n�>H����!H�� ��� g�{�K�o� �6X��<��S�@T�P��c� �����X�my~�� ��b �5���@���[a�8ݯ�iG �w)`�h���$�a �ܣx�v5� !L0,x� ����(����G ���7� `�Y�8�,`�}��؇6�a{� �r�@@@Zp���^aq�x�X� 0t!�<�r���O[R:k{G,*�}�2���) �������$Ѐ����X~�_ �p ����ա�Twxr<Ԁ�Ƭ|J���pbnX_�!���!�x\S���Ё(8�4�����`�T��w>����3T���-���{GEP B�A���ш`G�Z0 <��)�8D��!�qhb�E��@4�;,�,F��wPBu�z��CЂ��w<-���C읽�!bA4�;{'x��3������]�a�h($�@t�8�Am<��a�P%PHKX��CDW�0̢��8 �,z� L�����Cl�)S�Ap��t�"�>���]4 ��QR�A'(��xp]A4@AO��0̢����h� ���0��� ��`�x��LON4�;��C4���q@4@�Aa�E!0Fz��( ��P=���W&$yP3��A�Aa�E�!��U't�" ���D�F��T-�`&4�@ Nj@�OD "\� ����Z�-�����QP���A<�"P9��(I0&d��P�` �X�!�E� �`:����PA'��`��r @02���3@02���3���a�bZ ��( &��H��@�s ����;�ȄE@K� $({d( gsr���H�Ԣ܏>(fTC�,��LjQuB��(�P�Nj�Ō8h�:1e�Aj!����+C9��9�\��5@4���  ��(�L>Pd�]��{2�Ď����!TN�H��e��pWN�\Lwd ���p2�A ��ż���%��a~�%2P<�֩5�D�(S<–p&"L���!0���% �xQ<0K]��5 ���"���}p��k��t�j,���D�������=�5�F� B/����3r�>8d@%����W�W!�!�����x'#d2��&�����́90w��E��9������m�����7^_�x��/VaL�����d� �1��_��&���r��QQh������gz� ��@@�L����!ӊdL�0 V �@�ITA$�����TA�_� `/�,;[c`\��S0��@��x��8��� !pt����r�`�L/`��;�p� ?܍^� \!@����a'ck � uz �4���p���A�r�Q!��=V��Z���̃���x��n�� � ����10.��)�@� �*�d�0LkH�´��=dZ� �Y (� �U��#��("Ҁ �`��@���GE���'��Cb$|�l (�H@���da ���9oa��$'���d`$ 8��Ȁ��:n$l~��H���20a���WA胓�N�al@9(�)�N���!d p%W01�4����$�d�@$ #�#|�l ����@��O��@68�9�\�$�F�`�����x�9� �81.@b� `b��01� N`Q��W� j@aQ��� \�+����P�p?� 2!~�+��9@� ~p#nD��ȁ�̓��+���d���\Ab���@��a��P @ ����:�$H�@�9� ��! ��pj�vH���Y� y�cG�6t`?��x6C%�4�^~�x�st�f�#-��$������(Y t)�xO~��B��ő� pB�� �4�,d^��@�S j �b��g �!Q���  �R |J'D����d� �z��C��@��!� I�o���!� A6� ��1^���ߐ�q$��@�7�� 9 �d�p���M�� y� �Cސ�o]��Fp (������7�"` J����?��n_�B'����ԉ>D��P�� � �p(�O�z7,�N܈�ur�Ĵ]@�8���P||�� ��,�P "BA h)�� }�?���n\��Q'2�ݸ ��*Jq4@�cR��)N�T�:�op6e �?c7�p�=aO���`7.�Ce1{�n쉞�@̞�U�~�P/�L�� �(b `�t� 4��F��t y�Ox���'LJh''�8ƛpza�y���R�XEG�����q�K ��x$KXA( ���� B �!�@�1j�Q!o$䕌T��7�����P!�0 ��U� ����F�"�j^A� �����V�*8@>����|@��3���8$������� 8A�����eQ�lD�����ڈ:)#��`���3 ހH�C���!ҁ��;C����0���9r�t� ���$ 4M�^�09��t�΁98���r ;�9@\�ȘH�H{'�t� �A'h�a�2�@� �B��AdA� P�xcB�ȄD@��xnpL B��A|~dY �ٲ *Ϛ�� 2�,���C$)@4j$YXPQf��ދg/iȌ1Q���5D�`����=��`����E=� B� PQ��!�K�Ҕ��pwJ��! w�,ܝ��!J� ۴T��A�rs*Z�����%��85�P+gĊ��� ���ܼ��z^�y�lM����4�A�,����Cn����?����h�h���e$7A�#� 0G�f!bj� @4K �B���5�"�+��`�(�7N�>4� ��,@n`d̖A3GX� �@: ��2�>PB��l 9���"4�A܇ ^����B��������/��ZcA3@x�@S���z��y=�������r@xnB$��D��/ ���p >�x�`�x��^�����@x�bL��/@P�h!�>�8&�O\��qL ��Ę�,`R@ �x|�\ }p5��i���X�Kp�>��@4��qrr��������5@L���� �������Ά��q:�F�_�q�@9 I�� �� �G�Ci� `e� `z(�i��r�/l7�x�j� �4�q�˩��5f�k�P��LH5��"�|���` ޢ|�PQ��$!/� ��` �0�|�Fw���V�R@l3 �a�� .��#�&�eL_��4���/�Ȁ�f� zP��w8@H��0� G��4L�Ҩ�9��.�5��l�t���%nG��l����.A�՚A͚]��.�A�:A,�Ĩ����%�T;�ԭt �N��p@�;��b���9`͂Xԉ:C�l��.�YA3�o����.������+�K�.��������K<�c!j��`8���0��+��! �@ �ų8���@p,��[ �b�� 0(��q��[�{�Z�k)��ca��98�q-5�f�:�98�BZGC(��~�6�! !j�ՠo�p�%n#nԠ��I@ �1r#nܠ��I@� �9(7pP"��F � ��Р�7r�%n����F(qu�5 o(�-���A5�YР�� e��!<��ۍ�S�&� �4��T���A���)� �P��� K�E\e���7�M~٠S&�����ʅ��P�N��Pw ԏ�ވNP6�>�9�6���jW��Q�P?%����NJlPJ�/�W٠�����C�p�@��/�H�ڱA-��!�O�T�������T` d�U����T�3�dv���QB�wr�� "  � b�G�#:A9@�!OT � �Awt���H@ "t."�@,�;�7:�Q@�P;>�;�����};��t�r�E >�j��t b�($gG�A��S��)xB` ������d�"� �h@ �M�_�3Ўh�!�y!+9 0��J�� � Z� J -�G4@ro�+�`BCz�~��G�P.Az9H ��F� X�� �'�Ao,�C���lh��>t�FPd��� =L�F0�?h�d'�* SD�h8�d�F� .��je�&Є P>�t� �d�� p2�[8� "�9P@:(�F8��u>V� e�&Є P��@�����@!|#&�9���D�@0e�PL�" �Ii�W�K�>!^�C�*���W �=p2�`�\����M� �P���@�xB���`�R���puK�M�� h�c�l��цp��@ ���^@r� ��8��� � ����\��D���8b�-{1����l�f� `���F�4G�&��4��.��j4� ���ʀ��A1�h�(� �A#�1�7\�9szC�!a?]�2@ lFSdGP���:��@:���7�At�;� փC�s{�|�2@C��h ����2�NF#(4!��2�AiB(�A9tV(��@5{����J�� &�G`�@0F#�=�����2� &�;� � NA h���(��(:��k�GXM�d��sx�� M�@���7c���m� �܆�2��ґmCAɠ"��$@��4(~�d�� dC08~p�A5`pJ��Q �@ P2��(p@��� H(q ����9���}�dꄗq&���I�!@�v� �B9��t`:�C�1���!J�ə��C�71 >Հ ���P 0B��� �<}���AιĠ08S���>`p���j��LLx����G�r@`p�0�j��&�#UwT^Rh�p$DUMX�)`p�S� �<�-Q1���� ["��81�)V@` �#���G�)�9�S�����`K��-�s��?9�y@< �9�%� h@+``(�_AX+��@��V`kn��hC�8���QY�P��_�V0���˨`(���Ah�4�S�t�O�/�f��%�h@����G�� ���B�U+VP�X�������|��"T� �RV � :2� r��S��.��@r��#�KĐ�F@<6P�yp|��%��2@��@*������YKk)�L��DBEC|G�Cp��Y"� tiC�+��xS�cL�����8vi���)��!̀��p:���a � �+0a�(��q<�t��Ό(�/��`f(^4�ԋL`X��Q:��y?� �����%H� G:pmWA��@Lgso:B ti�$A"CFcp,�(�-̯�p4&�v�(�q~�X6�ڂ h`~݅�2���-PcS��3�6ş�(h ��…4� �8����D0�<, ��>��a��� �vL��� ���AZ�!�:��>�� PU��8�,A�j�5gKLn� >M�K�h���/4�֔�)H��܁ 2�`��̃ qj�0�A���@àC@�O� ��0� ���c~�9 �9:2`Q~0�d$c�I��@l $c�I��@ � L��9�,$c�I��@4G�dL�0 V`����sD2&A�+0 �0x�H�$�`��H�$�`���ɘ`��0� �� ��;���B� �A0�;��T�3�6@�)��̃ q|���q�T�30�@��3��,9�$h�"8@ ,7�cPbb�P �*��x� x1�\\�Y���Լ���;�Z��$�� Hs ͞�9��n� b���p_ps�8�4���Ri.@JX8n� &��f<0A:I'�����4�� h $n$�pe@J���a �OHb�1%�4�R��(. < �[�p�NLB� $�ĢXi��>�$\�Y�i��A����\��pi ���CĀ ���Ȉ#[� =D:F���� S Q0 ļ�@�`�)ЁӑmL�>�Sn�b�����@`BxS�D>h���bD������?>a `O �)@��I`&�)HY���,�Au 1"��Vd�,FSuT��"o �������@�����i�,FSuT�� Y�31`M�P�������BH?� ��A����`\����G�a:z�Z� �?�Ȇ. ��ž�"h#H�`J��� +)\����Ao���8 ��,� �c��"�{(��o�;ƀ@Bq B�0E�����Bo��X��z�� 9 �8ć< L� U�%4sE�A)8�a�9�vZ!h�v:<_1�#����`�I���Wp�C P��� � \���9�!C ���Q<�0)2�tVGރx��� ���s^@�9�`:�~�\Ap��� 2�Ln T�F(�Dp� ���(~���x�@�@��$ZhA-� Ip ]s�U��� � <t���(���<��A֥��t� ��c��BZH FE4��r7� "�4�$�P��e��Ϡ�ā٢�������2��g�P�@CY^��>��$cģIp$ā٢��`A9���+�&J9�%Bl���B�B � D�)6�!���C�� 0@9�� %�L4�Ѡ̄h0&�B� �`&L�}a ���� d�"��` �@ B�w��������Ci@2��B����` tP2����g|�t c����r@K0�ki-H������M&��� �@�($��%�7Y;���o2�l Q;+����>�rZ� � @��11�r���K'��,��M��"�zF��@�"��1�}��pw���;҄,�Ʃ]&�������� c� 1" ��pB�0��� ��̜Zw7`��Y3� 8�1� �����+r�a:�d�7B'd�a` �1Ș���`��S����=ffa� |�$�A�H{pB�+xA:��W�qNhgB� #`�^� \!`��~�hF(:�Z�*Hh9$4�AI���4k<=�����V!H� �����<@�����$���!> \a�ˆ 2‚iͣˆ��<2H�!$�d�DFa0HQ� aQ� xh2�0�F�`�� 7HVE7|.r�� ����/B��~a���T��@��/l����F� ��&���@-n�N�a7!~ď�C D�� �l���Q�LJx"������5�C��'bzDA�(�C�� � �#D�'��t�'�J��sH9�d�7.@��(E�������X�E�fk9 @�d�( ��2D�' ��͔��!� �p � =�/�C@����Zz� *�I I�� ;�� u�N8z �Ѐ ^��i�o����F�HF@�T�H�C �4z��D9���_p��l�5��pG���;�\T��� �3"c�Q�V�|P \@�C�+  5�@�x�a@!������W�I0)����G� \@AnC��Qn��������r��+�����`��� ������3�P�Iz�A����q� ��!������ ��Ub\�1#C@�" ��O� @� �p~� �G�$��sV�x �AdB��.@P�׬�B�~� ��p���V�`���%(B�S�f��6� �@o!�:�X�x0�~�|Y` �81�j��8�3К+H�Ys`� �Q\�(�w>�E@�~��*�>�Ǻ�0�p��� �h�|�.�|�����p��>�T�@P���#~�#.@�@�ޅmY!�"5o>P=o�k^���A~������ ���ǎ�0n�$X�AX8!����.��i�p.`>��߀i��Hq� dA ��������G� \�ph�����Ѐ�B��f��$\@���G���p��� �6+ 0m|�7�4�/o%X��`?�i�$���"��� 0-$ B�`nCD`Cti� 0m|D ������ 辢�m �x$R�|�����!~C�y��0K� Z����b- `6m�i�d`\@�. ��43\�pV�X3bFp�� <B �@+>����@b͈q���92�h� ܆*w\�� �0 �\����U�J��*�� �7d�9`����t�_��f�!~C� � �,��In( t`�.jX�D@� �{u$�E!�@ p6'���� NN`"�A� ��$���`^B�Q�!�' ���lA"�.@X!` �@%�����@!P҆�pģT��R *�Hi%���Y0R\�""�8� ��4$<̼�� d��������۸H>�=3/� �-_C����?&Hoa 6@��� ������!X6�`�(��pf����O""���bL����9%<���xɠ! ��\�|H�0�b?�N$#,/��WP�iHxN>0$�G��-�)��w�&�c ���P�?7��P)1&6�mr=�A���:���������P n�Kqv-�?�566Q.7p=�aL��b�E��9(�� .�#ڃr(�ŞpדCƄ��#ב���C0F��`q�N��.p=� h\�CF!� �`@1�I$�r���C���P�?7��P)q(D�! @�����C�l9D�@��j���P�?7��� ��Ęb�*�̄b� / �!#��AC!^Aq=,t$�w�Nr�Gt�Ct8`q2j�����u*�>�D��2Q�B�]�ኀt6@�T���~�)��!7 � A(� f�S �~��l���sA��G:(�L�_�C��HCa��P�����%���V ��S �B���p`6���#J���b ���$�~��l�0j�hGS��"C3ŀ�2S��(�:�Ӈ� � 0�r� ���(�j�d���{�����`R��l�Z@� (W�s:\gP�:]�P��C}� �,|��~e� %E�T�P>H��`$�8�d(�L�27!���d~�hƄ <�� ��kaBr�L�G2�~� D9T�j�BQ() !�=!?�+�GI�2�D��q#2!  ��� 2aL� � fB4@��- ��"$�`&��L*�O�*@�CixF��� �M� `B�A�� ��샪���b �3 @ �� �Uo��4�F��&A��5M �����t��B����z �:���s��t@ }� a���#�t�NW �� �� � @G(�0�̆� ��`rrC� ���1�E �M+�??������E����� ��2^�092�� ��AJ(�Dk|��� �@>�'ZÛ�j�I�5�.oR�I�Ge��ܣ2�%�INH4e`�`�2�M�(�9��6Pb��D����,J�(�O�@��˷/*�x1 ���Dl]�q#A��ˇ6�!�8|��� 9X���,!H �k!0K��B ���#�+���C��q :�n��h_LV 4�4�9` ��C|J�!�Ӈ($���Bœ 0�64䄋�!��0&���@i@+��E@� Ii�1����s��01�&V����J M� 4���05.��`97��L���zb����紧���nh{�����3�:�#Y:CF�O 27(<� ��n�C��!�N��\ �t 7p�C !�B Cj�l�!7���@|!c \�1.��/�!5d�ݐE��,d!����B@�"<$@��C1n���!$�`0e��2� �L�0e �o��7��8d��Bx�7��p�L�� d0�#������j�A<�(��%��6D�H�P;b@��!���ZS@ �1�x��m��)�"h[)R���;�9��i@r�2�-D��r�H09��r<�@���n$�O� ��+L ��\8�l x�p“x�@.�`6�w:�㢂o�9� ` �t�g���0E��:S?�#0Ex�A�"�j(ґ���Py�?��զH4�Σ��{? Ϡ=~���((>��[p ~0ER�S�eL8q ��;�&4��, BL��"���C� �� ��+v �&��g_@b@D&e �$P��7���n�mա S�) 05�'`;���r��� M�2ř*�@ Q�?�l�/�L��H2r �4p��b �S��"�~�b$1ĈL#bD&�� Ĉ(� b�7���E�B�8^"Y)+�pq�� ��l�M!�@�x 쇷���O!�_�LM��@&0)�@/����4SS��^+ ���@ip��7�@ �%h���:� ��%���ΠGI8���z\� �� ��� @H�d�401\@�.�@P�N� (�� q2�GI�% Ԕ�Q�GI+ %-��Q� CI������Q�rkaȭ���*AP��_��� X�`� � X��"T����M=)$�dW�C��C @B*T�Yq2��C 01Zg� 9��� a3���L�D�r� ��a#q�|@ݝ�&;p�w^ ��_��B}�S�x>q x���� �m(h&,?�P� �路�#E�@'�H���~ r�$�a��0�>� @���?Ad�Ab ���oQ�E/���0 V� q���* ~L@2� ����c��yq`�H.�2��x� gD���y7{G�s J*�|r��ǜ�S�pJ*�|r�x�N � (|� x�N�):���s�)�A���St�{\�����St�sn�$8 �a�� ��(�6��I0� Ϲ �`�sD�(X�����^��AB@���d��5@#��N nA�axq"N��y` �!B'pa �!�/8��& t�e��=�I���!0��#�\�!`7���v�� ~`7@�� �Q:�>��؍ `7dB�p �\�h\�2r��o ���� ���t��A��7A��= ET� N��) '�2JO���4�!Xz�`�� ��(^AU�;��.����&\��b2��p@9D��A�JU1�급@�J0E@��W0��5���ځ�������� �<�� ���z>1A���$?�ځ�������'&H~�8|b��@7�C��A�s�'�� d�2�"=�� �������F� ^@��$'�Np#�jZ:��H!������9$@6x*P�V�T��X��0T�b�+�`�t�A0P��PMm(� �A� �ą+r���RR�X�#E��&` �L���ծȑb �a��� ��b !`�j����o� �`������ H�`E�0R0�� �@&�F��A�/�� d�#� 2�� �#h/�ԉ ���X"T��r����\���C`o������+h9��r� �"�T�`��*&�[�H�8�@2��PUNFU1 ���dQ2.@U�U�&� d�+�JU�*U��`��kL��(� G��@w� 7X���'�i��*�pÁpO�8���0@@� `7���dC �� t�dJ� ��� a4ۄQ�m `���0��eCnC��-rSL�M�6��`l�1� !` #p �v@2~$���p d�5�;��H�p f�}�� Ah 9�����9� ck�7��5rHh 9�����9� ck�7��5��V`y�'0���(� ( ��w�O��'��P�w�%E���QX���,��n�� �+(=dp4�CJ\ ��n���� �@\�ĀjS3���@��_䃣��`~.l ?V �+�6÷:V ��A`��t��� �<0?0 v��EIho� �J����>ہ@�c�j(`?� ��p �E?��bo�~� �@J!J� V �A�=*s��t����X�<`F�[�X48o`�8�N�X@'@�G�!� "f��=*`�A�C,�`; �� ,<0@D �I� �B��C����{��B@5�4r$� �NP:��9$=$� ��R�M��If�y����H2 \������ #"�1�Px��� p FD~��Z�hh��x�r`�"iС"L�S�׈XhX��N�JC�a�5�F& ��n$qhMM�9^�^�}��)_4����M@s��&ا��!��Q�)W ��+�Fh�)Wا�7��}����Z��#�/9I�����k'�F��+�H��#���R��ĞX�pb;#8��'W�,��+ڃr<�� �'�����@%ԇ(�z�J�Q�8�~0d�C����{zk�q Z�P� �@ �@�����\ף�q�Q@�]��.1�*����z���%>C�\��`\?p=����]ף \��;C��a ��9@f�o+3d�H9A&�!*3d�H9A&x� Dc@"9�v�OPC€?��$�� �Oj�?�'��S��O��?�!;i��͸I�v�=n�"�2Cf��/�,�H��x�/�b��29!���!3b���2C�Ἁ!3�_9h$��\nG$HE��� VWv�J"���N �A t��:��ȌިG�9@� �Ax�d8�֠@�y�|�l ��+h;R � p �>�� �Orr���\��ajGx�Ƃb��b“��P���3@p0M$ �:�r��p9��� ��#]�+��O�yzd�/@�� �O�Y��}� (M�t�)d�P<�A�1�I�����=�-@� X��p@�-��>Z�g-��ԶZP���w�� �H �1�b��͖���� 0J�@�y��{� O�ԶZP�R�,:��'I5*��p�\��@��I��`J^��a��>�W�j��)y5�ǔL?�DX�\3�� ��j����k�(ut6'D Ig @�q `p�:{�Rꄡ��`�\�)I���3 �� $��p�3�!� ��LHB *"�$�2a���0�WL��\B���� �N� \a-�C@L��1%��&!� ,�2��� ��x�p�S�j(�)�x��N( d�x�����x ��eȵ�  p?ۡ5l � �hN!`q���a @+0"�c��1@ ��p H�8 �Xt��0}�82@N�v�\�+�v�� ;!'Ȅ�` ?��`q@~������8�~ ��X�+u���V�J5�L!��C@ 20��( Ȣ�tdAƀqpw/��w������X�0���+�2HY�!����@��8d���Ah��A�� ��� ��;��@� dY �� `&p��  ��nC: ţ����Ȁ@V �0wgj�(Xb�2`�uwd���pQ<��(M9A)\� �Ő���T�Q*"L�$�T��D���0���qrjL5$B�H� j�ɩ!�@�:� j�>�hK�P�"��!+ 4��"j%@�`d��,� ��Y�!�;*����{�� �1&J���{cbE$��aȀ�CE��� ,�7��u�"�*,�7���g��4P�2x��@�K� }�,j<� �@�Ł �@|N���2.���+"� �Ȁ�CDNH����Ȁ�!�x`� P�rB6���NP=0���!Ȃ`��Q�rB�sw�Y ��D�E��w#����,`�o�?�Nh� g�"�E�HK#o�J�"VD�� �:dQDK�(5\,1VD�@�[�,�(��9� �:"y �{A L2�z���9a?�L`DWq�YԐO@�X;��2@.A$v�‚�`G��'@��B ,�7�����K�N@ b�A@��8p)�6j�0Y�� `��,N��sw�b4�X�,jC���$�k��<�����cAπ!pwhC� ��:� ?P��`����������$K�� ��7��r@!�gcrB��m�&� �"�$ V�3h���g� �*yD�$�� G��#� |�+(?�� (�,����V�B�+@!��� � �A+H����=" X �*l�pF�����B��8�iY���K���$Ɗ��k ��V@9��r(D��BP�����P�����ލt@�X�@!f�E�B�0Z�P'gM� ��P'�O��'rrN�>@����V��PG2�v��: ��˱�AX�/�H��> H���s.��H:_��p}0�PtBz$ ��k� ��%V@9Ћ�j�u���5��b��)�,V@9���p����!Iv�; ��˱�AX�/��r�:��`����0!���* ^r�P�t��vJZ�Np.V@9HI�BJ�)��D�S�P#@� ��Ԡ�@��TS�ŒAP�$�N@4&������^� \!��`I����r@��L/`�#X!��L�� �00؆1JrȄ8�E Xf0���� �� Е��$��5ԥ���� Ҡ+�FI֎cAW:O �H�6@d��*BJW ����C<"#nć�kӁ �h�7X+P]@f܈H���LP{��r�b�K�'�>�X�!>U�:A �C ��N9�;Ѡ|�h>h�A��%p� !�D��R�c r�1`���0r@9��` r�1��!���#�B6Pmp �1�)�,�T��4 �ps���1 l���� �#�h�p^@0/&���^@89W��c�6���F� c�"�� �;��! r�1IE�!�v�1xI% �c�jB0B_!�NMP ]� �4qt � ��v c�r�10I��B�*0!���` *�N@�@���( 1x�K4����@�<��:�'�l\�� Q0>�j��q5N�6���j\ �QsD����3P2�S��A���(��4LQ0�G#t��3,A­�@ֺ�r�p=M ,���r.h�c$q�z��6�#a�A� ��Pc�>��1~ ���Kc��_��0:F�XKCa��K����w~t�ыr� �35B�ߙ!�}Rb�>�1 ��PC�` ��0��'�����B��ɹ *�6�$:f-���?( ��"�ɉ�G ��C ?� '�* ��D�(?� V�PH��r89#��Z~p��yz'�c��N`z$������ ����@D��Cugj�xR��Pݙ!��y�<}�%EL�ԼYr$\�0���+Z2�^S $D�v���� .�)B��� ����#A'(�|� � �/��N�0�A�P���) ��:�����@ ?PCa䃧�% ���J*�����L���@+�(��S�ZI+�z�0BBh͛ ��)�����B�0��( D��j�l�%M�#`�@Hm�0?� #t B�0��( D��v�a lA \�j,�G� 2�2�*�(�)*JѨ�]r[��W�g���)��!PST ��QS��0� ��p5��#`A��1E�@I 5�K` �� W�l<V�XS@�i��(�)*JѨ�]r[��W�g���ް5�@ � �@aLQ)P�FM��@؂,@���hW������ h��(�)*JѨ�]r[��W�m� <Vp�{8m���1E�@I 5�K` �� ]��=Vp�B.���(�)*JѨ�]r[��W� ����\r-���O$��� �H�=g��>�6�`�6��?`�@ 17pռ� ����Ci�U)��0������A��mpZN�ΪX*�~�@@���j�2�p0�!���K��� O��m��{5z�!\!�����DkJ��s�=_�G�B�������/�T����쬊��� �H)TUq��!�@�|������  3BX"_�B䃒�).�t`���B ��!J,�, ��_�;������(�Ef���M+] �<��0>��o�F��W��!�Ao � ;!�@(�d�1�pY� �,`���H'�@�[[�@.�!o��� >M6�F]^� :�����)}\�� Q����K�L�N��B�źXeޣtW m���C2@w �Q�� ��6զ�T�jSm�Y�)gզ�uahSΪM9�6զ�T�jSm�M9�6嬍@Rv&m�Y��6զ�T�jSm�Mɭ6զ�T�jSm�M��qզ�U�rVm�M��6զ�T�jSm�M��6զڔ�jSΪM9�6�FA�jSm�M��6զ�U�rVm�Y�)g��ڔ�m�M��6զ��wiSΪM9+�զ�T�jSm�M�)gզ�U�rVm�Y�6զ�T�jSm�M9k�i�M4�dm�Y3O�Ѧ�5�4�&�y2�6嬙'�hSΚy�h��<�G�r�̓y�)g��__a!� ��[#�8ob��\�&��3�D3��� �,�K��A�'C.A���4��f� �k�*�\��� ��F ���5(nOL�kP�B�� ���!���4�e�,\�2 �0 נ ���No�:i��l�M� 6�&��`l�M,e���.d��a,%6�&��.`l�M� 6�&��ȥ�Q�� ��`l�M� 6�&$E.e��c��4('�� ��ʀ��[���@�J����`l�M��]�*r髤Jk �(�Wqv���2p2�Ap{�X�2��ɐK�R� �Uz��I ؤ ��P�C#� r Xʓ�M� 6�&����N� r ؅��M� 6�� ��2p2��� �R����M��Y�e�ȥ��MzK6I }A;���`��7�K�bk��1 ��֐K�`\]a��7�K@���J�� ,A�mT�� �@D@,�FB��x����P��+�&� �4�BA�� �@:@��LA�h!\��2�)�:\����Ս�� Xݴ��A� ���Y��!p��A���"�)nt �- �W �0ha@��J#�rZH  UA�鐪�B(�8:4�TB�� E:��TU2@хl#@�TUTB(�|&UA�. t�8С�t�+�CZ:T��rEZ�:�*�a�C��`_��!��ɰF�d �1!~І�%�΁a lA��䇐�0�#0�����"���30�%�΁a lA��䇐!��#0�����"�r��l9m� V�6І�E͈�g0?3�e9��O�Rf � *��&�#Ƅ(p)3eLLDR���4���Q�^���� ��,��~��?lJ�2S2@ ��2�N�)s@P��8� �R�ĵ�6��(lJ���C�*A���e�p7e�{'���1qf�K�6��/���+�JP�6AeY,�M���L�����W�\]��)'t��+.�r� #\�t1�Eܢ6aD`��# ����av�M��K �R��`!\J �)cb@��p 8e��A�S����� �@�� �R@(X��`S��T�C��AE�eqw7e�{gSvJ� .�L�>��̂��)�O� *� �,���)3��3e��Pi���C/x��Pt� �� f���H@��i��1��N��$ [B�2��f<%QD�(��cz�J��%��@p�P�I�'�$O��Q�I8��2W��)q�P�8��K�)9Q �!S�!7�E9-�Q�p*+��XZ��|����e�h�܎Q�0F�L��ҁ[H�ĕ�_ �r�d�[�@^��2С˓������ $�͑���&�Q����҉0r�d�6�-6��#���=���d �`��(dð�<�������v�� W�]�0 "��p�]ԋv�G��yF����Ï�_'�6�EqN�I?'� �T8�E}�@��x �RX�!�!G��Ѐ� ��z�UX!�2Qf?ԧܳ ���A E` N��$ [B�2�-�Eq��$ �'yJO�)Q ����ޣ��|` ,�(�� �Q��'1ת��~N�2A�2�K��K �'����\t�[���f�?�?bK����� ���ԗ�P�v<�FWԗ�A ��g҈ �Cg���l�!�E"H\pd@47E` N��$ [B�2ד���I[�:��f�Ė �� 0�$��+��S���<�����S�@A�1�G%pQ��XQ 8�� T�+Nb�U'���)Ė�I�!� �%�B%��n+�!y�D�d�r��Ȣ��;d1����#M�"o�dQC��?���ͳ���F�pw�#}x ��+sO� npaR���€���;'���Is���0 ��t�x0'^�;� )`NP�����UP2BEp�!c$�G x�3'�Ĝ�s" T�9�����(E��d�@uh�1VԀW�fЂ B2��Xݕa��� B&H� c"�O�S�`e����H�� T�TR��.Lp�i;�V�l�{����� @�M {O���cԪ�L8��'� M�*̦���j@�M {O��gȽ�X�H @��0*� ��o$W�F��@~<=h��L40,a$� 0e@ ?&��A�F�H�#a��|0�'�1 �*�^� \!�/i� ����X�  `$�B� �� ���� ���,��� 0f�#`���]P0 ^�%8F܊<�):A$�#a�� � |�+ �%��7+x#a��|@~�0#�<V�r!��@�b�X���`�B� �� ����Y@��P�2��`���e�+� �@kċ<�):  l�@�C �����F� �@&�� �=�cB�����\F!�#����\�'��HPm���`�s���&����d�)��(�YPR@/���0 V�A%hQn��>V0 2�,(� L�� ʁ,��@L�b3hhҀ%��D�0-P ��u΂r�*�{8`�|�r��N9�;� ��`�^�+P�a7�QV�8C��� Ka�"?6���� �B� S�R5��@`6��ٰ�����?��� f�^�� 00��P�`�`6�򍒙R�1P���(��������y8&����k�p���@F˨�y# 2�0@:p�� d��J�0_"����0�8�4��@ (��- ��W�H��Hŀ��a�,�MX")o�)��0�Fx�M �7��.I�8X�.Z���MP�������%.0�P*�����(�N�`�Lʙ29� �0�@���&0���+?��F80�h�F��@�J}@F�! #���0�H=��2��C��eķ�2��C�C��!����z�{�B�8��Qk{�  �\��C��H=�=Ѓ+�Cz�` ���� �4���`X��a�B�FQ���(�%��C�P/�����6\���'m��2�p` ����C҆��a$�a�\ϰ��B�� �6\O��\�R�F�!M�0�PlA�8� ,������CV A� ����U6g1�h������{4���� t�� \�t h;(��̨L�G2A:�E� JC�D0^A^�fT&�Q�p�C �Ja(H���̨L� 2!)���@��+�$/A� C� ��N2���b�r:\��2�n��((*��u%�A7QW���u%ۡ� ��-�D�������@+I�>�����r.��� !�d?�rXN��*��������A:*)�Vԗ'�J��-��O(*?a����"���'�� ���7��"�'P+��?n�dF7�J}pZ���#�@�� pe2�hv�� ppS��-�⠛��ɕ�@�+<�+��Ф�3ZiR�P:6�� }Gĕiv�!8�J+p`B�hv�a�^�f�:���G��O�&r�BD����̸�_:��,� �RE� ������քA��;�5�J}h����W �Q���Ckx(gD��@�>�T@D���(��C�W�]ytS� \�9��(� �䐀�3�B=Hsb@0-QP ����7�p*�J��NC� 7�L�jS3�L� �g��`jN�1��B��W@[���q@�t�Z@�~2�g5v���;�9@h� 6�`p� �6� �*8�ӰzCo� @&lW� �A=P&��-d��� ���iPԇ ��dQ �����7Ā���&���� ���Xo� yE��pT2G( @�7PzC� 3 �&Da;3D@`F�8q@&�D|EB2.�� � .Fh%�D�� S̉@2q�l�w�F��@a�'� �6s7D"h� T ��0p���"�{� $��� �#�& 6���a��c%�D7ؕ݀W����hO[� �� 1� ��$ ��104��0'�#\ �\�9�"0ɜ`sp�ˮ�uX$8�G��F0'h��� B�6��%m�)�6��#�"0���,B��u��$������ ��$�C�� >���]�E��x��nd��B0'� �$�\�9A�N��1e,A��h�L��al� �@���9`NLA0H��–�#p�g�sB؀O}蕄�{\ ��d¤��u�}�;�{1��p6j<�#:�+26M��2:pXᬒ� ���p�tu�@p����3�e����(�W>��!,�%.@T�5j��zP"�|K p�~�t�D2:A ��q�W.�Gpޜ8�2A�]�Kpޜ2X"���9q"Dݯ|��� �k�(X�#����>t5�1�x�$~�(�&f�|�l ��m( �@aՎ"m�!�4�@4B`f�!!� ��hp6��(&P�����A4�hT@6d`�̌�`R���BA# �Jt}0Co�� XK��DF��u �(�`� \.h��W�6��N � �Y���RЂ�I�MЁ�6�mF�hAՈ�S�.$�9-������02�m��,T����������hV�d�+,yC��`X~��^�����@����Ђ���H׼�� �-<���I� &C<�! B|�!o�� �.�m���b9 jI�$ ���@�O��6�}P]�� =$$܄!T]�A ��&d��A-��ـ'�c� ��`�v60H;� ����� o䄌�1zH��k�x�����Z0t��R��JI) �L�B��Ji)�4�_�%n.H � 1�_� �`/�Q�~P'��� ��| Q�dvB/���0 V�@ j ���"@ �=��5|z`�=2�54��:ñ\��b����\�bQ,�E�(Ţ� �'BD�!d���"BD��+"D��B&��!"D�H�'BD�� x"D�� �"BD�+"D�0( �,�س(bϢ�=�"���!"DN<"B�_!"��"B`j�C <"B��!"DN�"B�_!"DN��3, ��+?��b��� "��$`� H܇�p,Ţ� �RQ, +�,�?� @��c�(PC��� V~0e���X�!Y�J+?�2ʀs�EQ1L�vX2!BD���dB��9��E�(�L����!"DN��bQ,��#"D�0�@&D�a�8��TPaN"��� �pB�f�lP<�c����30�@PaN@�a���F �K`L��1+8��T�sp�iG�$$!�0�'t�N�$���jЀF�ځ;xs�vd���p�~`.�c@�E� Ng��@���Y�����t�t�6 G� �s��C�R� �%n��z�b;��[A�nŭ� �ɤE�I��N?a�8�@��C�����.Ap�e;��[�ʃT���V��Tt+��v�� G#,�F>� P�|�]����NGD8�|�T��@��<|�|�(���a�V��/�4� ` �!8B0�h�U� ��@�(�m�C����<)'E>�a�VH�T�o��H����+0+�%�������A5&+�@.! B� ɲ�-A�� @ ! �%�|@XBK�o�`k�������l�$�0K @k$�|�A���䃭�X!��`k�oq��*p=bX(�U`fZ��13� BDf�� 33SB%1˭�d�̔��Rk$3C5TB�I�Yn�$�,� ��Ifk0�|�5���[`����� ������!` -��g�Ts�@ �e!Z�o-�� BY�eKPA���\�@!�[ck���nM� %�h�5���p��%���A�P ��� �+R}�7!�BK�-[n����$U��R�r��@Zj���5.�RUA�h�W�E���SI*h>d�T�Z�m���n =�/X�I�Cl o�]�과 IZ*�h�rK�7I�3�v�����@��������z �j���›$Uor �+R}�7Z&U�-[n�k���P�~���79��&\���]�과 �R�F˖[�Zn��'pgZ� �+`@zx/ �� � 2��A[� b�L`� �� �2�L`��7�\� �O�y2��>Sf�O�y{��A�� �B ��`N@��� 3��P(�� � 2o��=(Xx�#��@$) g`dqB�C�����Ca@�A0�A'����k� ���$�!O�U�G��oi4��|L8�d�p�T���c��Hp�7�\B������ QG�Ds(�7��~!U{+��[V�0J�+��9T�ހx��+���,B0�@��3����XB'�P(���GK{�m񺺂?C�z!P���%Pb� �z���* ��j��x�8���%v!���N@��� �`���Y�܃M��A�pZ�'`���0�Np ��`��7#5z�X�b� 5B;A3r@�� $mPz�����ѪHB68��m�*P�A" .G(��D ���5�!U/;,|��� QdSl��6��)�+��6ZU�m�[���08mcl�0�֐ ��c\�0a���{ pD� �;l�0� | �y�$�<4p��-� A!(cƁ� G���#vK~B$�M�4���̆^�3X #H�1�"cO�0��˜y��* �gU��<*�#@ ?���!����ܵ�W@+x�I����!�z��a`����@&�!� ��0� ��G�~0`�`0 �/�@4G� ��0��9�`0 �0��� `G0� ` ������ ^�A$HFT��d�$�HF��_ ��A�� �I0 @"�ԧ_ K�d*v� o �l�dJ��$j�~��+��a�Dm9 ��0�4��D$#_ ���m�y%�$��B`���I�-1�� �7 ��d�@�_���$��d��/À$�D$#~0 ��@iZ�A�A%$k@���xh'��n)~@�?��@���(�>��@84����?���)T����!��N��sc���xp�j���P��?"���(B�%��yu�4�����# W��� q& ��o�W\�G@B�D�j�(���߹Q���$3!��C�I��D�Q6!�@0�RBx˪!��%�� ����q���?q�v8� b �1x��j��G@ ���~�!؂���N��� p�N`�`�C�j��2X�� Q�j[p5�N ���\ ��w���42`!*Bp�#�� }�w����'�[p ��i���@JPƠ@&P�1�hN� �b��� @ T�T�r�02����r �J\�(A��? ��D��rp`WV���*��aJp�0%�ȘS��J���pSbJȄ)1%�Þ���� ��. .*���� ��-�%�VF���b�Cf��A��<����<�:�H,��LB�RVJi����p ��� $K�V���Q���B(��S��� �j�d�L��2U��T�������C!NL��0L� C�TM����a� ,� ~V�r��������� #ɡ!TBk���J�a`�qUq�i�أ �1d�J�d�p�������Y)+��@UE����`\�+0d��t��� �X�3�*P��8�wN��("@xW�T�PeT��` ���a��2;��*h� )Wx�]A"���XB�RV���@��'P.=�"���>ƒ���q�]�t�K�����PE��:�3�""��\CTy��0�g@!�>�PeH/r2��ɲP�TS�P���˃�T3Ta��r@@�� �깄*LM]���)0Ŗ����p.�w�u�b�=�����q�P�:�b(􊡘u nd�`(f�v}Z�f�˽�.�e P��� 7:'h P��v�4<32P�6P�r^T��@C!h*�8�� X�@!�>`�wT�`'#� ��>�P�0ޝ���JH>�j8�� #C�*�@�W�$@� ��0�۰��^�*W`>샟�4J��*e��\�"���)� Q��0\:�|�����N �@���� ��C�@(+������A� ���T��Q��XB'TqW� 0LpFh& )W��0��E"tG���%T����� �]���t�"�l���ġ�4�+PDA 4W��0�+ h4��A"WЄ+���S=�x�4\��7h��\�p� p�p�W8p��u�����4čK72���4\�+N��)��4�� ���Hv0~�ƚ���W�uLU���;��i�ZW8l/?j��0 ��4��+.A`�����p �e�Z��[p��+` �Fj�.��5(��A�� � �0xd$����`JȄ)1%��(+��h��4�p�SbJȄ)1%4�p�)�A�� G���!@���6�L�pdJ��W`>��#Sbp�ob*��#@ ��8@0&�A9H��0N��# ��� h��`;4��p#�+8�R����z�/p��]>V�. ��|��]ʄ)�.��� ��!�����H��9� ��+UnCI�� ��E���p]$U��k�Tq��L�W�ERr8W .��w0 Z0@m� \[D��+��t��P�� �k�SBD+@�+�6����K`dZ���T/����@\�32Ā� �TBp�e����GcB�� �S��K�B���k����\����8*�@���Az�;�#W �%�$�����^v F���� P=�H��x'�3���i~�n��+�~�5^ϫ2�Y�� ��{��L�SCރ Ȯ��= ���8�x�F��$�@U-��^ �(����ЍtpT������=�������8V5_ʄ �dB#��2A&�|I7���4�������1&��>��yL�wp��x���|�\0�`����{� ���H�H sp/��� @�|@��ȵ��F� j��}H6��a�"�̀@�� �L�/C��)`�( �GP��B^��� T%i �0 ���d�]����ƍH�5�~�2:�Y�HP���H~�7|�!������)(�.� �Jf@���CU�IR:��(�d>�p `u��M�C#P2QF=�7@i>t^� $�(s� th'�+܆m���2CA�l�phB��� � %� nL�X�N����0�r�SP2�wBޫ1����U�2�j̾� ���`>��#ʼ� y��l�E�7�!�a6�v��J���PHe�$�ա�~P �>| nw#r��$��d>�G� !!d9>�#��>�����R��q���|�Xr����0v�nVČ��()D����¾�gc僎�!��d`����̠Q�r�2�A��% � �@� H9) ��W�cAI�(����XJ�cG� �=�#�J��d��=Y|��"����޳&��P�wݠ���0샃�"C��� ^��� ���p�n�/��#������S��(� A��{6�B ��(�[�b��,>Ga?Ț@��+��2�K�?�� l� ��<��|�V ��pKa��D�0D���� ������mAWn�X�P�Y�(����B ��p+�tu��#�A�A� т�Օ-h��Aڂ���|S��m0e��sqM*ٛ�Ds�[Y����FJ0/������^�[ff��[3� L��M�H�>�/�GZj&@o� pk`:��$�����ʧ]]��U=��%�� �R�KHe/0O�̄;�����i3�L��n�>��4-<ҁ90�� �sQ�46b0&i���90���`#����0�#����� L6�H���=�i�/���[ �o��&S��ށ h�XȪnL@�0� *32`*̬:0�#E� �&��K�k�4��@ �@kH1��4�b������_�H�i��2��EZՀ��-@�xOZ@A�G&L��=�M� ��uO�E��HKg"- L@ �.��u�*D L8�+�_�?�7�y������Wԟ�0Eq���s��t6z�*Mp�a`jU��0��S�d��0U���D�L�0e�6��uk��M� � 3L�( a#i�d4L�0˫ ' ����B�� �嵼�� p��_�?[c�L���φa#4!8� pH�쥾Yu`�^��0i�U=�_��́){e���S,\�+{�K�H -����+����s`F�� 0��bL� �zC$��Xw`F�2�.1��W� ́Y0�֍u��W� ̂ ���T!�7�j�&�1�ӐN��r�99�4�1�����S��ޣ�U=��պ *'s��#H C�q����rBZ� jA����d�H3�S��4�1eoZ� &W�4�ece��s`Z�scͫ󍘎Tb~_I*{eo���ZռL@�{&Vu���JR�+{ˌL��@���i �#����X/�U1�A}±�n�9P�`C��Oq�d(�8�M���A�X`�T�}�B�~�N�Z�6I#����/ad4���oX�����X��6��p5��ՠK���I��ո��6Ȅ�!׺�T�Q@���p ՠ �ȵ 1e�A��MK%��p6n?Ä܆�[1[�0)��jh X������6�˨q5�ƫC�!Wp`O�|U��y�����ƫ@DA�DdB4@�@�`0�) ����B(�& <��@&�0 �5���T6`̚�G��l�!c�+�sL+���&�<1��}xx�"h ���89oQ4�N������@�`���1�BP`�P���`2���� ���p�@&��r�����@�`���1�BP`�P���`2���� ���p�@&��q���;(؉%c �!��F<K�� ( �@�<�N���L0�I&!���L0B� �` ��]# ,��G�V�12) : ��f ��2B�!���k� P` ��2B�!��܄1w�'!��~�O�k.�v���a�ÿy"���X�q״�0B�!����6�bNt�9a)��c�̉��� �����1/��L3���1�Ɣr�P���1 �Q��il�IJ�4�(�9��hL��1`�@����, �fT���06���l���1�9�t�c���H7F�H'#�hLW�1���И�œ��1�0'�ͨT�:� a3*9�s��Q!lF%��fT�ڰ�ǜ‡tB،�0*��3��N�Q�@c po:!lFE��fTr�_�=l�r���o�_V`�B�pR�{ ��� �@z����0Q�c !� �{����q���=V@ ^"� �{����q��ol�G� �A��8%��_ ���=Y`~ո���#`g�x�MA~0��d��U���l��x�MA��H!)$a�!0�x�{�_ ������j�#��%@�x ����k�� H�6�\��BgV� ��'~C�_�l P(:���q~c�G�3���m� �4���ے�*P<~��p�N�i旷�=�a��ޔi���_st�BCp ��hȌ�0&y��G�?��t7&;A"� ݝ�1� @H�s�����z���%o tX����@�;zbV�)$Q����@Ū��ɣ�ƈ��LBf4�1jɌn ��:��� 3*^��`��@KG8���32�鉾�W@!� �Ф�l ��B�Iㅼ��tr�]:��R�e�u:�2P2U��p��pAx��l �� �A �gp���JH����d��YRԇpj�� P���*�G쇁��+� J����~>�0Nc��z�Q� +�7�ԕZz���Q�#�@5� %���(�+H��2�� L�A8 2�&4�s��ip�A �����A� ��7�#��&��B&�����L2!#$�#zCoH��<,Sv�02��T� ��;�K2! �a�zC�2A&� � d�L� N�� ������4�E�B>�')A�{�+ZB6�4�Z��E�L��P��:�p�-x�|�@�ݦp�,<�!�� \( Ll8"��z�DF,ą�@5>\��]�"��+�bA: �70�n�XXY��0���>��B4U����!�(� h!����[�~�/�*����Aʪ�j4�m��[�k��h/DS��� �@�W�(��[�`QX�w�@˔y��@�EA,A�X���8���G��`�8�7 "��rY��P���.��@�]��@��[9@�� �^�Tx�i��Acۗ@_�`0e*�E�|� ,!� � B��( � �(��d�9���H @� A �� �r� 2A&�� �@0@�� \A(��3��P`"@>�@%���wR@�9��+���:�� �(����A#���&��"�7�@9����?  ����&A(�@ �[W��-(yG9��A>h4� �P ��@� � � 2���X�t�_�A>� �(����A#��`& (���́9�� @��| �r�;�!4�|�f�� T@�� �A#π&�� �r� � �(�&���3׀&��|@BA�QyG9�|@BA�QyG9��|�hB(�;�!�(�|�#��5Py���g�w�A P�'ЄP�w�C�Q���B X� (?΅�фk�n�� � ��&A,� �C#s XP {C,h��T�rP qa��Q=�B>�c�S,�-�%Ă<�2bA,�y�e��yAG>�섲�d���0�@,p�j�(�&@�LD�Q�{]���L<�2��&� ,sh���Ć�*,�e�M�Z�p�e� �U*Z��@�(~�}-�*Q%��V���P Z�nRP��X%�T�xT4�_5N��G\��.�;L�NT�'�"��kNM�Ei����v3xk����R�uD7���|@o@7�h`7�R �Ft�� �A7��8�h�|�9����x�u��'��:�n�Co<���ȯ�"H�2E6�+ ���q@B� �x��)5�\GhN�#�e �!��ĕ�d�8F��IC@ P�!0tB����a F��y�`�P];qs!��@����X�������a F��y� P�0�F��<C`$����7F'��#D��� ��mP2C� ��(��N� ̇�� �c��� L 0lO���@6�[�ceC`g��o��D�g&��|yJ# {� 4��1�OY�#B|���Z ��+��L�p=��(��O� N��A�5?���2@:�N0~��!>��&*P��AP{�4�k�����(7&�Hx��^��$��*��(�g0��)��-4�g0� L�MN��W%3/�D`� �����:�U JN4�!����#!� �I�W�"� fr� �H`p &̄h@Lh����?�":��]����B.L� 0���@�՟("�C� C  �ҋtE�y� ����� �.��C��"]Q`^Z�t�"f�ƐaI�y�9T��np�aL���p�C��l� ��Ap �`�� #dBC(�ᝰ'� 3�C� b�4�`60� ���V;�oM ��p]x P��I7B<���p�tx��%x��$��A&��� D�  � �l�G 7�V8�vK�����N�0���' �0O��� ���<����h)�M4�0 ��tx�Q��P}n8���n�\� ¥��#x&�0_`n��� P��t~VE:���2�nh�a���]i��P�tw�� 4�@�A�4�Z��e\�ʠ�=G����M h� 1��C �82C����@�Hw�t��G~@�Bt���Bv�͉q] ���_�z�!�f��j�e��5�I��'jf�s3�Cf �!~���A�B@�!���,p�!0+��A<B2�# �L��b��xb5?�B���D2%���B:L4 ���J~���ݒU1p�#-g?�d����  ?�!���ɔX���A~�@�r<B�b�)!p3sD P�G�|�(]��8@� �Dy4����P���� �p|� �4�g��@T�M�>C�d�A.@S|�!4�W��+��A���� ^� �>C�|�r|M�>C�� ��3TL� *�&d��B�D��>�&\��� �C�?8��� ^AS|/`b4�W�3THux�����w�3TH�+ HN�� gC���h���)������!p��Ϩ����ox=�F���v�D��s���}�_�_4���A�.@S|��d�@hB����!� ���}�a���'�tPT �W@�n�C4��w�BTj4����h^ANz���\�! �gЄh ��>�&� �3h��P!0�&����|� �4�4�WP2�Lh���)��W�_� �M�TpB��˥*N�r|M�'D8`� �|� �4�g��@T�M��g�� �|M�M�T� ��+h���4�W�&FS|��@U\S|��)��01��+�*�:���B��p�7��"v��Df800j@Cx�A# &���-5�!8��H���f�!�����ox�@f�Bv�͉q�@fD;�����ɓ�L�� >�-�o(&� ��i�"1&*�>| ����n��gB ��p&���P��A�|�q�P�z�:�5�@�* փfa�����H4�.g�q $ĖHw=NL�I�m���v�x�EC�#���OQ �A� �p����K^n^s��j4w�n��`섑�0��������9��b+\��)��VF&�{� ^A�@�B&؃F�Bk�@&��i� KP�������J2σ @�Ђ���J2σ @Vm�� ����W�B��:Q@D����L=�9-����G�I �#$�� ��|I拐��xfZ� ~�dȑ�d����I&'��p�H rA<�48��\� �� 3�7�X��bÌ@����@��D@>� ���o��\�r��$ޅExW��/�n�a�D� ��/C�����:�r� ?܍,��&� @D#�t�aF��?@l��qA�䇻���ݸ i ?� ޕ�CH��n��p7*��pK̃4����w�` ���"I��n��p7�"�y!��4����w �<�}&v Sf�TA4�O f�o���Ć!�!���݀=��!K�R���w]���,T�~�i  ��}7�� N��n� � ����� l�Ȝ�s�)�L� l��[�̓j@i06���"M��@� �@����S4�9�9 �d���N��H'��'P4/0�� h^�34A��b�Q�$�$��`S+�Q���W�X��"m��� @E 9@�&���� tiS�7PX��r�@G�`��D ��Q"X�(�"R�ՎR+"X�(��v�HV;J��%R�Վ)�jG�`�Ai���`d�9� '�f��L�'4�G`&|�5�@ 0R���h&�@���� x�� ���A;AEP�!�Fh>�G � 8;�o�F A�CS@*A%)P�4�G�qN���!4��*A%)��x�F���� � p�F�L�Ǚq�Z�mp$�@���, %b NA#� T����"p �lxD�Bh�n�lށѱ(� �6`E��(C�h�d�n+�H�e�튂JP F����fM}� � !�e��r��IJk��@AJ���h����F��m�h�Y\����l���hn��BA�A���W`q��l���h� �{@��h�e�ސ}��=���' �ŵ�m���/&�v�3 �4{�4�jH��7��!8No� �������l� \DR��>�H�E�CL"�W�Q��O�C�' Q� �7(<9��n�$-">9$i�RD�'œL@$an����Z�y�o��I(�1|�����@��9���Q�4�22� ��� "�;2���C���C�E�p5Y���� j���d� ���<D:@5��w�� ��(�d1VG !@� ��G����C�)�w�7���gb<�+rwʆ� �,: �@�Y�2�z�E��Ȃ �dQ��� ���!�NS�X��CV �0w�@v��L��D��Ȣ�����,-��sI��� ��zj���Y�x��p=Ȃ�%�*����! �K�ҔȀ�!���`��Q� �@@�6�p� !\�X*�Oa,Mm��!p=�4�<�w����`�A m@ O��'�: W� :!��@�r�o��*��p��%���p$���4���-PSj:MM@a�&�z2�n����A���m>d`��@N%�28B胉�"�ո�`��)#��>0��@0��bV��NT`'L}@��>x h y���Av} ��j ��֬@�h3d H\�����Ad H\���N���E� '�J @�@�(��8qiЕrZAN8t��L �r,Ҩ Li���h�q�i��4�� p���(O�4���`$�!�"pH#�V`n�F �#�!���� ���SF�Rnd������80XAoXf��+�� ^��t���MPn�J��ǂ�t%PHr±`��� [s,X��`��X��rs,8A���d�N@�����`�Pd��@�!���BB�!&QN��FL�b��@24!5�����D&!5��@�`qX�_�8d�1P'����� 2� �����"�o(fB�7�c �f�!��Pj�@��@DM!���ADS d�(�b��K J�yp�/d ���;��֔DQ��1Bj���� ����,ސ_�����@�¡"�����5�d��1��Ԥt m c �桍Aϔ��+|�$�k�!� !��h��D:�h2��>� �E�=h�d�0B�f�\"@4I���\P ��#�@c �!0B���\P �D4I�>��� ���h;��H DK0~�]3B� c ��]�k���c�vrA1�B�/d ��10B�P*1����5B� ��0B� ݵ�� $���@T�>��*A%p;��<<��*ay�_�pJ]A��'G%��d�> DL�@7>%H��D` dC�+*!!$2`�[�� 7�|��B�� !̃����� �p `��@�n%�2���}`5�� >#� !�C |FnK�v) ��h�n~] #@0��k܁>�8W#��D�qLA�1q�L>�` �I�����`i�1�A�7` ��|9kꃬ K/�֤�Xsk^�JE��^�!fb8S� � C��X�{;�C�1y�60�Q0��������D@_wCڙB4��S�p]@����&}C N��l�nCJ�&�$����M� 6�&����8�5��02)�`l�M�I'�& x�r#�I6� ��o2* �]md$�2���"H��3�ʀ7i���4�t��ɢ�ޤ�l�M2���&�ě o�J�I\`�xo2���&C�4�9�MN�i�#�D.��� G�I\�4� &� �-rM�j�� ��H`\~p��|���ҳzV/��|]�k���q�8��@& ���q�|����W����uu2�k"��:�&:��` ��:x �K7 �0@^�+ �L�D���(F �W0 � r8���+@ &qx������^A'("N��W@ &�U6�!N���P��$�����W00��E@�����+x�T��q��$('��tM�9�%xw���^�8� � �Y� n�+@�o��z�#f�+8!���Yt��+��2 �U� ����E�t��W�q1�m@9`\�{��+� H�b\����+�?�o�R�q1n���� pV_�Ÿ2 �U� ����E�����pV_r����4\� 2z�i��4�1'�MCsB� �5a?ȸ�J�̉ p2�?ȸ� d���u= o��g�6��A��8OAx���M0�g3 �(�?���91 �(�tB�� 2���{�\� D��`N��0'�UD(� �:�PuF�Y�@l@�9���&ԉ:Q�M� un pA4P'��N�`�R7K�l�����T:5^��ITc� ��K�����ҩ1&��lf��%�)1 � �`i���m� �Cf|�'�#_)���D�&��:7P�l�,� �Dؔ�\l>@�1 F)"Ku f ����w�D �� �A0�u�AC;��Ӫ�u�. ��14Kk��` h���y �@l2)񆠁�d��� n'r�9�� ���:� �$4u�܍!T@l@��u�܍�R���X�9`�. h r���Kk@�I����K�u U�uQ�*��C 4���0:F����l��W����ו�/�O.`�L�K|`� +X�G� �9�w�Q6��!�)۸+��xg-�h��%�UˇE�e@�0�`�|��,��:��0�!�!�@��CX��:�j���"��o�x����/@VҰxW-dD�02��숛� @ �7'=\���<���Af��7P��^>P 7K�^ aoN�P 7��J؛ssjP�{{E aosHw2����~�@3�I։tp�4n����O��ʌD���H�flf���qd�QHwl���8�e�ǑPc:���k !�������p�J$� �� Ր�ƀ�'G �W�d�0W�2�=�a8�C�&1���]) �@|����X:Kg��R�� 0 Be��n�0ĆG�;a�zn�J��� 6H@P��8K�C�@$��}$ ��]=��[ �p�j\a!��զ3����7��G�/�h��t����`a�!n� �N��Kg�pW��.�p���5�@��e���M�w��L_A��7�UZ�>������$�)E0����9�3OB�0|� ������Wm��[x�Ǿ^GU�vp�0��G%�74�I�������(�JH C5�Ґ6y�W����̣����"i�$\����W[p�Ƃ4����h� � ֳ$N��C>(����w�[JB1�*a�`@!�A�� �d�J#�0AhIwX$d&D` �J)$ �`~�Uޠ6 � K��X'��'qR�I$CKbn�C��l�s��$ш�q�h,�6a��5�k���א��$r��+�m*���'�f��>Dc�Z�Pjߢm� ��'��H{Ba��=! ��(p�nsO�M��6́�Hosm����1&�s�� ��� {�D�t.�n��Λ(����Tw9� '���p��&����C�}w`S�^��������L�"+�Fh Nޕ�K �q=I��z�xi@L��C����"Y��� �\@Oj!h ��!�3�@�C,��0X OO���5�$`Vz ���dk�4�H]@n��`t��d�������f���G�柺�li�����9��m�.�n����k�Q���n�[��f�y��G<�"[d[���?r��V���'���$�~�)�I��'����n~���I`�1p_0���6�\���Z�����H���`�0o&��P"��p_��l?�_'p_���M$S8ހ�қp`o�P1���t_z�}�����+O�ID���D�Ke� H.�'9�"�L{��@��"p�L%E��(��� 2@���PnB� E�)܄�P��$12`)[%�"^0f&��"@� ��� �x@�����A�!����@N@h� ����ih}S}��>NNP@��6Ц� ����A@X@!��A�o�D��r��W���M����������o�W�ƀ ��=�E��x.@��,��pi�@��xg+ �� �Rn���r�F�%�����K*A�)�V���!� i��V!�!�H.@�9�H �@%p��A^?P B!mx��V�0)#x���+0 ���>aR�F��8�\ ��B2���>C�\�ޛ\���8&�O�c0���� acPu,�%H��TK� ,A� Ơ�XcPu,�إ �L��@��t@�6`�+�@�:0D`�`�%���X�L�P��9��s�TD"� ��`��#��LPm&A� B)x^A�x%BD~p22����y���l? &b:L�y���>�D���h�8\�(�\AhQ�8D� |��>#�|��?�d� �#^A�r��JS�(�M���R�ry�FQZ��W �S� ��� �S��A}� �.��q�byP�>է����x ��F�)^����+n �W�\�+�@�^�`kܺr��U� \��y'��U� �i��<��L� ��31���p�0)x�<�f� 7� >��g�&x�`2�q�����A��;�t.Di�wR��?@&�iwd�@�vygQT��� t���;���Jt��,�U�p��U�D������\�w�H Dkd�k�5�����b:|��5Rޤ&���3�d���1@ڸ a1�(B�� �����J2HH� 0�c �@�聤t��ri0 @f��B��@$�ՠ1i�@���d���D{l`L��j��/2c'�����k����V�(7�IPU�A�*~?T�W@:�r�ƼT���.��(T��r�-�4�2�A A��4�h��^q� �{�Ї�B��J����D�� � l��A� � ��@=�!�NPgsO'�$����H ��"�!8���d�� J�����bBL� 7!��@dn�P2D�&(�� �Gix��&���pn��0A�U �MP2��շ�VM�[5o��}�� �-@��x(M5�g8�X~Z0�\�p"δ@i��ԙDG�ȑ�@i��i8 r$-P��p�HZ8 �A���AqN�I p�4� :�}�C@9T�7@R&A02��dt ��LF$0#��� `2�H� _BȆ�F��M9(z ��с���(�a� �AVr@��C� `2�J�@;�P�8A N�� 2�J�o� 8� R�"@�q":��'.P)��0 D�A�@'.�@�$�pdxp?<� (]�@�Q@�} <��8 ����dx�/M2��7�DA��L��B��PKjJ�@6�U �L�0!4Q��џ��&�ƃ�`<@�O"� ��:�� ��ZϡW��#x���8<�\��@0B�B49OQP��N4�W���JF�#`;����#K�Q~C���7(Q�>�*C�7��E�d>�m��(�E{T���`�@p_�"y�`4z�A����@S��jN�`( yP0Š@l�W�\��ǁ��l��>N hg�w 6Pˆ�#lPH 7B8�30h���B>P2� P�"�N��J�(�D� � ?@�lM�d��GP2J(�$0fB�u0a&����L� 0&@��o����X`���@=�3 .���I!)� ��0 T����H� R�I�Ҁ hA.kRH 28Z�˚�� �A�� �.�K���~���d8�D� �thM�6(� @ ���~���Dq(�mP� Q��3E�P9� �`�X�P9 �㨜@4�;�%Po���"�@&L�X ����Ԡ����&��ho��0b����aLE �Ko�B�\��jN4�{' �X�t�N,���B�8!��]0HvŹ`�މ���B�(X��`�x�i@ ��މ�b��X��މj���� ����@JL��CX&�#�A����ű������+�� � �!�%�+|�L�2� �ԡ G�q�H&��xȳ8��pX*�,��� � >0�?pQ�) }����8'G�`�.�C�!�Ssp,���t����A0��4Nsp,� ���XЀA��98��L}0 ��''�:�N���F��4��>���qR!�y'������3 ��6����8!���G ��3&���AT,q(� ��'')DΧp8� �d 82+�� �"Krv���6p�c",2p��C(�d��!��-?��@&� P`�� C��}'`�>h�� �A�S �C�� )@47�D�ڨ��� ��{�"��8n�ԄL�� \B���# � �6}09o۲+3���"�E:!Xv����l`T�]6��d@9��Gz�#���� (� \@6 �`��Gp��@��a'@�%��� p�'�\��14ܠ[9'��z�����B��L�)��E�~@�CQ�=�*�B0X?hևE �C�C,�j:I�E �C�CX��pa%�&PvXK9`�%B�����9$=�%�*1 �* �ZU $A�p��@��s����Ъ,"@HxU�f��0@��� �V%`��7 /�lM*0aZU  ��l�2F�hڠ D�y5���� WV=���W8�J�_��W@=�+h ��W�\p��NX� Z�+� ���W8�+h �p2jW�\�dp����� Z�+ ����W@����(���1��a�N _�K{HI���5�cs ��� �a��۩15h9g#���*g$xA�U ^�]�nL}0a.�Nx=�����F�� Q%*}�q���hU��#���0��<�2�F�b���3d�0v�L� �Ox�{�º� c72�M�07aXd��0������Hp��L� �@(J�N(y���#M� 3A&�� @�� 4�Pp2�Qho�mȄ `jR�Lp�^ ���L2�dXBrfB����$���w��� P�wd@4�&Ȅ�(��R���sT�hJ��� %x /�%�fO�t����ݠt�n����a��!%tO����}�@���9���G�xlа�:�# ��X�f�WهW ".An�4��\ Ѝ������O>��"��#%�D'��BH��#%d������=�4�(W�5�0|���y��!��@Y@����F��`Q��,n��sw�b4!����H���A�Ԑ!�%�D��\�&d�7n��T�3�7&(�0��R�� J`.ݝ��g�xtw�7�Ƙpww�n� w�6�Ƙpw`� w�>�ǘy#o���q7��@cbL�1�>�ǘ��@`od���٬���`7��$����F:�{0&��{܈�*@��L�*@��L� �Š�` ���ߛ�-b�����&��18� sfN��d��8x�O���9�~Z�b��>�C&�����>�������y�A�r��n����>�� �E1��� �(� Ɓ���K~p ���k� `pdB����]�#��x��k��G�h�����4x�q��<"�N��y �LȜ�`\�#��x��k��G�hP�'p���s(�{�@��N�yz-?x�!\^�^�8�����Tdd������(`pB8"���F�&@L����(Ges��'~VZS�� (#LBbyz���)�0_�5@G�(����x ���������y ����q ���*PFDc":�2�l@L9s,�LbI,��7 ���+������ ��8 �����ev�m�4��)����"������2�� �'�>,?q�D*��H'��P�wx�H'�|�<��� &ͣ}�$>�s&I�2F����N�L'���Ή>,?q�Ċ�|�j�G�,��B�<^�>|�� �7.��18GxM�w �LȜ�`� `pd]�'ؠ�� ��8H�B�W�:K#����B3I4BP����9U�+�D��O�Q��A>P5���"�(P�d�r���g�w�5���>����_�!���#�$(����$�!V�UW!5Y��S�D'���=��ې*��=�JH �s`žh&�����$%��� �S�Fh��v�X�� ���4G��x�����D�q8�+� ���@E2`LX�RJ�l rD`�����*l�Ma6Ŧ��n&l@H��y�� ���-*��U���$d` ����o��L�pxB6� �� E� :s��!�t�!��C .hЀd�ry@_� ���`B�t۠��G�� �6��!j܈U��&h�$!��l@��������+��l0٠~g�&� �w60B�!p�6�؀� l�*��$`�p��(��%� \�YF����� F� �k�@�a6���8zC)89!�`n�Mp�#�A + H��-� ��t@�xBt���L8���U��X�� �&܄�ep x"�#P� �{�@ ������Dr�� �7�D�4[ ���0џ�� �1�Ȅ�� xP%��#�T ����@�PP � �S�P2�(�A����p*A8i���.����'��m� v���&x>�C O'�mP�#8m�CF�?��䐑�H�@�;� 5��M� p������|o���� J( �$\��Y�'Btq��6!h���t���z�7�{��'&H~ �@�۠ M>@8�� �� lSP�����,�����S��g��/� :�F8���!0��nNH�� �9r#��#X��0�e{��)�GЍ!hL��Nw� �� bȀ)�u9�n �e�3r���[�Ѝ!0��niz9a`�ݜP���P���`����h x�� lSసA�0�Pb���` �OC�`w��0L��2���8���vr� F��X f-8���[�P|��� p�r ���@�Zp��5�`?�� ހL@���L�g �:����w�pF� d!���0��@&�_� �`/��Y�w<�4���E0��"0F�o�ȶr @:P�4v���;@� '`���0N�x���X�|C�g8�����HjЀF�ځ;x8#� �pF� ςr z�/p��Q����b�,�;bP�j��� ��f�� \���@�c� ���w$EXA,qV@@�  ��I���*|� �pB�����HY�#�G l/�0 � >Bi ��b��@�j(�G�|D"� 8�V�|�� Ah���k��=�P *�H� ��Ž94)�~�p�;D��3$�@�Cz`sB��9a�}ŜԎ Hh�8��̜���dl��߼ah���� �8�l$�k,�P��>ؠ!�+*��y�F���!�L�� X�B9��`��@���?`sR�������;p�+����p�J�P�@0� p��C5�� [9�E�-��r�Xaw�#�`'�F�P �N P �&��P�w.�r�H*d$��dBH@R�+�"`!d''p?���P�p�J���S @`�=NC2 M��D "�Lq��:t�#URF(���(����r�Ǽ �%�[5@��! ���tQ��� I���B�tI� ,z�xG�� � ��N�g�����J���Eh���E�� C�$*ᬠ�҃�@�d� @�ӃJHn�Ζl"���a 8R����d�t��ҙ@ʡ�(���ď8Lʡ�П��x��l��V��F  oho� ��507p8�@�`�>P&d�*��€ �܇gЪ�?0d�СD����d%�,��Ap� ��,��M���Q���8�98���i!�E � Ȃ������F� t��[�@w,�z�"J��<�Dd�=SO�;d1�ܝ�+M��! %���P�q�N(dZ�H�(!@�Z!@; � %�LK�Ȥ%�P>�Z� h ������5��L�*`�B�&@BhF !0��@�NB�/ !W�`r@Kh !WsН�Awr�x' ́w���N�&@4�W<��@׾H��9�䀖���Aw^9Ax��Ԋ�B�������+�w �މ&x'�@�X��` ������'4qa'���������{W�9AN �a�d^x�Yt&��?0�#eE����H �#�� �G�~� �N�(��82�k?�T�p�b��]A"� 81 � �� ��ݐ��1�:�` ��A�0�Dt��� 0�!A �_@�5 ��DPK�~��P�@� �$�)�w�� �0�DL�(���Yt@X`"r ����,�J0 �0 �!Nx.�E�K�Z�p����"r��.@��4` Z� h��"���Y��S�"��p-���` ��YU���F�ځ;x9�E�_� �`/�3��y�"ƀ ��-"?��� �� h~f �KZ����ם510\�)� c�X��HzHhY ��2� x�8�&�E�P�O"�`5`��e�"ƀ � ,8gcƀ 8����D�Cƀ ��g�C �"�-’�+���@^��� n�{�9�0���EX+`ZD$ �m�Ddoa;Z�H,��E1ޓ<�2�m �t��,=$ �g� �T�,�Dc؂¡�߀���!,J0K]��9$�@��\�,��$,�A�t:� (51���M�� �K��J� ��1 �a���� J�D!��ߨ��z��"�L�N sd�+Pz���� #^�A0#$G�T�� <�h���M����Sz@�(��0����WPVod�/�w~��_A���d�N���N�8���!s:���t��:��w��0���{C��V���� �Wp Z��/�|,L���™1#gi�� �G�a8L�W� �`B�! � <B�&h$�M�M�I^@  �b��� ��H&t�(��!Is�W@A���o\<�sRXx���:�Xd���/�i�0 �#���7��hX 'Ѱ�LA( ���B�A(� � �� zC(� ��7T V�?`Ѐ����qnM��o��` �)8�W ���w�5�P���q +@��x� �<έ�����x�qlp�����`l�� ��������=N ��88���s�q� ��C&4�D01^{�A�x�Ƀ� ��$��pO09 ���;���i���A��p�< ��4X�� �Mo�h� o�Qi�@S�� �Wk�@��7X� �� �i�N�W ܚG��@��` |���8��P�37� Hab�������8��%��v0��5;���`A���$��pO09 �\�'���F!�Oa���#� V > ��wH^A��O���<�r�Z������qr��߶f����Q�(3("L�Z�Qi�i���� ��X�c� ��M@�;�a?��J9�_(� �\� x�B��� @��!B�t�D�eć+�@�T�0�HB��B >4R����8��� N�HC� tp�_���\��\�p΁�9�H@�t��L�= �ἓ�mX�KF-܆v�-�%�Ė�[�d�y>(�@-t��P�r�ZX l!�#��[��!'��=�p�jl���#,H�LI�H�z��� mA$� L�#,H���RA�|݈W��Z����F��N���Z` 9-���r���`�aA�`Z ��|�"��̫��c K�.���Ar�GX�*�W��Z��0_7�d��׊����7��T��w#^A+Z�! �W�qđ��^�@����x}�I.1 'K� �rk���X� !0���W�WC��%|5����8L���|�@M02d�j$�҄��:?]� w�H� 85Ț@�  3/ ـ����x}��g� �Cas�ph�d`���<�@B��(����� R8t2�r����j���r5�� >C��b������g�� 2Hh ��r���$4�@2x9�� ���\� ��N@x&�0%BA$+e�r�HWC�����H9�b�ar5���X���� �tx�Gt��0��tx��T�s�Æ�0�g:<� 02���0� L~@K���9n�Y��!��� �����"�����܆��#�"� �W��L�@� П�p��Yq��3X��6�b�Ӱ.v��pd�+07*�tx�� �Ӱ�F��� ̍X�e����ةL��e;�pxDF8�4�ܨ4��4� G�/���� �������I2b�9�0�k.�t�0��h 0�i�-d�l8� ^Ao� W�8�ӰZȆ�p�������pd��@� �#@ ��0�� �d� 0�C�0Fh��0@'��4l8��q�a�� �.�+x��7\8����#���F�2�ah!6��&�CVlY��eGX��8`Y�A9@a$P^Y�2�\� `! ���� ^�!+6H&����TQ�?���#XY�/��%�� �J�d�Ő�� �J� ��|&��! ���� ^�!+9>�B�rzP'^V8�� :�� �"DV*�-�@c�+F��x���( e!"B)�c��k��Jpx�� ܍��4��B<6��8��TQ�?��$�{A+�^G@I�� /'V��s�JT ù��X���JTIpWV���O��A6�"| � � ,jd%ȄW����/`K8�@V��!+2�@s`�Y� � �l� &�L0+5�,,2����\�=5k�% cC���;���KDda7��Ii`+�� ��!���PC�g#8� )jh�'��=6V2C w�DF ����_<��M��/Ԑ�it�͑����3��7�"�y!"`�'�0�2J���D6%9�����r@��a�m���1Ʊ��2c�TՎ 9f� �2E �>�0� ��i�dl����) Xd��1����� ����ɰ� �a� ��`���pDf�EP.c���0�vX�}�j���@���(:AIm ��$���c ?�9#`!XA�c(� s��-4H�n_b�B4�X��!(l�� V�+!�_�j�+Ұh3��ZA�3� :�*��$�W�@��w �Z��k���8��D�2����>�svB�1;����2��Ř�|�O@����̘��Y�!p�Ȯ"��t����OMQ�y��F0j��%G��4������� %���N�����������,�|��Q>����sn�h@B`�F@��q~��ۀ8�\�� LH�"�HA �q�6�5��n#�kxf<6�n�| D���p� �� ���k���&�{p`d��#`�oxf�������|G��� �s���8�� H�x��6(��� �gy�����d�: ��� 3f�t�AC���7�ԃ+hsDf��F�4\A#� px��W&�p�y Q�猁��-�F���6l~H�+0ٷa#�`ye�l(p5`@8N��xrxO�9L��01�Є9L �0��hn��t����m k��9�1�2������^3yA\�� �gr���p#@�{#]�F�8�pA\�@܍L>��p&�;Y��+&u�'�@�Nx�F��4�B���ɨ) �#\C��&Xy#�N���x�܇a� ��`���0d�F'�5OO�<K�Z����dˁ ���(q��� �pX�E?� �qP�h��&@Jp��HЁ@�P�AH Q�����Q2 �P��@��;��@b� N��+��hD�4"����A��BB��4J&(Q@`�(�B��%��L� ���(�oD�`�R`0&���@&�`p���&Dj@ �^� \!`���_0 0x�@�gM^Ԁ0��  �������a3 ���@8� ��H)�H�$"u.�A�KI���6ܞ&�� "u.�0 � "��!�`@ (`0,0qj�r�TX�Ra9�`��r�T�p9X*e�,=\��l+K�����R��R)Ke/�=\� .K%e���҇��R)KE����� � &,KEe�sY�ݳC�� ��&Dj�_� �`/���a ��#`�<h� ��إ�`M �T9(.��҃%�"=t j�����ʌܗ��80��8 �` &�+� � dH���TH� ��qR�+HH�&��x� $P5 A�'��g1#��@l��xo$4J�^AhF����*�{x)xN���#��NH G䈃`��X �9� �j rD�8�*G䈃`����!�|�9�D#p�����=� �YF��/�At�!B.u���\S} @}�#�a�� 0H� 6�!=#0�^��F�� ~�o�x@�'�q��ǡ9B�L��0<pӨ� �� ��ǙFgy�i� 8H�F�exS�V0p���|�4�WP'Dy��7��)B>�x�� �W� \�y��� 0E>�(%���0E^�!&K�%� r@ ����� �� �/��x�X*���q/���c@&���AfȌ^� \!��@ȌG� $V" �`��XA"('>C��_0 @ |�����2p�&�"��ԉCQ^�y/0 D�%pƹC*B!b�� 1q�X���� >�p�\�q<�x��L9��qH��A��8|,�q`�!d( q�� ��tH�0 P��@~p@�i�XQ@a@H�0 ����Fad�!V��a�@aL�.@w� #( �" �`��( �` �0 ��hr�H C ����@0�FaS� �8d�i��"���TϠE�~� �t�4o�m=������ "�m��1��w,b�1#�N�8W(�\6�&h��(�g�'q�04b�!q#���G�"X�#`�5�|`=���4�xo�zЈ�LI�|-@�|����z[�X7�|�,N�p2πE�� "1Z��8@�����{a@E܈�m`,/bhDD�y� ؍ �bF���ŧ�QdǖXA� �b���愴��ӝ�4�����C5��/pT�ZX� t�+�-��T�#�Zv��NIe� ����L@R�@& ��s7\6s��)s=�Z��B2'd�`�N �[�~��`�,� f� i��g�`�N��P��E0 J^Ckd���q��L �H�!L�N��l�+/ Е'CW��8�I&�XЕ�#��Lm� � W� A�i9G�8�TN#h���Еr3p�@�y� '8!��x�A<8A����*���@m!PX�Nd����%��d��Y 1�QΠ&�y^a��� j@pt� � \�j@X �A�S��;�yp" 䃜��5P� }d�|�dL���d��"Y �g.���yx"=B��'�ğ�n��'���X���-B�>��� ���!p9d��_�����%��B�'�D�yKP8��D>�p"�A' �@:\�0@I�F�6Pb���Y`Lb�r��3d��P��������k�H��<���#H9 X��A A0� $�� lkM���$ �^�%h"dd,��:A$��E��G�r� � !���%L�#H9 $ ��0^��� �$ ��0^��,�`�b�r� x�@d��� �`D�|@�AS�x� ���6@��Y2�䃑@6�X���ā� b@S8*#�x4U��dSHă �0b6@��� 4n$l�R�3�'�� }�A�d�!7P�}�A>h At��� ��mpd������HȒ�`*������"Kǔ%�O> ���42 ��#0j��1��� ��#0j��1m�P�"AS ��)�1��ǀ� d@fGِ��9�B� ܺ0a�d�0B� !p ���k� Kfɟ}��H� Kf��Qd�$!0B�dɄ�%B�Y�8 ~0a��HȒ�8'08~��F��`g�lp=��y�Q�j0�lp5�.c&�r胦���pL�g;4R��$N��8K�<��d)�d��-�� �@�L�@x!c ��1w�d�,��O> `d�lp=�L�$�@�,�0��Opq@fgIB�<,��p2;�� �%S�L�� ܺ%�\AȒ�'\� �%���(2� ��,� ̂c���,�� �%B6Ȓ�`?$�ASpL�W��l�)�(���0�)�9 Bl���XBKH:-�l �q}����-�����+F)4�)�K:_A��G�J�����Px,�%� B�6 ��z�"E � ���L ��$a�'�<'[ckH����P � -�QL�� �` �@�(�ސhv��-�� �� �P���j6�C�s ȁ���ONpZH��ҀA�Iq ��$>1����)0�@XB�jv���Tj6o� i�d�T�Ҁ H[z�ø�.�@�y���0����hM� ��Ҁ H2�4<�,��H:�%�����@8� 8��� JAH.�5��,��]@��Y $�4����)��-΁4� ȉ@(� ��,0K(� 4p J�*^}O�!� �PX@O�� N͆@�@8�K�6� P|>���3eb�Ϙ(�ҁ�@�����"=a��g�PiP X�f����<�b�,�|�A"t`0�) ��� �J&�� �" �@ i�(�7�F1H݂YȄW� ����g��8��uY�L�!�'��|�CX�L���,=�2-<{��r��H� K�@(� P <Ļ�Z2��A��K'(�@�t�b���Q��bʂ��!��� �� ��N ��,({�e)�Y�B��U� �b����N���̂�3 �8C����\�&pY,��읓�’+=f���!W|VZq�{�o����B��}����4A/�A(��u�������w�P:.� �!<1:A�.g�QN�F'(9��sp,��Lh]�xc�w&�B� {���3��QU�CP�p��Lx�@ �����P2A��� ��= {���Q ���P�;x(�p,J��`�� ���1I7b�`���qY��X�����m�`Z��e��,�.�L��&����;.� Y @]�98�"���i�w\�9��@��,s0-nEh{!�@J(��֡����9U�C41d���;��$9�@��A(���D�NPr�9��� Y @{�98J&��X�dB�ų�8�кb1�i��P=���.� T���A`�@��G��F�- be��P Ҁ i��P=���"���� ��R� �be��R�E��A`^B�6"��i�HTc$�.!8�a� p�#6�.!@�&GlxqZ�Ž8-��^���K����a� p���v6!@�:+�]B��8Ͼ���짰K8_� ��ϰK8_��짰K8_�ØϰKpq�%�8�g���.v��+�}��c/^���4��@�� ��J`�RLH$V@�J`�>���@L�F`���&`�@� &���8�b! *�ŲL?��!��'Y�����A6�H99y'|[' &��E��`,:��P[���(p�ϗ#���J Fz�a􀖈�sj��P[R��'L�0<2A{>aR��0&?�G&$a�q��II�'$>p2�&��!�c�xdB���O��-X!�;��#$�z6! �������p�xg5��q���G�����dz��!��Ex���׎C0@�t B` �L\`��[� ���9�E���` � �b_ c{�Ѭ����@L��$PEn�C�b� �� ���3z<�>C8�G�q�����O�U�|�>�g�@!|F��R� @ �����P��q��� >��y>!��d�;� �� ��C$$� ��1jI�qD��t�B�|�2c �@A����pE�H"( �@f ��:d�ʁ9\��4��� Ȍ��J�A"@$�� ��4�gr=W��$�� ��Q�Y �Q��** D�$T Q� 1�z�cL*����DI y�$�b<4�@�`S�@4�N� �� l `@��)0�g��M ��(V8�*/ �)�B"���*(��tU�D#� �D�^+V aT�8Ŧ8�[(�{�) B4Ʀ�P��D�\&H��+�� @\�"x cВ ?7U ��`@<!� D#8 ���N��1�!�� 8B�(X�q.� ҃�p��4�p��A���؃P�����<������<�z`��M�7����~����Uك`�4���<�z`�4���{PnB=� ��&��`^�+]f����V�A�#uF6 cD�GV���d@�n�)���X��rc҃���� o�G�G��*�B��6���PT��� B�|� �A�*��+�%� qA.�?�Ж� � .P���*��`���F�%sЎ 9-����[P 9hO�|��BZ�^K.���0�6���Hh�� �vYX2e�-ȅ�]� [�BV�-Ե�b KCt�� �h�.e,�13n�� bS�c��n ��  u6c����ѐ��\�f����� ���W0&��1�v�(� �bQ'� �lL �� &@/���g�X� hf�l�N_n'h�!C���fF4�٘ ��EE�G� ��&��EE�G� �vx�D�T��+x��JТ��#`ИD�MQ�9��ƛ�hs#�v�K����8~ )5� ��Q � �f %���P�*�Xt^A�9`i�L�4� 4�kv0h@X��� x�=8>�ø Ѐ� ��f� K؃�`�. 1}����K�|r�D��˜@�Dc?� i�H@,��]͌.!��Fw��5B��b�Px9�.�,�0�Ҁ6,"L�m�`����6<��4�]��t��Q�j<����� `�. A���4>Ԙ.mj\�1� @fok<A�X\���"XD#؃��8 \5�� K؃��.�\��$ u��fF����d���/������؃f� @K�D, 1L��0�:y� �a2L��1hft  18h���P��$v��*; @)�=��—S R��)�=�8���>!|9���v ��'V����O���q�Ī�8|x>*䒅� x>� ��KB�� %�G>@J`��|��B���a!��5�Ʋ��51e����B� 0�C: `��t@< 0P �㼂 �B��#�y@��<�`*� 0�3�9 ���@(E@&gC�{�G� �@'�;�@�� ���{� �� ���;{g�tg� ���;!����� �ޡ=B���� $��@�6����i�1GT��{��X�jd����a)�,��:���� �� 1GZ��`)@ED��:�J`)�"U#���D�(����9`N���'n�fQ3Ƈ���! $,2�`� ���9` �����B @2� Dc>�A�B�K�� j��?�� ���-�Dch�c����O�bg��ulAw�`P���>�CH$. ȼD������#݁����F�"�G @�� ��$� � �sT�XL� ���m��*h h<�d��ClA�S��8�+��@2���,aq�qq�:`o�[���~�[�X�9�D���)��#��S0��֙t�`�:����@�� ����O��7�`�sbN���X �$` ,���C�0��Q;~��8'�h8��� ���8'�#t�A�kTl��8'�h��6�t�� �8q��s"�B�9 ?�7 �N $���!O��7�sŽ9;&O��l+���a" @%%��@:��6�:Ѐ��bN�l@ x�}�½�A�� Ё�cl�PA[�� ��P�Ѡ�)��r8�ʱ�@�ubA‚5��<� p�ʉ*g�~*���;&<b?Ă֠0���iɁX�qh�2�Cx������Pb� �1��@-�r+� &��j���I�8[�S�!�O{leJc0���LsZH 9@-��0�AZ� ~!-���d��b t�-ȃ����2m�*N�+`���[�Tz���S�v��ja-�����t�i�/�����[�S͗n�y�@'x�@�F�dB?ӄs�?x�j(`i���y��M�I2�� ��RK�J���x�p'4���E�\뵩�u��>�>T�0 ��}hN����f��Lڥ�:�4����c�|��@�N��d�<����.�y ;m�l��@v�! ��1x��i'd����6'g�P�!�65.ͣ��v�"Gd�<���Ԧ��jWmi.�/�E����"�6�|�%2���k�̑e[���R�#sd���7���$s���@v�YjOd�,����a[��d�\�e�'��&�$Ks�,�ٸl��Z�#w퓌�q.���)�$�䬽�/"K�'�Ʉc\�;����pVR� ��B&�pVH.��a \@��%[�ᒑ ��^��Ԧ'�0���"���PKp��.� \�d\ H/��UK[�#�q�F�V��arw�D�rT��j�s p#`@"H�/ |�7&p_p'��>-����~)' �B�� �A�/$�!�_�ALC2Ȣ6) d@j|��H� �>�a{=S��8�$�r�a;l���L��sz���S��䀩15z��]�n� ���vi�|���t�A@���ד^�Lx=�'L �05z�y=� ��������D��z&�#��9@.�)�/�Dq &�#��E N�"H�O��D@46�"�}�4 �@� �"02��C~�� x��@���1d2C �ԓ.0�0������`����S��D��:�,��  g��p`; ���4��~Pb��m�Q?�$fjG}B�� ����)qg� �\�J�L���+�P� 5���r0��2ʥ|ʀJP��KL�3��r�\�K�)�3��\�P� 5���r1S;�/̄xA��v� ��p�v� D��Mp(x�O4ab �P� �(�E!�����@ q�(Sģl�Hf�XFm�P� �rn�4��P�qjGQ��v�P� �L�1�%� ��F @�I���LA6�r�!H�R��d���W�Վ�1�A��D��^lGw/�����ځ�Y�=�v��qҶ��Fa�P;����@����qZ��l���@�V ���Z�3x>�_<�H� �q` XA���`K( s XA��TG� 0L+��cK( s� 2ť: � �q` XA��[Ba�V�).�Q(�v���dH�G�%����!3Ѓ)G�KD�Y�'��#�����@�r�,��� ��(E��Ԏ$�@�� �q` XA���`K( s XA��TGD�@����M�]`@T�H�O'�9�X��4Q��vq ��Rn�A��RF�0e0 H���@)w5A��[F �J#�=J �^D�_ ��80� GԎ-�0�+���(<��2�ID'@��{�j�(XK��� �-�k�C�I(� u��8IF� �(@'�O�W4�E�2Զn�#��k��ā���A���>h�6;���s��cmw�Qi�@�a@8q`��AN8Q���~��I� �hB�x4!Wp� �+��? �x�.��'Wp�x�8���  W���+rE}��p��/N}��)�~����I�p���Qg�}�.1P��&(��0��>� Ǡ]��D3����� �!���0f�r�0!��� `�(H43���#!` a��`�h�`YLB0X` ��!�U��8�T?!�����>)!̓2ʀ��&С�`�FK 9 %�!P���0Zc����0ʍ�Nx�ޒMʀ7):T~`��U�֠N�~�K($�FSH��|+��%�C��pb*wS�����?! ��p�m +8��������4t�&�ə��� ���L�� �}p(Ab��\J�(%� ��Ȅ@N���(����N��$t� S �Ah&�`t�A� � 0P 6 �(A?�� �a��P@Ԁ��@'�3AF��32ܖJ�dd �1^�3PVYd �@�����,�ɼ�7��AF(�L 8/�0�s@�� � ��~� 8�L�^� \!`��0�s@&8E� `d�� ~���|��X���Vr��k%�Ӏ�NP*@��OaH��\?�!�����A���2Od�����S��O��?�!2A�ݎ�4C��|���$@�#�@� ��2*^�1"��3 �X�z.�#/�Ҁ!PdF��FfE`�^A��U���,���aL�mJ0&|��p@f�w���h ƀ���-��12�� �����B���w;�1��8��#%( R@ ��@�Pd��`L�27�ʤ�}��,�6�V6:d@����hK�Dt 2��yZa�c(��a"nC�HR�O��@�F�H�O� `X<���r@ E2����¸d`it 9T��C%A�T!����(@��Е����r@��sr�2?���@P��j �s�3 j�40B`��QN��  ��f�@�Z%�%0�J@�s�ą.Z�����0 ��Z 4d- rBU�X�5%��AC�� U��㔅�@0h�X8� �(�z�d@pJ�YՃp����H2ʡ$�Pn��+�����p�``�!0�2K�Vt �7P a� 5�B�2 ��!g �)@M�����@oh��� M�no��MW}`:�q A5��TJi�t#��* Ҵ�Fk��GkFU攚Z��R�(l i�te��* �&� ��m� -�Ԅ� �C۫ @,'��VS��>.؄WP�<5���nP �R%2�<�g�� $�a!`��P ��$:��@�H*!Q&��'N�)�"����(��ϸ*����8B(h�*!��(�;��8�E�p@'x��tG�#�'�� �e9m��%�N(`��c�9�+�����(X���;�<�8�#������L~ $�Ӂ4�>&@/���0 V��t ��D��`D?��,7���Y��U����Y� Qth���CP`X�q�Sdj��P�8$�N���G�F���D� ���BVA#:W�@pߤ�Ap��� �\@H.`~��1@Hq���\� .� � r��� �$�#��q�"PX�JAԼ��q2NF0"E�.� �Lz8t���E�r �"E@�A�&R��r�[�$!]����y�*���� ���3�H�j9�g�r@ ��v�.�+��"�`.����d�Pq�� :�4�( tX9!L����X����Q���> ��Մ�V�Q �&|����j�+�au�Wȏ�6��ؼ@�@Mh�&��RD�6A(�2PFi��7t=�"o�z�\�~�`*`$�ZE�����G�B2� B�\b�A0���z4���� ��w����7j 89��!���|� �>H �0TI0 C5���  9���G�0T��Q��ԉ�p �6��L��"��c[���G�0T� �%�[�p@'�6ZB�L��C8�@��V��H�]2��%�FA�L&�K�y�u�D��`���$�əD��ə�@\b ;=N��G) �κ�"�2�)�`<�GT�?� �`��`�(�� ЇHCiXn�-/���ݲvcq�� �F��-!�� }$HE�`��}`(����xv\.�q}`(���3��� } � �>��" (C�#�?89lF���g������  ��0{�Pp|,��1�b'�A�!�a�؍�a7�[��n�.�e�=h�>�=��B ���v@2� �Ar����.� B`�A 9�.�d�]v�`�2P��0��w�EI�LA��@`�d��@4��� D�b���@4��0��h�t0A"�x�$� FVj����gS@�@��� D��`$�O����x �j�Q�w���>�H�Y��V�>Hx9���P�A7���/7��� ��_��M0s� ����h4�@ �s(q �E��+u)!j��Y �P� ����%0��@�BbW���q��x�|��p5*H (�!!����D1�A(������` <�W@��An �$�(��B��w@����*RG6���z��O���� ����:#��#�٠.䃑 ��#�G�@,�G ��B> d��%�s6� �`$�%�s6K�f�AK��캐F�=�#�Ȑ�Xr=~�8�)����,�4��!f}` ��4��� �'����S`?�89��$@n�&���� h<�� 2!p�#.��\>!*�+0��� �� ��A1�JP��r��1��>8H�p���D�@�4�@�~p�ǹD&��qd�%� ��� �'dB�p��}�`L�)4�O���'����2�n� �P1L�)0|B&�(�`��L���xNx`�������99�p9}r�9�\���|�/����N� ��L�7�@��ۊ��m�� �6��#�L�@� �bv�y1�����]�b^̮�n���a ��bv� ��D` ���!&(�, T������` �19 ����.�b� �@1/����v�1���m�� �6����n�Ә/ޖ ��n���71B��DFE������F�ISB��G̎�F�c�+�4�SbY�&.�̡H-��M#~@���x�'�\� 0�.@�F Pfy�4����L� G\�+�@l8���4r� h ���0Դ�C1��ġ�F0{; �~!Ȭ��9��l�=� \�+x0���50ȜF�x*Xb;L#�4�`v�q-S��� "#O���P � ���� Ժ�!���)x�>�<�E7�RA(�@0��N(��a��02��X�䀥S���!����mB�_�"�`��B�_�,��"�i����d�Å * ��%A�)��N�r��;cL���5�`H�#̃�� ��y�z� �^�<�7"�@����K��0B!�� �����<�/`Ȱ{�+~��+o�p���8}N @(��,���0xr�XGi����]���"��7 fF���"z�!��,��� ZX:���p'a X���UK��r!X���4��n�`��܇7 �~x�� �'��hX:d���@ �A�U=�X�˼�1s:�OW�!P;p��9$�����7� N!0h,�j����m�N"3C���:�g�۲a�����  ��!�\P ��mS��y�=3eF�m� �� �:B��u��.�͌��f�9W���tIa ��.8D��� �W� 0h5����fCs ��������f� N&!�qh�� ��6�mz�dpDژŁ����5���� -���)��W��Е���]�+���->�}�����.؇� ��n�7���*!1{�P�Gg~F�xx����"�/ZΏ� ��eh��{�������C@�̙� l a{L��+���@`0�� �B�'� 0zQ���`p�kޕ^���DDL�K��P�K4�`0F3�ܦ�4����4J�iN,�p�QKLA�H��4��< �G�z`?�� F�1�_*�EAH_� :3������I�0f� + x Xn�ma�����7np�q ���L��X�����٠vsy�v�.-�5+Ep��F���B��ΌaP��������<�T3Q0�d5;��]Lx# ��͊fU!��$H�� t�f�7�Akh&��5�f�լRs˨���"��( ��`|�5��Y�%�EAhC��P l%�dot%���U�(�y���H�����h��P�lN܉�� �N�e3Y�J�Lq�� �E��<�?� ��{~..�0�� �� I>�4^7��;h��)ฑĎ`Q�t�w��Z�!����f�L�A3����4� ^� h&̈́�G� ?h&���@~��I3�u�8������ə�a7Չ��L�A�w�����+�p����� I<�` %��*����+�UD7�����C��u����0�22/�_A�G � .4�� `��� � �� h�c'��@"p(�9H�=P8I��$AD�#�"�o�d<�ތ>zs�4 �MJ D�� $w�����1J�J ��(��` �P�:�$<�o8A~�2M�� :@N $d o�Ny`u�@\pd o��4��@���V�X���� �� �(+�9�� 78���a5`�p&�cL���,�XAi �5� �J�\��脕��P�C�R�'���d� : �<(��X��!:�N�I��P�QS��� '8�O@�R�o��͡� y� �E3��`<� D���9A��1%D�� 2� o�N#�6�1\�gh�7D'�YL��H�{0�qF7B�\y :]O� yCty :ǔ<��@���U�)������U��4>��U(��t��� �F �  ̓��@ �Xm�%�  6rnH�W 'ܻ�̦�]T�l�%�RBo��w%��{צ���$����P�%�+6@6�]* #x�䜜�.'�ȉ*(g�)2��� �mRn�����&T�����A�� �Y&l�lBTF�&T�*(gNȓ��A�'A�ԗ � %�7L�t z�j(A|�N ��s��< �Y'rEo�u�b9oA�+��NL�I1)�Ϥ��Il��AB�a����.�/A���Ao�P�a֥z`�0B �?)@�� ��O �Q1��:@� �P���)���8|b�l��5�η�8[b($��t���HIg( �(¨ I#鐈�q ��HC�g �ר�@� i ��1ƀ@�+H#�$/�t���Qa(���4��qzi �����!�a pƆp �a�� zi�I�Rg����/c��4g�q�Tx P�� ��M |6i@��`qF����)�a�W2vr?��_A"V�P�C�#��B" ���t uT`�s�8$����|��H��(�`4A �$((_A"�&�`���� !R P�$" �/��� �g(��*r.Ip( �g�d�1BRG�-F�$��3Fns=1����AF�"&�� ���\�|�?����!.܄���� ,7!6E�9�$�3�W ōp=Й$܆l�7T���-��(�z��X�c��9S\����2����HV�}�3�c����B<ƈ�3��܈N@<ƈ �ή���pv�m� �g8I�z�Cqp=���ހH�)�a��t�Xx�{�_� �BA> B�Xm�D�2BA>Xce8��2�P V�"�)�d!Aw�u+C`|�a ��H�B��| "��� D(��A���!��xJ|��@���XU |-�l�� �Ï�o�B$�t�4B!��􆓱2~D>Hw��G���4`�P�g��`�N@'(��(�p2BK �G�B�ZB�h9�\� �����Mq � -!�� aBAK-�l �ZB ?"����4E��P�P�>1�-��Ѓ2�5����� ��k�#>qK�o'gk��O�5hB��2[��l� �#��֠?�� ��p2Ϗh'�2p p��� �� (��x��<[ckП�5.�CH�88���*��(�`k���VF(�G|▰�N�CH)�7Ѓ2p ���<+#l ���F �Ė,l� 01�B $ ���3!�>c+`� ����BP�����-��U�J6|�'n 뫒���B�֠��%|b��5zÏ�)�7D��5~��[CD� 2f�CH!|��5�'�d�`bL s�A�I���B0�����6"Q��`�N@'(��G<E�NAh ��!���@��h9�%��6Z0S�ɤ@��d.��`�V�r��8@���ZB����%���@��r-!� �F�{�"J��s#� �`J<�44N:H � 01�B $ ���3!�>c+`� ����BP�����-��U�J6|�'n 뫒Q�P@(�� i���cj�@"���4��¸+�Yd��� ~d�P�B � � Ba��4A} ՊT2N01&�9� J�(�N0Z!0\d�t��9&[�xT`Լ�)PL�^A,!��51�p,a����R҈Pix��4^���Q����4R�� 8��@�4J� `j�A/&�Fu� B僼� B�H+#���k�i�I�'��u����� R`� �i?2&��Ā*Q`��~A0H'����#�"` '� �B�~DK �i���r@ �-��)�dR �J2`B0�+p9@S CAK-!H؃P�BAK [C9�����`��=M %@ԹЄt0%��r@'��  �>�����\�*u���jT�JV�>qK�o�*s����S`�B�)i�  Z����)i��Z�ϐ)i���5|F5��(8h� ;b >����| �'�"�  Z��e`k���5O(� ��s�.A(@@����s�5��'�4!�D����A�֨�9s� ?r~��8w (s�ِ����� �ۏdg��#�Fv~�8�@�wn � ���,���)t� ���P @���[Q(Z��r9i N�40����lT�O��W%K�ُ� P �s?� �ُ����A�ƭ�x��8�� �C�Ė�H<�w+>�%�x�B�}�[!�$^%�`bl�@H@ $w�gB@!|�V�>#� �B!�;���3|�Ę�`+#r�@Yw� ��U@�F1�p���;� d�+9��\y�C�3��2�Y&��(SK���2=$>ȃezH| u����Ȁ߰uK�ā4�Ȁߠd�o��l0�i` <y�C�� Q�� vB ���op�(0>?Q�`W�0���`?����+��08�� �8~�����J���^�@�< ^A(�#4�UR((�+��B4���������\*67@��� ��P*�S��sl6x� :�����W��@�,� Z�h�W�^ď����DWP ����� ��� Bz���������Cx7����:�!"@w2� �;:�Nt@ x��D"����'$��A�Ά��B�����x��)8Hf@���8Ew��܁�d�Cz�(��� ���C��#H"8���p��A�P���� �wxxV~�4��A���u�9����i�F>�;~��t����N�~�!��\���u�Y@X��� ���C�Q 7��C�WCd����>�Y'p=@���%����`t�a��UT m�$����66Iz`��"��TP��pQ�!�ق=�H'Hȃ+��q5�3,���FtQ�����nk�t�d(Іo䉳�6�M�typ��xK�p����rd�[�������4�م|n�=@w��΢;$��LIPP�$@!��B>7�&��;���d@yVB� �)��!S��� &Ѱ@��� 0&8�`L���z@��@�� ��r��|�"�3 v�gL � �@ @w��E� ���9Y �di��xF�n(Tπ,h;B`�p� a��J�9�;�<�A �!h; � Ёe�Ȋ�5h;m�x\[ %�(m�`�N@�@�(m�x��eg v�Y1$�P,�7@�Hd`���!Pj���C : ����@�5B`4�F��$ : ڎC!t@ �ߠ �@U ���$ !P�A۱� L��a �2pZH���v,A�Id�,;D�v�\:��eK@0�!h;\� �.�6@��d��p�l` 6@��d��p�����A��x�1WA-�`�a4A� n\�C0����@� �4�� �h �j��`b�Sh&F'4�`bt.h���Q��m8 1H�����%8 �Y�gV0h%@zn��܄�nBH�$��XAhߢ@\�bɷh����0�Ox&� �� Ar0�`.��h 14��P �A5H ���&�z�B`��$V�vŠ�E8 �"�t`-�j ���"�FH��E\%֒>� ���\!��`(䀵��ZbT#��@`�'�_�E��q���y{Ci����K�N�p�Ԓ��� � ��A� ��,� �aY0�� �q>�d �Z2u 0�r�_�hA-䀵��s5� ���@vׂ��,�# $�YX d�.��� �h�>�W01�� ��蘸� (�{���q���� E�M���8�@,a+m���X�2&|P>LX�‹�@� �h:������{P��=��$s�ù�H��� �!�R �`E��=�����{h;��{0&���h>C&��0&Q�RC#�z1&Ɛ�Gaԭ?.�` ��4��p ���� ����Rg�\h>���{0��r<�:�txG$����PpX�2�썾�,^�Lx�bL�d�,��hB�aL�uu ���=����p���h����L�y����1�y����c�7�pi��W@~0i��� qr��2E��$c�I�]f� q+x`$�@��1 �$X�.3 @�8��$��g(DH� � L��2�@T�3�X����؊1�q7*���i�7�V0����H.J,����� .�l8� � p_��jX��<�DHF���dL�@2&A�+�D��p `��1�~ChV�����I.��V�!��!mG�l2@ 賾<�A�ht���3�Z㓉ʈn�A�A7�F�gtS� #3@z`��X���m������db�>SFt�� �A7��>��€n�#���+��}����3r[+�%rDȀ���s����0 V�o� ����5�,�SF�&�4�@�� �J!��T�B2r+��-$���>���j!1 T���*���8 pƘ2cL�$p*� h:���2� �t=�j�S�=h����5�|��&�h� �F�����0��@h� �������=��( ���vB �K����_P �4� �3Z���B�[@��dG�[q���@ }:��|p+ �$;"̌V�ZMN��9a?������8�&<6�F�t(� $�ҭP��)�A;A�p#���� ���|���C>�e`u$��]����_� ��2 ��BU� 8B;}����� _:��ԟ�t(�#��2����&�Ï�n���C@ T?��0 Ђv� �"�� Q�CQ��5@6"2Ώr�N� ]����ƍ�h�����~DuH"�h�!@��@���( ����ܖ�|���g��&� 4�+  ����@m���x�4�z``B�*@S��KTH.Q!B����(]�F@�.���@.�� ��P쁊x��!�� �App�����@�.�*D �?�|� �9C�g��tp4��<���'�1@:�>#�� �3|� I��h�p^9 �` h �t����g\ԍ���1<�?�bxM  =|�W01�h @�3�+�uc��Ϡ�8��B� 8� `��� ���@��0+�5�Mp�WEs*Xa�� ��`*@$x��p�H �t�9v����� 8b4�@� �:pp�����r!�=�A�0X��C'���q� �[;a�`?`� �� �Pp�A p�% �[m�'+zG����� `��8q�� @7s���q���� �%@�Q���$��%z-\`Ā��% I�X` ���x ����� �%��@�` ��( V�< ����51B ��c`�@��I2#k�0��6�@��nCK A4���A @&� zAh6O&0h2d�1�y��,�A ��1�y��%��j��go� r@KX"���!薰����i *A[2�@��"��s¹yxC����,�)0��<��r@� 1�)�}�C�� 1%�s�� ` J��AF�����.�)�=�/���D` �)H�)� ��G����{�8� ��dx�3@@��gS�M��mL�զ�L,Om��� ` `On���<�ˡ�D���Ϧ���D }6���8 P���(q�@��8���MA:�dbA��%�ĉ�ΛP"0KhA/�7���)Ni �� ��J���Ϧ���T[#x�cL0�^� \!�+`[�B�#�!� <V�R!�/ �<V` `��#wE ` �@�y�!��G� ����t�.��"���Y �<��b�#` �8h�t9T��1���rS ���1���rSP�@�kM��8r5&8G�c��s��'b�R8oBM�$�f� ��Q!� �4�LAjM�$�p��LA �o�)M�ք�y�3@@��gS�M��mL��� |�+  CA;S` +0�g�]�&bD }6�� b�)�妠��'b�R81o��$S�&F�!fb<�A��)0<��S�L��1�� �!+��&�j���� �M�@"�>�rS{����r0�^� \!0���س�.�1"�>�rSP�@����5�'b��a@�1�0 ���3�A&|%#~� n�� ����؃#,A�p�'� J�Zd���L� J� �� �+� �(��K2�#x%~���Q�V(�'~!,�� %�XIE'����D�;�$���<� #A'����Cp$Z���!Z ��%��5bhK ���� ��?-!B�sbh �d7N$J .t(uPC6��(���( : �`�>H�4v !! �J��$�n ZB�D�A儾�6�!�q�@���!Q���A���, ��O 2�=H&T'/�I> ֠|��*� �V�x�Ж@B������ l�AP�z����-!BKh��(ch�t$:Q:� m��ֈ�ڒm 0^SE6w$a1 �J��$�n ZB�DC儶d0�'�C�ֈ�ڒm �:�Ɲ�4ThE����Z���NPG�� �c :�i�?# � �A"� ���ԐN�(t��L�4��Fs.�+�pE�M� ]��ϑ�� ���2����i22�� C7�.�c�>�� �J�{��q�#p�+p�'襋��@"P�� ��l` ,�� Hئ�tLA"0��Z�����)|�C�S� 9!8#c ��0��d�l@ �) � !��G�eL�#�!���=�a�L1x��P��b�@6�� $S�eL�0��˅Ĵ�M��0�"1�.�L�)0��p9/c 2@�qJ��P$S��)��� ���#0��xS �ˏ)0 ��xS �UB61�@Ę�(���x� ���c �B6���T SpLAw � $�;` �1w�����T�)�z5��` �%0T ��` �!��!�S���̈��,�G` �)0�A���@L�#�/@,�G` L�)�pB��� ��mZ*r ���-<�����9�����]c�.8)�)ƨ@��ۡ� �y7�XB���-0�X���i��ѭ��� ��,ϻŊ䀼[��n�ɻN��$�w�@P/� ����` ��Qf�n޵ ��6P��θ ��P�� %�� 4/�"|��x��!�W�#�'5��Լ� 0�v��<�6�c�*BIp02fԀ. ��" �D����~x�-�̶Ws�Z�6 ��&W���+�`� � @ .���� ����Axݯ�d�����Fx�6#��~`B�����$�.� >Hq���s@��P 䤃 ��pT4Uk��@�ɵ����FB1 aDO�L��q����6���`��~d���x�H��0�!08f�nC?`&�`E�5'�~C?�E�������o8B��r���\?�&����ƨ �@؄I0 ��Mh��t� ^�+x6�&�!DA̱ �����sjB̑8B؄�P2�N�6� ؄�#���G4�NL4�� �AT�� ��M89��`.�mx��&��#p����-��p�� �f4 � &��5�G�3� �Cu@"������b?8��"X!��d��"`w�,†���XĉF�)���{͉�5 (��h�� y�����PB&�g��/��JТ VHe���C>�D|.�E�\�h�oE�E�p��HȥE��"ƀ h�#���p�6���9� ���K����[$��/��X��o@$ 2S# �� >��} t��@RB��&,�%K���x�&q!0��zK> �@�n�â �O`@ H�o�~�7I ��%����}�A6󤷜bo�/�@N�k�h��@:�'p$,�%l S�5���&�E!Т-a���l�A��&��%�BPކ#i���̓�r������.���p�?D�,uɌ��� B��x�Ĉ�8 ��x�8�� ċ �� 3�] �G�<� ��`�ÇX�`Q$�Ǒ@�� ���ZI���5� a6�i��2ܠ�(�g�A@��`�!�}���p\X`�({p \��f�gQP# 2�π�/�� ��� ��Tn@؇�v\*�X�� ���~s��K�j�89�~��0\����@)��`@zH�#.@� 0 �$� "Cl@X���o����x�%�s��9 v��!'����A,AH`�%�A<�%�݁x�S@<���  ܸl0���#X��dh;ax��`@��>�7�p�}J 8 �F�ۀ�Ao�ҁ�_`�� $a@���~��8{p �#�}���@��������A �7r B��>� � P�,�d�B�1�>��PdZ��H�NR� � ��.t@ ���B�PZ�� �����C�� ��.�+� EW�����si��B�����`�(Pt� t�����Pt]7�h-xk�n��y`F��6 ��@��^�-8�TZ�!��@ A � '@Еrs,:K`�gst�@Pn�������M�9�F��Ł^��Q9�gZ�V�X��� �@!���n��(7CJ� Vp+n+��E h�t+�i� 2�X(�KR��V�@���Xh9 �N� �ŭ���"'��cakXA,�=�� %�(?h�─\a�]@J��Y@䀔�[&��@ �� � |�+ ���B��st%hQ+ ��G0)򃎮�������s�|�S����] Z��:�L����k��f/ �� ��#8:GW�����~�"?��5J ��iv/`C�J���!��9��(��t�#��AG��5�X� H 9 ���+A��XY���G� ^@ȸ�{���Y1H �;%���*N �6�9�(Ђ��aI ������=,��/����W@EX�@V�ZhW�od���Q����~� ������� ~� ������@ V`�5�,��Z�@�ax�,�n��V-8��cЂ �j�Ї+�7n7Z�� ( _`�BØc� ���0��h-� ��`R�6:%���cЂ �%=���'��B,�Ѡ��p��� h�a��+���a�h!d���7Ђ�v=��Y@^�< �n L�D@�+ K���@n��' ������uK�)0�Ȁ �����pt�@&�a@����d2��������`j��@H;�$�FE��"�Q����)�Q+rE�+ ��-��� �pt�@&�a ����`�0 �N �A(�8 ��# ����@��f�� K`�< 1x�R=L��#X>��x�G@L!� ~&x�G����$Iex8�I�K �$x��7��|r�'�� ��� �&�$Y�% b�A`�X�,�J ���6Pjr@�l�����!���R�L�0" |�O@ �)H�` %�IL�z�&8�D�^@(59 ���^�'1�*��R��RY�Fu� ����>�Fu���)pYNu ��xW����al� � . ��!������A<�`���rJ�d�D�l~`�ap�惍:��,����P��`?0���6* �����8!�Qg�,en!�X@�aa�#P'� q��[���9�oب3�:�"�L6�ب���� �Q������m���7t�E��"y~#mi�D��ݹ{���E�"A��6@N`��<�m��-J'l�~�1@� P����H�@8�G� �ҟaj`�N�Q@�}=��>勒�GI ���" ������ z�P�)�$H{ gc"��9�)��� QPFz�M� ��� n�sHf� �uS�������ҋn�����,P@�x�@�,p�����E@��23�J�x. ���)T���z���f�PIO#���!�}�P� x + Tf�&��V��PF�t�x>�H? !��@�R o  �T��F~ ʡ��%S���6s����B@ i�Hi#}�ӂ_�~F8��: �Q0�)��'��z��9#� ���s9�.�� ���OFX��'g��B]2̃k�P�QZ�)��>Q�@d0 �������B@ i�Hi#}�ӂ_�~����P��A0pFi��� �\( lA. ���'��z��9��0"C0� u '� @4��[�Z0�!@@ ޝ�@z(�`�Ȇ�D؀,x|�0�Y0�i-��HZ��r�o���ݲ`Ђi����-Y(�@ �}Z��'Ēy{���h0v�,��`�$}K +����n��w���`w˂Y@ �����d��Y0�i-��K��r�o���ݲ`Ђi����-Y(��)���!Ί�Pv�w7��l�����)�7��i-��HZ�� nI'�%¹��o�_-��d  0P �d���/i�� (xjɸ�)PҀ P�i�p4:@p� �ÄE`�aJ�䇻� SHJ5����N���Y�0��� S"p���`�n��X�.��b�x�-�X�`��t�j�1 �$X8! ӭ�u��>�t��0L��0a� �i�%0L�t,iB` &���X�t�&@BP�L��[�6p�"��%��3F���!�1�E ��! �!�0�q����;��xx��! �cx��� �W�~�*�!�A �+d�@<����+t�rH� �+8�@<ލ+� '�$�1�H�%h!��8��N�HBp=����w�D\��-d��1 ��[���!P'\?x"�����#ZF" �Af���z�[�����W�z���yV��� @�Cw ;�$�`�B�y"����#@�S��$�'B<:�g 9����� ��x"�� �$��@6P O$tȮ@/:dW� �'���������Cv�l ��B��x��3F���#T�}@��b��hb'P�g���M�BO��<��z2@ �z�Ba�� �0��x �(�3�%F"p=�un���,�� �����zR��P��_@! ���!@���H6p= ��1S�r=c�&��1� M6#�`�@��b�����$�@���A�$a>��SL�A�yP(t�C��) ��o ��!����"��Ъ�IhU~�pb� �A6� $�V� R�#�.d�0�W� �$�*�� ��mP@�12��! ă�$����~��"d�1� �gxâP��������$��70,^����`���1F�]�\a\�l� �W� 1�x�� H�0��A!Sp��)����bHBp=��ԅsL�N�����n� �E�p=c ��3F��,�-0X� `����5��N�#��8����H�d�t��"�bD�2��2���A��Xb� D\�߱71�2� g$�YDo� �K�-����f����h�"!n��FD�:��n�>���ԉ(������D}pr�׼Ġ�y��&���G&xMţx(A�%N�8p�x�ݷ𚊇�D}P���p|��W@+x��k��:�xr@#h�\�8�Y�%�*��8�S�����`Ȕ�^� \!`��4 �yr���AɈ���Jf��Q@"�b ����b���yz�SJ���' :��|�a��#3)���C��&��b2:��N�dtP-=)�\UI�%,�Dd¤�s �%����렽A(��p��i� ������`�o�S�<���AS"X,� ���A'_o�7tЛ�Ac��K4&$�ŒBH0����&_"X,� tИ���H�%�� 2 �B �� :AE @�ZV��H'�Û��A@l +`��� �AX.�@!P��p�C[z'�D+0 B ��i�@I))���V� h+�4DP ��)���9��9 � �t� !��x0;����z��� ��(�9�zd�F� @����`:���@e ��z^��y=�����L���C� �> �E�J�� h��<���`��@`;�=�W�$q�*�Zx� :��@hNt8U��T&Nt���H��t�5� :�*]����~#9-����—� 2a:��5>A�QO�-� VF���Ikԧ�T����h�P�,AM;���$B�PE|@�QW�9^�[���M�if[�rq(4E�@'ЂiD��A�!?�@&L�|0v�Q>��`�:�.- -i���ZKhI��� �;�z�/q�@!�N`u�`Р���@�-x�, Kpf��9��j,�35"�9Y�dX�1�����yd!Pj�0 �@��5�`@/�x�a ��E� H(�T$ĭ�Rœl��0'"�s�r@"�$c�i=}�����<����&>d o���qR���'g,�<����/y'�i= 2��~��8 y�i= 2����/y'!o5��^��� ���@4��A��(c�ʞN�C`O'�!�T�^���D� �^��7�?P#��98a�#(sD�AH�`K4��M�'W��сPgC���pr􀯀2�����a��F0Nd�+䀫���ո���-���qJ,P�j��hrr�J#���j(� ��>C���O�%��hCH�S ��B.��h�8��.@[�[���F ��>�8�#' �q ���� # ���M��9"x�g8<2d���8Ɂ�A�=�4�W�3�; �� �O'��Y �8�4��`���M!r�fL�M�#:Ó��t�L����4��&P+�=a����0�{�j��w���(�x�: B(@a��P <�>��(x�'e �7%���Oy����C��%>𤀀li��}�d����#\� ( �d' �� ��hޞ�N�R�\0�p���7��f�� ����R���s�t� !F�&�V�1��! 9�y��(�Ĺ��qޞ����4\��A2a��\��!�If �c� �@ �����t@�~0�d%i܈��n�@C�sB���'h%��j`����Λ��9p A� ��@��qP2šN���@��A�0�x>!`��8��!���0j�pE7!�WtE� 7��~`�� �f�Qp\�M`17!�Wt`�(� &� �(D�`E������bnB���&d�p� h�e�0IB�LB�9b>�0� �g�\Wt2?pE7�Q��2L� _�4 ~`��#�(p`�0�c���� $$c��2Lh�LT<��A 9�\Nt ulFćC@2���8��aD���'��r�a9��]��z�;�\���Kc���r�������� �!ad~�>. �C �c(jJ�n����� $��2�a��GQk��z�a|�f?|�鐃̈��D'�޳�㢞G��Q/j�p`��X�� ,j������ $�|p5%x�&�� puB>�=�zi�����>� ��G�p}K�`�\�I1�^sB霂�PS�Lu�V!��s�-ĭE簂������(I�� ��×�];��$H�ĕ�(2���������� x�e"u�E;�[xI]��~�- So0���0T����;�S�I�)U�6T�9�Y�A%�KMf�c�S�z{���}����6co0��~�|����-�C�iԷyz��k���v6�6,B���"�����tr��Y:�� B %2� R"9���8& <=�p��.5���"v`��B��7�c>��@���9S�Q����<8>~�OX$�ϑ8�� 3�@'�=� ~�M�t 7��h� \���! B�0����b�6!���Wݑt����9��@��b�"x�� �!8*��� �j�0�M� ���M�0� ��@8 ��� pj�0X�A:��NM��"K D� �08�D�"AZgt�qE��q���bL( ��05�"���( N0Qfi���AV*O��@?��3�(Bz $�"�zj\�(D(o�� �(2KY���S#�< Щu��H���sHE>5��"A:��(��G9u��D�O]'�ŘP �4��ѩ��@�"�(��+�B��DcWD�@ƍ� =E��l���@5�PUQ$H�'А�@)� v��/�B��"�D� =Q8��"���EH���r�D� =������ p������H�����z��y=�G��� E2@�fŠ���۴��mr=A:�@�(�]O!=�� � `E��mrQ�S+�������R<���':A @,�� ��AA�!t��$D-�!,� %��ґ�OB�n !0�V��,Gn5j%(Yだ&��$DQ�r�A�t:� �5d鸀A0r��9$��4��'!zH�|=$���C:A�%<�, ��jaI ��p���K�N�@��"�Ò)~��I�"!0��.�Q]0�)%(�OB���Q0�F Y:��`|�A�t:� �5d鸀A0r��9$�����$D�!������"R@�=$���� 0:G�n�$<���!�@B`<$!r��9$��4���Q0<���!=��u���CrK@=$��$���M�%�`<$!,�n��@B`<$!<_ =�8�OR27�⑗jS���+7p�&�x>!0��֧ )=�`<4��H�I�`L`<�C>��=��n��@P1H�T�Nn !0������� �ħ )�||�G^�M�端��I|�������vZ�&��n��@��."�'t�1��@P� �zjk� ��A=�6�j�� �}`�� 00 $���S�dFX:���,�� $ĩV�\T�1 �Bp=����:�r @ X:����T��Z�[�����Uu0s��OA���A$p8-�A�@�C  �Z�c@@�p b��" �b'@39`U�j)%��CshRʡI��Ъ��rhRJX;4�������^���I�'����v��,�]��_���^R�zI�'�^�Csh�ˡ9�'��"2G�2A&��Pk��L�2A&�E��e�5�p���WͪW5�����-�%�9)�E2A&��eQU5�V�2n� ������U/X��.@�vhRʡI���,� �*�ڼ �g`^�y�vhRʡI��Ъ��rhR*U�)a�����RR�zm�'�^���^�V����ݹ�����s���!S��D� �C���mV��ד�۬�g*ȈD%��7��TL.��z�Ŗ?9�`��H�0�$*H� ���H��H�DEn�J(@�w08�@��Lq����y=�������z�J�����V@I� FЄ)�`E>P2B�7����A#H9��pX1ŷ���[ck$�yp ��� `k�L~H� @(� q^O�{#Q�c���Ho� 썄0�{� ��.%��]��8%�&@�L�������<š �0A83���"�FJ�&��Fh�l�AH �ś��l2I�Ĕ��Dkx�y0ʀ7��@�����`�7��Dkx�2`{��B��!xo���7�s�( Xo�ʀ�X9�?�6ʀ�����@��Yx 0��(Q`�+@ϦT���5`�+@ϦTh ��(H:� ��\�o"@ҁ��$',���2@$�&� 2�x6��H �B��d�� �������;�j\�,�T*Fz�RW#񤃍����N89C K�,�%luH�R��,U1T@���E��,D�(� Y�b,�ߠ�HQ`$��"V�p��ɜ��R1�S��(O�T�������� �b'd��P1$pg� H �8CJ|�j��lJθg� 8�0 ΐ8CN��� ΓJpJ�n؍3�vp4���r$C�w.I39W�j��T AN���t�d��s5.��]�M�o*� ȷ�Y*�m� ����0$O�`W#W��}�Sh�9��Ъ�] �U���q�B�K3Va p��)>`7�x\�=H��RE��ąV�6zuk��6����3hU�C��V�*z�3`�9aD���@R��IG��=7b�^kU��  `:<��ѪН@w��!� \Z��$mCt���P@�3h����t�s N'�����|^�$�D�(r6z���8Q��(V~ � ?NG(���EN�o��� �T�qz@��8Q�ǜ��ad|u:�"� H�(�c�ï��"i\�(�������x��q�H��)��mT�Ôr����A�W�(�G�H>� � 3E�*X!���,`�h. X�� ��-���0� �=�n ��,�\��� � 8a�� ��! �ZҀri�X�@���� �P�@����r�A7��� n�� ��F�x�� ��� ��ȄF�>�Ap�`M�%f � \� �F�a2�|�`(d����@ ȄF �ɑ �@&t�F`�y�2��<�F�a2�y����&A� ��}0 n���#�ǩ`0�B<�ApNA̍\B�� ���@: W >�g�*>��u��%���rhC@�������p��'���SU�`Dr��@� �d ��,nx�@ ]^5�C���9�y�g�Jy�AX�0�r�"H��� ��e���P��0O��<�}��6� Z�3��HrC�GN� �'�P?����m�2 ��� �_�P2(C͜�y���r0�uB�����D�"FGD�1@��$�y�X��#6�>@�� D2j_^9W?�}��r��A����î��! � �0��x��K�}���_3�9�����@)��� � nUN��KΎ}��A��g(A����'t~@�� -y�B�} �t0@��%��>`'�� p<�>�8� x �<���`p�N�<!`�`p�3^�����iP��U�#g���6���x} h�+p)���`BC� ֠� �N��>��7L�� �AYQ �L�5 Z�$ �� �����0e�3䀝@ �mP W�C� �A'��0 Vp�_'��A�N�8�R�8��t~�q�`Gh�� 8��#��*� p^��x����7� �t~�� �`�x`�q��x�l� ^�4��7��W0 ��� �d��r�y' �w�ApI�8�kp6@'� 7�W�􁠹 �@:L{P z�i�m�7t�N�^�t��7��M:?8eED܆W@=N�S�9�˖�@ 6�Ux�\��6@5��������h�ah����A��`�Ӑ��h���t~�%�n��B`�N���W@�\���$h�9�\}`(�$�S� P���n��@l��q:�x�N��7!`������5��8��p��6� W�l����B ��� `B5� � ��pq�8� NM�8u r�Gx�j�<���p���#��*�� p�@bZ(l���W6@'�q�x�N��=�+�8��,k����$�8��pf} <��A��̓|���+�áN��ۀ:?`4�� �� ��y`�\���2@~� ��YO� 2&�p�S�`� �8� �Z� ����� ��+��7t~ V�+��@�t~p���2�1 ��A�@Հ&� ��� ����ـ�@� ��� ��j(�� �I� �r� 7��s2@5�8+����2rP z��t�:?�&��Q��� 8X֧�%t���K@�x(߉�>8bpN�$�Ġ�^�8��}hW��@��U������H�? E�r�@:|�� �U|^k v�0;"=a���N��P� =a��5:� @�\��%�C'xP�\E� ��HP���A'p6�|M �@�`G��5:At����2Ep@P'0̇Dv����n ��0 �^Q�N =�+�nP43�AH��_Azx�[\�:��@���A�NpJEW�\@�Np��"x�@�E��C��� ���lJE&�W�\@�N����Q�\=�ɸ׀~�|�*�IjK`w@�+p�F'�@� ����y��e� М phA��`̄=� ^�U��oD<,1;���/`K�Qiv�1�/���k��u�@;"8\���2vādG\�@5:A*�/@K��}Q|�A> B�j W� \��&d �q4R�p��@((V�����0d�����L�@/�����$� ��`&� �0~�� ?H2� ����+X�! ��7P��o�N���*P|��'ABU����0;i���B:�˂ ���D:��C(p�D@Z�"`&� B$�E�L�A�H̄D��@5� ?� A,��X�P`&� B$�E�9�� 9 ���4.�� ����0~!�� �̄D���XB'8�92�r@� �=Fi\�|�� ���%��|P�L ����B:�ˢ ���YB���������cZ ��p�*܈t|�E�e�,��XDps�@1 d��Ma���o@ d�BB��ő�����������!�� @����L���@6t4��ƞ��BT�p�@+^<05X�x`o� ��@x=@�~�Cn�5աtP:CC` �!0��o�T-���>2� K���Lq����� � (/�@��p �� 9�<�`^ {��`�^��@&�� �� �L�(`f�@ɤ��!��P2�D �N�1�u���#clk�1�u����,�U0V[�*�t <�Y� I)(��ړrhO�I9�� @6�F�jO�l��z���y=X\���6��!�u(�M� a�!0<��gx��P <�� %dJ RB6�4A&��E�M( �ބ�@J�M(�L�&� �� ��� � `� 2� ���F '�� ,��p�g��r�10�Dd�.D�j`_��3"�[z��s�S6Π69����}@�.������$P�A9(�����A ����@;!|� ��������qB8g_�f�q��y7 �M�YXB:z= ġ��#6��x=�G&L �����S����j05^σAG2aj�@*!���A,��@|kc � �AB@ $c ���D��x ����@���yh� �~��b ��?<��B'����At@ V?�j�P�j@�#5� ���Q��D6\ ��H 82�-@���N��M��� X���+�e:X�+��8 ������A7@ h�[�,���Y��x&�߻���� �,@���g�{j썙� ���{>`�P��Ц�3@8��,@���g�8d*�u<����P��p�Ea ��*rb �`�(Q��p�e� '=~)�@` �`�(Q�A�"�d� � P,�GI9����.�*�4���`4�g0�ͤp�?�9�8S�G�@3i��4�!�L �٘� ��Z�Q�(A�%�QBJF�Q�dL �� ����=�����@a\b����tX ����@�}�j@�x cW��sc1X� ,0��� T�9�@�)���z�cU��0借�r@ /`'�<�Fhц�|�L�N���9� <�����.��j��P^U�89W#��r}5�F��ʃ\�p5��� ��j(r����P� �� 0ep?(�B�2@z�{�a>����2?�8|�+���}5��m@�` \ �Е�z�8|�p ������}0��>�2G���g�M�0� T�����5���} r�#�ZL }01?&��d��pu���0AZ#���N1G� u��h �z��)��ꔁ�r��Bo9�b���2` v���F��F���� �˼��#� �AS�}U�:* H����T��IT�*�2p5��� ��ym?�����j,��q6ʼ> a?��p��F���l����� `�P�L'��7�Z��u�8��g���b^�+�l �pz� 2a���P(�� � ��_� ������F�4h��R -ZL����.�_�X �@�#��r<Ё��#�d@�<С"(�#�@�@9��10B�N�!]� NF������ �V���`!��H�I`�%�h`��7�yY� �(���2��N8P��2��'8P*�N@&<P���� �H C>�%�@W^��+� ā `B"Ht�$� r]�+� l��7����$HЕrr] t��l�cAW:Om Up���U������$ZAH:AX � �B(p����{8D�*X�F�*d{�aD6T��>�M�`:�� �*�O ����J�M�t� ��cT�� �UvǛ0<0J��=�{���  �u=r/A9��8�!@��H���,� 0{��� �;TVJ�;aO�A�^�`G��@!���@�](`����@ 1T �� ��B�!��3@NZ�� �����u-Z�=�-���5���=�a7��0IR�o$-$ִp[CZ���I��*B���v=Q��.o�@9Љ�����܆!0�C@ą@i���T�C`�!�*)�91�4���C@_��q?C` �4�u�@ ~�+���gC�� p <���Zx%@��{L@��{�H�p�������1���:�D��;j(�� z��4��Px� ��0�dB�� q� d��Y:K��,�!^w����5(%������<�X��`�& ��Mh&�h@��yQ@d4�� 0 E�&4�q �&c�����LA n!� 8�G��~�/��6d�:v��#(��A�kJ����7A�P���m��%�B� �cp|N�����$ c ��1� a�� ��@�����p� �k�\@�vV@��|� �p�� �`�@�n!C@X�'b �50.� ��̠�yV���1�̠ �k��-1\� �0�+0\� ����1�b@u O��1��@pf0 �8�\�����!^�-)�-<����-�%��Ȅ[rK�ąqF&�'qa�ą�AB@ $#%^.�d`žU�h������@-@V�7v��μ�:��"�XtX2@@,(���t0K �������r35��3�jao,��A��ԘjajL�)�^ϒ�S� �"D���BD��PvB�P ��p.ԄL8m-B��G���A�� � `熕C`4 N��&B0P ���HH��:�)�i!`PV~M (+�N��A�ʯ�j�*?�9~�(+�N����(s������9jJ�"�!��~]�q��נ���0B��CD( ���C����@a4��rF#� �8P B��@a�� @'�� d����E�B�+@�@&x�P ��͐ 4�P @+ (�L���L d ��) 7t0�lA� e@��W@~l�L( 7L�c��`�����1���!?š�@~l�(����J�O� 8�$��>ȏ�K��0:� x\�8�W��>p/�_sq����&(��w�#�y�^����������x�h�X�H�8�(tgZ�L�?�2�%�� ����x�h�X�H�8�(����{�n�a�T�G�:�-� xhX�H�8�(������ؗȋ��s�g�[xOhCX7H,8!( text� m���ь!h�!F��� �( ��XD ���T�!@ j�,X � I(#��.bp�6"�� JD�(����'*P �X@��q����x@�6��"�@ސ��FN�/�#88�z� t@���P\�0�*B��#XA��$p� d�O�@;Ƞ@(,��TB��@^��0t2x�!@Al�.0��� ���pA! ��6HAMp�:` "�`�(���&,!Ua�����������Sp P�+j�D�)�F8�8\�&PJP�'�d �(B ���K((qDT#$5@M�l���� �$x� l����\b�B*P�� �������J` -h� a0� �`��@g�40�Wl!!��/�pt��q��� ^�H�'<:0�:�� ��.؂ D�#�BP�G5`Ј*�@e��΀D �(�H� T���B�'Ah #Pp� ����p�\x�@��4a@�E��B�# N��|��bH�"X�! rx�F` �� �� r��'��0P@ ,P�/,��H�8�/� �P�P�H� n � 2��QX�\�"��% @ n�� T�P��'�� $L8 �p�{�� �@��`x` Wp^��G��1h�;��X�(0s��9����BZ��#�� ����� '8�n�9�&�  q�{pc�j2�( L�Lpn�-  � <�0��� \��P��B�A� 0X@7z`"��\`��"��"�����D 2xB7���#`�5+�:TP�@~p@!Dp�p@ !@��V0������P�Q��*�� ��!�� �8Ef�\X�H��� 9����>0��H!�8�� ��Y@@ (�$q�a 8�`��� PF���$��@ >���\�C,A'�)-hK0�dA Wp�6v��<�t�PI"b�4��/���!�@ h��� � &,49CHOTW\bhmry}��������������������� !#,078:@GMT\`fpv{������������������������� %-8?IQ^ckqz{������������������������!*2<FHOV\]`chmqy��������������������������  $&*/38;?ENTZbfmory|������������������������  "()-.27;?DIJNTY_glptw|���������������������������� ',8;?CEKNRWZbelqt{|�����������������������������  #+5=EFINPQWY[akt~�����������������������!$*38;=AIPW`hqy���������������������������      % / 6 ? F L U Z ^ d k r y ~ � � � � � � � � � � � � � � � � � � � � � � �      # ( , . 2 4 7 ; A E J Q U V [ b f i l n o s x { � � � � � � � � � � � � � � � � � � � � � � �     $ + . 3 : ? C H K O V Z ^ d k p v { � � � � � � � � � � � � � � � � � zerozyourselvesyourselfyoursyouryou'veyou'reyou'llyou'dyouyetyesyxwouldn'twouldwouldwonderwon'twithoutwithinwithwishwillingwillwhywhosewhomwholewhoeverwho'swhowhitherwhilewhichwhetherwhereverwhereuponwhereinwherebywhereaswhereafterwhere'swherewheneverwhencewhenwhateverwhat'swhatweren'twerewentwellwelcomewe'vewe'rewe'llwe'dwewaywasn'twaswantswantwvsvizviaveryvariousvaluevuucpusuallyusingusesusefuluseduseusuponupuntountilunlikelyunlessunfortunatelyunderunutwotwicetryingtrytrulytriestriedtowardstowardtooktootogethertothusthruthroughoutthroughthreethoughthosethoroughlythoroughthisthirdthinkthey'vethey'rethey'llthey'dtheythesethereupontheresthereinthereforetherebythereafterthere'stherethencethenthemselvesthemtheirstheirthethatsthat'sthatthanxthanksthankthanthtendstelltakentaket'stsuresupsuchsubstillspecifyingspecifyspecifiedsorrysoonsomewheresomewhatsometimessometimesomethingsomeonesomehowsomebodysomesosixsinceshouldn'tshouldsheshallseveralsevenseriouslyserioussentsensibleselvesselfseenseemsseemingseemedseemseeingseesecondlysecondsayssayingsaysawsamesaidsrightrespectivelyrelativelyregardsregardlessregardingreasonablyreallyrerdratherrqvquitequeqprovidesprobablypresumablypossiblepluspleaseplacedperhapsperparticularlyparticularpownoveralloveroutsideoutourselvesoursouroughtotherwiseothersotherorontoonlyonesoneonceonoldokayokohoftenoffofobviouslyonowherenownovelnothingnotnormallynornoonenonenonnobodynoninenextnewneverthelessneverneitherneedsneednecessarynearlynearndnamelynamenmyselfmymustmuchmostlymostmoreovermoremightmerelymeanwhilemeanmemaybemaymanymainlymltdlookslookinglooklittlelikelylikedlikelet'sletlestlessleastlatterlylatterlaterlatelylastlknownknowsknowkeptkeepskeepkjustjitselfitsit'sit'llit'ditisn'tisinwardintoinsteadinsofarinnerindicatesindicatedindicateindeedincinasmuchinimmediateignoredifiei'vei'mi'lli'dihoweverhowbeithowhopefullyhitherhishimselfhimhiherselfhershereuponhereinherebyhereafterhere'shereherhencehelphellohe'shehavinghaven'thavehasn'thashardlyhappenshadn'thadhgreetingsgottengotgonegoinggoesgogivesgivengettinggetsgetgfurthermorefurtherfromfourforthformerlyformerforfollowsfollowingfollowedfivefirstfifthfewfarfexceptexampleexactlyexeverywhereeverythingeveryoneeverybodyeveryeverevenetcetespeciallyentirelyenoughelsewhereelseeithereightegedueacheduringdownwardsdowndonedon'tdoingdoesn'tdoesdodifferentdidn'tdiddespitedescribeddefinitelydcurrentlycoursecouldn'tcouldcorrespondingcontainscontainingcontainconsideringconsiderconsequentlyconcerningcomescomecomcoclearlychangescertainlycertaincausescausecantcannotcan'tcancamec'sc'moncbybutbriefbothbeyondbetweenbetterbestbesidesbesidebelowbelievebeingbehindbeforehandbeforebeenbecomingbecomesbecomebecausebecamebebawfullyawayavailableatassociatedaskingaskasideasaroundaren'tareappropriateappreciateappearapartanywhereanywaysanywayanythinganyoneanyhowanybodyanyanotherandanamongstamongamalwaysalthoughalsoalreadyalongalonealmostallowsallowallain'tagainstagainafterwardsafteractuallyacrossaccordinglyaccordingaboveaboutablea'sa������5���XM����� ��� Y'�C� �`'X$F�9 ��]-1b�m�=�F��=���i���%����ի�����������wP��t�Nu���c=�W6]G�\CQiת���I_ܫ��g9�)L�L���uM��#�t� {=)GԪ�e_��!P$��W��}$u>�l����G�h<"b�b�^ҙ��<��N��|�-������^Y�O�b?ZY�bQi�bz �|"9���˨勿�G��3$ ����ę�'��$��n8ʃ3�i4"����֐KLalR|/�;ݓ�r�*3C�I�Qۑr�|մȪU�`"�W�$eZ�{�L�錑�4} �v��A��n�+�����H�k�=I&��cb|ߣ>G�K��:���}�k������CibW��30R��Q�$ �:��� �pӏ���ٜ�^�#(��_M~T�ZUg�$��:��P�ISM��@y���Ȩ-����ھ�Kkҝ��A"�0'w�������!���+�"�K�w��᨞�|��q��&�T=&�U�v�H�jjt)�lL�nʪ�Έ5��G�EϽ9�&� ښ 5�Uh�1����ߣ�F�_��G6�;溆�T��?�y� ���T�ˈ:�C��E���H�5K��1�)A2�q�Xܤ�e����I~�V��� �J}��B�3#&��MK��>!���J�訣��oN�R����~����x��[)u�6#g��޷�-[9�қ��P_�|3N"�YF�4Bcy�0����[��s�沧�uܤ��r�V�u�Nv*�d!��"v�]py��o�$��k_���pU�,���S�C&�6�2 ��-N�f%�����R(�$��^�&l�Z����-^y(ͬ�f���[��Hy�ɮ���H��J��~_�S� ���)�T?⼼(6��&Ȯ{ieә�$�MT�F�6.f�FЗIί��zP��w�6�e�� 2ǐ�� �`�7V��{c���]��}�=��7 ~��\�wsy� �0�Ɂ!��s�!~P� ����U�Q�vS}�P����~�-�l��BA��!+�khK����������,�NVm%3O�u��z����0�4&��;�aa���#]�nYڑ�oX�d�]�`�d�0c}�����u�� ;hj���Dj}�1�֬l�ߢa�ne�M2u� {-l�R�x�@ ����z���բ���'K@Y���8��~�����&wT��ZG�k�Ҡ���x)�7�BMκtU'���rr�����&0J�s�0�K�l��a]v�(ڐ��-st'Û�l+� �,���v�-7��]��2�CR���L5 Gʱ0b�B�Y#`�gt�������]ay���߭ŚhdK �E+��m��_��5�(���Z�n���ϧ�nPP$%v����8����vv��0$GҬIw����y�~�̐�d�R4[4l��9s�߹�~p�?��==�,��*˅ٺ��NEa2���Vy��I\����\S )�&���V�,k� YU�Ne��R�b���R8S(�8e�He)25ץ�Ri+� d-�Z�+!�B�CQ����p���gKi���r��rQ/�z4�x�W�p�u@�d+�T��FEW4����M4�-�ѽ�����0��9V���C��jɃI�b,�D0���s�]Rdz>WV��J��"e�}O�6��aف�&ҩI'�N!�6 b̔�U�ڊ+ �D��C��ց? .w�x��`� ˣ����v���43fc���a��!Ƶ;F�x���f��8C"�7ر)�o���f��2; b:&�}>��4ΖډH�Ȇ�0�MP�h{���W@���2j�y��ɴL���X���Pܫ�Id���_��uPu�)�d�'=7��� �(�p�-�g|��c�J�6�`��4~�+�IO���;�#:���P��`mM*Tp��<��� Mx4W0��P�4o�sl���u���B+]/Y�RA �~!K&T��x7�s�T�k�}G� v$d�� ��K'd-k�O���q"�%�C4Q࿲j� ��P�"�.�6S�Qy�ӟ^3���A;B~S�q�x��q�{H���J�e(be����\���]��| �:� ,���4]�B�q��R�U�+$ �Bbz���r!)����|Z�P�� �B24�F������2���s�YW �Bܒz+�Nt��P��Վ�l�I;m6&��!E��M�0��| �$��:"1�� �����P1�b��3��l�B��ħ���9fj�I8V����m`� �s�Ngu|�W��@9��F[��l �AG��|�W%��WIc%/Ā�`�^h�M*,�����)�0�/сd�y�\�K�/�$��s7sZ� ���ʚeM*>�k�AC eo�쑀3 �h���!�,�  ��,�+�dK�u�����"2��j��8Bt ]lT5����E5�r��8�?��8�xh��/}��li� �c�A^f]��Ei���"��N�MCrj����3E��������z� <��� 3bG�>iJ��v�LM����M��=\r"���)���ha%)����࿏��M~G��o��|�Y);or8�sT�Ng I� �Y�t���di��ԢvN�+����?üeWIz�{����.8��mQa�x�*��U8\��m s��c_vUR����Cp��z\���M���oYY��#p���`���0By�аg�F����)�ˆî���G� Wcm��&��0�j5űIɺL}�1L��P�m����Մ��� j��D QY�Ųơ+h�(��Qc���֫jb)� ^6�F�nx�{v���^��/����gߣ=x{v+�z��"/_�;����ېI�S79{��;� ����DY�5|w �4��.I��i�U(�x�����i����F��-~!���&,�њ��/�G�}~|(��n�Da�� �o����}와nn��2� ~��Û�?������lA�N�N�'~�։2FB����a-�J�)\�D�B�M��x�/�S�@��l�x��nb�ױ��҄m����Z��@�����G���c���뜄 �Ӧ��#��gd�Dk�p�]�<��O��7:����s����=������m+-,�K��jPX��m' ��G���un��(\Sn*�~��H��>��9�5��%a����iS�l�7�*����6qs��av�2_;�19��1�<��2?�yuJ�q�{�֑K_��@��$�t�ǒ�(pp0�3 �p~���D��Dc�����ꙠCy����F�����i[)S��A���Knc� DV�}�� ��Hp��P;%_��7�㩆x�j為Р�=�wQQ́�<^i������Lϙ �n�2�dMŕ��c0'�r��.ث(�3[�<�=r�M �Ǫi��*tʹf�������=����)���� ��0~{x�''�����9�,�i�җS�b!�N��Hh�ܒz��|��[J*���D�?�)i�t<���Ux�@�� ��g_b��x'��0��_:��aB{>a��[D�Mj��7��9�e�p��IF_��<�C@���8���o�z�L�]���GQ �ڹ� V�aآs۸�@h�����^��������U('@�$T�'k�������C���$�Ħ��C���P����:g�nJ�`�>�P�B���i�REF!�o� G���V � �YsjC���L��#��_1�驆{��5� �m�\���6e 7)�fǀ�R�܆ N�.�<#��,(�\��G��ɿOբ?� d]F�˨wɡ�� �em�z���6��Ō��x���U��'�G#�锡�'2���JH>���h�h�E������J�O�����{;q���_�g����y��Ȫ�~D;w��˵\2a�C����+\|�PN���|q��\��< c��Wd4����m����� ���4q��rƧ�����:����!%>u���tF#?Z�`�p$@��2�+�p���Dq����vR�֔�����|w���n�$~g���@�W� [-�4���#�[� >�xo5�?���퉴��g�N��xȒL?u�����hs(NFB���sԅ��h����x�t�~ح�4K8���1��1�n{�&o��7��.�9s���8.9��+�_F厦k����C�}���s햽k,��b�ƨ�� <��'9ƫ�~>�s��(x #X�0-�l��,�K�t�$�s :�f�B>88����%��0 � ��;)�dR��P��5ݡ��I=�Q����R&�)S��(�x�����=*�m!?�M;� ��:du�˝��f���m1��@/8�@�IR���R�۠���Mh�핢�x�5� 7c���Ƹ���ђ��ӏ5�[O��*�b�Ȼ.�Er�I#n$^8Ʉ'9-�&4ư�?NGބ�(�0�NϹ�m'�|OB�T�NIy�_9���?'�n�׎}+�uH2�� �SA�����Iݦ�h��("ߘA1��ʻÁ��U�o�f�ή-�z��?.޻f��^$C������ޑ�"1N�6��w1T1mu]a�v ��_:����ҷn��a�w���N9���爚Q@�B�����Z�%B5|�f��$��� ����T�D�wચ�꒾���_T�ܧ�a�\��X��dd�om��t����>� �G����j ��(� ����Y]o�}ׯ`܇�Q���M� ��A\4�bw�mG�̰�DE�ɽ���x���oE�i楝?�G�t��������5NM��}W�锐�=*�i��AZ~�� �R��V�I[��u�?W!�d[ �кQ�����_-|*����X��tc.��kq��������N�\la�8��{H0����U%�Q����8�]>�c�}�SQ=�~ݫr�{R�AY^�I ~Ԉ�G�V�h�g����z�]0R�)>+>����C�s�Dl��sN5�SՅ��ִ��+�(k��W���! C[�ӑ����l'A���{�(X�{!��7j��A��^�5�a��v���Q�C# �/{$[=��w-�^��E��H��VX\��74���oTA�z%��'c;��s�U1@����YSfV��2`� ����B:�k��J9�7�U�����HN��$Z��/c!��§�.S�e;N�u�@���kU� r"��ʑ.�V7$�A�#�n�������ő�%!�5���sl�˾B�,9��nM�Q�J7PHEmJId��;���P5����<�9�1OpTo��ݟ��e���l��x��ǩ�B�� EN��Ҭ������ d��#�RHu�L>�b�φ�Ua����mk���Q�&��:�<ƨ�^�f���(�G�E$މo��1�哜eP]+G3 �v�jR�²U�K8À��N%� le��m�%��^(�0R��S�o=��zd���,�gٖ��ϕv�\�1�8e*��b�: i�`����ߊߗ��xF���}�m+�1��e����(*y;�:\�8�(����@���z�;R��4�'�臶�� ��) �����% ��d�)�>�Um)��2X'�Zs��$/���ߨ�9S��(��c��@�M緱�$Tu���eU1Vx\��8��6��KI��Ry��mE<�i2���*�h�#�K;q̭`|$ �־�-�+'�T "�u��&�I�ǐ��,���} �����O��e�Q��#OiF: 'BHi��bBB*ܻ���B�HTI��n�0�_�t+sy��:�Z��2CK`=u��a��ډ�[JI�9�U�R.��K晟��'�$lD/��T�8u����"{�Ȱ}���? F $��o��\�e��5��� C�T$�:J�G�������%��x5u��G冷�:̐����e@��R} 0���^���5fT_`s��g,��A¦�E����'�s��J��*��_�����-~���+g n�z���-3�d��C��;�afwdu�4d�a�1|'�#t������"�_�K�5߱$Sȇ�`���eԧ���/�%��n��0 � �|H���ޣX4�Px�4*�j�y��5t�i7ʼn�j�"���>�������h ݝ���,�Wi$�{�� �\��Ž���6�,Lt�b�.�����'N�V���T��a��q~p�d��i(�����������Q��k�0�J��\ XCUH�FL�GOr�uX�?����Mh��8�@M�j���,���4{��{;���� �^������Ʒ�-�U��u��!B:��5�NA���U��%-�#�����v�,��W�"5�����"�4_��e���{*� b͔Ͽ�솾�W v&T~V�C�����bc�7`��A~�,\�,��_2���Ȯ��km�W꺄_��lM=��o�w���(z�rf|�̃�t=�;�8��j�Z��~�����T@�Iw@��M��m�bc��/��wC��v���XMo�6��W���v�Q��:M� �@km�$0 �����)Q!�]���o�ԗ�\��]rf�7o� �ƿ��\���V�f�"XQ:%���:�^u��A:- ��Ѝ��{ۼ/�^9%�8ʞ,� �k�ygl!�h+On�k��;�y���iU�qe��;|�8h�yv-��m���P�W�-���r�S�-�������.������NTXkl�A��gy�g��_ŵmT�Uj �:\]�5�V��L�Go�t�����2�e���8��uMе���ug'W2�B�k�{���U�;`����)��M%�.��ֺ��]����H�n�E2� ��(���E��}��G��wZ�U���Fu: E����*dy�����)l�T��R>�Z�{�t��T8�g)��Bm-q�{�kj�!z6H �ֈ��}f���¨������ț��a���*:�z,m � �6y&n^&NA�󸗁��Y�F[>j�Cd�mL���~�rb�� rcY�Ҷ�ݸ;��D)�I-�,FpB�\7F�@�����?��̶/;#�o��Pg�-[>��u�|u���&�HX��t#�"�n拋���`�E���f�쨑�&���^!�@�<{�.��������O�‹o�E��~�U�g�Z�tC��r g ���6o��(m$���'�G��b�}Ay�βk��N^�\ �z���u��~9�g��=�C$Ձ�AA<ߵ����Q��p���X��9ef�"B ���Z]S�����A֭��Gx2%;Ie ��N4<�#��\���7eUM'�T �q��q�ä*�[�^�K9�y��L�g 0).��Ӡ��=X"1^c�W��W%���%u �)W.������eϗFSZql�FJO��V=m��-+��C�%PKI0J�Gm�t*�%���o���0n8jԓ�mԣ�'��-��e�(���<�\v��!̜Z��a("*��.�Kg��(�x���4�Z����҃[:�Eؖ8S��{ۙj�$���eR|p�f�J�p� U����;��L�`7�V�x�s�!� �8:����XY�q:I�G�P����(hD� ������h!�"[�L�-Q;�F;8�zM*ɸL�1�[� 0�@wH� }�:>a����B���:[�M5�b"Pv�>J�g���!y6 Sɷ {t ϙ��#�#��q��vg��y�7�J��6]v1nҒ�Ԫ�Y <���S��fVt��-��h��|v�8���2��(��"y��7���`9'��?���C�k�+tSE�˘ �l� ��N�=bVٰr�2�K8��p�3&5 ��4K':@f:���:��߈ui;Hs0��C\Pmнi�R��(��/��>�(ǻ�\T6���6���2:ɳW�Ok:**c���v�F��)2;�c�B��BS��߼�*���-�!�g�s���BH���Ni� �ng����xC � ���������D�,�Y��8�KN�Bd������8eˑ���T���J���T. ��~�XT��AH��P!ut� �.�0 ���[c�8h����Y����(->e�x�c��3����87��4�2���*� NS|k��rX�����"V��G@�"D�ξ���q�����A�A�X���f�4�7$��Կ�k r��#E�E��2p���$&���������&�[� x Ak!٨�)���qi���2���g��2�� M�i�\(��0)!�=�Esy;~۶��A��h��?� &g�aί�a����&C��=� '޼�o�p��v�>���Xm�����_�q��I N��� �9;=�q HMZ�Ò��#���R:�C~{��%)�K�$rw^�yfƯ��뫏�ͯ���Jݩ+���T{T�JGA���+�U��������9*��=9ol�J�g�>P��n�ze�޺���{!�n�UcnI��Tm}�tK����nUE{jl�.� g�� �ēc}_T�����w�)�:(�{Uh��!��v��Nzu&6���u��ϕ�Оf��9������Qo� ���5�g�T���,�t��i���}���CS��&O���ڪ��%Fp����>�Fϊ���]r����n��(0��6{�۰C�N���4N�C��MO�\=S[ӐĢ��x��C�Jw�U���)1�K���lcw��;u��87VU�i��96ⶃN�%��u@��pgg�.��i}��]�oţ� �$;���9�T��+���lM��p����|X�J�C�{��F]~���柎�f<�e����h�g=Yr�x��e*���m�.*��޶�q��U�̡&��~�u� @ LS�v�J��xz���:NIY�8.'�Kgz���6é����YPN"�3`L�H�.)K���W�W�n��v& �w˂�옅�dk�߽b0e���#����q��P�H�3�:���>G���\5�k�tbq��_�j5 �� �r ��L]x��S�|%� ��a^P��1f?r���t�{� �9Ά��X��V���L�B�%+k�(�NcKƦ:3eP&<��撍Jk�cX<��t.☢Oc/����"[�������Cm�������8��h��Ux���#~u6p�G�0 2�Yq��g�zZ-�Ӏ �Ow!K6 ��fs��z� �%M_U5�!�矀�d��3HGB�_�9���R*m����/_|όy`x����J���(l�ۡ�Q^6���Y&� ��|�E��o��ә�ġ�$NW}`_Gx���a@ڹ�) }�������]�;*��u�>a�D�%&f8Cq� u���I��6�F��|�Kگq�&:u39�D�=��v��a2�c�C�Q���P�iZM���L~�I�M|�E��^��eN�k��R�&������s�_E[@���%r�prtJn0���z�~`N�rY�B:A3�c�0�,e��;��L�O�&�x�|�U^�.�`&��⟛�W�y��5WD���U_�o��Aֽ��)���I��b��w����$���X�����;�j��}�RY�t��9iU���$�րe% �syâ������Ubf �=*���d2�0?�ҲvǹCj=�O�� ddг����MW6C%���#S9ڂ��M㰲LV��]�t�����^q ���1�����������b������$�ll�Mv��,��[���U��L���N?��܎~M�@+Ǯ1�'�� �$LG F�t��?�"e��{`WG��R�d�r<ܚ�=�i��h³����y:�G�S�H��������62��rZ�xK��'���b1��z^�Z � ̆h�Q���P��r�$�Wd\ �/[U kos�r�L7�6>]��c�g/���}E��{�D4�f�-��67��m�2���l��Q\�8�q��B80E����$s����&uy� v��,� �D��Ė|��~��j��b��6F�Ȏ �� 3��U�#� �t:�����W]o�6}ׯ�Mb��>�d�S�;M���> �i��DjIʎ���{)�r�n 4O�L��s�=�!��������������.���D� O�F�h"YG�C���D�ƺՔ<�ڐo4����I�����3/�V����M��;mBL�i�� ^�}���5-��~���~Y�W��Mӑ�t�^�wT����Aj�bC)��$����w�1�x����]��&:��M�v�y�K���IEj��,84Em��F��oo\�мK�:8���Q��6H��o��$�L�ݮϭ��d��"Ǎ��~zD���Ѹ�ӭ!U#<#�w�F.�u�Z��PEX�}cVt�mU���t�~s��V��Ɨ�ƣ�itu� �Zk�H��;C�k��Sk.+���1hϧ�~�>����SmW�Q�xBQ��yT9xw�ѠC|��n� K,#E�� ��9� <�5J>�@�R�zD�MFZY���5��A`d�4��q�=�"v9�T\j����m�p�\��Jq\�jF��i�a���̕9X�s�:�hl&g �d�p ����V}L��5�t��>p�6Zǽژ,�W�'%-���N�[�5���!E{��i��7̖�;6���m��u�-L�����-ۏ���b��&� )P��U����~rB\#N=J7�>@g�B���-�z(���� �����ٴ@bJ�������oS1 c����?j�ǿz*�`[�N��`€�F �`9��B2�C �Hɻ�@�<� ��i|�(�GZ, y��4�2�����qF��"�f���� �����'�D3�o�\6zQ5`�zf��=)�K������j���n����r���x���./��B�z�:��}ڠO��D5�(��S/,7�����w��'�^n�ɦ�J*af���|��BG�nj�d����c�`�r�5<��/'�� P\��1�*�>����W��k, ��q�w���X��i4���������3./�q�z��B ��y߻�X� � ;�V�����N�S�j�Ʉ��0�q�:� �M��]�G����-f�L:?R�l!�V#�x�`��IN�΢�G} ლoiWU9Kg�G��<��&t�����C�S�@���1_f��oP������� nTi�"X�4����wdc{s�ᩣ�zTs��,}j;?��Wʎ�缻Q�>�J���^��V�'��0��(� ��a�I+l���c>gLŲ�����vq��K`���X�n#�}��(,����")�4��,bX�,��@X,�3MN[���t�H�)�/ȧ8?�S�=���@��Dq��NU�:U�_�o��}��#�X��x ��4YG�Nٵ�Uo�`�%c��>����诺�64{�'TtE�7v=� e+2��S��Gr��Z�w���iMz���"�����"[unC�l4��B���,��J��0/2�kzC���;Z��v�2�M��1�}Mo���G���kmgl��>d�p�M0�� F�$_;��9�N��C���Fãq���_� ��H"C��ր��&xR����V��O��K�'��l>�Ͼ�^_�9�Y1���'_�g7�����4;B�;z���i�/#Fw����{��p�}_֤h�i�d9��5Zu���$�kkc��|N?��Dc5m�^7�<��E���@E��IoB-���%�|Go���KW��e���\�;z���9(���2B�"{[k@(2z�"6��;�b�l�9b������\P)���١��G��a�����5���E���|��ۖY?-�,�t{}�4a��[z�}�qA����5����E��������p�k�}s5�&�8��R#��9[��W7�9Fy�e��6�V�^�n ̊�3h�ً��6d��2�}�{�e6���;?����"��A��AUи��9�����Y�JE(�ơG�E-h�Ki(�[p��/�ђυ��|Y�#k��� �s0�w�f{�J��Y})�WrS�������1�<��.���R�L,Aw�qp4$Flx>����'��U�j�9�l��Gn����M����:ps�m��:�1a_��?�!Ng�~v�:%���ݖ*3$����M��;�Q7MΕ�Gj[�,�%��13�)�C �$l:�'_�:�i�Ѻ����F����#X��yΥװ/Ӗ �U=u-rm������x&K��V�� `!y���F��F� :Yk bA�zHQ ��I�����oO�����?y=+n���ښ��q� ���\��֔2f'�T���tZ�M1� ʘ�8�_�h�~Æx�5�=�w���H,!Z���r�ᎪI�sN0>�8��I�!iXUJ^x��(Q�����������f[N���\ �f�,������1p�A��%*uh�] iU<��Y������<�#�!A�t4U���\!��K�aA��Ɣ@�Y�2��7X}{��T�D�"Qxp��FR/�֒����I# ��l/��hg~&����F�g�t�Kީf�pB%���m���5i;�Bd����=j��N[��2��{��"�_�����uFc�S?����RƂ��O/�`�뫸^�G��`l;n�;5�e�B��M��=j��(�[8�h9��Q��0BN��N���$@��Qk�,��x�d�����mp�ҋ[ ��`�嵀MOO[K�x�ȾG��.) Y焅I�!Yg9����,�s�=�K*e���co�G��ў�8��E _���}�]�o�9�7����n�Z�Ų��:hf��5�>Jxt,ucp:?=)�!�\ט�F��c��'�>t\�W��+n�8>� �B�����aC���c~c����VhUULTjbB��� ����㾞���F�����|)F��K���/��ń_;L\Z�z�?NL���X�<~�W+��v0����Rڐ7�N�ͦ��ؤ'������\�Q{&�̬H|����B���_���u੪8?9ξ�d������$��b�p�Q*�ORc�E��rE|��6�s� Ntc���lE�e�*�4bL��Z��gk�sb���%-m_LY.��@J�I�M$����2�Z��� �%���  P� E_��/UR�` C#���Zms��~��/S�Dّ�j��؞h���Zi���P�H"��p��_�g/��d+q;��E����Ͼ��1��_�}w�A������lJi�b�n�m�V���`���R���;Z7J���(�j��B\a7 +Rl�w��`� �t#����ɪ^V�(�����챺U�`5��R���u��+]Ȫ��Ņ���n�N��S��h&VCS�1���'��(���^�*�M�), m�Y��8�䵪̌��'��Mұ��J����YZ����B���Vݨ~.�j�!�!���hsޓ��� ]�+cT���0m��nZ� �-~��}�����ES��s�L���ZAj��%��V���+h�yN ��"�z&D�6��PU�FV�2��у;?���w�=��Ƀ;�>�#�����2�>l�v������4X��疭bh��^��H�"��KY�J��;L_����u��ū^FM�P�d�&\[��n � >��mVz=����nD�� *-�&��U�����w�QI.<� 4I@ຖ�����$��h����5�������K�Z��Z�] ���PI�)����y%�me���c����i�8��,�g�i������_�"������������Y� �Lj!�x�p���'��^��z5��ǩr��IȁTUV1{���+9Tv�BJ���lR�.?Ե�w�F�-l _\+X��5HP��� Ww�s~�Z�Җ8%�����j؏�����:�ZAl..Vb���s׃�D��G�]`�Y�w�p=yv"��Y�FV���6�����̕�J��eaf9c��2̆;!J���e���]'�S��@�؅}������o-sbӥ�oO3���^��曶Sx! 4C}� �: ��<��n _�J��*]k���~���\�H:=�0�V���>�s��3���Ҫ*���X�Ԝ`����� ��L�]��`0\�ue���08���p.N���S������m�*�d�ŧf�>���FU�y�%�:i���3q,�)����qk\Q�3Y���UX�9ϳ���Ŧ�v�0ߴUɞ����_�:�W��ܥ�d�ځ��,�n�{c�Y�R��S�w_ om <�[���+�%��\��V�%��X ��Ȫ�K��!��+ݬ����°��F���V���W�]��� ZM�� >��m?��ˍ��D\��\6�K �tAuSh��]���Q���7�^&� ��T\J����!CN!�`�Ɏ�/D�����'�ZÄ �`�����އ��_]D�@{o5��w��C$0;Q �R�IP��64�3�p�')[Q��$����#��sq����s���u�, � �CR�FR�H�@�*��e 3ģ�B)�=?�i s�m9�,s�>�s���t���7 �R�����ǝ��DeE�?�L�g��h�ùx��� ���b�{��j�W�se*���!x�Q\�J���G��M�#L�%W�5 _F-�Ȑս�TI���vbAi�s;�3+�mM ��ۏ��n=E��rn �;������a�U|T9�q"�Ÿe� C�'���:�Q��������hI&U���T3|~ێm �o���ё�JŽ���s�[�]M�$7U�=y���U���})�`��D ��x�8Y�� ��M5����P�6�iq洊:�N������6n � ��8��r�w %�w�Ǵ�p�7����۩��+�+�֐p�ɑ�!¸vg��-�x����;�/=�Z�(��*��~j^��S� 1�G~ �j��tQ���uɢG���������xE�b�A�߱zR�}�\���X���;8��Z��0m���\Ag�դl�햦�?Ɯ4����ZQ�C��E�X�ҵdN_��4F�y�'���wx��� ��Ou����� �(�V���T4�H�+"Y�z��䯛u�ž��j$j�g��I-�d�Gu(�N�nnThH*���Ѹ���3W*糑!�+U���\��4H���hO����j������g����r[��YS[2E��ę^�̑��T$�zt�#P�d�����;�i�E̚ĝ���#�����M��qgZ@*Xɗ ��ԪL�>��R���ؑ,��E�M{f�me�u�E��@;�� ��rą��6�F�9Gf�Q��G� ��f=��ɒ��-˃ ��OJn����,v�&Lz[�O���_�~H�r�C"{C�,���=�݁����Í.�Ӻjon2�Fr#��0��o����*�n�v��*�|���-���NE�t��U���"��2*?�WY:��4?�o�M����8�/���1$𼘦r�������T?��a���P�rn�wS��&:?���鳳=�����N>����� ��`n��k85O2&�A��K�â�*>R ���?<Ɓ�)�/[��^�s����D ������Ż���2�h�N��(bz�Oz�A��$ z�c�eD�lhH3��Z�Q�M|d%2_M=��V��QN�Cj�1�o=P��ü�6r��PY�}���y'��BdO���M�|>L}�J'҃� =�<*�nd�[X��@��������Ҥz���,�f`|��K|zU�;�75[ɼ�$| ��+���3�3��vw�ժ�@��� $����j��;�m�'�N�m�pi!��V��\G@�ϲ�<�Z9 � �M5.i��x��خ��I}HR�&���2�c�0N�cf��!K�Hk�Lڽ�8�ݍ1OB��nR�������U���uR��$A�:��� ��{7s��@�u�U�/�O*C*�p_Jv���C���~� �I� ��sT����.a����U�����x�_+��+�.cm�^�3���������a߯��W�X&��� .�ё�+?�b�;3B`}�FKߙM��?�j�x�#'s�1H��M�-m[P:��FM�H4���T������y���(q4je����n�kd�Y��Fh�h_����0�L�l��{}9} 7)��|�H*��u�0Ǧ��f �Sh9������W����}d�����}Tv�i�݄|o@�_L�¼�ݮ��#�,N�� 3�� IJ"{��/U����^�9���| C�}3���F�\�����Y2�)G�NB�?�s*�Cn��Ȣ���wcGNs�g�Q�����L�AU���+��G���W�%(0ߜ�����B�C#� ����X�n�F�ϧ8� 0�h�M T�R�.`u���׫�ȑ41Erɡ%E�}�33���E�+�53�~�8o�w�g�.n�c��H�"�(��Y*SM"ɡT%��>�&K��(�D�J�U���92�����VYA��ʴTv�>P!�*����ɒ�j�K0;�H )�mĝ$�މ3:� ]dIB[P�R��ҵ�& ֡T����h�#M_�R�N@3�4T�(�N$��X�K�����!-e$�(d�4�4�B ��WJK�@¨c��^�8n�,����ި����v :/!=�v���H��*���$�-�;�()[��(��i]�.�>�];Q�&� ]F+��$ �� `ϲZ�eLj�' ia,�Dݸv+n�w�P��NPFq��F���vmh+�8@p�zE`M������,�j��a��V��6�v$�Y�C��Ol����zSR"�,yTŽr+�(eIH +�HW��z/�vR���R�'��&1��`p���h��}��s���e)��G��4cY>Aܪ&7g��1 ��Ԟ�O� R�� �!M��1e�Rw��=��Ʉl��2�'�l�v�,��iiւ�OU�s������lK5���z/�<љi�+����δ�2����]�)�f�~��w؜��R��+�(c��Mirs���R���n�d봓�\L&o��p#zr �f�3+bd���ǧ��Cy��N�cXV[Hh�� ��v��־i�%YvKp�Y�u��;'��-� �"= �%��i �ʀ~z ��a�,L�hʮZrr��P�Z��pJ�V0Ǐ�_�w����ڔ�=[Z��i� +�T����B�7�K�+�1TE��l؇���ݷA����b�b"]��D"m��3���Njà�ħ�g'� ��M9�V�1�+�.�(>B~f��r� e{��rY;�o|8�㜐Gܒ��^���h��j�c�+���)F���A?fA�h7�Z"1�C�l�Y�OM��|*�<�;4ܰ�C;��M�]+@�oxΰ�=��w�i�*�����4��;�+����:d|Za, b:S�˜F3��[)R���^���}�ۥ����ޘHSiH�U����n�,%0���'�2��o�Χ'��Nݪ\�b¬X��fr.��/j`�}�O����=�e�VH�*���W[�����Û�)[��� ���z��"� � ��,�B��<:�y�� x��t�ŪbܰX0� ug���~[� D��^� �����~QS-��� �ZbWnߑTa�4�b�y�8���x2�_�&��n�ۢB* `5��3�La����@����Yα�!/����k�M�X��'�*�X���*xM����K��v�Nf��SBd���v�0��rV�a������ M�Z,\��X�f�O����}UA� ����hr�����Lo�6�p�H˸����T�z�o�4ݨU[�0-��i��ك�k��'@��K)�hcu���-���*ν�p1���Q�JL�j7�o�&r�#� {q��w>�Վ���)�5 �m����� ����ty= h Y6�O���Xۋx7�]�4�p?t�=�� �F�����'k0�/'� �z���X�J���B�a�K����'"�&n eFY~���WK٨Z�&� f3�y��n0�՜~A[���9e1Q`1�좨� 1��l�I�I��<5VZ��vi�쨧�Ȟ�4p��q�t������2x-���C�}��B���z�y�.��&!��?e�CC�(6v�G2o�Tg�'�������jto28����d�3�dq���9�9n��Ы�;!����R����2�D� �o`�v��<��J��F��B�pb7��ΰ�X�{�_4.J�;�:�?���I�*���0�DzR47���m~�����EV��<Ɂ�(A�eD�?�A�%S��j&��Z`t>k��ǸC��m�<|�7�7���d_�.�e�� ��ɒx�� �]��P-�p�2tq�v*���x�GX�8��LpˈL� �A'��c��8gW$s\B~�GQd��Ό�!����*g>�q��q_�ᖅo(c�ن�Ut���r�������{���N��̶EhVk[��|��;�:��D�k�?�����u)�k؛�������nw1�1�PO>P�yǷ��V 0� ̑��c��MMΛs}k1��=��<��b,��~j_y��\�Z�JBzU ������w�ЯC事>��3�)�g]�2�;��k~�3�W� KӞ0����� ��o�����9���s֩v�{N���Jq�������a<�YiQou+��'č�� ھRq%�d��6����i���ڳ*ߨ���8�W((-+����/{Nv�b���z���##zN��HW�$q)������ۓ��s�Jx�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������W�R�[ ������� �� !�+ /1S8�:�AEߺ��:O�Q�V#\>_�a�dag�i�nSt|vMy3z{�����X��� ���C�'�C�Ͼ-����z���,������������� ������<"n/�3u4�9�@fCCE�L�P8Z]�^2e�i�n�v:x�{�}j������q���q�ٜԟ�U�����uJ��z�����,�)�P�=�(���������z��+���n������������p���)+�,�8�<�>=A�J�M6R�X8]�^�f�j~uv����|�}������Vj���� �j���i��������:����p�����. ���qz!�#F.-6�A�CaL�PlUW~[�_�gh����n�q�s�x�}��B�w� ��6�/�g�]��M�������� ���F�U������W���� !2>96�5 ��5 �67d* � d*��� �� *�� t Cu *� %{������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[INST] Javascript equivalent of Python's zip function Is there a javascript equivalent of Python's zip function? That is, given two arrays of equal lengths create an array of pairs. For instance, if I have three arrays that look like this: var array1 = [1, 2, 3]; var array2 = ['a','b','c']; var array3 = [4, 5, 6]; The output array should be: var output array:[[1,'a',4], [2,'b',5], [3,'c',6]] [/INST] 2016 update: Here's a snazzier Ecmascript 6 version: zip= rows=>rows[0].map((_,c)=>rows.map(row=>row[c])) Illustration: > zip([['row0col0', 'row0col1', 'row0col2'], ['row1col0', 'row1col1', 'row1col2']]); [["row0col0","row1col0"], ["row0col1","row1col1"], ["row0col2","row1col2"]] (and FizzyTea points out that ES6 has variadic argument syntax, so the following will act like python, but see below for disclaimer... this will not be its own inverse so zip(zip(x)) will not equal x:) > zip = (...rows) => [...rows[0]].map((_,c) => rows.map(row => row[c])) > zip( ['row0col0', 'row0col1', 'row0col2'] , ['row1col0', 'row1col1', 'row1col2'] ); // note zip(row0,row1), not zip(matrix) same answer as above Here's a oneliner: function zip(arrays) { return arrays[0].map(function(_,i){ return arrays.map(function(array){return array[i]}) }); } // > zip([[1,2],[11,22],[111,222]]) // [[1,11,111],[2,22,222]]] // If you believe the following is a valid return value: // > zip([]) // [] // then you can special-case it, or just do // return arrays.length==0 ? [] : arrays[0].map(...) The above assumes that the arrays are of equal size, as they should be. It also assumes you pass in a single list of lists argument, unlike Python's version where the argument list is variadic. If you want all of these "features", see below. It takes just about 2 extra lines of code. The following will mimic Python's zip behavior on edge cases where the arrays are not of equal size, silently pretending the longer parts of arrays don't exist: function zip() { var args = [].slice.call(arguments); var shortest = args.length==0 ? [] : args.reduce(function(a,b){ return a.length zip([1,2],[11,22],[111,222,333]) // [[1,11,111],[2,22,222]]] // > zip() // [] This will mimic Python's itertools.zip_longest behavior, inserting undefined where arrays are not defined: function zip() { var args = [].slice.call(arguments); var longest = args.reduce(function(a,b){ return a.length>b.length ? a : b }, []); return longest.map(function(_,i){ return args.map(function(array){return array[i]}) }); } // > zip([1,2],[11,22],[111,222,333]) // [[1,11,111],[2,22,222],[null,null,333]] // > zip() // [] If you use these last two version (variadic aka. multiple-argument versions), then zip is no longer its own inverse. To mimic the zip(*[...]) idiom from Python, you will need to do zip.apply(this, [...]) when you want to invert the zip function or if you want to similarly have a variable number of lists as input. addendum: To make this handle any iterable (e.g. in Python you can use zip on strings, ranges, map objects, etc.), you could define the following: function iterView(iterable) { // returns an array equivalent to the iterable } However if you write zip in the following way, even that won't be necessary: function zip(arrays) { return Array.apply(null,Array(arrays[0].length)).map(function(_,i){ return arrays.map(function(array){return array[i]}) }); } Demo: > JSON.stringify( zip(['abcde',[1,2,3,4,5]]) ) [["a",1],["b",2],["c",3],["d",4],["e",5]] (Or you could use a range(...) Python-style function if you've written one already. Eventually you will be able to use ECMAScript array comprehensions or generators.) [INST] How to convert a Python datetime object to seconds Apologies for the simple question... I'm new to Python... I have searched around and nothing seems to be working. I have a bunch of datetime objects and I want to calculate the number of seconds since a fixed time in the past for each one (for example since January 1, 1970). import datetime t = datetime.datetime(2009, 10, 21, 0, 0) This seems to be only differentiating between dates that have different days: t.toordinal() Any help is much appreciated. [/INST] For the special date of January 1, 1970 there are multiple options. For any other starting date you need to get the difference between the two dates in seconds. Subtracting two dates gives a timedelta object, which as of Python 2.7 has a total_seconds() function. >>> (t-datetime.datetime(1970,1,1)).total_seconds() 1256083200.0 The starting date is usually specified in UTC, so for proper results the datetime you feed into this formula should be in UTC as well. If your datetime isn't in UTC already, you'll need to convert it before you use it, or attach a tzinfo class that has the proper offset. As noted in the comments, if you have a tzinfo attached to your datetime then you'll need one on the starting date as well or the subtraction will fail; for the example above I would add tzinfo=pytz.utc if using Python 2 or tzinfo=timezone.utc if using Python 3. [INST] Sphinx autodoc is not automatic enough I'm trying to use Sphinx to document a 5,000+ line project in Python. It has about 7 base modules. As far as I know, In order to use autodoc I need to write code like this for each file in my project: .. automodule:: mods.set.tests :members: :show-inheritance: This is way too tedious because I have many files. It would be much easier if I could just specify that I wanted the 'mods' package to be documented. Sphinx could then recursively go through the package and make a page for each submodule. Is there a feature like this? If not I could write a script to make all the .rst files, but that would take up a lot of time. [/INST] You can check this script that I've made. I think it can help you. This script parses a directory tree looking for python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index. UPDATE This script is now part of Sphinx 1.1 as apidoc. [INST] Generate a heatmap in MatPlotLib using a scatter data set I have a set of X,Y data points (about 10k) that are easy to plot as a scatter plot but that I would like to represent as a heatmap. I looked through the examples in MatPlotLib and they all seem to already start with heatmap cell values to generate the image. Is there a method that converts a bunch of x,y, all different, to a heatmap (where zones with higher frequency of x,y would be "warmer")? [/INST] If you don't want hexagons, you can use numpy's histogram2d function: import numpy as np import numpy.random import matplotlib.pyplot as plt # Generate some test data x = np.random.randn(8873) y = np.random.randn(8873) heatmap, xedges, yedges = np.histogram2d(x, y, bins=50) extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]] plt.clf() plt.imshow(heatmap, extent=extent) plt.show() This makes a 50x50 heatmap. If you want, say, 512x384, you can put bins=(512, 384) in the call to histogram2d. Example: [INST] Python: Converting Epoch time into the datetime I am getting a response from the rest is an Epoch time format like start_time = 1234566 end_time = 1234578 I want to convert that epoch seconds in MySQL format time so that I could store the differences in my MySQL database. I tried: >>> import time >>> time.gmtime(123456) time.struct_time(tm_year=1970, tm_mon=1, tm_mday=2, tm_hour=10, tm_min=17, tm_sec=36, tm_wday=4, tm_yday=2, tm_isdst=0) The above result is not what I am expecting. I want it be like 2012-09-12 21:00:00 Please suggest how can I achieve this? Also, Why I am getting TypeError: a float is required for >>> getbbb_class.end_time = 1347516459425 >>> mend = time.gmtime(getbbb_class.end_time).tm_hour Traceback (most recent call last): ... TypeError: a float is required [/INST] To convert your time value (float or int) to a formatted string, use: time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(1347517370)) [INST] Asynchronous method call in Python? I was wondering if there's any library for asynchronous method calls in Python. It would be great if you could do something like @async def longComputation(): token = longComputation() token.registerCallback(callback_function) # alternative, polling while not token.finished(): doSomethingElse() if token.finished(): result = token.result() Or to call a non-async routine asynchronously def longComputation() token = asynccall(longComputation()) It would be great to have a more refined strategy as native in the language core. Was this considered? [/INST] What about something like import threading thr = threading.Thread(target=foo, args=(), kwargs={}) thr.start() # will run "foo" .... thr.is_alive() # will return whether foo is running currently .... thr.join() # will wait till "foo" is done See the docs at https://docs.python.org/2/library/threading.html#module-threading for more details; this code should work for python 3 as well. [INST] How do I tell matplotlib that I am done with a plot? The following code plots to two PostScript (.ps) files, but the second one contains both lines. import matplotlib import matplotlib.pyplot as plt import matplotlib.mlab as mlab plt.subplot(111) x = [1,10] y = [30, 1000] plt.loglog(x, y, basex=10, basey=10, ls="-") plt.savefig("first.ps") plt.subplot(111) x = [10,100] y = [10, 10000] plt.loglog(x, y, basex=10, basey=10, ls="-") plt.savefig("second.ps") How can I tell matplotlib to start afresh for the second plot? [/INST] There is a clear figure command, and it should do it for you: plt.clf() If you have multiple subplots in the same figure plt.cla() clears the current axes. [INST] How do I load a file into the python console? I have some lines of python code that I'm continuously copying/pasting into the python console. Is there a load command or something I can run? e.g. load file.py [/INST] Give this a try: execfile('file.py') Example usage: C:\junk>copy con execfile_example.py a = [9, 42, 888] b = len(a) ^Z 1 file(s) copied. C:\junk>\python27\python Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> execfile('execfile_example.py') >>> a [9, 42, 888] >>> b 3 >>> [INST] How to use "raise" keyword in Python So I have read the official definition of "raise", but I still don't quite understand what it is doing. In simplest terms, what is "raise"? A small example of it's use would help too. [/INST] It has 2 purposes. yentup has given the first one. It's used for raising your own errors. if something: raise Exception('My error!') The second is to reraise the current exception in an exception handler, so that it can be handled further up the call stack. try: generate_exception() except SomeException, e: if not can_handle(e): raise handle_exception(e) [INST] Override 'in' operator? If I am creating my own class in Python, what function should I define so as to allow the use of the 'in' operator, e.g. class MyClass(object): ... m = MyClass() if 54 in m: ... [/INST] MyClass.__contains__(self, item) [INST] Display help message with python argparse when script is called without any arguments This might be a simple one. Assume I have a program that uses argparse to process command line arguments/options. The following will print the 'help' message: ./myprogram -h or: ./myprogram --help But, if I run the script without any arguments whatsoever, it doesn't do anything. What I want it to do is to display the usage message when it is called with no arguments. How is that done? [/INST] This answer comes from Steven Bethard on Google groups. I'm reposting it here to make it easier for people without a Google account to access. You can override the default behavior of the error method: import argparse import sys class MyParser(argparse.ArgumentParser): def error(self, message): sys.stderr.write('error: %s\n' % message) self.print_help() sys.exit(2) parser=MyParser() parser.add_argument('foo', nargs='+') args=parser.parse_args() Note that the above solution will print the help message whenever the error method is triggered. For example, test.py --blah will print the help message too if --blah isn't a valid option. If you want to print the help message only if no arguments are supplied on the command line, then perhaps this is still the easiest way: import argparse import sys parser=argparse.ArgumentParser() parser.add_argument('foo', nargs='+') if len(sys.argv)==1: parser.print_help() sys.exit(1) args=parser.parse_args() [INST] Get a random boolean in python? I am looking for the best way (fast and elegant) to get a random boolean in python (flip a coin). For the moment I am using random.randint(0, 1) or random.getrandbits(1). Are there better choices that I am not aware of? [/INST] Adam's answer is quite fast, but I found that random.getrandbits(1) to be quite a lot faster. If you really want a boolean instead of a long then bool(random.getrandbits(1)) is still about twice as fast as random.choice([True, False]) If utmost speed isn't to priority then random.choice definitely reads better $ python -m timeit -s "import random" "random.choice([True, False])" 1000000 loops, best of 3: 0.904 usec per loop $ python -m timeit -s "import random" "random.choice((True, False))" 1000000 loops, best of 3: 0.846 usec per loop $ python -m timeit -s "import random" "random.getrandbits(1)" 1000000 loops, best of 3: 0.286 usec per loop $ python -m timeit -s "import random" "bool(random.getrandbits(1))" 1000000 loops, best of 3: 0.441 usec per loop $ python -m timeit -s "import random" "not random.getrandbits(1)" 1000000 loops, best of 3: 0.308 usec per loop $ python -m timeit -s "from random import getrandbits" "not getrandbits(1)" 1000000 loops, best of 3: 0.262 usec per loop # not takes about 20us of this Added this one after seeing @Pavel's answer $ python -m timeit -s "from random import random" "random() < 0.5" 10000000 loops, best of 3: 0.115 usec per loop [INST] How to drop a list of rows from Pandas dataframe? I have a dataframe df : >>> df sales discount net_sales cogs STK_ID RPT_Date 600141 20060331 2.709 NaN 2.709 2.245 20060630 6.590 NaN 6.590 5.291 20060930 10.103 NaN 10.103 7.981 20061231 15.915 NaN 15.915 12.686 20070331 3.196 NaN 3.196 2.710 20070630 7.907 NaN 7.907 6.459 Then I want to drop rows with certain sequence numbers which indicated in a list, suppose here is [1,2,4], then left: sales discount net_sales cogs STK_ID RPT_Date 600141 20060331 2.709 NaN 2.709 2.245 20061231 15.915 NaN 15.915 12.686 20070630 7.907 NaN 7.907 6.459 How or what function can do that ? [/INST] Use DataFrame.drop and pass it a Series of index labels: In [65]: df Out[65]: one two one 1 4 two 2 3 three 3 2 four 4 1 In [66]: df.drop(df.index[[1,3]]) Out[66]: one two one 1 4 three 3 2 [INST] Django Template Variables and Javascript When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using {{ myVar }}. Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables accessible)? I want to be able to lookup details using an AJAX lookup based on the values contained in the variables passed in. [/INST] The {{variable}} is substituted directly into the HTML. Do a view source; it isn't a "variable" or anything like it. It's just rendered text. Having said that, you can put this kind of substitution into your JavaScript. This gives you "dynamic" javascript. [INST] Creating a dynamic choice field I'm having some trouble trying to understand how to create a dynamic choice field in django. I have a model set up something like: class rider(models.Model): user = models.ForeignKey(User) waypoint = models.ManyToManyField(Waypoint) class Waypoint(models.Model): lat = models.FloatField() lng = models.FloatField() What I'm trying to do is create a choice Field whos values are the waypoints associated with that rider (which would be the person logged in). Currently I'm overriding init in my forms like so: class waypointForm(forms.Form): def __init__(self, *args, **kwargs): super(joinTripForm, self).__init__(*args, **kwargs) self.fields['waypoints'] = forms.ChoiceField(choices=[ (o.id, str(o)) for o in Waypoint.objects.all()]) But all that does is list all the waypoints, they're not associated with any particular rider. Any ideas? Thanks. [/INST] you can filter the waypoints by passing the user to the form init class waypointForm(forms.Form): def __init__(self, user, *args, **kwargs): super(waypointForm, self).__init__(*args, **kwargs) self.fields['waypoints'] = forms.ChoiceField( choices=[(o.id, str(o)) for o in Waypoint.objects.filter(user=user)] ) from your view while initiating the form pass the user form = waypointForm(user) in case of model form class waypointForm(forms.ModelForm): def __init__(self, user, *args, **kwargs): super(waypointForm, self).__init__(*args, **kwargs) self.fields['waypoints'] = forms.ModelChoiceField( queryset=Waypoint.objects.filter(user=user) ) class Meta: model = Waypoint [INST] How often does python flush to a file? How often does Python flush to a file? How often does Python flush to stdout? I'm unsure about (1). As for (2), I believe Python flushes to stdout after every new line. But, if you overload stdout to be to a file, does it flush as often? [/INST] For file operations, Python uses the operating system's default buffering unless you configure it do otherwise. You can specify a buffer size, unbuffered, or line buffered. For example, the open function takes a buffer size argument. http://docs.python.org/library/functions.html#open "The optional buffering argument specifies the file’s desired buffer size: 0 means unbuffered, 1 means line buffered, any other positive value means use a buffer of (approximately) that size. A negative buffering means to use the system default, which is usually line buffered for tty devices and fully buffered for other files. If omitted, the system default is used." bufsize = 0 f = open('file.txt', 'w', bufsize) [INST] How to take the first N items from a generator or list in Python? With linq I would var top5 = array.Take(5); How to do this with Python? [/INST] Slicing a list top5 = array[:5] To slice a list, there's a simple syntax: array[start:stop:step] You can omit any parameter. These are all valid: array[start:], array[:stop], array[::step] Slicing a generator import itertools top5 = itertools.islice(my_list, 5) # grab the first five elements You can't slice a generator directly in Python. itertools.islice() will wrap an object in a new slicing generator using the syntax itertools.islice(generator, start, stop, step) Remember, slicing a generator will exhaust it partially. If you want to keep the entire generator intact, perhaps turn it into a tuple or list first, like: result = tuple(generator) [INST] Loop backwards using indices in Python? I am trying to loop from 100 to 0. How do I do this in Python? for i in range (100,0) doesn't work. [/INST] Try range(100,-1,-1), the 3rd argument being the increment to use (documented here). [INST] Explain Python .join() I'm pretty new to Python and am completely confused by .join() which I have read is the preferred method for concatenating strings. I try: strid = repr(595) print array.array('c', random.sample(string.ascii_letters, 20 - len(strid))) .tostring().join(strid) and get something like: 5wlfgALGbXOahekxSs9wlfgALGbXOahekxSs5 Why does it work like this? Shouldn't the '595' just be automatically appended? [/INST] Look carefully at your output: 5wlfgALGbXOahekxSs9wlfgALGbXOahekxSs5 ^ ^ ^ I've highlighted the "5", "9", "5" of your original string. The Python join() method is a string method, and takes a list of things to join with the string. A simpler example might help explain: >>> ",".join(["a", "b", "c"]) 'a,b,c' The "," is inserted between each element of the given list. In your case, your "list" is the string representation "595", which is treated as the list ["5", "9", "5"]. It appears that you're looking for + instead: print array.array('c', random.sample(string.ascii_letters, 20 - len(strid))) .tostring() + strid [INST] Understanding Generators in Python Reading the Python cookbook at the minute and currently looking at generators. I'm finding it hard to get my head round. As I come from a Java background, is there a Java equivalent? The book was speaking about 'Producer / Consumer', however when I hear that I think of threading. Can anyone explain what a generator is and why you would use it? Without quoting any books, obviously (unless you can find a decent, simplistic answer direct from a book). Perhaps with examples, if you're feeling generous! [/INST] Note: this post assumes Python 3.x syntax.† A generator is simply a function which returns an object on which you can call next, such that for every call it returns some value, until it raises a StopIteration exception, signaling that all values have been generated. Such an object is called an iterator. Normal functions return a single value using return, just like in Java. In Python, however, there is an alternative, called yield. Using yield anywhere in a function makes it a generator. Observe this code: >>> def myGen(n): ... yield n ... yield n + 1 ... >>> g = myGen(6) >>> next(g) 6 >>> next(g) 7 >>> next(g) Traceback (most recent call last): File "", line 1, in StopIteration As you can see, myGen(n) is a function which yields n and n + 1. Every call to next yields a single value, until all values have been yielded. for loops call next in the background, thus: >>> for n in myGen(6): ... print(n) ... 6 7 Likewise there are generator expressions, which provide a means to succinctly describe certain common types of generators: >>> g = (n for n in range(3, 5)) >>> next(g) 3 >>> next(g) 4 >>> next(g) Traceback (most recent call last): File "", line 1, in StopIteration Note that generator expressions are much like list comprehensions: >>> lc = [n for n in range(3, 5)] >>> lc [3, 4] Observe that a generator object is generated once, but its code is not run all at once. Only calls to next actually execute (part of) the code. Execution of the code in a generator stops once a yield statement has been reached, upon which it returns a value. The next call to next then causes execution to continue in the state in which the generator was left after the last yield. This is a fundamental difference with regular functions: those always start execution at the "top" and discard their state upon returning a value. There are more things to be said about this subject. It is e.g. possible to send data back into a generator (reference). But that is something I suggest you do not look into until you understand the basic concept of a generator. Now you may ask: why use generators? There are a couple of good reasons: Certain concepts can be described much more succinctly using generators. Instead of creating a function which returns a list of values, one can write a generator which generates the values on the fly. This means that no list needs to be constructed, meaning that the resulting code is more memory efficient. In this way one can even describe data streams which would simply be too large to fit in memory. Generators allow for a natural way to describe infinite streams. Consider for example the Fibonacci numbers: >>> def fib(): ... a, b = 0, 1 ... while True: ... yield a ... a, b = b, a + b ... >>> import itertools >>> list(itertools.islice(fib(), 10)) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] This code uses itertools.islice to take a finite number of elements from an infinite stream. You are advised to have a good look at the functions in the itertools module, as they are essential tools for writing advanced generators with great ease.   † About Python <=2.6: in the above examples next is a function which calls the method __next__ on the given object. In Python <=2.6 one uses a slightly different technique, namely o.next() instead of next(o). Python 2.7 has next() call .next so you need not use the following in 2.7: >>> g = (n for n in range(3, 5)) >>> g.next() 3 [INST] Convert string to JSON using Python I'm a little bit confused with JSON in Python. To me, it seems like a dictionary, and for that reason I'm trying to do that: { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } } But when I do print dict(json), it gives an error. How can I transform this string into a structure and then call json["title"] to obtain "example glossary"? [/INST] json.loads() d = json.loads(j) print d['glossary']['title'] [INST] Is it feasible to compile Python to machine code? How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code? Presumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be compiled (and linked in) too. Also, you would need to bundle the Python interpreter if you wanted to do dynamic evaluation of expressions, but perhaps a subset of Python that didn't allow this would still be useful. Would it provide any speed and/or memory usage advantages? Presumably the startup time of the Python interpreter would be eliminated (although shared libraries would still need loading at startup). [/INST] As @Greg Hewgill says it, there are good reasons why this is not always possible. However, certain kinds of code (like very algorithmic code) can be turned into "real" machine code. There are several options: Use Psyco, which emits machine code dynamically. You should choose carefully which methods/functions to convert, though. Use Cython, which is a Python-like language that is compiled into a Python C extension Use PyPy, which has a translator from RPython (a restricted subset of Python that does not support some of the most "dynamic" features of Python) to C or LLVM. PyPy is still highly experimental not all extensions will be present After that, you can use one of the existing packages (freeze, Py2exe, PyInstaller) to put everything into one binary. All in all: there is no general answer for your question. If you have Python code that is performance-critical, try to use as much builtin functionality as possible (or ask a "How do I make my Python code faster" question). If that doesn't help, try to identify the code and port it to C (or Cython) and use the extension. [INST] Renaming a virtualenv folder without breaking it I've created folder and initialized a virtualenv instance in it. $ mkdir myproject $ cd myproject $ virtualenv env When I run (env)$ pip freeze, it shows the installed packages as it should. Now I want to rename myproject/ to project/. $ mv myproject/ project/ However, now when I run $ . env/bin/activate (env)$ pip freeze it says pip is not installed. How do I rename the project folder without breaking the environment? [/INST] You need to adjust your install to use relative paths. virtualenv provides for this with the --relocatable option. From the docs: Normally environments are tied to a specific path. That means that you cannot move an environment around or copy it to another computer. You can fix up an environment to make it relocatable with the command: $ virtualenv --relocatable ENV NOTE: ENV is the name of the virtual environment and you must run this from outside the ENV directory. This will make some of the files created by setuptools or distribute use relative paths, and will change all the scripts to use activate_this.py instead of using the location of the Python interpreter to select the environment. Note: you must run this after you've installed any packages into the environment. If you make an environment relocatable, then install a new package, you must run virtualenv --relocatable again. [INST] What is the proper way to format a multi-line dict in Python? In Python, I want to write a multi-line dict in my code. There are a couple of ways one could format it. Here are a few that I could think of: mydict = { "key1": 1, "key2": 2, "key3": 3, } mydict = { "key1": 1, "key2": 2, "key3": 3, } mydict = { "key1": 1, "key2": 2, "key3": 3, } I know that any of the above is syntactically correct, but I assume that there is one preferred indentation and line-break style for Python dicts. What is it? Note: This is not an issue of syntax. All of the above are (as far as I know) valid Python statements and are equivalent to each other. [/INST] I use #3. Same for long lists, tuples, etc. It doesn't require adding any extra spaces beyond the indentations. As always, be consistent. mydict = { "key1": 1, "key2": 2, "key3": 3, } mylist = [ (1, 'hello'), (2, 'world'), ] nested = { a: [ (1, 'a'), (2, 'b'), ], b: [ (3, 'c'), (4, 'd'), ], } Similarly, here's my preferred way of including large strings without introducing any whitespace (like you'd get if you used triple-quoted multi-line strings): data = ( "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABG" "l0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAEN" "xBRpFYmctaKCfwrBSCrRLuL3iEW6+EEUG8XvIVjYWNgJdhFjIX" "rz6pKtPB5e5rmq7tmxk+hqO34e1or0yXTGrj9sXGs1Ib73efh1" "AAAABJRU5ErkJggg==" ) [INST] Iterating over every two elements in a list How do I make a for loop or a list comprehension so that every iteration gives me two elements? l = [1,2,3,4,5,6] for i,k in ???: print str(i), '+', str(k), '=', str(i+k) Output: 1+2=3 3+4=7 5+6=11 [/INST] You need a pairwise() (or grouped()) implementation. For Python 2: from itertools import izip def pairwise(iterable): "s -> (s0, s1), (s2, s3), (s4, s5), ..." a = iter(iterable) return izip(a, a) for x, y in pairwise(l): print "%d + %d = %d" % (x, y, x + y) Or, more generally: from itertools import izip def grouped(iterable, n): "s -> (s0,s1,s2,...sn-1), (sn,sn+1,sn+2,...s2n-1), (s2n,s2n+1,s2n+2,...s3n-1), ..." return izip(*[iter(iterable)]*n) for x, y in grouped(l, 2): print "%d + %d = %d" % (x, y, x + y) In Python 3, you can replace izip with the built-in zip() function, and drop the import. All credit to martineau for his answer to my question, I have found this to be very efficient as it only iterates once over the list and does not create any unnecessary lists in the process. N.B: This should not be confused with the pairwise recipe in Python's own itertools documentation, which yields s -> (s0, s1), (s1, s2), (s2, s3), ..., as pointed out by @lazyr in the comments. [INST] What's the easiest way to escape HTML in Python? cgi.escape seems like one possible choice. Does it work well? Is there something that is considered better? [/INST] cgi.escape is fine. It escapes: < to < > to > & to & That is enough for all HTML. EDIT: If you have non-ascii chars you also want to escape, for inclusion in another encoded document that uses a different encoding, like Craig says, just use: data.encode('ascii', 'xmlcharrefreplace') Don't forget to decode data to unicode first, using whatever encoding it was encoded. However in my experience that kind of encoding is useless if you just work with unicode all the time from start. Just encode at the end to the encoding specified in the document header (utf-8 for maximum compatibility). Example: >>> cgi.escape(u'bá').encode('ascii', 'xmlcharrefreplace') '<a>bá</a> Also worth of note (thanks Greg) is the extra quote parameter cgi.escape takes. With it set to True, cgi.escape also escapes double quote chars (") so you can use the resulting value in a XML/HTML attribute. EDIT: Note that cgi.escape has been deprecated in Python 3.2 in favor of html.escape, which does the same except that quote defaults to True. [INST] How do you serialize a model instance in Django? There is a lot of documentation on how to serialize a Model QuerySet but how do you just serialize to JSON the fields of a Model Instance? [/INST] You can easily use a list to wrap the required object and that's all what django serializers need to correctly serialize it, eg.: from django.core import serializers # assuming obj is a model instance serialized_obj = serializers.serialize('json', [ obj, ]) [INST] Python: Using .format() on a Unicode-escaped string I am using Python 2.6.5. My code requires the use of the "more than or equal to" sign. Here it goes: >>> s = u'\u2265' >>> print s >>> ≥ >>> print "{0}".format(s) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2265' in position 0: ordinal not in range(128)` Why do I get this error? Is there a right way to do this? I need to use the .format() function. [/INST] Just make the second string also a unicode string >>> s = u'\u2265' >>> print s ≥ >>> print "{0}".format(s) Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u2265' in position 0: ordinal not in range(128) >>> print u"{0}".format(s) ≥ >>> [INST] What's a good rate limiting algorithm? I could use some pseudo-code, or better, Python. I am trying to implement a rate-limiting queue for a Python IRC bot, and it partially works, but if someone triggers less messages than the limit (e.g., rate limit is 5 messages per 8 seconds, and the person triggers only 4), and the next trigger is over the 8 seconds (e.g., 16 seconds later), the bot sends the message, but the queue becomes full and the bot waits 8 seconds, even though it's not needed since the 8 second period has lapsed. [/INST] Here the simplest algorithm, if you want just to drop messages when they arrive too quickly (instead of queuing them, which makes sense because the queue might get arbitrarily large): rate = 5.0; // unit: messages per = 8.0; // unit: seconds allowance = rate; // unit: messages last_check = now(); // floating-point, e.g. usec accuracy. Unit: seconds when (message_received): current = now(); time_passed = current - last_check; last_check = current; allowance += time_passed * (rate / per); if (allowance > rate): allowance = rate; // throttle if (allowance < 1.0): discard_message(); else: forward_message(); allowance -= 1.0; There are no datastructures, timers etc. in this solution and it works cleanly :) To see this, 'allowance' grows at speed 5/8 units per seconds at most, i.e. at most five units per eight seconds. Every message that is forwarded deducts one unit, so you can't send more than five messages per every eight seconds. Note that rate should be an integer, i.e. without non-zero decimal part, or the algorithm won't work correctly (actual rate will not be rate/per). E.g. rate=0.5; per=1.0; does not work because allowance will never grow to 1.0. But rate=1.0; per=2.0; works fine. ZN[INST] When is hash(n) == n in Python? I've been playing with Python's hash function. For small integers, it appears hash(n) == n always. However this does not extend to large numbers: >>> hash(2**100) == 2**100 False I'm not surprised, I understand hash takes a finite range of values. What is that range? I tried using binary search to find the smallest number hash(n) != n >>> import codejamhelpers # pip install codejamhelpers >>> help(codejamhelpers.binary_search) Help on function binary_search in module codejamhelpers.binary_search: binary_search(f, t) Given an increasing function :math:`f`, find the greatest non-negative integer :math:`n` such that :math:`f(n) \le t`. If :math:`f(n) > t` for all :math:`n \ge 0`, return None. >>> f = lambda n: int(hash(n) != n) >>> n = codejamhelpers.binary_search(f, 0) >>> hash(n) 2305843009213693950 >>> hash(n+1) 0 What's special about 2305843009213693951? I note it's less than sys.maxsize == 9223372036854775807 Edit: I'm using Python 3. I ran the same binary search on Python 2 and got a different result 2147483648, which I note is sys.maxint+1 I also played with [hash(random.random()) for i in range(10**6)] to estimate the range of hash function. The max is consistently below n above. Comparing the min, it seems Python 3's hash is always positively valued, whereas Python 2's hash can take negative values. [/INST] 2305843009213693951 is 2^61 - 1. It's the largest Mersenne prime that fits into 64 bits. If you have to make a hash just by taking the value mod some number, then a large Mersenne prime is a good choice -- it's easy to compute and ensures an even distribution of possibilities. (Although I personally would never make a hash this way) It's especially convenient to compute the modulus for floating point numbers. They have an exponential component that multiplies the whole number by 2^x. Since 2^61 = 1 mod 2^61-1, you only need to consider the (exponent) mod 61. See: https://en.wikipedia.org/wiki/Mersenne_prime [INST] how does multiplication differ for NumPy Matrix vs Array classes? The numpy docs recommend using array instead of matrix for working with matrices. However, unlike octave (which I was using till recently), * doesn't perform matrix multiplication, you need to use the function matrixmultipy(). I feel this makes the code very unreadable. Does anybody share my views, and has found a solution? [/INST] The main reason to avoid using the matrix class is that a) it's inherently 2-dimensional, and b) there's additional overhead compared to a "normal" numpy array. If all you're doing is linear algebra, then by all means, feel free to use the matrix class... Personally I find it more trouble than it's worth, though. For arrays (prior to Python 3.5), use dot instead of matrixmultiply. E.g. import numpy as np x = np.arange(9).reshape((3,3)) y = np.arange(3) print np.dot(x,y) Or in newer versions of numpy, simply use x.dot(y) Personally, I find it much more readable than the * operator implying matrix multiplication... For arrays in Python 3.5, use x @ y. [INST] How do I get IntelliJ to recognize common Python modules? I'm using IntelliJ 10 IDEA Ultimate Edition. I've created a new file Test.py, and IntelliJ has correctly switched to Python parsing mode. (I can confirm this by typing "d", it pops up "def" as a suggestion, and hitting tab correctly gives me "def :") However, when I try this code... import os cwd = os.getcw Two things happen.... I get a squggly underline underneath os and hovering over it gives me a "Unresolved reference 'os'" message I get no suggestions hitting Ctrl-space above, when I'm expecting to see "getcwd". I'm assuming that this must be a result of my not configuring IntelliJ properly in order to handle python modules, but I have no idea what it is I'm missing. Any IntelliJ/Python users able to help me out? [/INST] Just create and add Python SDK File -> Project Structure -> Project -> Project SDK -> new and select the installation path of your Python interpreter (for example, C:\Python26 in windows and /usr/bin/python2.7 in Linux) as the home path. Related discussion: http://devnet.jetbrains.net/thread/286883 [INST] CURL alternative in Python I have a cURL call that I use in PHP: curl -i -H 'Accept: application/xml' -u login:key "https://app.streamsend.com/emails" I need a way to do the same thing in Python. Is there an alternative to cURL in Python. I know of urllib but I'm a Python noob and have no idea how to use it. [/INST] You can use HTTP Requests that are described in the Requests: HTTP for Humans user guide. [INST] Integrating MySQL with Python in Windows I am finding it difficult to use MySQL with Python in my windows system. I am currently using Python 2.6. I have tried to compile MySQL-python-1.2.3b1 (which is supposed to work for Python 2.6 ?) source code using the provided setup scripts. The setup script runs and it doesn't report any error but it doesn't generate _mysql module. I have also tried setting up MySQL for Python 2.5 with out success. The problem with using 2.5 is that Python 2.5 is compiled with visual studio 2003 (I installed it using the provided binaries). I have visual studio 2005 on my windows system. Hence setuptools fails to generate _mysql module. Any help ? [/INST] Download page for python-mysqldb. The page includes binaries for 32 and 64 bit versions of for Python 2.5, 2.6 and 2.7. There's also discussion on getting rid of the deprecation warning. UPDATE: This is an old answer. Currently, I would recommend using PyMySQL. It's pure python, so it supports all OSes equally, it's almost a drop-in replacement for mysqldb, and it also works with python 3. The best way to install it is using pip. You can install it from here (more instructions here), and then run: pip install pymysql [INST] Mapping over values in a python dictionary Given a dictionary { k1: v1, k2: v2 ... } I want to get { k1: f(v1), k2: f(v2) ... } provided I pass a function f. Is there any such built in function? Or do I have to do dict([(k, f(v)) for (k, v) in my_dictionary.iteritems()]) Ideally I would just write my_dictionary.map_values(f) or my_dictionary.mutate_values_with(f) That is, it doesn't matter to me if the original dictionary is mutated or a copy is created. [/INST] There is no such function; the easiest way to do this is to use a dict comprehension: my_dictionary = {k: f(v) for k, v in my_dictionary.items()} In python 2.7, use the .iteritems() method instead of .items() to save memory. The dict comprehension syntax wasn't introduced until python 2.7. Note that there is no such method on lists either; you'd have to use a list comprehension or the map() function. As such, you could use the map() function for processing your dict as well: my_dictionary = dict(map(lambda (k,v): (k, f(v)), my_dictionary.iteritems())) but that's not that readable, really. [INST] Where's my JSON data in my incoming Django request? I'm trying to process incoming JSON/Ajax requests with Django/Python. request.is_ajax() is True on the request, but I have no idea where the payload is with the JSON data. request.POST.dir contains this: ['__class__', '__cmp__', '__contains__', '__copy__', '__deepcopy__', '__delattr__', '__delitem__', '__dict__', '__doc__', '__eq__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__str__', '__weakref__', '_assert_mutable', '_encoding', '_get_encoding', '_mutable', '_set_encoding', 'appendlist', 'clear', 'copy', 'encoding', 'fromkeys', 'get', 'getlist', 'has_key', 'items', 'iteritems', 'iterkeys', 'itervalues', 'keys', 'lists', 'pop', 'popitem', 'setdefault', 'setlist', 'setlistdefault', 'update', 'urlencode', 'values'] There are apparently no keys in the request post keys. When I look at the POST in Firebug, there is JSON data being sent up in the request. [/INST] If you are posting JSON to Django, I think you want request.body (request.raw_post_data on Django < 1.4). This will give you the raw JSON data sent via the post. From there you can process it further. Here is an example using JavaScript, jQuery, jquery-json and Django. JavaScript: var myEvent = {id: calEvent.id, start: calEvent.start, end: calEvent.end, allDay: calEvent.allDay }; $.ajax({ url: '/event/save-json/', type: 'POST', contentType: 'application/json; charset=utf-8', data: $.toJSON(myEvent), dataType: 'text', success: function(result) { alert(result.Result); } }); Django: def save_events_json(request): if request.is_ajax(): if request.method == 'POST': print 'Raw Data: "%s"' % request.body return HttpResponse("OK") Django < 1.4: def save_events_json(request): if request.is_ajax(): if request.method == 'POST': print 'Raw Data: "%s"' % request.raw_post_data return HttpResponse("OK") [INST] What is the syntax to insert one list into another list in python? Given two lists: x = [1,2,3] y = [4,5,6] What is the syntax to: Insert x into y such that y now looks like [1, 2, 3, [4, 5, 6]]? Insert all the items of x into y such that y now looks like [1, 2, 3, 4, 5, 6]? [/INST] Do you mean append? >>> x = [1,2,3] >>> y = [4,5,6] >>> x.append(y) >>> x [1, 2, 3, [4, 5, 6]] Or merge? >>> x = [1,2,3] >>> y = [4,5,6] >>> x + y [1, 2, 3, 4, 5, 6] >>> x.extend(y) >>> x [1, 2, 3, 4, 5, 6] [INST] Multiple ModelAdmins/views for same model in Django admin How can I create more than one ModelAdmin for the same model, each customised differently and linked to different URLs? Let's say I have a Django model called Posts. By default, the admin view of this model will list all Post objects. I know I can customise the list of objects displayed on the page in various ways by setting variables like list_display or overriding the queryset method in my ModelAdmin like so: class MyPostAdmin(admin.ModelAdmin): list_display = ('title', 'pub_date') def queryset(self, request): request_user = request.user return Post.objects.filter(author=request_user) admin.site.register(MyPostAdmin, Post) By default, this would be accessible at the URL /admin/myapp/post. However I would like to have multiple views/ModelAdmins of the same model. e.g /admin/myapp/post would list all post objects, and /admin/myapp/myposts would list all posts belonging to the user, and /admin/myapp/draftpost might list all posts that have not yet been published. (these are just examples, my actual use-case is more complex) You cannot register more than one ModelAdmin for the same model (this results in an AlreadyRegistered exception). Ideally I'd like to achieve this without putting everything into a single ModelAdmin class and writing my own 'urls' function to return a different queryset depending on the URL. I've had a look at the Django source and I see functions like ModelAdmin.changelist_view that could be somehow included in my urls.py, but I'm not sure exactly how that would work. Update: I've found one way of doing what I want (see below), but I'd still like to hear other ways of doing this. [/INST] I've found one way to achieve what I want, by using proxy models to get around the fact that each model may be registered only once. class PostAdmin(admin.ModelAdmin): list_display = ('title', 'pubdate','user') class MyPosts(Post): class Meta: proxy = True class MyPostAdmin(PostAdmin): def queryset(self, request): return self.model.objects.filter(user = request.user) admin.site.register(Post, PostAdmin) admin.site.register(MyPost, MyPostAdmin) Then the default PostAdmin would be accessible at /admin/myapp/post and the list of posts owned by the user would be at /admin/myapp/myposts. After looking at http://code.djangoproject.com/wiki/DynamicModels, I've come up with the following function utility function to do the same thing: def create_modeladmin(modeladmin, model, name = None): class Meta: proxy = True app_label = model._meta.app_label attrs = {'__module__': '', 'Meta': Meta} newmodel = type(name, (model,), attrs) admin.site.register(newmodel, modeladmin) return modeladmin This can be used as follows: class MyPostAdmin(PostAdmin): def queryset(self, request): return self.model.objects.filter(user = request.user) create_modeladmin(MyPostAdmin, name='my-posts', model=Post) [INST] How can I see the entire HTTP request that's being sent by my Python application? In my case, I'm using the requests library to call PayPal's API over HTTPS. Unfortunately, I'm getting an error from PayPal, and PayPal support cannot figure out what the error is or what's causing it. They want me to "Please provide the entire request, headers included". How can I do that? [/INST] A simple method: enable logging in recent versions of Requests (1.x and higher.) Requests uses the http.client and logging module configuration to control logging verbosity, as described here. Demonstration Code excerpted from the linked documentation: import requests import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA. # The only thing missing will be the response.body which is not logged. try: import http.client as http_client except ImportError: # Python 2 import httplib as http_client http_client.HTTPConnection.debuglevel = 1 # You must initialize logging, otherwise you'll not see debug output. logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG) requests_log = logging.getLogger("requests.packages.urllib3") requests_log.setLevel(logging.DEBUG) requests_log.propagate = True requests.get('https://httpbin.org/headers') Example Output $ python requests-logging.py INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): httpbin.org send: 'GET /headers HTTP/1.1\r\nHost: httpbin.org\r\nAccept-Encoding: gzip, deflate, compress\r\nAccept: */*\r\nUser-Agent: python-requests/1.2.0 CPython/2.7.3 Linux/3.2.0-48-generic\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Date: Sat, 29 Jun 2013 11:19:34 GMT header: Server: gunicorn/0.17.4 header: Content-Length: 226 header: Connection: keep-alive DEBUG:requests.packages.urllib3.connectionpool:"GET /headers HTTP/1.1" 200 226 [INST] Catch a thread's exception in the caller thread in Python I'm very new to Python and multithreaded programming in general. Basically, I have a script that will copy files to another location. I would like this to be placed in another thread so I can output .... to indicate that the script is still running. The problem that I am having is that if the files cannot be copied it will throw an exception. This is ok if running in the main thread; however, having the following code does not work: try: threadClass = TheThread(param1, param2, etc.) threadClass.start() ##### **Exception takes place here** except: print "Caught an exception" In the thread class itself, I tried to re-throw the exception, but it does not work. I have seen people on here ask similar questions, but they all seem to be doing something more specific than what I am trying to do (and I don't quite understand the solutions offered). I have seen people mention the usage of sys.exc_info(), however I do not know where or how to use it. All help is greatly appreciated! EDIT: The code for the thread class is below: class TheThread(threading.Thread): def __init__(self, sourceFolder, destFolder): threading.Thread.__init__(self) self.sourceFolder = sourceFolder self.destFolder = destFolder def run(self): try: shul.copytree(self.sourceFolder, self.destFolder) except: raise [/INST] You have to think of threads in terms of phone calls. Consider this. You call up the local city council and ask a question. While they find the answer for you, you hold. When they have the answer, they'll tell it to you, and then you hang up. If for some reason they can't find the answer (exception), they will tell you that. This is how a synchronous, normal, method call works. You call a method, when it returns, you have the answer (good or bad.) However, a thread goes more like this: You call up the local city council and ask a question, and ask them to call you back when they have the answer. You then hang up. At this point, you don't know if they will find the answer or not, so any attempt, now, to try to handle the result of the inquiry, will fail, as you simply don't have the results yet. Instead, you have to react to the incoming call, and take the news, good or bad, and then process it. In terms of your code, you need to have code that reacts to your thread failing, and logs or processes the exception. The code you have in your question, which you say doesn't work, is just like trying to process the results of the phone call right after hanging up, when you still don't have the answer. [INST] Call int() function on every list element in Python I have a list with numeric strings, like so: numbers = ['1', '5', '10', '8']; I would like to convert every list element to integer, so it would look like this: numbers = [1, 5, 10, 8]; I could do it using a loop, like so: new_numbers = []; for n in numbers: new_numbers.append(int(n)); numbers = new_numbers; Does it have to be so ugly? I'm sure there is a more pythonic way to do this in a one line of code. Please help me out. [/INST] This is what list comprehensions are for: numbers = [ int(x) for x in numbers ] [INST] Checking a Python module version at runtime Many third-party Python modules have an attribute which holds the version information for the module (usually something like module.VERSION or module.__version__), however some do not. Particular examples of such modules are libxslt and libxml2. I need to check that the correct version of these modules are being used at runtime. Is there a way to do this? A potential solution wold be to read in the source at runtime, hash it, and then compare it to the hash of the known version, but that's nasty. Is there a better solutions? [/INST] Use pkg_resources. Anything installed from PyPI at least should have a version number. >>> import pkg_resources >>> pkg_resources.get_distribution("blogofile").version '0.7.1' [INST] Can I do an ordered, default dict in Python? I would like to combine OrderedDict() and defaultdict() from collections in one object, which shall be an ordered, default dict. Is this possible? [/INST] The following (using a modified version of this recipe) works for me: from collections import OrderedDict, Callable class DefaultOrderedDict(OrderedDict): # Source: http://stackoverflow.com/a/6190500/562769 def __init__(self, default_factory=None, *a, **kw): if (default_factory is not None and not isinstance(default_factory, Callable)): raise TypeError('first argument must be callable') OrderedDict.__init__(self, *a, **kw) self.default_factory = default_factory def __getitem__(self, key): try: return OrderedDict.__getitem__(self, key) except KeyError: return self.__missing__(key) def __missing__(self, key): if self.default_factory is None: raise KeyError(key) self[key] = value = self.default_factory() return value def __reduce__(self): if self.default_factory is None: args = tuple() else: args = self.default_factory, return type(self), args, None, None, self.items() def copy(self): return self.__copy__() def __copy__(self): return type(self)(self.default_factory, self) def __deepcopy__(self, memo): import copy return type(self)(self.default_factory, copy.deepcopy(self.items())) def __repr__(self): return 'OrderedDefaultDict(%s, %s)' % (self.default_factory, OrderedDict.__repr__(self)) [INST] Can you give a Django app a verbose name for use throughout the admin? In the same way that you can give fields and models verbose names that appear in the Django admin, can you give an app a custom name? [/INST] Prior to Django 1.7 You can give your application a custom name by defining app_label in your model definition. But as django builds the admin page it will hash models by their app_label, so if you want them to appear in one application, you have to define this name in all models of your application. class MyModel(models.Model): pass class Meta: app_label = 'My APP name' Django 1.7+ As stated by rhunwicks' comment to OP, this is now possible out of the box since Django 1.7 Taken from the docs: # in yourapp/apps.py from django.apps import AppConfig class YourAppConfig(AppConfig): name = 'yourapp' verbose_name = 'Fancy Title' then set the default_app_config variable to YourAppConfig # in yourapp/__init__.py default_app_config = 'yourapp.apps.YourAppConfig' [INST] error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 When I try to install odoo-server I got the following error could anyone help me to resolve this? error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 [/INST] Try installing these packages. sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev sudo easy_install greenlet sudo easy_install gevent [INST] Timeout on a function call I'm calling a function in Python which I know may stall and force me to restart the script. How do I call the function or what do I wrap it in so that if it takes longer than 5 seconds the script cancels it and does something else? [/INST] You may use the signal package if you are running on UNIX: In [1]: import signal # Register an handler for the timeout In [2]: def handler(signum, frame): ...: print "Forever is over!" ...: raise Exception("end of time") ...: # This function *may* run for an indetermined time... In [3]: def loop_forever(): ...: import time ...: while 1: ...: print "sec" ...: time.sleep(1) ...: ...: # Register the signal function handler In [4]: signal.signal(signal.SIGALRM, handler) Out[4]: 0 # Define a timeout for your function In [5]: signal.alarm(10) Out[5]: 0 In [6]: try: ...: loop_forever() ...: except Exception, exc: ...: print exc ....: sec sec sec sec sec sec sec sec Forever is over! end of time # Cancel the timer if the function returned before timeout # (ok, mine won't but yours maybe will :) In [7]: signal.alarm(0) Out[7]: 0 10 seconds after the call alarm.alarm(10), the handler is called. This raises an exception that you can intercept from the regular Python code. This module doesn't play well with threads (but then, who does?) Note that since we raise an exception when timeout happens, it may end up caught and ignored inside the function, for example of one such function: def loop_forever(): while 1: print 'sec' try: time.sleep(10) except: continue [INST] How to deal with SettingWithCopyWarning in Pandas? I just upgraded my Pandas from 0.11 to 0.13.0rc1. Now, the application is popping out many new warnings. One of them like this: E:\FinReporter\FM_EXT.py:449: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_index,col_indexer] = value instead quote_df['TVol'] = quote_df['TVol']/TVOL_SCALE I want to know what exactly it means? Do I need to change something? How should I suspend the warning if I insist to use quote_df['TVol'] = quote_df['TVol']/TVOL_SCALE? More Inf. def _decode_stock_quote(list_of_150_stk_str): """decode the webpage and return dataframe""" from cStringIO import StringIO str_of_all = "".join(list_of_150_stk_str) quote_df = pd.read_csv(StringIO(str_of_all), sep=',', names=list('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg')) #dtype={'A': object, 'B': object, 'C': np.float64} quote_df.rename(columns={'A':'STK', 'B':'TOpen', 'C':'TPCLOSE', 'D':'TPrice', 'E':'THigh', 'F':'TLow', 'I':'TVol', 'J':'TAmt', 'e':'TDate', 'f':'TTime'}, inplace=True) quote_df = quote_df.ix[:,[0,3,2,1,4,5,8,9,30,31]] quote_df['TClose'] = quote_df['TPrice'] quote_df['RT'] = 100 * (quote_df['TPrice']/quote_df['TPCLOSE'] - 1) quote_df['TVol'] = quote_df['TVol']/TVOL_SCALE quote_df['TAmt'] = quote_df['TAmt']/TAMT_SCALE quote_df['STK_ID'] = quote_df['STK'].str.slice(13,19) quote_df['STK_Name'] = quote_df['STK'].str.slice(21,30)#.decode('gb2312') quote_df['TDate'] = quote_df.TDate.map(lambda x: x[0:4]+x[5:7]+x[8:10]) return quote_df Error msg: E:\FinReporter\FM_EXT.py:449: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_index,col_indexer] = value instead quote_df['TVol'] = quote_df['TVol']/TVOL_SCALE E:\FinReporter\FM_EXT.py:450: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_index,col_indexer] = value instead quote_df['TAmt'] = quote_df['TAmt']/TAMT_SCALE E:\FinReporter\FM_EXT.py:453: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_index,col_indexer] = value instead quote_df['TDate'] = quote_df.TDate.map(lambda x: x[0:4]+x[5:7]+x[8:10]) [/INST] From what I gather, SettingWithCopyWarning was created to flag potentially confusing "chained" assignments, such as the following, which don't always work as expected, particularly when the first selection returns a copy. [see GH5390 and GH5597 for background discussion.] df[df['A'] > 2]['B'] = new_val # new_val not set in df The warning offers a suggestion to rewrite as follows: df.loc[df['A'] > 2, 'B'] = new_val However, this doesn't fit your usage, which is equivalent to: df = df[df['A'] > 2] df['B'] = new_val While it's clear that you don't care about writes making it back to the original frame (since you overwrote the reference to it), unfortunately this pattern can not be differentiated from the first chained assignment example, hence the (false positive) warning. The potential for false positives is addressed in the docs on indexing, if you'd like to read further. You can safely disable this new warning with the following assignment. pd.options.mode.chained_assignment = None # default='warn' [INST] Flask vs webapp2 for Google App Engine I'm starting new Google App Engine application and currently considering two frameworks: Flask and webapp2. I'm rather satisfied with built-in webapp framework that I've used for my previous App Engine application, so I think webapp2 will be even better and I won't have any problems with it. However, there are a lot of good reviews of Flask, I really like its approach and all the things that I've read so far in the documentation and I want to try it out. But I'm a bit concerned about limitations that I can face down the road with Flask. So, the question is - do you know any problems, performance issues, limitations (e.g. routing system, built-in authorization mechanism, etc.) that Flask could bring into Google App Engine application? By "problem" I mean something that I can't work around in several lines of code (or any reasonable amount of code and efforts) or something that is completely impossible. And as a follow-up question: are there any killer-features in Flask that you think can blow my mind and make me use it despite any problems that I can face? [/INST] Disclaimer: I'm the author of tipfy and webapp2. A big advantage of sticking with webapp (or its natural evolution, webapp2) is that you don't have to create your own versions for existing SDK handlers for your framework of your choice. For example, deferred uses a webapp handler. To use it in a pure Flask view, using werkzeug.Request and werkzeug.Response, you'll need to implement deferred for it (like I did here for tipfy). The same happens for other handlers: blobstore (Werkzeug still doesn't support range requests, so you'll need to use WebOb even if you create your own handler -- see tipfy.appengine.blobstore), mail, XMPP and so on, or others that are included in the SDK in the future. And the same happens for libraries created with App Engine in mind, like ProtoRPC, which is based on webapp and would need a port or adapter to work with other frameworks, if you don't want to mix webapp and your-framework-of-choice handlers in the same app. So, even if you choose a different framework, you'll end a) using webapp in some special cases or b) having to create and maintain your versions for specific SDK handlers or features, if you'll use them. I much prefer Werkzeug over WebOb, but after over one year porting and maintaining versions of the SDK handlers that work natively with tipfy, I realized that this is a lost cause -- to support GAE for the long term, best is to stay close to webapp/WebOb. It makes support for SDK libraries a breeze, maintenance becomes a lot easier, it is more future-proof as new libraries and SDK features will work out of the box and there's the benefit of a large community working around the same App Engine tools. A specific webapp2 defense is summarized here. Add to those that webapp2 can be used outside of App Engine and is easy to be customized to look like popular micro-frameworks and you have a good set of compelling reasons to go for it. Also, webapp2 has a big chance to be included in a future SDK release (this is extra-official, don't quote me :-) which will push it forward and bring new developers and contributions. That said, I'm a big fan of Werkzeug and the Pocoo guys and borrowed a lot from Flask and others (web.py, Tornado), but -- and, you know, I'm biased -- the above webapp2 benefits should be taken into account. [INST] how to run all Python unit tests in a directory So I have a directory that contains my Python unit test. Each unit test module is of the form "test_*.py". I am attempting to make a file called "all_test.py" that will, you guessed it, run all files in aforementioned test form and return the result. I have tried two methods so far, both have failed, I will show the two methods, and hope someone out there knows how to actually do this correctly. Thank you. For my first valiant attempt, I thought "If I just import all my testing modules in the file, and then call this unittest.main() doodad, it will work, right?" Well, turns out wrong. import glob import unittest testSuite = unittest.TestSuite() test_file_strings = glob.glob('test_*.py') module_strings = [str[0:len(str)-3] for str in test_file_strings] if __name__ == "__main__": unittest.main() This did not work, the return result I got was. $ python all_test.py ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK For my second try, I though, ok, maybe I will try to do this whole testing thing in a more "manual" fashion. So I attempted to do that below. import glob import unittest testSuite = unittest.TestSuite() test_file_strings = glob.glob('test_*.py') module_strings = [str[0:len(str)-3] for str in test_file_strings] [__import__(str) for str in module_strings] suites = [unittest.TestLoader().loadTestsFromName(str) for str in module_strings] [testSuite.addTest(suite) for suite in suites] print testSuite result = unittest.TestResult() testSuite.run(result) print result #Ok, at this point, I have a result, how do I display it as the normal unit test #command line output? if __name__ == "__main__": unittest.main() This also did not work, but it seems so close! $ python all_test.py ]>]>]> ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK Seems so close! I seem to have a suit of some sort, and I can execute the result. I am a little concerned about the fact that it says I have only "run=1", seems like that should be "run=2", but it is progress. But how do I pass and display the result to main? Or how do I basically get it working so I can just run this file, and in doing so, run all the unit test in this directory? [/INST] With Python 2.7 and higher you don't have to write new code or use third-party tools to do this; recursive test execution via the command line is built-in. python -m unittest discover # or python -m unittest discover -s -p '*_test.py' You can read more in the python 2.7 or python 3.x unittest documentation. [INST] What is the best way to get the first item from an iterable matching a condition? In Python, I would like to get the first item from a list matching a condition. For example, the following function is adequate: def first(the_iterable, condition = lambda x: True): for i in the_iterable: if condition(i): return i This function could be used something like this: >>> first(range(10)) 0 >>> first(range(10), lambda i: i > 3) 4 However, I can't think of a good built-in / one-liner to let me do this (and I don't particularly want to copy this function around if I don't have to). Any ideas? (It's important that the resulting method not process the entire list, which could be quite large.) [/INST] In Python 2.6 or better: next(x for x in the_iterable if x > 3) if you want StopIteration to be raised if no matching element is found, next( (x for x in the_iterable if x>3), default_value) if you want default_value (e.g. None) to be returned instead. Note that you need an extra pair of parentheses around the generator expression in this case - they are needed always when the generator expression isn't the only argument. I see most answers resolutely ignore the next built-in and so I assume that for some mysterious reason they're 100% focused on versions 2.5 and older -- without mentioning the Python-version issue (but then I don't see that mention in the answers that do mention the next built-in, which is why I thought it necessary to provide an answer myself -- at least the "correct version" issue gets on record this way;-). In 2.5, the .next() method of iterators immediately raises StopIteration if the iterator immediately finishes -- i.e., for your use case, if no item in the iterable satisfies the condition. If you don't care (i.e., you know there must be at least one satisfactory item) then just use .next() (best on a genexp, line for the next built-in in Python 2.6 and better). If you do care, wrapping things in a function as you had first indicated in your Q seems best, and while the function implementation you proposed is just fine, you could alternatively use itertools, a for...: break loop, or a genexp, or a try/except StopIteration as the function's body, as various answers suggested. There's not much added value in any of these alternatives so I'd go for the starkly-simple version you first proposed. [INST] Concatenate strings in python 2.4? How to concatenate strings in python? For example: Section = 'C_type' Concatenate it with Sec_ to form the string: Sec_C_type [/INST] The easiest way would be Section = 'Sec_' + Section But for efficiency, see: http://www.skymind.com/~ocrow/python_string/ [INST] All combinations of a list of lists I'm basically looking for a python version of Combination of List> Given a list of lists, I need a new list that gives all the possible combinations of items between the lists. [[1,2,3],[4,5,6],[7,8,9,10]] -> [[1,4,7],[1,4,8],...,[3,6,10]] The number of lists is unknown, so I need something that works for all cases. Bonus points for elegance! [/INST] you need itertools.product: >>> import itertools >>> a = [[1,2,3],[4,5,6],[7,8,9,10]] >>> list(itertools.product(*a)) [(1, 4, 7), (1, 4, 8), (1, 4, 9), (1, 4, 10), (1, 5, 7), (1, 5, 8), (1, 5, 9), (1, 5, 10), (1, 6, 7), (1, 6, 8), (1, 6, 9), (1, 6, 10), (2, 4, 7), (2, 4, 8), (2, 4, 9), (2, 4, 10), (2, 5, 7), (2, 5, 8), (2, 5, 9), (2, 5, 10), (2, 6, 7), (2, 6, 8), (2, 6, 9), (2, 6, 10), (3, 4, 7), (3, 4, 8), (3, 4, 9), (3, 4, 10), (3, 5, 7), (3, 5, 8), (3, 5, 9), (3, 5, 10), (3, 6, 7), (3, 6, 8), (3, 6, 9), (3, 6, 10)] [INST] Django Admin - change header 'Django administration' text How does one change the 'Django administration' text in the django admin header? It doesn't seem to be covered in the "Customizing the admin" documentation. [/INST] As of Django 1.7 you don't need to override templates. You can now implement site_header, site_title, and index_title attributes on a custom AdminSite in order to easily change the admin site’s page title and header text. Create an AdminSite subclass and hook your instance into your URLconf: admin.py: from django.contrib.admin import AdminSite from django.utils.translation import ugettext_lazy class MyAdminSite(AdminSite): # Text to put at the end of each page's . site_title = ugettext_lazy('My site admin') # Text to put in each page's <h1> (and above login form). site_header = ugettext_lazy('My administration') # Text to put at the top of the admin index page. index_title = ugettext_lazy('Site administration') admin_site = MyAdminSite() urls.py: from django.conf.urls import patterns, include from myproject.admin import admin_site urlpatterns = patterns('', (r'^myadmin/', include(admin_site.urls)), ) Update: As pointed out by oxfn you can simply set the site_header in your urls.py or admin.py directly without subclassing AdminSite: admin.site.site_header = 'My administration' </s><s>[INST] Installing PIL with pip I am trying to install PIL (the Python Imaging Library) using the command: sudo pip install pil but I get the following message: Downloading/unpacking PIL You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files. Downloading PIL-1.1.7.tar.gz (506kB): 506kB downloaded Running setup.py egg_info for package PIL WARNING: '' not a valid package name; please use only.-separated package names in setup.py Installing collected packages: PIL Running setup.py install for PIL WARNING: '' not a valid package name; please use only.-separated package names in setup.py --- using frameworks at /System/Library/Frameworks building '_imaging' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.8-intel-2.7/_imaging.o unable to execute clang: No such file or directory error: command 'clang' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/PIL/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-AYrxVD-record/install-record.txt --single-version-externally-managed: WARNING: '' not a valid package name; please use only.-separated package names in setup.py running install running build . . . . copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.8-intel-2.7 running build_ext --- using frameworks at /System/Library/Frameworks building '_imaging' extension creating build/temp.macosx-10.8-intel-2.7 creating build/temp.macosx-10.8-intel-2.7/libImaging clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.8-intel-2.7/_imaging.o unable to execute clang: No such file or directory error: command 'clang' failed with exit status 1 ---------------------------------------- Cleaning up… Could you please help me to install PIL?? [/INST] Install Xcode and Xcode Command Line Tools as mentioned. Use Pillow instead, as PIL is basically dead. Pillow is a maintained fork of PIL. https://pypi.python.org/pypi/Pillow/2.2.1 pip install Pillow If you have both Pythons installed and want to install this for Python3: $ python3 -m pip install Pillow </s><s>[INST] setting an environment variable in virtualenv I have a Heroku project that uses environment variables to get its configuration, but I use virtualenv to test my app locally first. Is there a way to set the environment variables defined on the remote machine inside virtualenv? [/INST] In case you're using virtualenvwrapper (I highly recommend doing so), you can define different hooks (preactivate, postactivate, predeactivate, postdeactivate) using the scripts with the same names in $VIRTUAL_ENV/bin/. You need the postactivate hook. $ workon myvenv $ cat $VIRTUAL_ENV/bin/postactivate #!/bin/bash # This hook is run after this virtualenv is activated. export DJANGO_DEBUG=True export S3_KEY=mykey export S3_SECRET=mysecret $ echo $DJANGO_DEBUG True If you want to keep this configuration in your project directory, simply create a symlink from your project directory to $VIRTUAL_ENV/bin/postactivate. $ rm $VIRTUAL_ENV/bin/postactivate $ ln -s .env/postactivate $VIRTUAL_ENV/bin/postactivate You could even automate the creation of the symlinks each time you use mkvirtualenv. Cleaning up on deactivate Remember that this wont clean up after itself. When you deactivate the virtualenv, the environment variable will persist. To clean up symmetrically you can add to $VIRTUAL_ENV/bin/predeactivate. $ cat $VIRTUAL_ENV/bin/predeactivate #!/bin/bash # This hook is run before this virtualenv is deactivated. unset DJANGO_DEBUG $ deactivate $ echo $DJANGO_DEBUG Remember that if using this for environment variables that might already be set in your environment then the unset will result in them being completely unset on leaving the virtualenv. So if that is at all probable you could record the previous value somewhere temporary then read it back in on deactivate. Setup: $ cat $VIRTUAL_ENV/bin/postactivate #!/bin/bash # This hook is run after this virtualenv is activated. if [[ -n $SOME_VAR ]] then export SOME_VAR_BACKUP=$SOME_VAR fi export SOME_VAR=apple $ cat $VIRTUAL_ENV/bin/predeactivate #!/bin/bash # This hook is run before this virtualenv is deactivated. if [[ -n $SOME_VAR_BACKUP ]] then export SOME_VAR=$SOME_VAR_BACKUP unset SOME_VAR_BACKUP else unset SOME_VAR fi Test: $ echo $SOME_VAR banana $ workon myenv $ echo $SOME_VAR apple $ deactivate $ echo $SOME_VAR banana </s><s>[INST] How to make a Python script run like a service or daemon in Linux I have written a Python script that checks a certain e-mail address and passes new e-mails to an external program. How can I get this script to execute 24/7, such as turning it into daemon or service in Linux. Would I also need a loop that never ends in the program, or can it be done by just having the code re executed multiple times? [/INST] You have two options here. Make a proper cron job that calls your script. Cron is a common name for a GNU/Linux daemon that periodically launches scripts according to a schedule you set. You add your script into a crontab or place a symlink to it into a special directory and the daemon handles the job of launching it in the background. You can read more at wikipedia. There is a variety of different cron daemons, but your GNU/Linux system should have it already installed. Use some kind of python approach (a library, for example) for your script to be able to daemonize itself. Yes, it will require a simple event loop (where your events are timer triggering, possibly, provided by sleep function). I wouldn't recommend you to choose 2., because you're in fact repeating cron functionality. The Linux system paradigm is to let multiple simple tools interact and solve your problems. Unless there are additional reasons why you should make a daemon (in addition to trigger periodically), choose the other approach. Also, if you use daemonize with a loop and a crash happens, noone will check the mail after that (as pointed out by Ivan Nevostruev in comments to this answer). While if the script is added as a cron job, it will just trigger again. </s><s>[INST] How do I create a variable number of variables in Python? How do I accomplish variable variables in Python? Here is an elaborative manual entry, for instance: Variable variables I have heard this is a bad idea in general though, and it is a security hole in Python. Is that true? [/INST] Use dictionaries to accomplish this. Dictionaries are stores of keys and values. >>> dct = {'x': 1, 'y': 2, 'z': 3} >>> dct {'y': 2, 'x': 1, 'z': 3} >>> dct["y"] 2 You can use variable key names to achieve the effect of variable variables without the security risk. >>> x = "spam" >>> z = {x: "eggs"} >>> z["spam"] 'eggs' Make sense? </s><s>[INST] Listing all permutations of a string/integer A common task in programming interviews (not from my experience of interviews though) is to take a string or an integer and list every possible permutation. Is there an example of how this is done and the logic behind solving such a problem? I've seen a few code snippets but they weren't well commented/explained and thus hard to follow. [/INST] First of all: it smells like recursion of course! Since you also wanted to know the principle, I did my best to explain it human language. I think recursion is very easy most of the times. You only have to grasp two steps: The first step All the other steps (all with the same logic) In human language: In short: 1. The permutation of 1 element is one element. 2. The permutation of a set of elements is a list each of the elements, concatenated with every permutation of the other elements. Example: If the set just has one element --> return it. perm(a) -> a If the set has two characters: for each element in it: return the element, with the permutation of the rest of the elements added, like so: perm(ab) -> a + perm(b) -> ab b + perm(a) -> ba Further: for each character in the set: return a character, concatenated with a perumation of > the rest of the set perm(abc) -> a + perm(bc) --> abc, acb b + perm(ac) --> bac, bca c + perm(ab) --> cab, cba perm(abc...z) --> a + perm(...), b + perm(....) .... I found the pseudocode on http://www.programmersheaven.com/mb/Algorithms/369713/369713/permutation-algorithm-help/: makePermutations(permutation) { if (length permutation < required length) { for (i = min digit to max digit) { if (i not in permutation) { makePermutations(permutation+i) } } } else { add permutation to list } } C# OK, and something more elaborate (and since it is tagged c #), from http://radio.weblogs.com/0111551/stories/2002/10/14/permutations.html : Rather lengthy, but I decided to copy it anyway, so the post is not dependent on the original. The function takes a string of characters, and writes down every possible permutation of that exact string, so for example, if "ABC" has been supplied, should spill out: ABC, ACB, BAC, BCA, CAB, CBA. Code: class Program { private static void Swap(ref char a, ref char b) { if (a == b) return; a ^= b; b ^= a; a ^= b; } public static void GetPer(char[] list) { int x = list.Length - 1; GetPer(list, 0, x); } private static void GetPer(char[] list, int k, int m) { if (k == m) { Console.Write(list); } else for (int i = k; i <= m; i++) { Swap(ref list[k], ref list[i]); GetPer(list, k + 1, m); Swap(ref list[k], ref list[i]); } } static void Main() { string str = "sagiv"; char[] arr = str.ToCharArray(); GetPer(arr); } } </s><s>[INST] Length of an integer in Python In Python, how do you find the number of digits in an integer? [/INST] If you want the length of an integer as in the number of digits in the integer, you can always convert it to string like str(133) and find its length like len(str(123)). </s><s>[INST] Most pythonic way to interleave two strings What's the most pythonic way to mesh two strings together? For example: Input: u = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' l = 'abcdefghijklmnopqrstuvwxyz' Output: 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz' [/INST] For me, the most pythonic* way is the following which pretty much does the same thing but uses the + operator for concatenating the individual characters in each string: res = "".join(i + j for i, j in zip(u, l)) print(res) # 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz' It is also faster than using two join() calls: In [5]: l1 = 'A' * 1000000; l2 = 'a' * 1000000 In [6]: %timeit "".join("".join(item) for item in zip(l1, l2)) 1 loops, best of 3: 442 ms per loop In [7]: %timeit "".join(i + j for i, j in zip(l1, l2)) 1 loops, best of 3: 360 ms per loop Faster approaches exist, but they often obfuscate the code. Note: If the two input strings are not the same length then the longer one will be truncated as zip stops iterating at the end of the shorter string. In this case instead of zip one should use zip_longest (izip_longest in Python 2) from the itertools module to ensure that both strings are fully exhausted. *To take a quote from the Zen of Python: Readability counts. Pythonic = readability for me; i + j is just visually parsed more easily, at least for my eyes. </s><s>[INST] Flask Optional URL parameters Is it possible to directly declare a flask url optional parameter, currently I'm proceeding the following way: @user.route('/<userId>') @user.route('/<userId>/<username>') def show(userId,username=None): ................. is there anything that can allow me to directly say that "username" is optional? [/INST] Another way is to write @user.route('/<user_id>', defaults={'username': None}) @user.route('/<user_id>/<username>') def show(user_id, username): pass But I guess that you want to write a single route and mark username as optional? If that's the case, I don't think it's possible. </s><s>[INST] Converting a Pandas GroupBy object to DataFrame I'm starting with input data like this df1 = pandas.DataFrame( { "Name" : ["Alice", "Bob", "Mallory", "Mallory", "Bob" , "Mallory"] , "City" : ["Seattle", "Seattle", "Portland", "Seattle", "Seattle", "Portland"] } ) Which when printed appears as this: City Name 0 Seattle Alice 1 Seattle Bob 2 Portland Mallory 3 Seattle Mallory 4 Seattle Bob 5 Portland Mallory Grouping is simple enough: g1 = df1.groupby( [ "Name", "City"] ).count() and printing yields a GroupBy object: City Name Name City Alice Seattle 1 1 Bob Seattle 2 2 Mallory Portland 2 2 Seattle 1 1 But what I want eventually is another DataFrame object that contains all the rows in the GroupBy object. In other words I want to get the following result: City Name Name City Alice Seattle 1 1 Bob Seattle 2 2 Mallory Portland 2 2 Mallory Seattle 1 1 I can't quite see how to accomplish this in the pandas documentation. Any hints would be welcome. [/INST] g1 here is a DataFrame. It has a hierarchical index, though: In [19]: type(g1) Out[19]: pandas.core.frame.DataFrame In [20]: g1.index Out[20]: MultiIndex([('Alice', 'Seattle'), ('Bob', 'Seattle'), ('Mallory', 'Portland'), ('Mallory', 'Seattle')], dtype=object) Perhaps you want something like this? In [21]: g1.add_suffix('_Count').reset_index() Out[21]: Name City City_Count Name_Count 0 Alice Seattle 1 1 1 Bob Seattle 2 2 2 Mallory Portland 2 2 3 Mallory Seattle 1 1 Or something like: In [36]: DataFrame({'count' : df1.groupby( [ "Name", "City"] ).size()}).reset_index() Out[36]: Name City count 0 Alice Seattle 1 1 Bob Seattle 2 2 Mallory Portland 2 3 Mallory Seattle 1 </s>�������BA��<s>[INST] Url decode UTF-8 in Python I have spent plenty of time as far as I am newbie in Python. How could I ever decode such a URL: example.com?title=%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D0%B0 to this one in python 2.7: example.com?title==правовая+защита url=urllib.unquote(url.encode("utf8")) is returning something very ugly. Still no solution, any help is appreciated. [/INST] The data is UTF-8 encoded bytes escaped with URL quoting, so you want to decode: url=urllib.unquote(url).decode('utf8') Demo: >>> import urllib >>> url='example.com?title=%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D0%B2%D0%B0%D1%8F+%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D0%B0' >>> urllib.unquote(url).decode('utf8') u'example.com?title=\u043f\u0440\u0430\u0432\u043e\u0432\u0430\u044f+\u0437\u0430\u0449\u0438\u0442\u0430' >>> print urllib.unquote(url).decode('utf8') example.com?title=правовая+защита </s><s>[INST] All permutations of a Windows license key I need to apply for a Windows 8 upgrade for my laptop, for which I need the Windows 7 license key on the underside of the laptop. Because Microsoft decided in their infinite wisdom to create license labels that wear off, and I cannot read my license key clearly, it means I can't register my laptop for the windows upgrade offer using an automated process. By holding the laptop at an angle to the light I have been able to verify most of the code but several of the letters are ambiguous (thanks again Microsoft for using easy to misread characters in your label). I have the following (obfuscated) license key, MPP6R-09RXG-2H[8B]MT-[B8]K[HN]M9-V[6G]C8R where the characters in square brackets are ambiguous, so it is either 8 or B, B or 8, H or N, 6 or G. Making 16 combinations. Is it appropriate to generate the possible permutations of this license key using itertools or is there a better way? I got the correct key with thanks to the contributors. A very convenient way to check if the key is valid is by using the Windows 7 product key checker. [/INST] Disclaimer: Yes, I know that this is not Python code. It just popped into my mind and I simply had to write it down. The simplest way is the use of shell expansion: $ echo MPP6R-09RXG-2H{8,B}MT-{B,8}K{H,N}M9-V{6,G}C8R MPP6R-09RXG-2H8MT-BKHM9-V6C8R MPP6R-09RXG-2H8MT-BKHM9-VGC8R MPP6R-09RXG-2H8MT-BKNM9-V6C8R MPP6R-09RXG-2H8MT-BKNM9-VGC8R MPP6R-09RXG-2H8MT-8KHM9-V6C8R MPP6R-09RXG-2H8MT-8KHM9-VGC8R MPP6R-09RXG-2H8MT-8KNM9-V6C8R MPP6R-09RXG-2H8MT-8KNM9-VGC8R MPP6R-09RXG-2HBMT-BKHM9-V6C8R MPP6R-09RXG-2HBMT-BKHM9-VGC8R MPP6R-09RXG-2HBMT-BKNM9-V6C8R MPP6R-09RXG-2HBMT-BKNM9-VGC8R MPP6R-09RXG-2HBMT-8KHM9-V6C8R MPP6R-09RXG-2HBMT-8KHM9-VGC8R MPP6R-09RXG-2HBMT-8KNM9-V6C8R MPP6R-09RXG-2HBMT-8KNM9-VGC8R </s><s>[INST] How to add property to a python class dynamically? The goal is to create a mock class which behaves like a db resultset. So for example, if a database query returns, using a dict expression, {'ab':100, 'cd':200}, then I would to see >>> dummy.ab 100 So, at the beginning I thought I maybe able to do it this way ks = ['ab', 'cd'] vs = [12, 34] class C(dict): def __init__(self, ks, vs): for i, k in enumerate(ks): self[k] = vs[i] setattr(self, k, property(lambda x: vs[i], self.fn_readyonly)) def fn_readonly(self, v) raise "It is ready only" if __name__ == "__main__": c = C(ks, vs) print c.ab but "c.ab" returns a property object instead. Replace the setattr line with k = property(lambda x: vs[i]) It is of no use at all. So what is the right way to create an instance property in runtime? P.S. I am aware of an alternative here [/INST] I suppose I should expand this answer, now that I'm older and wiser and know what's going on. Better late than never. You can add a property to a class dynamically. But that's the catch: you have to add it to the class. >>> class Foo(object): ... pass ... >>> foo = Foo() >>> foo.a = 3 >>> Foo.b = property(lambda self: self.a + 1) >>> foo.b 4 A property is actually a simple implementation of a thing called a descriptor. It's an object that provides custom handling for a given attribute, on a given class. Kinda like a way to factor a huge if tree out of __getattribute__. When I ask for foo.b in the example above, Python sees that the b defined on the class implements the descriptor protocol—which just means it's an object with a __get__, __set__, or __delete__ method. The descriptor claims responsibility for handling that attribute, so Python calls Foo.b.__get__(foo, Foo), and the return value is passed back to you as the value of the attribute. In the case of property, each of these methods just calls the fget, fset, or fdel you passed to the property constructor. Descriptors are really Python's way of exposing the plumbing of its entire OO implementation. In fact, there's another type of descriptor even more common than property. >>> class Foo(object): ... def bar(self): ... pass ... >>> Foo().bar <bound method Foo.bar of <__main__.Foo object at 0x7f2a439d5dd0>> >>> Foo().bar.__get__ <method-wrapper '__get__' of instancemethod object at 0x7f2a43a8a5a0> The humble method is just another kind of descriptor. Its __get__ tacks on the calling instance as the first argument; in effect, it does this: def __get__(self, instance, owner): return functools.partial(self.function, instance) Anyway, I suspect this is why descriptors only work on classes: they're a formalization of the stuff that powers classes in the first place. They're even the exception to the rule: you can obviously assign descriptors to a class, and classes are themselves instances of type! In fact, trying to read Foo.b still calls property.__get__; it's just idiomatic for descriptors to return themselves when accessed as class attributes. I think it's pretty cool that virtually all of Python's OO system can be expressed in Python. :) Oh, and I wrote a wordy blog post about descriptors a while back if you're interested. </s><s>[INST] How to display the current year in a Django template? What is the inbuilt template tag to display the present year dynamically. Like "2011" what would be the template tag to display that? [/INST] The full tag to print just the current year is {% now "Y" %}. Note that the Y must be in quotes. </s><s>[INST] How to scp in python? What's the most pythonic way to scp a file in Python? The only route I'm aware of is os.system('scp "%s" "%s:%s"' % (localfile, remotehost, remotefile) ) which is a hack, and which doesn't work outside linux-like systems, and which needs help from the Pexpect module to avoid password prompts unless you already have passwordless SSH set up to the remote host. I'm aware of Twisted's conch, but I'd prefer to avoid implementing scp myself via low-level ssh modules. I'm aware of paramiko, a Python module that supports ssh and sftp; but it doesn't support scp. Background: I'm connecting to a router which doesn't support sftp but does support ssh/scp, so sftp isn't an option. EDIT: This is a duplicate of http://stackoverflow.com/questions/68335/how-do-i-copy-a-file-to-a-remote-server-in-python-using-scp-or-ssh. However, that question doesn't give an scp-specific answer that deals with keys from within python. I'm hoping for a way to run code kind of like import scp client = scp.Client(host=host, user=user, keyfile=keyfile) # or client = scp.Client(host=host, user=user) client.use_system_keys() # or client = scp.Client(host=host, user=user, password=password) # and then client.transfer('/etc/local/filename', '/etc/remote/filename') [/INST] Try the module paramiko_scp. It's very easy to use. See the following example: def createSSHClient(server, port, user, password): client = paramiko.SSHClient() client.load_system_host_keys() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(server, port, user, password) return client ssh = createSSHClient(server, port, user, password) scp = SCPClient(ssh.get_transport()) Then call scp.get() or scp.put() to do scp operations. (SCPClient code) </s>��������9��<s>[INST] What are Python dictionary view objects? In python 2.7, we got the dictionary view methods available. Now, I know the pro and cons of the following: dict.items() (and values, keys): returns a list, so you can actually store the result dict.iteritems() (and the like): returns a generator, so you can iterable over each value generated one by one. What are dict.viewitems() (and the like) for? What are their benefits? How does it work? What is a view after all? I read that the view is always reflecting the changes from the dictionary. But how does it behave from the perf and memory point of view? What are the pro and cons? [/INST] Dictionary views are essentially what their name says: views are simply like a window on the keys and values (or items) of a dictionary. Here is an excerpt from the official documentation for Python 3: >>> dishes = {'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500} >>> keys = dishes.keys() >>> values = dishes.values() >>> # view objects are dynamic and reflect dict changes >>> del dishes['eggs'] >>> keys # No eggs anymore! dict_keys(['sausage', 'bacon', 'spam']) >>> values # No eggs value (2) anymore! dict_values([1, 1, 500]) (The Python 2 equivalent uses dishes.viewkeys() and dishes.viewvalues().) This example shows the dynamic character of views: the keys view is not a copy of the keys at a given point in time, but rather a simple window that shows you the keys; if they are changed, then what you see through the window does change as well. This feature can be useful in some circumstances (for instance, one can work with a view on the keys in multiple parts of a program instead of recalculating the current list of keys each time they are needed). One advantage is that looking at, say, the keys uses only a small and fixed amount of memory and requires a small and fixed amount of processor time, as there is no creation of a list of keys (Python 2, on the other hand, often unnecessarily creates a new list, as quoted by Rajendran T, which takes memory and time in an amount proportional to the length of the list). To continue the window analogy, if you want to see a landscape behind a wall, you simply make an opening in it (you build a window); copying the keys into a list would correspond to instead painting a copy of the landscape on your wall—the copy takes time, space, and does not update itself. To summarize, views are simply… views (windows) on your dictionary, which show the contents of the dictionary even after it changes. They offer features that differ from those of lists: a list of keys contain a copy of the dictionary keys at a given point in time, while a view is dynamic and is much faster to obtain, as it does not have to copy any data (keys or values) in order to be created. </s><s>[INST] How do you send a HEAD HTTP request in Python 2? What I'm trying to do here is get the headers of a given URL so I can determine the MIME type. I want to be able to see if http://somedomain/foo/ will return an HTML document or a JPEG image for example. Thus, I need to figure out how to send a HEAD request so that I can read the MIME type without having to download the content. Does anyone know of an easy way of doing this? [/INST] urllib2 can be used to perform a HEAD request. This is a little nicer than using httplib since urllib2 parses the URL for you instead of requiring you to split the URL into host name and path. >>> import urllib2 >>> class HeadRequest(urllib2.Request): ... def get_method(self): ... return "HEAD" ... >>> response = urllib2.urlopen(HeadRequest("http://google.com/index.html")) Headers are available via response.info() as before. Interestingly, you can find the URL that you were redirected to: >>> print response.geturl() http://www.google.com.au/index.html </s><s>[INST] Python: Is there a way to determine the encoding of text file? I know there is something buried in here. But I was just wondering if there is an actual way built into Python to determine text file encoding? Thanks for your help :) Edit: As a side question, it can be ignored if you want but why is the type of encoding not put into the file so it could be detected easier? [/INST] Correctly detecting the encoding all times is impossible. (From chardet FAQ:) However, some encodings are optimized for specific languages, and languages are not random. Some character sequences pop up all the time, while other sequences make no sense. A person fluent in English who opens a newspaper and finds “txzqJv 2!dasd0a QqdKjvz” will instantly recognize that that isn't English (even though it is composed entirely of English letters). By studying lots of “typical” text, a computer algorithm can simulate this kind of fluency and make an educated guess about a text's language. There is the chardet library that uses that study to try to detect encoding. chardet is a port of the auto-detection code in Mozilla. You can also use UnicodeDammit. It will try the following methods: An encoding discovered in the document itself: for instance, in an XML declaration or (for HTML documents) an http-equiv META tag. If Beautiful Soup finds this kind of encoding within the document, it parses the document again from the beginning and gives the new encoding a try. The only exception is if you explicitly specified an encoding, and that encoding actually worked: then it will ignore any encoding it finds in the document. An encoding sniffed by looking at the first few bytes of the file. If an encoding is detected at this stage, it will be one of the UTF-* encodings, EBCDIC, or ASCII. An encoding sniffed by the chardet library, if you have it installed. UTF-8 Windows-1252 </s><s>[INST] get python class parent(s) How can I get the parent(s) object of python class? [/INST] Use the following attribute: cls.__bases__ From the docs: The tuple of base classes of a class object. Example: >>> str.__bases__ (<type 'basestring'>,) Another example: >>> class A(object): ... pass ... >>> class B(object): ... pass ... >>> class C(A, B): ... pass ... >>> C.__bases__ (<class '__main__.A'>, <class '__main__.B'>) </s><s>[INST] How can I find all subclasses of a class given its name? I need a working approach of getting all classes that are inherited from the base class in Python. [/INST] New-style classes (i.e. subclassed from object, which is the default in Python 3) have a __subclasses__ method which returns the subclasses: class Foo(object): pass class Bar(Foo): pass class Baz(Foo): pass class Bing(Bar): pass Here are the names of the subclasses: print([cls.__name__ for cls in vars()['Foo'].__subclasses__()]) # ['Bar', 'Baz'] Here are the subclasses themselves: print(vars()['Foo'].__subclasses__()) # [<class '__main__.Bar'>, <class '__main__.Baz'>] Confirmation that the subclasses do indeed list Foo as their base: for cls in vars()['Foo'].__subclasses__(): print(cls.__base__) # <class '__main__.Foo'> # <class '__main__.Foo'> Note if you want subsubclasses, you'll have to recurse: def all_subclasses(cls): return cls.__subclasses__() + [g for s in cls.__subclasses__() for g in all_subclasses(s)] print(all_subclasses(vars()['Foo'])) # [<class '__main__.Bar'>, <class '__main__.Baz'>, <class '__main__.Bing'>] </s><s>[INST] Using Python's os.path, how do I go up one directory? I recently upgrade Django from v1.3.1 to v1.4. In my old settings.py I have TEMPLATE_DIRS = ( os.path.join(os.path.dirname( __file__ ), 'templates').replace('\\', '/'), # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) This will point to /Users/hobbes3/Sites/mysite/templates, but because Django v1.4 moved the project folder to the same level as the app folders, my settings.py file is now in /Users/hobbes3/Sites/mysite/mysite/ instead of /Users/hobbes3/Sites/mysite/. So actually my question is now twofold: How do I use os.path to look at a directory one level above from __file__. In other words, I want /Users/hobbes3/Sites/mysite/mysite/settings.py to find /Users/hobbes3/Sites/mysite/templates using relative paths. Should I be keeping the template folder (which has cross-app templates, like admin, registration, etc.) at the project /User/hobbes3/Sites/mysite level or at /User/hobbes3/Sites/mysite/mysite? [/INST] os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'templates')) As far as where the templates folder should go, I don't know since Django 1.4 just came out and I haven't looked at it yet. You should probably ask another question on SE to solve that issue. You can also use normpath to clean up the path, rather than abspath. However, in this situation, Django expects an absolute path rather than a relative path. For cross platform compatability, use os.pardir instead of '..'. </s><s>[INST] Improve subplot size/spacing with many subplots in matplotlib Very similar to this question but with the difference that my figure can be as large as it needs to be. I need to generate a whole bunch of vertically-stacked plots in matplotlib. The result will be saved using figsave and viewed on a webpage, so I don't care how tall the final image is as long as the subplots are spaced so they don't overlap. No matter how big I allow the figure to be, the subplots always seem to overlap. My code currently looks like import matplotlib.pyplot as plt import my_other_module titles, x_lists, y_lists = my_other_module.get_data() fig = plt.figure(figsize=(10,60)) for i, y_list in enumerate(y_lists): plt.subplot(len(titles), 1, i) plt.xlabel("Some X label") plt.ylabel("Some Y label") plt.title(titles[i]) plt.plot(x_lists[i],y_list) fig.savefig('out.png', dpi=100) [/INST] Try using plt.tight_layout As a quick example: import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=4, ncols=4) fig.tight_layout() # Or equivalently, "plt.tight_layout()" plt.show() Without Tight Layout With Tight Layout </s><s>[INST] nosetests is capturing the output of my print statements. How to circumvent this? When I type $ nosetests -v mytest.py all my print outputs are captured when all tests pass. I want to see print outputs even everything passes. So what I'm doing is to force an assertion error to see the output, like this. class MyTest(TestCase): def setUp(self): self.debug = False def test_0(self): a = .... # construct an instance of something # ... some tests statements print a.dump() if self.debug: eq_(0,1) It feels so hackish, there must be a better way. Enlighten me please. [/INST] Either: $ nosetests --nocapture mytest.py Or: $ NOSE_NOCAPTURE=1 nosetests mytests.py (it can also be specified in the nose.cfg file, see nosetests --help) </s><s>[INST] Why is pow(a, d, n) so much faster than a**d % n? I was trying to implement a Miller-Rabin primality test, and was puzzled why it was taking so long (> 20 seconds) for midsize numbers (~7 digits). I eventually found the following line of code to be the source of the problem: x = a**d % n (where a, d, and n are all similar, but unequal, midsize numbers, ** is the exponentiation operator, and % is the modulo operator) I then I tried replacing it with the following: x = pow(a, d, n) and it by comparison it is almost instantaneous. For context, here is the original function: from random import randint def primalityTest(n, k): if n < 2: return False if n % 2 == 0: return False s = 0 d = n - 1 while d % 2 == 0: s += 1 d >>= 1 for i in range(k): rand = randint(2, n - 2) x = rand**d % n # offending line if x == 1 or x == n - 1: continue for r in range(s): toReturn = True x = pow(x, 2, n) if x == 1: return False if x == n - 1: toReturn = False break if toReturn: return False return True print(primalityTest(2700643,1)) An example timed calculation: from timeit import timeit a = 2505626 d = 1520321 n = 2700643 def testA(): print(a**d % n) def testB(): print(pow(a, d, n)) print("time: %(time)fs" % {"time":timeit("testA()", setup="from __main__ import testA", number=1)}) print("time: %(time)fs" % {"time":timeit("testB()", setup="from __main__ import testB", number=1)}) Output (run with PyPy 1.9.0): 2642565 time: 23.785543s 2642565 time: 0.000030s Output (run with Python 3.3.0, 2.7.2 returns very similar times): 2642565 time: 14.426975s 2642565 time: 0.000021s And a related question, why is this calculation almost twice as fast when run with Python 2 or 3 than with PyPy, when usually PyPy is much faster? [/INST] See the Wikipedia article on modular exponentiation. Basically, when you do a**d % n, you actually have to calculate a**d, which could be quite large. But there are ways of computing a**d % n without having to compute a**d itself, and that is what pow does. The ** operator can't do this because it can't "see into the future" to know that you are going to immediately take the modulus. </s><s>[INST] What is Ruby equivalent of Python's `s= "hello, %s. Where is %s?" % ("John","Mary")` In Python, this idiom for string formatting is quite common s = "hello, %s. Where is %s?" % ("John","Mary") What is the equivalent in Ruby? [/INST] The easiest way is string interpolation. You can inject little pieces of Ruby code directly into your strings. name1 = "John" name2 = "Mary" "hello, #{name1}. Where is #{name2}?" You can also do format strings in Ruby. "hello, %s. Where is %s?" % ["John", "Mary"] Remember to use square brackets there. Ruby doesn't have tuples, just arrays, and those use square brackets. </s><s>[INST] Where to set maximum line length in pycharm I am using pycharm on windows. I am not getting the settings to change the maximum line length to 79 characters. I see that it is 120 characters by default. Where can I change it to 79 characters? I searched in the settings but didn't find. Thanks [/INST] Here is screenshot of my Pycharm. Required settings is in following path: File -> Settings -> Editor -> Code Style -> General: Right margin (columns) </s><s>[INST] In Django, how does one filter a QuerySet with dynamic field lookups? Given a class: from django.db import models class Person(models.Model): name = models.CharField(max_length=20) Is it possible, and if so how, to have a QuerySet that filters based on dynamic arguments? For example: # Instead of: Person.objects.filter(name__startswith='B') # ... and: Person.objects.filter(name__endswith='B') # ... is there some way, given: filter_by = '{0}__{1}'.format('name', 'startswith') filter_value = 'B' # ... that you can run the equivalent of this? Person.objects.filter(filter_by=filter_value) # ... which will throw an exception, since `filter_by` is not # an attribute of `Person`. Help is much appreciated & thank you in advance. [/INST] Python's argument expansion may be used to solve this problem: kwargs = { '{0}__{1}'.format('name', 'startswith'): 'A', '{0}__{1}'.format('name', 'endswith'): 'Z' } Person.objects.filter(**kwargs) This is a very common and useful Python idiom. </s><s>[INST] Is it possible to install another version of Python to Virtualenv? I have a shared account in a web-hosting that has Python 2.4 installed, but my code is not compatible with 2.4. Is it possible to install Python 2.6 directly to Virtualenv? Note: I don´t have permission to install it in the shared server. [/INST] Here are the options for virtualenv $ virtualenv You must provide a DEST_DIR Usage: virtualenv [OPTIONS] DEST_DIR Options: --version show program's version number and exit. -h, --help show this help message and exit. -v, --verbose Increase verbosity. -q, --quiet Decrease verbosity. -p PYTHON_EXE, --python=PYTHON_EXE The Python interpreter to use, e.g., --python=python2.5 will use the python2.5 interpreter to create the new environment. The default is the interpreter that virtualenv was installed with (/usr/bin/python) --clear Clear out the non-root install and start from scratch --no-site-packages Don't give access to the global site-packages dir to the virtual environment --unzip-setuptools Unzip Setuptools or Distribute when installing it --relocatable Make an EXISTING virtualenv environment relocatable. This fixes up scripts and makes all .pth files relative --distribute Use Distribute instead of Setuptools. Set environ variable VIRTUALENV_USE_DISTRIBUTE to make it the default --prompt==PROMPT Provides an alternative prompt prefix for this environment 1) What you want to do is install python to a directory that you are able to write too. You can follow the instructions here. For Python 2.7.1 Python source mkdir ~/src mkdir ~/.localpython cd ~/src wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz tar -zxvf Python-2.7.1.tgz cd Python-2.7.1 make clean ./configure --prefix=/home/${USER}/.localpython make make install 2) Install virtualenv virtualenv source cd ~/src wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz#md5=fbcefbd8520bb64bc24a560c6019a73c tar -zxvf virtualenv-1.5.2.tar.gz cd virtualenv-1.5.2/ ~/.localpython/bin/python setup.py install 3) Create a virtualenv using your local python virtualenv docs mkdir /home/${USER}/virtualenvs cd /home/${USER}/virtualenvs ~/.localpython/bin/virtualenv py2.7 --python=/home/${USER}/.localpython/bin/python2.7 4) Activate the environment cd ~/virtualenvs/py2.7/bin source ./activate 5) Check (py2.7)$ python Python 2.7.1 (r271:86832, Mar 31 2011, 15:31:37) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> exit() (py2.7)$ deactivate $ python Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> </s><s>[INST] django filter with list of values I'm sure this is a trivial operation, but I can't figure out how it's done... How can I create a django query for a list of values. There got to be something smarter than this: ids = [1, 3, 6, 7, 9] for id in ids: MyModel.objects.filter( pk=id ) I'm looking to get them all in one show with something like: ids = [1, 3, 6, 7, 9] MyModel.objects.filter( pk=ids ) [/INST] From the Django documentation: Blog.objects.filter(pk__in=[1,4,7]) </s><s>[INST] sorting arrays in numpy by column How can I sort an array in numpy by the nth column? e.g. a = array([[1,2,3],[4,5,6],[0,0,1]]) I'd like to sort by the second column, such that I get back: array([[0,0,1],[1,2,3],[4,5,6]]) thanks. [/INST] I suppose this works: a[a[:,1].argsort()] </s><s>[INST] Why does Python 3 allow "00" as a literal for 0 but not allow "01" as a literal for 1? Why does Python 3 allow "00" as a literal for 0 but not allow "01" as a literal for 1? Is there a good reason? This inconsistency baffles me. (And we're talking about Python 3, which purposely broke backward compatibility in order to achieve goals like consistency.) For example: >>> from datetime import time >>> time(16, 00) datetime.time(16, 0) >>> time(16, 01) File "<stdin>", line 1 time(16, 01) ^ SyntaxError: invalid token >>> [/INST] Per https://docs.python.org/3/reference/lexical_analysis.html#integer-literals: Integer literals are described by the following lexical definitions: integer ::= decimalinteger | octinteger | hexinteger | bininteger decimalinteger ::= nonzerodigit digit* | "0"+ nonzerodigit ::= "1"..."9" digit ::= "0"..."9" octinteger ::= "0" ("o" | "O") octdigit+ hexinteger ::= "0" ("x" | "X") hexdigit+ bininteger ::= "0" ("b" | "B") bindigit+ octdigit ::= "0"..."7" hexdigit ::= digit | "a"..."f" | "A"..."F" bindigit ::= "0" | "1" There is no limit for the length of integer literals apart from what can be stored in available memory. Note that leading zeros in a non-zero decimal number are not allowed. This is for disambiguation with C-style octal literals, which Python used before version 3.0. As noted here, leading zeros in a non-zero decimal number are not allowed. "0"+ is legal as a very special case, which wasn't present in Python 2: integer ::= decimalinteger | octinteger | hexinteger | bininteger decimalinteger ::= nonzerodigit digit* | "0" octinteger ::= "0" ("o" | "O") octdigit+ | "0" octdigit+ SVN commit r55866 implemented PEP 3127 in the tokenizer, which forbids the old 0<octal> numbers. However, curiously, it also adds this note: /* in any case, allow '0' as a literal */ with a special nonzero flag that only throws a SyntaxError if the following sequence of digits contains a nonzero digit. This is odd because PEP 3127 does not allow this case: This PEP proposes that the ability to specify an octal number by using a leading zero will be removed from the language in Python 3.0 (and the Python 3.0 preview mode of 2.6), and that a SyntaxError will be raised whenever a leading "0" is immediately followed by another digit. (emphasis mine) So, the fact that multiple zeros are allowed is technically violating the PEP, and was basically implemented as a special case by Georg Brandl. He made the corresponding documentation change to note that "0"+ was a valid case for decimalinteger (previously that had been covered under octinteger). We'll probably never know exactly why Georg chose to make "0"+ valid - it may forever remain an odd corner case in Python. UPDATE [28 Jul 2015]: This question led to a lively discussion thread on python-ideas in which Georg chimed in: Steven D'Aprano wrote: Why was it defined that way? [...] Why would we write 0000 to get zero? I could tell you, but then I'd have to kill you. Georg Later on, the thread spawned this bug report aiming to get rid of this special case. Here, Georg says: I don't recall the reason for this deliberate change (as seen from the docs change). I'm unable to come up with a good reason for this change now [...] and thus we have it: the precise reason behind this inconsistency is lost to time. Finally, note that the bug report was rejected: leading zeros will continue to be accepted only on zero integers for the rest of Python 3.x. </s><s>[INST] Printing without newline (print 'a',) prints a space, how to remove? I have this code: >>> for i in xrange(20): ... print 'a', ... a a a a a a a a a a a a a a a a a a a a I want to output 'a', without ' ' like this: aaaaaaaaaaaaaaaaaaaa Is it possible? [/INST] From http://docs.python.org/whatsnew/2.6.html#pep-3105-print-as-a-function >>> from __future__ import print_function >>> print('a', end='') Obviously that only works with python 2.6 or higher. </s><s>[INST] matplotlib does not show my drawings although I call pyplot.show() I need your help about matplotlib. Yes, I did not forget calling the pyplot.show(). $ ipython --pylab import matplotlib.pyplot as p p.plot(range(20), range(20)) It returns matplotlib.lines.Line2D at 0xade2b2c as the output. p.show() There is nothing to happen. No error message. No new window. Nothing. I install matplotlib by using pip and I didn't take any error messages. Details: I use, Ubuntu IPython v0.11 Python v2.6.6 matplotlib v1.0.1 [/INST] If I set my backend to template in ~/.matplotlib/matplotlibrc, then I can reproduce your symptoms: ~/.matplotlib/matplotlibrc: # backend : GtkAgg backend : template Note that the file matplotlibrc may not be in directory ~/.matplotlib/. In this case, the following code shows where it is: >>> import matplotlib >>> matplotlib.matplotlib_fname() In [1]: import matplotlib.pyplot as p In [2]: p.plot(range(20),range(20)) Out[2]: [<matplotlib.lines.Line2D object at 0xa64932c>] In [3]: p.show() If you edit ~/.matplotlib/matplotlibrc and change the backend to something like GtkAgg, you should see a plot. You can list all the backends available on your machine with import matplotlib.rcsetup as rcsetup print(rcsetup.all_backends) It should return a list like: ['GTK', 'GTKAgg', 'GTKCairo', 'FltkAgg', 'MacOSX', 'QtAgg', 'Qt4Agg', 'TkAgg', 'WX', 'WXAgg', 'CocoaAgg', 'agg', 'cairo', 'emf', 'gdk', 'pdf', 'ps', 'svg', 'template'] Reference: Customizing matplotlib </s><s>[INST] Python super() raises TypeError In Python 2.5.2, the following code raises a TypeError: >>> class X: ... def a(self): ... print "a" ... >>> class Y(X): ... def a(self): ... super(Y,self).a() ... print "b" ... >>> c = Y() >>> c.a() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 3, in a TypeError: super() argument 1 must be type, not classobj If I replace the class X with class X(object), it will work. What's the explanation for this? [/INST] The reason is that super() only operates on new-style classes, which in the 2.x series means extending from object. </s><s>[INST] Python list sort in descending order How can I sort this list in descending order? timestamp = [ "2010-04-20 10:07:30", "2010-04-20 10:07:38", "2010-04-20 10:07:52", "2010-04-20 10:08:22", "2010-04-20 10:08:22", "2010-04-20 10:09:46", "2010-04-20 10:10:37", "2010-04-20 10:10:58", "2010-04-20 10:11:50", "2010-04-20 10:12:13", "2010-04-20 10:12:13", "2010-04-20 10:25:38" ] [/INST] timestamp.sort(key=lambda x: time.strptime(x, '%Y-%m-%d %H:%M:%S')[0:6], reverse=True) </s><s>[INST] APT command line interface-like yes/no input? Is there any short way to achieve what the APT (Advanced Package Tool) command line interface does in Python? I mean, when the package manager prompts a yes/no question followed by [Yes/no], the script accepts YES/Y/yes/y or Enter (defaults to Yes as hinted by the capital letter). The only thing I find in the official docs is input and raw_input... I know it's not that hard to emulate, but it's annoying to rewrite :| [/INST] As you mentioned, the easiest way is to use raw_input(). There is no built-in way to do this. From Recipe 577058: import sys def query_yes_no(question, default="yes"): """Ask a yes/no question via raw_input() and return their answer. "question" is a string that is presented to the user. "default" is the presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). The "answer" return value is True for "yes" or False for "no". """ valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False} if default is None: prompt = " [y/n] " elif default == "yes": prompt = " [Y/n] " elif default == "no": prompt = " [y/N] " else: raise ValueError("invalid default answer: '%s'" % default) while True: sys.stdout.write(question + prompt) choice = raw_input().lower() if default is not None and choice == '': return valid[default] elif choice in valid: return valid[choice] else: sys.stdout.write("Please respond with 'yes' or 'no' " "(or 'y' or 'n').\n") Usage example: >>> query_yes_no("Is cabbage yummier than cauliflower?") Is cabbage yummier than cauliflower? [Y/n] oops Please respond with 'yes' or 'no' (or 'y' or 'n'). Is cabbage yummier than cauliflower? [Y/n] [ENTER] >>> True >>> query_yes_no("Is cabbage yummier than cauliflower?", None) Is cabbage yummier than cauliflower? [y/n] [ENTER] Please respond with 'yes' or 'no' (or 'y' or 'n'). Is cabbage yummier than cauliflower? [y/n] y >>> True </s><s>[INST] Concatenating two one-dimensional NumPy arrays I have two simple one-dimensional arrays in NumPy. I should be able to concatenate them using numpy.concatenate. But I get this error for the code below: TypeError: only length-1 arrays can be converted to Python scalars Code import numpy a = numpy.array([1, 2, 3]) b = numpy.array([5, 6]) numpy.concatenate(a, b) Why? [/INST] The line should be: numpy.concatenate([a,b]) The arrays you want to concatenate need to passed in as a sequence, not as separate arguments. From the NumPy documentation: numpy.concatenate((a1, a2, ...), axis=0) Join a sequence of arrays together. It was trying to interpret your b as the axis parameter, which is why it complained it couldn't convert it into a scalar. </s><s>[INST] Passing functions with arguments to another function in Python? Is it possible to pass functions with arguments to another function in Python? Say for something like: def Perform ( function ) : function but the functions to be passed will be like: Action1() Action2(p) Action3(p,r) [/INST] Do you mean this? def perform( fun, *args ): fun( *args ) def action1( args ): something def action2( args ): something perform( action1 ) perform( action2, p ) perform( action3, p, r ) </s><s>[INST] how best do I find the intersection of multiple sets in python? I have a list of sets: setlist = [s1,s2,s3...] I want s1 ∩ s2 ∩ s3 ... I can write a function to do it by performing a series of pairwise s1.intersection(s2), etc. Is there a recommended, better, or built-in way? [/INST] From Python version 2.6 on you can use multiple arguments to set.intersection(), like u = set.intersection(s1, s2, s3) If the sets are in a list, this translates to: u = set.intersection(*setlist) where *a_list is list expansion </s><s>[INST] Joining List has integer values with python I need to join a list of items. Many of the items in the list are integer values returned from a function. ie: myList.append(munfunc()) How should I convert the returned result to a string in order to join it with the list? Do i need to do the following for every integer value : myList.append (str(myfunc()) Is there a more pythonic way to solve casting problems? [/INST] Calling str(...) is the Pythonic way to convert something to a string. You might want to consider why you want a list of strings. You could instead keep it as a list of integers and only convert the integers to strings when you need to display them. For example, if you have a list of integers then you can do this: print ', '.join(str(x) for x in list_of_ints) </s><s>[INST] pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible When I run a very simple code with pydot import pydot graph = pydot.Dot(graph_type='graph') for i in range(3): edge = pydot.Edge("king", "lord%d" % i) graph.add_edge(edge) vassal_num = 0 for i in range(3): for j in range(2): edge = pydot.Edge("lord%d" % i, "vassal%d" % vassal_num) graph.add_edge(edge) vassal_num += 1 graph.write_png('example1_graph.png') It prints me the error message: Couldn't import dot_parser, loading of dot files will not be possible. I'm using python 2.7.3 [/INST] Answer for pydot >= 1.1: The incompatibility of (upstream) pydot has been fixed by 6dff94b3f1, and thus pydot >= 1.1 will be compatible with pyparsing >= 1.5.7. Answer applicable to pydot <= 1.0.28: For anyone else who comes across this, it is due to the changes in pyparsing from 1.x to the 2.x release. To install pydot using pip, first install the older version of pyparsing: pip install pyparsing==1.5.7 pip install pydot==1.0.28 If you did not install pyparsing using pip, but instead used setup.py, then have a look at this solution to uninstall the package. Thanks @qtips. </s><s>[INST] Converting between datetime, Timestamp and datetime64 How do I convert a numpy.datetime64 object to a datetime.datetime (or Timestamp)? In the following code, I create a datetime, timestamp and datetime64 objects. import datetime import numpy as np import pandas as pd dt = datetime.datetime(2012, 5, 1) # A strange way to extract a Timestamp object, there's surely a better way? ts = pd.DatetimeIndex([dt])[0] dt64 = np.datetime64(dt) In [7]: dt Out[7]: datetime.datetime(2012, 5, 1, 0, 0) In [8]: ts Out[8]: <Timestamp: 2012-05-01 00:00:00> In [9]: dt64 Out[9]: numpy.datetime64('2012-05-01T01:00:00.000000+0100') Note: it's easy to get the datetime from the Timestamp: In [10]: ts.to_datetime() Out[10]: datetime.datetime(2012, 5, 1, 0, 0) But how do we extract the datetime or Timestamp from a numpy.datetime64 (dt64)? . Update: a somewhat nasty example in my dataset (perhaps the motivating example) seems to be: dt64 = numpy.datetime64('2002-06-28T01:00:00.000000000+0100') which should be datetime.datetime(2002, 6, 28, 1, 0), and not a long (!) (1025222400000000000L)... [/INST] You can just use the pd.Timestamp constructor. The following diagram may be useful for this and related questions. </s><s>[INST] What is :: (double colon) in Python when subscripting sequences? I know I can use something like string[3:4] to get a substring in Python, but what does the 3 mean in somesequence[::3]? [/INST] it means 'nothing for the first argument, nothing for the second, and jump by three'. It gets every third item of the sequence sliced. Extended slices is what you want. New in Python 2.3 </s>�������"2��<s>[INST] Is it bad to have my virtualenv directory inside my git repository? I'm thinking about putting the virtualenv for a Django web app I am making inside my git repository for the app. It seems like an easy way to keep deploy's simple and easy. Is there any reason why I shouldn't do this? I'm totally new to virtualenv, so there is a good chance this is a really stupid question. [/INST] I use pip freeze to get the packages I need into a requirements.txt file and add that to my repository. I tried to think of a way of why you would want to store the entire virtualenv, but I could not. </s><s>[INST] Total memory used by Python process? Is there a way for a Python program to determine how much memory it's currently using? I've seen discussions about memory usage for a single object, but what I need is total memory usage for the process, so that I can determine when it's necessary to start discarding cached data. [/INST] For Unixes (Linux, Mac OS X, Solaris) you could also use the getrusage() function from the standard library module resource. The resulting object has the attribute ru_maxrss, which gives peak memory usage for the calling process: >>> resource.getrusage(resource.RUSAGE_SELF).ru_maxrss 2656 # peak memory usage (bytes on OS X, kilobytes on Linux) The Python docs aren't clear on what the units are exactly, but the Mac OS X man page for getrusage(2) describes the units as bytes. The Linux man page isn't clear, but it seems to be equivalent to the information from /proc/self/status, which is in kilobytes. The getrusage() function can also be given resource.RUSAGE_CHILDREN to get the usage for child processes, and (on some systems) resource.RUSAGE_BOTH for total (self and child) process usage. resource is a standard library module. If you only care about Linux, you can just check the /proc/self/status file as described in a similar question. </s><s>[INST] What is the 'cls' variable used in python classes? Why is 'cls' used instead of 'self'? Any help appreciated [/INST] The distinction between "self" and "cls" is defined in PEP 8 . As Adrien said, this is not a mandatory. It's a coding style. PEP 8 says: Function and method arguments: Always use self for the first argument to instance methods. Always use cls for the first argument to class methods. </s><s>[INST] Remove all the elements that occur in one list from another Let's say I have two lists, l1 and l2. I want to perform l1 - l2, which returns all elements of l1 not in l2. I can think of a naive loop approach to doing this, but that is going to be really inefficient. What is a pythonic and efficient way of doing this? As an example, if I have l1 = [1,2,6,8] and l2 = [2,3,5,8], l1 - l2 should return [1,6] [/INST] Python has a language feature called List Comprehensions that is perfectly suited to making this sort of thing extremely easy. The following statement does exactly what you want and stores the result in l3: l3 = [x for x in l1 if x not in l2] l3 will contain [1, 6]. Hope this helps! </s><s>[INST] Python != operation vs "is not" In a comment on this question, I saw a statement that recommended using result is not None vs result != None I was wondering what the difference is, and why one might be recommended over the other? [/INST] == is an equality test. It checks whether the right hand side and the left hand side are equal objects (according to their __eq__ or __cmp__ methods.) is is an identity test. It checks whether the right hand side and the left hand side are the very same object. No methodcalls are done, objects can't influence the is operation. You use is (and is not) for singletons, like None, where you don't care about objects that might want to pretend to be None or where you want to protect against objects breaking when being compared against None. </s><s>[INST] Currency formatting in Python I am looking to format a number like 188518982.18 to £188,518,982.18 using Python. How can I do this? [/INST] See the locale module. This does currency (and date) formatting. >>> import locale >>> locale.setlocale( locale.LC_ALL, '' ) 'English_United States.1252' >>> locale.currency( 188518982.18 ) '$188518982.18' >>> locale.currency( 188518982.18, grouping=True ) '$188,518,982.18' </s><s>[INST] How to get exit code when using Python subprocess communicate method? How do I retrieve the exit code when using Python's subprocess module and the communicate() method? Relevant code: import subprocess as sp data = sp.Popen(openRTSP + opts.split(), stdout=sp.PIPE).communicate()[0] Should I be doing this another way? [/INST] Popen.communicate will set the returncode attribute when it's done(*). Here's the relevant documentation section: Popen.returncode The child return code, set by poll() and wait() (and indirectly by communicate()). A None value indicates that the process hasn’t terminated yet. A negative value -N indicates that the child was terminated by signal N (Unix only). So you can just do (I didn't test it but it should work): import subprocess as sp child = sp.Popen(openRTSP + opts.split(), stdout=sp.PIPE) streamdata = child.communicate()[0] rc = child.returncode (*) This happens because of the way it's implemented: after setting up threads to read the child's streams, it just calls wait. </s><s>[INST] Python argparse command line flags without arguments How do I add an optional flag to my command line args? eg. so I can write python myprog.py or python myprog.py -w I tried parser.add_argument('-w') But I just get an error message saying Usage [-w W] error: argument -w: expected one argument which I take it means that it wants an argument value for the -w option. What's the way of just accepting a flag? I'm finding http://docs.python.org/library/argparse.html rather opaque on this question. [/INST] As you have it, the argument w is expecting a value after -w on the command line. If you are just looking to flip a switch by setting a variable True or False, have a look at http://docs.python.org/dev/library/argparse.html#action (specifically store_true and store_false) parser.add_argument('-w', action='store_true') Edit: As Sven points out, a default value in this case is superfluous. </s><s>[INST] Python nonlocal statement What does the Python nonlocal statement do (in Python 3.0 and later)? There's no documentation on the official Python website and help("nonlocal") does not work, either. [/INST] Compare this, without using nonlocal: x = 0 def outer(): x = 1 def inner(): x = 2 print("inner:", x) inner() print("outer:", x) outer() print("global:", x) # inner: 2 # outer: 1 # global: 0 To this, using nonlocal, where inner()'s x is now also outer()'s x: x = 0 def outer(): x = 1 def inner(): nonlocal x x = 2 print("inner:", x) inner() print("outer:", x) outer() print("global:", x) # inner: 2 # outer: 2 # global: 0 If we were to use global, it would bind x to the properly "global" value: x = 0 def outer(): x = 1 def inner(): global x x = 2 print("inner:", x) inner() print("outer:", x) outer() print("global:", x) # inner: 2 # outer: 1 # global: 2 </s><s>[INST] Append integer to beginning of list in Python I have an integer and a list. I would like to make a new list of them beginning with the variable and ending with the list. Writing a + list I get errors. The compiler handles a as integer, thus I cannot use append, or extend either. How would you do this? [/INST] >>>var=7 >>>array = [1,2,3,4,5,6] >>>array.insert(0,var) >>>array [7, 1, 2, 3, 4, 5, 6] How it works: array.insert(i, x) Insert an item at a given position. The first argument is the index of the element before which to insert, so array.insert(0, x) inserts at the front of the list, and array.insert(len(array), x) is equivalent to array.append(x).Negative values are treated as being relative to the end of the array. </s><s>[INST] Python - Convert UTC datetime string to local datetime I've never had to convert time to and from utc. Recently had a request to have my app be timezone aware, and I've been running myself in circles. Lots of information on converting local time to utc, which I found fairly elementary (maybe I'm doing that wrong as well), but I can not find any information on easily converting the utc time to the end-users timezone. In a nutshell, and android app sends me (appengine app) data and within that data is a timestamp. To store that timestamp to utc time I am using: datetime.utcfromtimestamp(timestamp) That seems to be working. When my app stores the data, it is being store as 5 hours ahead (I am EST -5) The data is being stored on appengine's BigTable, and when retrieved it comes out as a string like so: "2011-01-21 02:37:21" How do I convert this string to a DateTime in the users correct time zone? Also, what is the recommended storage for a users timezone information? (How do you typically store tz info ie: "-5:00" or "EST" etc etc ?) I'm sure the answer to my first question might contain a parameter the answers the second. [/INST] If you don't want to provide your own tzinfo objects, check out the python-dateutil library. It provides tzinfo implementations on top of a zoneinfo (Olson) database such that you can refer to time zone rules by a somewhat canonical name. from datetime import datetime from dateutil import tz # METHOD 1: Hardcode zones: from_zone = tz.gettz('UTC') to_zone = tz.gettz('America/New_York') # METHOD 2: Auto-detect zones: from_zone = tz.tzutc() to_zone = tz.tzlocal() # utc = datetime.utcnow() utc = datetime.strptime('2011-01-21 02:37:21', '%Y-%m-%d %H:%M:%S') # Tell the datetime object that it's in UTC time zone since # datetime objects are 'naive' by default utc = utc.replace(tzinfo=from_zone) # Convert time zone central = utc.astimezone(to_zone) Edit Expanded example to show strptime usage Edit 2 Fixed API usage to show better entry point method Edit 3 Included auto-detect methods for timezones (Yarin) </s><s>[INST] Which is better in python, del or delattr? This may be silly, but its been nagging the back of my brain for a while. Python gives us two built-in ways to delete attributes from objects, the del command word and the delattr built-in function. I prefer delattr because it I think its a bit more explicit: del foo.bar delattr(foo, "bar") But I'm wondering if there might be under-the-hood differences between them. [/INST] The first is more efficient than the second. del foo.bar compiles to two bytecode instructions: 2 0 LOAD_FAST 0 (foo) 3 DELETE_ATTR 0 (bar) whereas delattr(foo, "bar") takes five: 2 0 LOAD_GLOBAL 0 (delattr) 3 LOAD_FAST 0 (foo) 6 LOAD_CONST 1 ('bar') 9 CALL_FUNCTION 2 12 POP_TOP This translates into the first running slightly faster (but it's not a huge difference – .15 μs on my machine). Like the others have said, you should really only use the second form when the attribute that you're deleting is determined dynamically. [Edited to show the bytecode instructions generated inside a function, where the compiler can use LOAD_FAST and LOAD_GLOBAL] </s><s>[INST] Print multiple arguments in python This is just a snippet of my code: print("Total score for %s is %s ", name, score) but I want it to print out: "Total score for (name) is (score)" where name is a variable in a list and score is an integer. This is python 3.3 if that helps at all. [/INST] Pass it as a tuple: print("Total score for %s is %s " % (name, score)) Or use the new-style string formatting: print("Total score for {} is {}".format(name, score)) Or pass the values as parameters and print will do it: print("Total score for", name, "is", score) If you don't want spaces to be inserted automatically by print, change the sep parameter: print("Total score for ", name, " is ", score, sep='') If you're using Python 2, you won't be able to use the last two because print isn't a function in Python 2. You can, however, import this behavior from __future__: from __future__ import print_function </s><s>[INST] How to find elements by class I'm having trouble parsing html elements with "class" attribute using Beautifulsoup. The code looks like this soup = BeautifulSoup(sdata) mydivs = soup.findAll('div') for div in mydivs: if (div["class"]=="stylelistrow"): print div I get an error on the same line "after" the script finishes. File "./beautifulcoding.py", line 130, in getlanguage if (div["class"]=="stylelistrow"): File "/usr/local/lib/python2.6/dist-packages/BeautifulSoup.py", line 599, in __getitem__ return self._getAttrMap()[key] KeyError: 'class' How do I get rid or this error? [/INST] You can refine your search to only find those divs with a given class: mydivs = soup.findAll("div", { "class" : "stylelistrow" }) </s><s>[INST] Python: Add list to set? Tested on Python 2.6 interpreter: >>> a=set('abcde') >>> a set(['a', 'c', 'b', 'e', 'd']) >>> l=['f','g'] >>> l ['f', 'g'] >>> a.add(l) Traceback (most recent call last): File "<pyshell#35>", line 1, in <module> a.add(l) TypeError: list objects are unhashable I think that I can't add the list to the set because there's no way Python can tell If I have added the same list twice. Is there a workaround? EDIT: I want to add the list itself, not its elements. [/INST] >>> a = set('abcde') >>> l = ['f', 'g'] >>> a |= set(l) >>> a set(['a', 'c', 'b', 'e', 'd', 'g', 'f']) The union operator is much faster than add anyway. edit: If you want the list itself and not its members, then you must use a tuple, unfortunately. Set members must be hashable. </s><s>[INST] Parse a .py file, read the AST, modify it, then write back the modified source code I want to programmatically edit python source code. Basically I want to read a .py file, generate the AST, and then write back the modified python source code (i.e. another .py file). There are ways to parse/compile python source code using standard python modules, such as ast or compiler. However, I don't think any of them support ways to modify the source code (e.g. delete this function declaration) and then write back the modifying python source code. UPDATE: The reason I want to do this is I'd like to write a Mutation testing library for python, mostly by deleting statements / expressions, rerunning tests and seeing what breaks. [/INST] Pythoscope does this to the test cases it automatically generates as does the 2to3 tool for python 2.6 (it converts python 2.x source into python 3.x source). Both these tools uses the lib2to3 library which is a implementation of the python parser/compiler machinery that can preserve comments in source when it's round tripped from source -> AST -> source. The rope project may meet your needs if you want to do more refactoring like transforms. The ast module is your other option, and there's an older example of how to "unparse" syntax trees back into code (using the parser module). But the ast module is more useful when doing an AST transform on code that is then transformed into a code object. The redbaron project also may be a good fit (ht Xavier Combelle) </s>�������]*��<s>[INST] Why does assigning to an empty list (e.g. [] = "") raise no error? In python 3.4, I am typing [] = "" and it works fine, no Exception is raised. Though of course [] is not equal to "" afterwards. [] = () also works fine. "" = [] raises an exception as expected though, () = "" raises an exception as expected though. So, what's going on? [/INST] You are not comparing for equality. You are assigning. Python allows you to assign to multiple targets: foo, bar = 1, 2 assigns the two values to foo and bar, respectively. All you need is a sequence or iterable on the right-hand side, and a list or tuple of names on the left. When you do: [] = "" you assigned an empty sequence (empty strings are sequences still) to an empty list of names. It is essentially the same thing as doing: [foo, bar, baz] = "abc" where you end up with foo = "a", bar = "b" and baz = "c", but with fewer characters. You cannot, however, assign to a string, so "" on the left-hand side of an assignment never works and is always a syntax error. See the Assignment statements documentation: An assignment statement evaluates the expression list (remember that this can be a single expression or a comma-separated list, the latter yielding a tuple) and assigns the single resulting object to each of the target lists, from left to right. and Assignment of an object to a target list, optionally enclosed in parentheses or square brackets, is recursively defined as follows. Emphasis mine. That Python doesn't throw a syntax error for the empty list is actually a bit of a bug! The officially documented grammar doesn't allow for an empty target list, and for the empty () you do get an error. See bug 23275; it is considered a harmless bug: The starting point is recognizing that this has been around for very long time and is harmless. Also see Why is it valid to assign to an empty list but not to an empty tuple? </s><s>[INST] How do I calculate percentiles with python/numpy? Is there a convenient way to calculate percentiles for a sequence or single-dimensional numpy array? I am looking for something similar to Excel's percentile function. I looked in NumPy's statistics reference, and couldn't find this. All I could find is the median (50th percentile), but not something more specific. [/INST] You might be interested in the SciPy Stats package. It has the percentile function you're after and many other statistical goodies. percentile() is available in numpy too. import numpy as np a = np.array([1,2,3,4,5]) p = np.percentile(a, 50) # return 50th percentile, e.g median. print p 3.0 This ticket leads me to believe they won't be integrating percentile() into numpy anytime soon. </s><s>[INST] Why doesn't print work in a lambda? Why doesn't this work? lambda: print "x" Is this not a single statement, or is it something else? The documentation seems a little sparse on what is allowed in a lambda... [/INST] A lambda's body has to be a single expression. In Python 2.x, print is a statement. However, in Python 3, print is a function (and a function application is an expression, so it will work in a lambda). You can (and should, for forward compatibility :) use the back-ported print function if you are using the latest Python 2.x: In [1324]: from __future__ import print_function In [1325]: f = lambda x: print(x) In [1326]: f("HI") HI </s><s>[INST] How do I install PyCrypto on Windows? I've read every other google source and SO thread, with nothing working. Python 2.7.3 32bit installed on Windows 7 64bit. Download, extracting, and then trying to install PyCrypto results in "Unable to find vcvarsall.bat". So I install MinGW and tack that on the install line as the compiler of choice. But then I get the error "RuntimeError: chmod error". How in the world do I get around this? I've tried using pip, which gives the same result. I found a prebuilt PyCrypto 2.3 binary and installed that, but it's nowhere to be found on the system (not working). Any ideas? [/INST] If you don't already have a C/C++ development environment installed that is compatible with the Visual Studio binaries distributed by Python.org, then you should stick to installing only pure Python packages or packages for which a Windows binary is available. Fortunately, there are PyCrypto binaries available for Windows: http://www.voidspace.org.uk/python/modules.shtml#pycrypto UPDATE: As @Udi suggests in the comment below, the following command also installs pycrypto and can be used in virtualenv as well: easy_install http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1.win32-py2.7.exe Notice to choose the relevant link for your setup from this list If you're looking for builds for Python 3.5, see PyCrypto on python 3.5 </s><s>[INST] Is it possible to use 'else' in a python list comprehension? Here is the code I was trying to turn into a list comprehension: table = '' for index in xrange(256): if index in ords_to_keep: table += chr(index) else: table += replace_with Is there a way to add the else statement to this comprehension? table = ''.join(chr(index) for index in xrange(15) if index in ords_to_keep) [/INST] The syntax a if b else c is a ternary operator in Python that evaluates to a if the condition b is true - otherwise, it evaluates to c. It can be used in comprehension statements: >>> [a if a else 2 for a in [0,1,0,3]] [2, 1, 2, 3] So for your example, table = ''.join(chr(index) if index in ords_to_keep else replace_with for index in xrange(15)) </s><s>[INST] What's the scope of a Python variable declared in an if statement? I'm new to Python, so this is probably a simple scoping question. The following code in a Python file (module) is confusing me slightly: if __name__ == '__main__': x = 1 print x In other languages I've worked in, this code would throw an exception, as the x variable is local to the if statement and should not exist outside of it. But this code executes, and prints 1. Can anyone explain this behavior? Are all variables created in a module global/available to the entire module? [/INST] Python variables are scoped to the innermost function or module; control blocks like if and while blocks don't count. (IIUC, this is also how JavaScript's var-declared variables work.) </s><s>[INST] Pythonic way to combine FOR loop and IF statement I know how to use both for loops and if statements on separate lines, such as: >>> a = [2,3,4,5,6,7,8,9,0] ... xyz = [0,12,4,6,242,7,9] ... for x in xyz: ... if x in a: ... print(x) 0,4,6,7,9 And I know I can use a list comprehension to combine these when the statements are simple, such as: print([x for x in xyz if x in a]) But what I can't find is a good example anywhere (to copy and learn from) demonstrating a complex set of commands (not just "print x") that occur following a combination of a for loop and some if statements. Something that I would expect looks like: for x in xyz if x not in a: print(x...) Is this just not the way python is supposed to work? [/INST] You can use generator expressions like this: gen = (x for x in xyz if x not in a) for x in gen: print x </s><s>[INST] How to find the mime type of a file in python? Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer. Assumption: The browser figures out which application/viewer to use by the mime-type (content-type?) header in the HTTP response. Based on that assumption, in addition to the bytes of the file, you also want to save the MIME type. How would you find the MIME type of a file? I'm currently on a Mac, but this should also work on Windows. Does the browser add this information when posting the file to the web page? Is there a neat python library for finding this information? A WebService or (even better) a downloadable database? [/INST] The python-magic method suggested by toivotuo is outdated. Python-magic's current trunk is at Github and based on the readme there, finding the MIME-type, is done like this. # For MIME types >>> import magic >>> mime = magic.Magic(mime=True) >>> mime.from_file("testdata/test.pdf") 'application/pdf' >>> </s><s>[INST] How to use filter, map, and reduce in Python 3 filter, map, and reduce work perfectly in Python 2. Here is an example: >>> def f(x): return x % 2 != 0 and x % 3 != 0 >>> filter(f, range(2, 25)) [5, 7, 11, 13, 17, 19, 23] >>> def cube(x): return x*x*x >>> map(cube, range(1, 11)) [1, 8, 27, 64, 125, 216, 343, 512, 729, 1000] >>> def add(x,y): return x+y >>> reduce(add, range(1, 11)) 55 But in Python 3, I receive the following outputs: >>> filter(f, range(2, 25)) <filter object at 0x0000000002C14908> >>> map(cube, range(1, 11)) <map object at 0x0000000002C82B70> >>> reduce(add, range(1, 11)) Traceback (most recent call last): File "<pyshell#8>", line 1, in <module> reduce(add, range(1, 11)) NameError: name 'reduce' is not defined I would appreciate if someone could explain to me why this is. Screenshot of code for further clarity: [/INST] You can read about the changes in What's New In Python 3.0. You should read it thoroughly when you move from 2.x to 3.x since a lot has been changed. The whole answer here are quotes from the documentation. Views And Iterators Instead Of Lists Some well-known APIs no longer return lists: [...] map() and filter() return iterators. If you really need a list, a quick fix is e.g. list(map(...)), but a better fix is often to use a list comprehension (especially when the original code uses lambda), or rewriting the code so it doesn’t need a list at all. Particularly tricky is map() invoked for the side effects of the function; the correct transformation is to use a regular for loop (since creating a list would just be wasteful). [...] Builtins [...] Removed reduce(). Use functools.reduce() if you really need it; however, 99 percent of the time an explicit for loop is more readable. [...] </s>��������"��<s>[INST] How to set target hosts in Fabric file I want to use Fabric to deploy my web app code to development, staging and production servers. My fabfile: def deploy_2_dev(): deploy('dev') def deploy_2_staging(): deploy('staging') def deploy_2_prod(): deploy('prod') def deploy(server): print 'env.hosts:', env.hosts env.hosts = [server] print 'env.hosts:', env.hosts Sample output: host:folder user$ fab deploy_2_dev env.hosts: [] env.hosts: ['dev'] No hosts found. Please specify (single) host string for connection: When I create a set_hosts() task as shown in the Fabric docs, env.hosts is set properly. However, this is not a viable option, neither is a decorator. Passing hosts on the command line would ultimately result in some kind of shell script that calls the fabfile, I would prefer having one single tool do the job properly. It says in the Fabric docs that 'env.hosts is simply a Python list object'. From my observations, this is simply not true. Can anyone explain what is going on here ? How can I set the host to deploy to ? [/INST] I do this by declaring an actual function for each environment. For example: def test(): env.user = 'testuser' env.hosts = ['test.server.com'] def prod(): env.user = 'produser' env.hosts = ['prod.server.com'] def deploy(): ... Using the above functions, I would type the following to deploy to my test environment: fab test deploy ...and the following to deploy to production: fab prod deploy The nice thing about doing it this way is that the test and prod functions can be used before any fab function, not just deploy. It is incredibly useful. </s><s>[INST] Are tuples more efficient than lists in Python? Is there any performance difference between tuples and lists when it comes to instantiation and retrieval of elements? [/INST] In general, you might expect tuples to be slightly faster. However you should definitely test your specific case (if the difference might impact the performance of your program -- remember "premature optimization is the root of all evil"). Python makes this very easy: timeit is your friend. $ python -m timeit "x=(1,2,3,4,5,6,7,8)" 10000000 loops, best of 3: 0.0388 usec per loop $ python -m timeit "x=[1,2,3,4,5,6,7,8]" 1000000 loops, best of 3: 0.363 usec per loop and... $ python -m timeit -s "x=(1,2,3,4,5,6,7,8)" "y=x[3]" 10000000 loops, best of 3: 0.0938 usec per loop $ python -m timeit -s "x=[1,2,3,4,5,6,7,8]" "y=x[3]" 10000000 loops, best of 3: 0.0649 usec per loop So in this case, instantiation is almost an order of magnitude faster for the tuple, but item access is actually somewhat faster for the list! So if you're creating a few tuples and accessing them many many times, it may actually be faster to use lists instead. Of course if you want to change an item, the list will definitely be faster since you'd need to create an entire new tuple to change one item of it (since tuples are immutable). </s><s>[INST] "ValueError: zero length field name in format" error in Python 3.0,3.1,3.2 I'm trying learn Python (3 to be more specific) and I'm getting this error: ValueError: zero length field name in format I googled it and I found out you need to specify the numbers: a, b = 0, 1 if a < b: print('a ({0}) is less than b ({1})'.format(a, b)) else: print('a ({0}) is not less than b ({1})'.format(a, b)) And not like the tutorial (from lynda.com) actually says to do: a, b = 0, 1 if a < b: print('a ({}) is less than b ({})'.format(a, b)) else: print('a ({}) is not less than b ({})'.format(a, b)) The tutorial im following has Python 3.1, and im using 3.2 and what i read about this error is that this only happens in <3.1 (3.0). Did they undo this in 3.2, or am i doing something wrong? Also, speak slowly ;) this is literally my first night learning Python and only the 2nd "script" i've written in Python. [/INST] Python 2.6 and 3.0 require the field numbers. In Python 2.7 and later and 3.1 and later, they can be omitted. Changed in version 2.7: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'. python2.6.4>>> print '|{0:^12}|{1:^12}|'.format(3,4) | 3 | 4 | </s><s>[INST] Python integer division yields float Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> 2/2 1.0 Is this intended? I strongly remember earlier versions returning int/int=int? What should I do, is there a new division operator or must I always cast? [/INST] Take a look at PEP-238: Changing the Division Operator The // operator will be available to request floor division unambiguously. </s><s>[INST] How can I build multiple submit buttons django form? I have form with one input for email and two submit buttons to subscribe and unsubscribe from newsletter: <form action="" method="post"> {{ form_newsletter }} <input type="submit" name="newsletter_sub" value="Subscribe" /> <input type="submit" name="newsletter_unsub" value="Unsubscribe" /> </form> I have also class form: class NewsletterForm(forms.ModelForm): class Meta: model = Newsletter fields = ('email',) I must write my own clean_email method and I need to know by which button was form submited. But the value of submit buttons aren't in self.cleaned_data dictionary. Could I get values of buttons otherwise? [/INST] Eg: if 'newsletter_sub' in request.POST: # do subscribe elif 'newsletter_unsub' in request.POST: # do unsubscribe </s><s>[INST] python: How do I check that multiple keys are in a dict in one go? I want to do something like: foo = {'foo':1,'zip':2,'zam':3,'bar':4} if ("foo","bar") in foo: #do stuff I'm not sure if its possible but would like to know. :-) [/INST] Well, you could do this: >>> if all (k in foo for k in ("foo","bar")): ... print "They're there!" ... They're there! </s><s>[INST] How can I replace all the NaN values with Zero's in a column of a pandas dataframe I have a dataframe as below itm Date Amount 67 420 2012-09-30 00:00:00 65211 68 421 2012-09-09 00:00:00 29424 69 421 2012-09-16 00:00:00 29877 70 421 2012-09-23 00:00:00 30990 71 421 2012-09-30 00:00:00 61303 72 485 2012-09-09 00:00:00 71781 73 485 2012-09-16 00:00:00 NaN 74 485 2012-09-23 00:00:00 11072 75 485 2012-09-30 00:00:00 113702 76 489 2012-09-09 00:00:00 64731 77 489 2012-09-16 00:00:00 NaN when I try to .apply a function to the Amount column I get the following error. ValueError: cannot convert float NaN to integer I have tried applying a function using .isnan from the Math Module I have tried the pandas .replace attribute I tried the .sparse data attribute from pandas 0.9 I have also tried if NaN == NaN statement in a function. I have also looked at this article How do I replace NA values with zeros in R? whilst looking at some other articles. All the methods I have tried have not worked or do not recognise NaN. Any Hints or solutions would be appreciated. [/INST] I believe DataFrame.fillna() will do this for you. Link to Docs for a dataframe and for a Series. Example: In [7]: df Out[7]: 0 1 0 NaN NaN 1 -0.494375 0.570994 2 NaN NaN 3 1.876360 -0.229738 4 NaN NaN In [8]: df.fillna(0) Out[8]: 0 1 0 0.000000 0.000000 1 -0.494375 0.570994 2 0.000000 0.000000 3 1.876360 -0.229738 4 0.000000 0.000000 To fill the NaNs in only one column, select just that column. in this case I'm using inplace=True to actually change the contents of df. In [12]: df[1].fillna(0, inplace=True) Out[12]: 0 0.000000 1 0.570994 2 0.000000 3 -0.229738 4 0.000000 Name: 1 In [13]: df Out[13]: 0 1 0 NaN 0.000000 1 -0.494375 0.570994 2 NaN 0.000000 3 1.876360 -0.229738 4 NaN 0.000000 </s><s>[INST] List files in ONLY the current directory In Python, I only want to list all the files in the current directory ONLY. I do not want files listed from any subdirectory or parent. There do seem to be similar solutions out there, but they don't seem to work for me. Here's my code snippet: import os for subdir, dirs, files in os.walk('./'): for file in files: do some stuff print file Let's suppose I have 2 files, holygrail.py and Tim inside my current directory. I have a folder as well and it contains two files - let's call them Arthur and Lancelot - inside it. When I run the script, this is what I get: holygrail.py Tim Arthur Lancelot I am happy with holygrail.py and Tim. But the two files, Arthur and Lancelot, I do not want listed. [/INST] Just use os.listdir and os.path.isfile instead of os.walk. Example: files = [f for f in os.listdir('.') if os.path.isfile(f)] for f in files: # do something But be careful while applying this to other directory, like files = [f for f in os.listdir(somedir) if os.path.isfile(f)]. which would not work because f is not a full path but relative to the current dir. Therefore, for filtering on another directory, do os.path.isfile(os.path.join(somedir, f)) (Thanks Causality for the hint) </s><s>[INST] Fastest way to get the first object from a queryset in django? Often I find myself wanting to get the first object from a queryset in Django, or return None if there aren't any. There are lots of ways to do this which all work. But I'm wondering which is the most performant. qs = MyModel.objects.filter(blah = blah) if qs.count() > 0: return qs[0] else: return None Does this result in two database calls? That seems wasteful. Is this any faster? qs = MyModel.objects.filter(blah = blah) if len(qs) > 0: return qs[0] else: return None Another option would be: qs = MyModel.objects.filter(blah = blah) try: return qs[0] except IndexError: return None This generates a single database call, which is good. But requires creating an exception object a lot of the time, which is a very memory-intensive thing to do when all you really need is a trivial if-test. How can I do this with just a single database call and without churning memory with exception objects? [/INST] Django 1.6 (released Nov 2013) introduced the convenience methods first() and last() which swallow the resulting exception and return None if the queryset returns no objects. </s><s>[INST] Python loop counter in a for loop In my example code below, is the counter = 0 really required, or is there a better, more Python, way to get access to a loop counter? I saw a few PEPs related to loop counters, but they were either deferred or rejected (PEP 212 and PEP 281). This is a simplified example of my problem. In my real application this is done with graphics and the whole menu has to be repainted each frame. But this demonstrates it in a simple text way that is easy to reproduce. Maybe I should also add that I'm using Python 2.5, although I'm still interested if there is a way specific to 2.6 or higher. # Draw all the options, but highlight the selected index def draw_menu(options, selected_index): counter = 0 for option in options: if counter == selected_index: print " [*] %s" % option else: print " [ ] %s" % option counter += 1 options = ['Option 0', 'Option 1', 'Option 2', 'Option 3'] draw_menu(option, 2) # Draw menu with "Option2" selected When run, it outputs: [ ] Option 0 [ ] Option 1 [*] Option 2 [ ] Option 3 [/INST] Use enumerate() like so: def draw_menu(options, selected_index): for counter, option in enumerate(options): if counter == selected_index: print " [*] %s" % option else: print " [ ] %s" % option options = ['Option 0', 'Option 1', 'Option 2', 'Option 3'] draw_menu(options, 2) Note: You can optionally put parenthesis around counter, option, like (counter, option), if you want, but they're extraneous and not normally included. </s><s>[INST] Controlling mouse with Python How does one control the mouse cursor in Python, i.e. move it to certain position and click, under Windows? [/INST] Tested on WinXP, Python 2.6 after installing pywin32 (pywin32-214.win32-py2.6.exe in my case): import win32api, win32con def click(x,y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0) click(10,10) </s><s>[INST] How can I consume a WSDL (SOAP) web service in Python? I want to use a WSDL SOAP based web service in Python. I have looked at the Dive Into Python code but the SOAPpy module does not work under Python 2.5. I have tried using suds which works partly, but breaks with certain types (suds.TypeNotFound: Type not found: 'item'). I have also looked at Client but this does not appear to support WSDL. And I have looked at ZSI but it looks very complex. Does anyone have any sample code for it? The WSDL is https://ws.pingdom.com/soap/PingdomAPI.wsdl and works fine with the PHP 5 SOAP client. [/INST] I would recommend that you have a look at SUDS "Suds is a lightweight SOAP python client for consuming Web Services." </s><s>[INST] Why do we need tuples in Python (or any immutable data type)? I've read several python tutorials (Dive Into Python, for one), and the language reference on Python.org - I don't see why the language needs tuples. Tuples have no methods compared to a list or set, and if I must convert a tuple to a set or list to be able to sort them, what's the point of using a tuple in the first place? Immutability? Why does anyone care if a variable lives at a different place in memory than when it was originally allocated? This whole business of immutability in Python seems to be over emphasized. In C/C++ if I allocate a pointer and point to some valid memory, I don't care where the address is located as long as it's not null before I use it. Whenever I reference that variable, I don't need to know if the pointer is still pointing to the original address or not. I just check for null and use it (or not). In Python, when I allocate a string (or tuple) assign it to x, then modify the string, why do I care if it's the original object? As long as the variable points to my data, that's all that matters. >>> x='hello' >>> id(x) 1234567 >>> x='good bye' >>> id(x) 5432167 x still references the data I want, why does anyone need to care if its id is the same or different? [/INST] immutable objects can allow substantial optimization; this is presumably why strings are also immutable in Java, developed quite separately but about the same time as Python, and just about everything is immutable in truly-functional languages. in Python in particular, only immutables can be hashable (and, therefore, members of sets, or keys in dictionaries). Again, this afford optimization, but far more than just "substantial" (designing decent hash tables storing completely mutable objects is a nightmare -- either you take copies of everything as soon as you hash it, or the nightmare of checking whether the object's hash has changed since you last took a reference to it rears its ugly head). Example of optimization issue, which a commenter says "he's never seen": $ python -mtimeit '["fee", "fie", "fo", "fum"]' 1000000 loops, best of 3: 0.432 usec per loop $ python -mtimeit '("fee", "fie", "fo", "fum")' 10000000 loops, best of 3: 0.0563 usec per loop Speeding an operation up by seven-eight times not "substantial enough" for you?! Wow, you're definitely a very demanding person when it comes to deeming an optimization "substantial"...!-) </s><s>[INST] Python replace multiple strings I would like to use the .replace function to replace multiple strings. I currently have string.replace("condition1", "") but would like to have something like string.replace("condition1", "").replace("condition2", "text") although that does not feel like good syntax what is the proper way to do this? kind of like how in grep/regex you can do \1 and \2 to replace fields to certain search strings [/INST] Here is a short example that should do the trick with regular expressions: import re rep = {"condition1": "", "condition2": "text"} # define desired replacements here # use these three lines to do the replacement rep = dict((re.escape(k), v) for k, v in rep.iteritems()) pattern = re.compile("|".join(rep.keys())) text = pattern.sub(lambda m: rep[re.escape(m.group(0))], text) For example: >>> pattern.sub(lambda m: rep[re.escape(m.group(0))], "(condition1) and --condition2--") '() and --text--' </s><s>[INST] Reading a file without newlines In Python, calling temp = open(filename,'r').readlines() results in a list in which each element is a line in the file. Its a little stupid but still: readlines() also writes newline character to each element, something I do not wish to happen. How can I avoid it? [/INST] You can read the whole file and split lines using str.splitlines: temp = file.read().splitlines() Or you can strip the newline by hand: temp = [line[:-1] for line in file] Note: this last solution only works if the file ends with a newline, otherwise the last line will lose a character. This assumption is true in most cases (especially for files created by text editors, which often do add an ending newline anyway). If you want to avoid this you can add a newline at the end of file: with open(the_file, 'r+') as f: f.seek(-1, 2) # go at the end of the file if f.read(1) != '\n': # add missing newline if not already present f.write('\n') f.flush() f.seek(0) lines = [line[:-1] for line in f] Or a simpler alternative is to strip the newline instead: [line.rstrip('\n') for line in file] Or even, although pretty unreadable: [line[:-(line[-1] == '\n') or len(line)+1] for line in file] Which exploits the fact that the return value of or isn't a boolean, but the object that was evaluated true or false. The readlines method is actually equivalent to: def readlines(self): lines = [] for line in iter(self.readline, ''): lines.append(line) return lines # or equivalently def readlines(self): lines = [] while True: line = self.readline() if not line: break lines.append(line) return lines Since readline() keeps the newline also readlines() keeps it. Note: for symmetry to readlines() the writelines() method does not add ending newlines, so f2.writelines(f.readlines()) produces an exact copy of f in f2. </s><s>[INST] Deleting all files in a directory with Python I want to delete all files with the extension .bak in a directory. How can I do that in Python? [/INST] Via os.listdir and os.remove: import os filelist = [ f for f in os.listdir(".") if f.endswith(".bak") ] for f in filelist: os.remove(f) Or via glob.glob: import glob, os filelist = glob.glob("*.bak") for f in filelist: os.remove(f) Be sure to be in the correct directory, eventually using os.chdir. </s><s>[INST] Matplotlib make tick labels font size smaller In a matplotlib figure, how can I make the font size for the tick labels using ax1.set_xticklabels() smaller? Further, how can one rotate it from horizontal to vertical? [/INST] There is a simpler way actually. I just found: import pylab as pl # We prepare the plot fig = pl.figure(1) # We define a fake subplot that is in fact only the plot. plot = fig.add_subplot(111) # We change the fontsize of minor ticks label plot.tick_params(axis='both', which='major', labelsize=10) plot.tick_params(axis='both', which='minor', labelsize=8) This only answers to the size of label part of your question though. </s><s>[INST] Why does @foo.setter in Python not work for me? So, I'm playing with decorators in Python 2.6, and I'm having some trouble getting them to work. Here is my class file: class testDec: @property def x(self): print 'called getter' return self._x @x.setter def x(self, value): print 'called setter' self._x = value What I thought this meant is to treat x like a property, but call these functions on get and set. So, I fired up IDLE and checked it: >>> from testDec import testDec from testDec import testDec >>> t = testDec() t = testDec() >>> t.x t.x called getter Traceback (most recent call last): File "<stdin>", line 1, in <module> File "testDec.py", line 18, in x return self._x AttributeError: testDec instance has no attribute '_x' >>> t.x = 5 t.x = 5 >>> t.x t.x 5 Clearly the first call works as expected, since I call the getter, and there is no default value, and it fails. OK, good, I understand. However, the call to assign t.x = 5 seems to create a new property x, and now the getter doesn't work! What am I missing? [/INST] You seem to be using classic old-style classes. In order for properties to work correctly you need to use new-style classes instead (inherit from object). Just declare your class as MyClass(object): class testDec(object): @property def x(self): print 'called getter' return self._x @x.setter def x(self, value): print 'called setter' self._x = value It works: >>> k = testDec() >>> k.x called getter Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/devel/class_test.py", line 6, in x return self._x AttributeError: 'testDec' object has no attribute '_x' >>> k.x = 5 called setter >>> k.x called getter 5 >>> </s><s>[INST] convert integer to a string in a given numeric base in python Python allows easy creation of an integer from a string of a given base via int(str,base). I want to perform the inverse: creation of a string from an integer. i.e. I want some function int2base(num,base) such that: int( int2base( X , BASE ) , BASE ) == X the function name/argument order is unimportant For any number X and base BASE that int() will accept. This is an easy function to write -- in fact easier than describing it in this question -- however, I feel like I must be missing something. I know about the functions bin,oct,hex; but I cannot use them for a few reasons: Those functions are not available on older versions of python with which I need compatibility (2.2) I want a general solution that can be called the same way for different bases I want to allow bases other than 2,8,16 Related Python elegant inverse function of int(string,base) Integer to base-x system using recursion in python Base 62 conversion in Python How to convert an integer to the shortest url-safe string in Python? [/INST] def baseN(num,b,numerals="0123456789abcdefghijklmnopqrstuvwxyz"): return ((num == 0) and numerals[0]) or (baseN(num // b, b, numerals).lstrip(numerals[0]) + numerals[num % b]) ref: http://code.activestate.com/recipes/65212/ </s><s>[INST] python how to check file empty or not I have a text file. How may I check whether the file is empty or not empty? [/INST] >>> import os >>> os.stat("file").st_size == 0 True </s><s>[INST] Python: Convert Unicode to ASCII without errors My code just scrapes a web page, then converts it to Unicode. html = urllib.urlopen(link).read() html.encode("utf8","ignore") self.response.out.write(html) But I get a UnicodeDecodeError: Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py", line 507, in __call__ handler.get(*groups) File "/Users/greg/clounce/main.py", line 55, in get html.encode("utf8","ignore") UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 2818: ordinal not in range(128) So I assume that means the HTML contains some wrongly-formed attempt at Unicode somewhere. Can I just drop whatever code bytes are causing the problem instead of getting an error? [/INST] >>> u'aあä'.encode('ascii', 'ignore') 'a' EDIT: Decode the string you get back, using either the charset in the the appropriate meta tag in the response or in the Content-Type header, then encode. </s><s>[INST] Which is the preferred way to concatenate a string in Python? Since Python's string can't be changed, I was wondering how to concatenate a string more efficiently? I can write like it: s += stringfromelsewhere or like this: s = [] s.append(somestring) later s = ''.join(s) While writing this question, I found a good article talking about the topic. http://www.skymind.com/~ocrow/python_string/ But it's in Python 2.x., so the question would be did something change in Python 3? [/INST] The best way of appending a string to a string variable is to use + or +=. This is because it's readable and fast. They are also just as fast, which one you choose is a matter of taste, the latter one is the most common. Here are timings with the timeit module: a = a + b: 0.11338996887207031 a += b: 0.11040496826171875 However, those who recommend having lists and appending to them and then joining those lists, do so because appending a string to a list is presumably very fast compared to extending a string. And this can be true, in some cases. Here for example is one million appends of a one-character string, first to a string, then to a list: a += b: 0.10780501365661621 a.append(b): 0.1123361587524414 OK, turns out that even when the resulting string is a million characters long, appending was still faster. Now let's try with appending a thousand character long string a hundred thousand times: a += b: 0.41823482513427734 a.append(b): 0.010656118392944336 The end string therefore ends up being about 100MB long. That was pretty slow, appending to a list was much faster. That that timing doesn't include the final a.join(). So how long would that take? a.join(a): 0.43739795684814453 Oups. Turns out even in this case, append/join is slower. So where does this recommendation come from? Python 2? a += b: 0.165287017822 a.append(b): 0.0132720470428 a.join(a): 0.114929914474 Well, append/join is marginally faster there if you are using extremely long strings (which you usually aren't, what would you have a string that's 100MB in memory?) But the real clincher is Python 2.3. Where I won't even show you the timings, because it's so slow that it hasn't finished yet. These tests suddenly take minutes. Except for the append/join, which if just as fast as under later Pythons. Yup. String concatenation was very slow in Python back in the stone age. But on 2.4 it isn't anymore (or at least Python 2.4.7), so the recommendation to use append/join became outdated in 2008, when Python 2.3 stopped being updated, and you should have stopped using it. :-) (Update: Turns out when I did the testing more carefully that using + and += is faster for two strings on Python 2.3 as well. The recommendation to use ''.join() must be a misunderstanding) However, this is CPython. Other implementations may have other concerns. And this is just yet another reason why premature optimization is the root of all evil. Don't use a technique that's supposed "faster" unless you first measure it. Therefore the "best" version to do string concatenation is to use + or +=. And if that turns out to be slow for you, which is pretty unlikely, then do something else. So why do I use a lot of append/join in my code? Because sometimes it's actually clearer. Especially when whatever you should concatenate together should be separated by spaces or commas or newlines. </s><s>[INST] How do I create an empty array/matrix in NumPy? I can't figure out how to use an array or matrix in the way that I would normally use a list. I want to create an empty array (or matrix) and then add one column (or row) to it at a time. At the moment the only way I can find to do this is like: mat = None for col in columns: if mat is None: mat = col else: mat = hstack((mat, col)) Whereas if it were a list, I'd do something like this: list = [] for item in data: list.append(item) Is there a way to use that kind of notation for NumPy arrays or matrices? [/INST] You have the wrong mental model for using NumPy efficiently. NumPy arrays are stored in contiguous blocks of memory. If you want to add rows or columns to an existing array, the entire array needs to be copied to a new block of memory, creating gaps for the new elements to be stored. This is very inefficient if done repeatedly to build an array. In the case of adding rows, your best bet is to create an array that is as big as your data set will eventually be, and then add data to it row-by-row: >>> import numpy >>> a = numpy.zeros(shape=(5,2)) >>> a array([[ 0., 0.], [ 0., 0.], [ 0., 0.], [ 0., 0.], [ 0., 0.]]) >>> a[0] = [1,2] >>> a[1] = [2,3] >>> a array([[ 1., 2.], [ 2., 3.], [ 0., 0.], [ 0., 0.], [ 0., 0.]]) </s><s>[INST] Is there a Python equivalent of the C# null-coalescing operator? In C# there's a null-coalescing operator (written as ??) that allows for easy (short) null checking during assignment: string s = null; var other = s ?? "some default value"; Is there a python equivalent? I know that I can do: s = None other = s if s else "some default value" But is there an even shorter way (where I don't need to repeat s)? [/INST] other = s or "some default value" Ok, it must be clarified how the or operator works. It is a boolean operator, so it works in a boolean context. If the values are not boolean, they are converted to boolean for the purposes of the operator. Note that the or operator does not return only True or False. Instead, it returns the first operand if the first operand evaluates to true, and it returns the second operand if the first operand evaluates to false. In this case, the expression x or y returns x if it is True or evaluates to true when converted to boolean. Otherwise, it returns y. For most cases, this will serve for the very same purpose of C♯'s null-coalescing operator, but keep in mind: 42 or "something" # returns 42 0 or "something" # returns "something" None or "something" # returns "something" False or "something" # returns "something" "" or "something" # returns "something" If you use your variable s to hold something that is either a reference to the instance of a class or None (as long as your class does not define members __nonzero__() and __len__()), it is secure to use the same semantics as the null-coalescing operator. In fact, it may even be useful to have this side-effect of Python. Since you know what values evaluates to false, you can use this to trigger the default value without using None specifically (an error object, for example). </s><s>[INST] How to get item's position in a list? I am iterating over a list and I want to print out the index of the item if it meets a certain condition. How would I do this? Example: testlist = [1,2,3,5,3,1,2,1,6] for item in testlist: if item == 1: print position [/INST] Hmmm. There was an answer with a list comprehension here, but it's disappeared. Here: [i for i,x in enumerate(testlist) if x == 1] Example: >>> testlist [1, 2, 3, 5, 3, 1, 2, 1, 6] >>> [i for i,x in enumerate(testlist) if x == 1] [0, 5, 7] Update: Okay, you want a generator expression, we'll have a generator expression. Here's the list comprehension again, in a for loop: >>> for i in [i for i,x in enumerate(testlist) if x == 1]: ... print i ... 0 5 7 Now we'll construct a generator... >>> (i for i,x in enumerate(testlist) if x == 1) <generator object at 0x6b508> >>> for i in (i for i,x in enumerate(testlist) if x == 1): ... print i ... 0 5 7 and niftily enough, we can assign that to a variable, and use it from there... >>> gen = (i for i,x in enumerate(testlist) if x == 1) >>> for i in gen: print i ... 0 5 7 And to think I used to write FORTRAN. </s><s>[INST] Check if two unordered lists are equal I'm looking for an easy (and quick) way to determine if two unordered lists contain the same elements: For example: ['one', 'two', 'three'] == ['one', 'two', 'three'] : true ['one', 'two', 'three'] == ['one', 'three', 'two'] : true ['one', 'two', 'three'] == ['one', 'two', 'three', 'three'] : false ['one', 'two', 'three'] == ['one', 'two', 'three', 'four'] : false ['one', 'two', 'three'] == ['one', 'two', 'four'] : false ['one', 'two', 'three'] == ['one'] : false I'm hoping to do this without using a map. [/INST] Python has a built-in datatype for an unordered collection of (hashable) things, called a set. If you convert both lists to sets, the comparison will be unordered. set(x) == set(y) Documentation on set EDIT: @mdwhatcott points out that you want to check for duplicates. set ignores these, so you need a similar data structure that also keeps track of the number of items in each list. This is called a multiset; the best approximation in the standard library is a collections.Counter: >>> import collections >>> compare = lambda x, y: collections.Counter(x) == collections.Counter(y) >>> >>> compare([1,2,3], [1,2,3,3]) False >>> compare([1,2,3], [1,2,3]) True >>> compare([1,2,3,3], [1,2,2,3]) False >>> </s>���������<s>[INST] How are POST and GET variables handled in Python? In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python? [/INST] suppose you're posting a html form with this: <input type="text" name="username"> If using raw cgi: import cgi form = cgi.FieldStorage() print form["username"] If using Django, Pylons, Flask or Pyramid: print request.GET['username'] # for GET form method print request.POST['username'] # for POST form method Using Turbogears, Cherrypy: from cherrypy import request print request.params['username'] Web.py: form = web.input() print form.username Werkzeug: print request.form['username'] If using Cherrypy or Turbogears, you can also define your handler function taking a parameter directly: def index(self, username): print username Google App Engine: class SomeHandler(webapp2.RequestHandler): def post(self): name = self.request.get('username') # this will get the value from the field named username self.response.write(name) # this will write on the document So you really will have to choose one of those frameworks. </s><s>[INST] Measuring elapsed time with the Time module With the Time module in python is it possible to measure elapsed time? If so, how do I do that? I need to do this so that if the cursor has been in a widget for a certain duration an event happens. [/INST] start_time = time.time() # your code elapsed_time = time.time() - start_time You can also write simple decorator to simplify measurement of execution time of various functions: import time from functools import wraps PROF_DATA = {} def profile(fn): @wraps(fn) def with_profiling(*args, **kwargs): start_time = time.time() ret = fn(*args, **kwargs) elapsed_time = time.time() - start_time if fn.__name__ not in PROF_DATA: PROF_DATA[fn.__name__] = [0, []] PROF_DATA[fn.__name__][0] += 1 PROF_DATA[fn.__name__][1].append(elapsed_time) return ret return with_profiling def print_prof_data(): for fname, data in PROF_DATA.items(): max_time = max(data[1]) avg_time = sum(data[1]) / len(data[1]) print "Function %s called %d times. " % (fname, data[0]), print 'Execution time max: %.3f, average: %.3f' % (max_time, avg_time) def clear_prof_data(): global PROF_DATA PROF_DATA = {} Usage: @profile def your_function(...): ... You can profile more then one function simultaneously. Then to print measurements just call the print_prof_data(): </s>����������<s>[INST] How to create PDF files in Python I'm working on a project which takes some images from user and then creates a PDF file which contains all of these images. Is there any way or any tool to do this in Python? E.g. to create a PDF file (or eps, ps) from image1 + image 2 + image 3 -> PDF file? [/INST] Here is my experience after following the hints on this page. pyPDF can't embed images into files. It can only split and merge. (Source: Ctrl+F through its documentation page) Which is great, but not if you have images that are not already embedded in a PDF. pyPDF2 doesn't seem to have any extra documentation on top of pyPDF. ReportLab is very extensive. (Userguide) However, with a bit of Ctrl+F and grepping through its source, I got this: First, download the Windows installer and source Then try this on Python command line: from reportlab.pdfgen import canvas from reportlab.lib.units import inch, cm c = canvas.Canvas('ex.pdf') c.drawImage('ar.jpg', 0, 0, 10*cm, 10*cm) c.showPage() c.save() All I needed is to get a bunch of images into a PDF, so that I can check how they look and print them. The above is sufficient to achieve that goal. ReportLab is great, but would benefit from including helloworlds like the above prominently in its documentation. </s><s>[INST] What are good uses for Python3's "Function Annotations" Function Annotations: PEP-3107 I ran across a snippet of code demonstrating Python3's function annotations. The concept is simple but I can't think of why these were implemented in Python3 or any good uses for them. Perhaps SO can enlighten me? How it works: def foo(a: 'x', b: 5 + 6, c: list) -> max(2, 9): ... function body ... Everything following the colon after an argument is an 'annotation', and the information following the -> is an annotation for the function's return value. foo.func_annotations would return a dictionary: {'a': 'x', 'b': 11, 'c': list, 'return': 9} What's the significance of having this available? [/INST] I think this is actually great. Coming from an academic background, I can tell you that annotations have proved themselves invaluable for enabling smart static analyzers for languages like Java. For instance, you could define semantics like state restrictions, threads that are allowed to access, architecture limitations, etc., and there are quite a few tools that can then read these and process them to provide assurances beyond what you get from the compilers. You could even write things that check preconditions/postconditions. I feel something like this is especially needed in Python because of its weaker typing, but there were really no constructs that made this straightforward and part of the official syntax. There are other uses for annotations beyond assurance. I can see how I could apply my Java-based tools to Python. For instance, I have a tool that lets you assign special warnings to methods, and gives you indications when you call them that you should read their documentation (E.g., imagine you have a method that must not be invoked with a negative value, but it's not intuitive from the name). With annotations, I could technicall write something like this for Python. Similarly, a tool that organizes methods in a large class based on tags can be written if there is an official syntax. </s><s>[INST] Using property() on classmethods I have a class with two class methods (using the classmethod() function) for getting and setting what is essentially a static variable. I tried to use the property() function with these, but it results in an error. I was able to reproduce the error with the following in the interpreter: >>> class foo(object): ... _var=5 ... def getvar(cls): ... return cls._var ... getvar=classmethod(getvar) ... def setvar(cls,value): ... cls._var=value ... setvar=classmethod(setvar) ... var=property(getvar,setvar) ... >>> f.getvar() 5 >>> f.setvar(4) >>> f.getvar() 4 >>> f.var Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable >>> f.var=5 Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable Is it possible to use the property() function with classmethod decorated functions? [/INST] Reading the Python 2.2 release notes, I find the following. The get method [of a property] won't be called when the property is accessed as a class attribute (C.x) instead of as an instance attribute (C().x). If you want to override the __get__ operation for properties when used as a class attribute, you can subclass property - it is a new-style type itself - to extend its __get__ method, or you can define a descriptor type from scratch by creating a new-style class that defines __get__, __set__ and __delete__ methods. NOTE: The below method doesn't actually work for setters, only getters. Therefore, I believe the prescribed solution is to create a ClassProperty as a subclass of property. class ClassProperty(property): def __get__(self, cls, owner): return self.fget.__get__(None, owner)() class foo(object): _var=5 def getvar(cls): return cls._var getvar=classmethod(getvar) def setvar(cls,value): cls._var=value setvar=classmethod(setvar) var=ClassProperty(getvar,setvar) assert foo.getvar() == 5 foo.setvar(4) assert foo.getvar() == 4 assert foo.var == 4 foo.var = 3 assert foo.var == 3 However, the setters don't actually work: foo.var = 4 assert foo.var == foo._var # raises AssertionError foo._var is unchanged, you've simply overwritten the property with a new value. You can also use ClassProperty as a decorator: class Foo(object): _var = 5 @ClassProperty @classmethod def var(cls): return cls._var @var.setter @classmethod def var(cls, value): cls._var = value assert foo.var == 5 </s><s>[INST] How to make an immutable object in Python? Although I have never needed this, it just struck me that making an immutable object in Python could be slightly tricky. You can't just override __setattr__, because then you can't even set attributes in the __init__. Subclassing a tuple is a trick that works: class Immutable(tuple): def __new__(cls, a, b): return tuple.__new__(cls, (a, b)) @property def a(self): return self[0] @property def b(self): return self[1] def __str__(self): return "<Immutable {0}, {1}>".format(self.a, self.b) def __setattr__(self, *ignored): raise NotImplementedError def __delattr__(self, *ignored): raise NotImplementedError But then you have access to the a and b variables through self[0] and self[1], which is annoying. Is this possible in Pure Python? If not, how would I do it with a C extension? (Answers that work only in Python 3 are acceptable). Update: So subclassing tuple is the way to do it in Pure Python, which works well except for the additional possibility of accessing the data by [0], [1] etc. So, to complete this question all that is missing is howto do it "properly" in C, which I suspect would be quite simple, by just not implementing any geititem or setattribute, etc. But instead of doing it myself, I offer a bounty for that, because I'm lazy. :) [/INST] Yet another solution I just thought of: The simplest way to get the same behaviour as your original code is Immutable = collections.namedtuple("Immutable", ["a", "b"]) It does not solve the problem that attributes can be accessed via [0] etc., but at least it's considerably shorter and provides the additional advantage of being compatible with pickle and copy. namedtuple creates a type similar to what I described in this answer, i.e. derived from tuple and using __slots__. It is available in Python 2.6 or above. </s><s>[INST] MySQL "incorrect string value" error when save unicode string in Django I got strange error message when tried to save first_name, last_name to Django's auth_user model. Failed examples user = User.object.create_user(username, email, password) user.first_name = u'Rytis' user.last_name = u'Slatkevičius' user.save() >>> Incorrect string value: '\xC4\x8Dius' for column 'last_name' at row 104 user.first_name = u'Валерий' user.last_name = u'Богданов' user.save() >>> Incorrect string value: '\xD0\x92\xD0\xB0\xD0\xBB...' for column 'first_name' at row 104 user.first_name = u'Krzysztof' user.last_name = u'Szukiełojć' user.save() >>> Incorrect string value: '\xC5\x82oj\xC4\x87' for column 'last_name' at row 104 Succeed examples user.first_name = u'Marcin' user.last_name = u'Król' user.save() >>> SUCCEED MySQL settings mysql> show variables like 'char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec) Table charset and collation Table auth_user has utf-8 charset with utf8_general_ci collation. Results of UPDATE command It didn't raise any error when updating above values to auth_user table by using UPDATE command. mysql> update auth_user set last_name='Slatkevičiusa' where id=1; Query OK, 1 row affected, 1 warning (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select last_name from auth_user where id=100; +---------------+ | last_name | +---------------+ | Slatkevi?iusa | +---------------+ 1 row in set (0.00 sec) PostgreSQL The failed values listed above can be updated into PostgreSQL table when I switched the database backend in Django. It's strange. mysql> SHOW CHARACTER SET; +----------+-----------------------------+---------------------+--------+ | Charset | Description | Default collation | Maxlen | +----------+-----------------------------+---------------------+--------+ ... | utf8 | UTF-8 Unicode | utf8_general_ci | 3 | ... But from http://www.postgresql.org/docs/8.1/interactive/multibyte.html, I found the following: Name Bytes/Char UTF8 1-4 Is it means unicode char has maxlen of 4 bytes in PostgreSQL but 3 bytes in MySQL which caused above error? [/INST] I had the same problem and resolved it by changing the character set of the column. Even though your database has a default character set of utf-8 I think it's possible for database columns to have a different character set in MySQL. Here's the SQL QUERY I used: ALTER TABLE database.table MODIFY COLUMN col VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; </s><s>[INST] How do you configure Django for simple development and deployment? I tend to use SQLite when doing Django development, but on a live server something more robust is often needed (MySQL/PostgreSQL, for example). Invariably, there are other changes to make to the Django settings as well: different logging locations / intensities, media paths, etc. How do you manage all these changes to make deployment a simple, automated process? [/INST] Update: django-configurations has been released which is probably a better option for most people than doing it manually. If you would prefer to do things manually, my earlier answer still applies: I have multiple settings files. settings_local.py - host-specific configuration, such as database name, file paths, etc. settings_development.py - configuration used for development, e.g. DEBUG = True. settings_production.py - configuration used for production, e.g. SERVER_EMAIL. I tie these all together with a settings.py file that firstly imports settings_local.py, and then one of the other two. It decides which to load by two settings inside settings_local.py - DEVELOPMENT_HOSTS and PRODUCTION_HOSTS. settings.py calls platform.node() to find the hostname of the machine it is running on, and then looks for that hostname in the lists, and loads the second settings file depending on which list it finds the hostname in. That way, the only thing you really need to worry about is keeping the settings_local.py file up to date with the host-specific configuration, and everything else is handled automatically. Check out an example here. </s><s>[INST] How to check if one of the following items is in a list? I'm trying to find a short way to see if any of the following items is in a list, but my first attempt does not work. Besides writing a function to accomplish this, is the any short way to check if one of multiple items is in a list. >>> a = [2,3,4] >>> print (1 or 2) in a False >>> print (2 or 1) in a True [/INST] >>> L1 = [2,3,4] >>> L2 = [1,2] >>> [i for i in L1 if i in L2] [2] >>> S1 = set(L1) >>> S2 = set(L2) >>> S1.intersection(S2) set([2]) Both empty lists and empty sets are False, so you can use the value directly as a truth value. </s><s>[INST] Get IP address of visitors using Python + Flask I'm making a website where users can log on and download files, using the Flask micro-framework (based on Werkzeug) which uses Python (2.6 in my case). I need to get the IP address of users when they log on (for logging purposes). Does anyone know how to do this? Surely there is a way to do it with Python? [/INST] See the documentation on how to access the Request object and then get from this same Request object, the attribute remote_addr. Code example from flask import request from flask import jsonify @app.route("/get_my_ip", methods=["GET"]) def get_my_ip(): return jsonify({'ip': request.remote_addr}), 200 For more information see the Werkzeug documentation. </s><s>[INST] Call a function with argument list in python I'm trying to call a function inside another function in python, but can't find the right syntax. What I want to do is something like this: def wrapper(func, args): func(args) def func1(x): print(x) def func2(x, y, z): return x+y+z wrapper(func1, [x]) wrapper(func2, [x, y, z]) In this case first call will work, and second won't. What I want to modify is the wrapper function and not the called functions. [/INST] To expand a little on the other answers: In the line: def wrapper(func, *args): The * next to args means "take the rest of the parameters given and put them in a list called args". In the line: func(*args) The * next to args here means "take this list called args and 'unwrap' it into the rest of the parameters. So you can do the following: def wrapper1(func, *args): # with star func(*args) def wrapper2(func, args): # without star func(*args) def func2(x, y, z): print x+y+z wrapper1(func2, 1, 2, 3) wrapper2(func2, [1, 2, 3]) In wrapper2, the list is passed explicitly, but in both wrappers args contains the list [1,2,3]. </s><s>[INST] Difference between dict.clear() and assigning {} in Python In python, is there a difference between calling clear() and assigning {} to a dictionary? If yes, what is it? Example:d = {"stuff":"things"} d.clear() #this way d = {} #vs this way [/INST] If you have another variable also referring to the same dictionary, there is a big difference: >>> d = {"stuff": "things"} >>> d2 = d >>> d = {} >>> d2 {'stuff': 'things'} >>> d = {"stuff": "things"} >>> d2 = d >>> d.clear() >>> d2 {} This is because assigning d = {} creates a new, empty dictionary and assigns it to the d variable. This leaves d2 pointing at the old dictionary with items still in it. However, d.clear() clears the same dictionary that d and d2 both point at. </s><s>[INST] Daemon Threads Explanation In the Python documentation it says: A thread can be flagged as a "daemon thread". The significance of this flag is that the entire Python program exits when only daemon threads are left. The initial value is inherited from the creating thread. Does anyone have a clearer explanation of what that means or a practical example showing where you would want to set threads as daemonic? To clarify for me: so the only time you wouldn't set threads as daemonic is if you wanted them to continue running after the main thread exits? [/INST] Some threads do background tasks, like sending keepalive packets, or performing periodic garbage collection, or whatever. These are only useful when the main program is running, and it's okay to kill them off once the other, non-daemon, threads have exited. Without daemon threads, you'd have to keep track of them, and tell them to exit, before your program can completely quit. By setting them as daemon threads, you can let them run and forget about them, and when your program quits, any daemon threads are killed automatically. </s><s>[INST] Why do Python's math.ceil() and math.floor() operations return floats instead of integers? Can someone explain this (straight from the docs- emphasis mine): math.ceil(x) Return the ceiling of x as a float, the smallest integer value greater than or equal to x. math.floor(x) Return the floor of x as a float, the largest integer value less than or equal to x. Why would .ceil and .floor return floats when they are by definition supposed to calculate integers? EDIT: Well this got some very good arguments as to why they should return floats, and I was just getting used to the idea, when @jcollado pointed out that they in fact do return ints in Python 3... [/INST] The range of floating point numbers usually exceeds the range of integers. By returning a floating point value, the functions can return a sensible value for input values that lie outside the representable range of integers. Consider: If floor() returned an integer, what should floor(1.0e30) return? Now, while Python's integers are now arbitrary precision, it wasn't always this way. The standard library functions are thin wrappers around the equivalent C library functions. </s><s>[INST] SFTP in Python? (platform independent) I'm working on a simple tool that transfers files to a hard-coded location with the password also hard-coded. I'm a python novice, but thanks to ftplib, it was easy: import ftplib info= ('someuser', 'password') #hard-coded def putfile(file, site, dir, user=(), verbose=True): """ upload a file by ftp to a site/directory login hard-coded, binary transfer """ if verbose: print 'Uploading', file local = open(file, 'rb') remote = ftplib.FTP(site) remote.login(*user) remote.cwd(dir) remote.storbinary('STOR ' + file, local, 1024) remote.quit() local.close() if verbose: print 'Upload done.' if __name__ == '__main__': site = 'somewhere.com' #hard-coded dir = './uploads/' #hard-coded import sys, getpass putfile(sys.argv[1], site, dir, user=info) The problem is that I can't find any library that supports sFTP. What's the normal way to do something like this securely? Edit: Thanks to the answers here, I've gotten it working with Paramiko and this was the syntax. import paramiko host = "THEHOST.com" #hard-coded port = 22 transport = paramiko.Transport((host, port)) password = "THEPASSWORD" #hard-coded username = "THEUSERNAME" #hard-coded transport.connect(username = username, password = password) sftp = paramiko.SFTPClient.from_transport(transport) import sys path = './THETARGETDIRECTORY/' + sys.argv[1] #hard-coded localpath = sys.argv[1] sftp.put(localpath, path) sftp.close() transport.close() print 'Upload done.' Thanks again! [/INST] Paramiko supports SFTP. I've used it, and I've used Twisted. Both have their place, but you might find it easier to start with Paramiko. </s><s>[INST] How can I use a DLL file from Python? What is the easiest way to use a DLL file from within Python? Specifically, how can this be done without writing any additional wrapper C++ code to expose the functionality to Python? Native Python functionality is strongly preferred over using a third-party library. [/INST] For ease of use, ctypes is the way to go. The following example of ctypes is from actual code I've written (in Python 2.5). This has been, by far, the easiest way I've found for doing what you ask. import ctypes # Load DLL into memory. hllDll = ctypes.WinDLL ("c:\\PComm\\ehlapi32.dll") # Set up prototype and parameters for the desired function call. # HLLAPI hllApiProto = ctypes.WINFUNCTYPE ( ctypes.c_int, # Return type. ctypes.c_void_p, # Parameters 1 ... ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p) # ... thru 4. hllApiParams = (1, "p1", 0), (1, "p2", 0), (1, "p3",0), (1, "p4",0), # Actually map the call ("HLLAPI(...)") to a Python name. hllApi = hllApiProto (("HLLAPI", hllDll), hllApiParams) # This is how you can actually call the DLL function. # Set up the variables and call the Python name with them. p1 = ctypes.c_int (1) p2 = ctypes.c_char_p (sessionVar) p3 = ctypes.c_int (1) p4 = ctypes.c_int (0) hllApi (ctypes.byref (p1), p2, ctypes.byref (p3), ctypes.byref (p4)) The ctypes stuff has all the C-type data types (int, char, short, void*, and so on) and can pass by value or reference. It can also return specific data types although my example doesn't do that (the HLL API returns values by modifying a variable passed by reference). In terms of the specific example shown above, IBM's EHLLAPI is a fairly consistent interface. All calls pass four void pointers (EHLLAPI sends the return code back through the fourth parameter, a pointer to an int so, while I specify int as the return type, I can safely ignore it) as per IBM's documentation here. In other words, the C variant of the function would be: int hllApi (void *p1, void *p2, void *p3, void *p4) This makes for a single, simple ctypes function able to do anything the EHLLAPI library provides, but it's likely that other libraries will need a separate ctypes function set up per library function. The return value from WINFUNCTYPE is a function prototype but you still have to set up more parameter information (over and above the types). Each tuple in hllApiParams has a parameter "direction" (1 = input, 2 = output and so on), a parameter name and a default value - see the ctypes doco for details Once you have the prototype and parameter information, you can create a Python "callable" hllApi with which to call the function. You simply create the needed variable (p1 through p4 in my case) and call the function with them. </s><s>[INST] How do I duplicate sys.stdout to a log file in python? Edit: Since it appears that there's either no solution, or I'm doing something so non-standard that nobody knows - I'll revise my question to also ask: What is the best way to accomplish logging when a python app is making a lot of system calls? My app has two modes. In interactive mode, I want all output to go to the screen as well as to a log file, including output from any system calls. In daemon mode, all output goes to the log. Daemon mode works great using os.dup2(). I can't find a way to "tee" all output to a log in interactive mode, without modifying each and every system call. In other words, I want the functionality of the command line 'tee' for any output generated by a python app, including system call output. To clarify: To redirect all output I do something like this, and it works great: # open our log file so = se = open("%s.log" % self.name, 'w', 0) # re-open stdout without buffering sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) # redirect stdout and stderr to the log file opened above os.dup2(so.fileno(), sys.stdout.fileno()) os.dup2(se.fileno(), sys.stderr.fileno()) The nice thing about this is that it requires no special print calls from the rest of the code. The code also runs some shell commands, so it's nice not having to deal with each of their output individually as well. Simply, I want to do the same, except duplicate instead of redirect. At first blush, I thought that simply reversing the dup2's should work. Why doesn't it? Here's my test: import os, sys ### my broken solution: so = se = open("a.log", 'w', 0) sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) os.dup2(sys.stdout.fileno(), so.fileno()) os.dup2(sys.stderr.fileno(), se.fileno()) ### print "kljhf sdf" os.spawnve("P_WAIT", "/bin/ls", ["/bin/ls"], {}) os.execve("/bin/ls", ["/bin/ls"], os.environ) The file "a.log" should be identical to what was displayed on the screen. [/INST] I had this same issue before and found this snippet very useful: class Tee(object): def __init__(self, name, mode): self.file = open(name, mode) self.stdout = sys.stdout sys.stdout = self def __del__(self): sys.stdout = self.stdout self.file.close() def write(self, data): self.file.write(data) self.stdout.write(data) from: http://mail.python.org/pipermail/python-list/2007-May/438106.html </s><s>[INST] What is Python buffer type for? There is a buffer type in python, but I don't know how can I use it. In the Python doc the description is: buffer(object[, offset[, size]]) The object argument must be an object that supports the buffer call interface (such as strings, arrays, and buffers). A new buffer object will be created which references the object argument. The buffer object will be a slice from the beginning of object (or from the specified offset). The slice will extend to the end of object (or will have a length given by the size argument). [/INST] An example usage: >>> s = 'Hello world' >>> t = buffer(s, 6, 5) >>> t <read-only buffer for 0x10064a4b0, size 5, offset 6 at 0x100634ab0> >>> print t world The buffer in this case is a sub-string, starting at position 6 with length 5, and it doesn't take extra storage space - it references a slice of the string. This isn't very useful for short strings like this, but it can be necessary when using large amounts of data. This example uses a mutable bytearray: >>> s = bytearray(1000000) # a million zeroed bytes >>> t = buffer(s, 1) # slice cuts off the first byte >>> s[1] = 5 # set the second element in s >>> t[0] # which is now also the first element in t! '\x05' This can be very helpful if you want to have more than one view on the data and don't want to (or can't) hold multiple copies in memory. Note that buffer has been replaced by the better named memoryview in Python 3, though you can use either in Python 2.7. Note also that you can't implement a buffer interface for your own objects without delving into the C API, i.e. you can't do it in pure Python. </s><s>[INST] assertEquals vs. assertEqual in python Is there a difference between assertEquals and assertEqual in the python unittest.TestCase? And if there is not, why are there two functions? Only for convenience? [/INST] Good question! Actually, in Python 2.6, both assertEqual and assertEquals are convenience aliases to failUnlessEqual. The source declares them thus: # Synonyms for assertion methods assertEqual = assertEquals = failUnlessEqual In Python 3, to your point, failUnlessEqual is explicitly deprecated. assertEquals carries this comment :-) # Synonyms for assertion methods # The plurals are undocumented. Keep them that way to discourage use. # Do not add more. Do not remove. # Going through a deprecation cycle on these would annoy many people. So, the upshot appears to be that you should use whatever you like for Python 2.x, but tend toward assertEqual for Python 3. </s><s>[INST] Can't subtract offset-naive and offset-aware datetimes I have a timezone aware timestamptz field in PostgreSQL. When I pull data from the table, I then want to subtract the time right now so I can get it's age. The problem I'm having is that both datetime.datetime.now() and datetime.datetime.utcnow() seem to return timezone unaware timestamps, which results in me getting this error: TypeError: can't subtract offset-naive and offset-aware datetimes Is there a way to avoid this (preferably without a third-party module being used). EDIT: Thanks for the suggestions, however trying to adjust the timezone seems to give me errors.. so I'm just going to use timezone unaware timestamps in PG and always insert using: NOW() AT TIME ZONE 'UTC' That way all my timestamps are UTC by default (even though it's more annoying to do this). Hopefully I can eventually find a fix for this. [/INST] have you tried to remove the timezone awareness? from http://pytz.sourceforge.net/ naive = dt.replace(tzinfo=None) may have to add time zone conversion as well. </s><s>[INST] How do you programmatically set an attribute in Python? Suppose I have a python object x and a string s, how do I set the attribute s on x? So: >>> x = SomeObject() >>> attr = 'myAttr' >>> # magic goes here >>> x.myAttr 'magic' What's the magic? The goal of this, incidentally, is to cache calls to x.__getattr__(). [/INST] setattr(x, attr, 'magic') For help on it: >>> help(setattr) Help on built-in function setattr in module __builtin__: setattr(...) setattr(object, name, value) Set a named attribute on an object; setattr(x, 'y', v) is equivalent to ``x.y = v''. Edit: However, you should note (as pointed out in comment) that you can't do that to a "pure" instance of object. But it is likely you have a simple subclass of object where it will work fine. I would strongly urge the O.P. to never make instances of object like that. </s><s>[INST] Argparse: Way to include default values in '--help'? Suppose I have the following argparse snippet: diags.cmdln_parser.add_argument( '--scan-time', action = 'store', nargs = '?', type = int, default = 5, help = "Wait SCAN-TIME seconds between status checks.") Currently, --help returns: usage: connection_check.py [-h] [--version] [--scan-time [SCAN_TIME]] Test the reliability/uptime of a connection. optional arguments: -h, --help show this help message and exit --version show program's version number and exit --scan-time [SCAN_TIME] Wait SCAN-TIME seconds between status checks. I would prefer something like: --scan-time [SCAN_TIME] Wait SCAN-TIME seconds between status checks. (Default = 5) Peeking at the help formatter code revealed limited options. Is there a clever way to get argparse to print the default value for '--scan-time' in a similar fashion, or should I just sub-class the help formatter? [/INST] Use the argparse.ArgumentDefaultsHelpFormatter formatter: parser = argparse.ArgumentParser( # ... other options ... formatter_class=argparse.ArgumentDefaultsHelpFormatter) To quote the documentation: The other formatter class available, ArgumentDefaultsHelpFormatter, will add information about the default value of each of the arguments. Note that this only applies to arguments that have help text defined; with no help value for an argument, there is noting to add information to. The exact output for your scan-time option then becomes: --scan-time [SCAN_TIME] Wait SCAN-TIME seconds between status checks. (default: 5) </s><s>[INST] Deep copy of a dict in python I would like to make a deep copy of a dict in python. Unfortunately the .deepcopy() method doesn't exist for the dict. How do I do that? >>> my_dict = {'a': [1, 2, 3], 'b': [4, 5, 6]} >>> my_copy = my_dict.deepcopy() Traceback (most recent calll last): File "<stdin>", line 1, in <module> AttributeError: 'dict' object has no attribute 'deepcopy' >>> my_copy = my_dict.copy() >>> my_dict['a'][2] = 7 >>> my_copy['a'][2] 7 The last line should be 3. I would like that modifications in my_dict don't impact the snapshot my_copy. How do I do that? The solution should be compatible with Python 3.x. [/INST] How about: import copy d = { ... } d2 = copy.deepcopy(d) Python 2 or 3: Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import copy >>> my_dict = {'a': [1, 2, 3], 'b': [4, 5, 6]} >>> my_copy = copy.deepcopy(my_dict) >>> my_dict['a'][2] = 7 >>> my_copy['a'][2] 3 >>> </s><s>[INST] How to check if a value exists in a dictionary (python) Hi I have the following dictionary in python: d = {'1': 'one', '3': 'three', '2': 'two', '5': 'five', '4': 'four'} I need a way to find if a value such as "one" or "two" exists in this dictionary. For example, if I wanted to know if the index "1" existed I would simply have to type: "1" in d And then python would tell me if that is true or false, however I need to do that same exact thing except to find if a value exists. Thanks for any help. [/INST] >>> d = {'1': 'one', '3': 'three', '2': 'two', '5': 'five', '4': 'four'} >>> 'one' in d.values() True Out of curiosity, some comparative timing: >>> T(lambda : 'one' in d.itervalues()).repeat() [0.28107285499572754, 0.29107213020324707, 0.27941107749938965] >>> T(lambda : 'one' in d.values()).repeat() [0.38303399085998535, 0.37257885932922363, 0.37096405029296875] >>> T(lambda : 'one' in d.viewvalues()).repeat() [0.32004380226135254, 0.31716084480285645, 0.3171098232269287] EDIT: And in case you wonder why... the reason is that each of the above returns a different type of object, which may or may not be well suited for lookup operations: >>> type(d.viewvalues()) <type 'dict_values'> >>> type(d.values()) <type 'list'> >>> type(d.itervalues()) <type 'dictionary-valueiterator'> EDIT2: As per request in comments... >>> T(lambda : 'four' in d.itervalues()).repeat() [0.41178202629089355, 0.3959040641784668, 0.3970959186553955] >>> T(lambda : 'four' in d.values()).repeat() [0.4631338119506836, 0.43541407585144043, 0.4359898567199707] >>> T(lambda : 'four' in d.viewvalues()).repeat() [0.43414998054504395, 0.4213531017303467, 0.41684913635253906] </s><s>[INST] Read file from line 2 or skip header row How can I skip the header row and start reading a file from line2? [/INST] with open(fname) as f: next(f) for line in f: #do something </s><s>[INST] Cost of len() function What is the cost of len() function for Python built-ins? (list/tuple/string/dictionary) [/INST] It's O(1) (very fast) on every type you've mentioned, plus set and others such as array.array. </s><s>[INST] What's the meaning of "(1,) == 1," in Python? I'm testing the tuple structure, and I found it's strange when I use the == operator like: >>> (1,) == 1, Out: (False,) When I assign these two expressions to a variable, the result is true: >>> a = (1,) >>> b = 1, >>> a==b Out: True This questions is different from Python tuple trailing comma syntax rule in my view. I ask the group of expressions between == operator. [/INST] This is just operator precedence. Your first (1,) == 1, groups like so: ((1,) == 1), so builds a tuple with a single element from the result of comparing the one-element tuple 1, to the integer 1 for equality They're not equal, so you get the 1-tuple False, for a result. </s><s>[INST] python: append values to a set i have a set like this: keep = set(generic_drugs_mapping[drug] for drug in drug_input) how do i add values [0,1,2,3,4,5,6,7,8,9,10] in to this set? [/INST] keep.update(yoursequenceofvalues) e.g, keep.update(xrange(11)) for your specific example. Or, if you have to produce the values in a loop for some other reason, for ...whatever...: onemorevalue = ...whatever... keep.add(onemorevalue) But, of course, doing it in bulk with a single .update call is faster and handier, when otherwise feasible. </s><s>[INST] Compare object instances for equality by their attributes in Python What is the best way to compare two instances of some object for equality in Python? I'd like to be able to do something like Example: doc1 = ErrorDocument(path='/folder',title='Page') doc2 = ErrorDocument(path='/folder',title='Page') if doc1 == doc2: # this should be True #do something EDIT: To further clarify the question. I'd like to compare by attribute values, and to make a more generic solution than def __eq__(self, other): return self.path == other.path and self.title == other.title Should the __eq__() method look something like this? def __eq__(self, other): # Is the other instance of the same object # Loop through __dict__ and compare values to attributes of other [/INST] As usual with Python, it's kiss : class Test(object): def __init__(self, attr1, attr2): self.attr1 = attr1 self.attr2 = attr2 def __str__(self): return str(self.__dict__) def __eq__(self, other): return self.__dict__ == other.__dict__ t1 = Test("foo", 42) t2 = Test("foo", 42) t3 = Test("bar", 42) print t1, t2, t3 print t1 == t2 print t2 == t3 It outputs: {'attr2': 42, 'attr1': 'foo'} {'attr2': 42, 'attr1': 'foo'} {'attr2': 42, 'attr1': 'bar'} True False N.B : be aware that before Python 3.0, you are more likely to use __cmp__ instead of __eq__, working the same way. </s><s>[INST] Defining private module functions in python According to http://www.faqs.org/docs/diveintopython/fileinfo_private.html: Like most languages, Python has the concept of private elements: Private functions, which can't be called from outside their module However, if I define two files: #a.py __num=1 and: #b.py import a print a.__num when i run b.py it prints out 1 without giving any exception. Is diveintopython wrong, or did I misunderstand something? And is there some way to do define a module's function as private? [/INST] In Python, "privacy" depends on "consenting adults'" levels of agreement - you can't force it (any more than you can in real life;-). A single leading underscore means you're not supposed to access it "from the outside" -- two leading underscores (w/o trailing underscores) carry the message even more forcefully... but, in the end, it still depends on social convention and consensus: Python's introspection is forceful enough that you can't handcuff every other programmer in the world to respect you wish. ((Btw, though it's a closely held secret, much the same holds for C++: with most compilers, a simple #define private public line before #includeing your .h file is all it takes for wily coders to make hash of your "privacy"...!-)) </s><s>[INST] How to get the PATH separator in Python? When multiple directories need to be concatenated, as in an executable search path, there is an os-dependent separator character. For Windows it's ';', for Linux it's ':'. Is there a way in Python to get which character to split on? In the discussions to this question http://stackoverflow.com/questions/1489599/how-do-i-find-out-my-python-path-using-python , it is suggested that os.sep will do it. That answer is wrong, since it is the separator for components of a directory or filename and equates to '\\' or '/'. [/INST] os.pathsep </s><s>[INST] Starting python debugger automatically on error This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let's say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I am not against having an extra import statement at the top of the file, nor a few extra lines of code. [/INST] python -m pdb myscript.py You'll need to enter 'c' (for Continue) when execution begins, but then it will run to the error point and give you control there. </s><s>[INST] pretty printing nested dictionaries in Python? How can I pretty print a dictionary with depth of ~4 in Python? I tried pretty printing with pprint but it did not work: import pprint pp = pprint.PrettyPrinter(indent=4) pp.pprint(mydict) I simply want an identation ("\t") for each nesting, so that I get something like this: key1 value1 value2 key2 value1 value2 etc. how can I do this? [/INST] My first thought was that the JSON serializer is probably pretty good at nested dictionaries, so I'd cheat and use that: >>> import json >>> print json.dumps({'a':2, 'b':{'x':3, 'y':{'t1': 4, 't2':5}}}, ... sort_keys=True, indent=4) { "a": 2, "b": { "x": 3, "y": { "t1": 4, "t2": 5 } } } </s><s>[INST] Set variable in jinja I would like to know how can I set a variable with another variable in jinja. I will explain, I have got a submenu and I would like show which link is active. I tried this: {% set active_link = {{recordtype}} -%} where recordtype is a variable given for my template. [/INST] {{ }} tells the template to print the value, this won't work in expressions like you're trying to do. Instead, use the {% set %} template tag and then assign the value the same way you would in normal python code. {% set testing = 'it worked' %} {% set another = testing %} {{ another }} Result: it worked </s><s>[INST] How to get MD5 sum of a string? In the Flickr API docs, you need to find the MD5 sum of a string to generate the [api_sig] value. How does one go about generating an MD5 sum from a string? Flickr's example: string: 000005fab4534d05api_key9a0554259914a86fb9e7eb014e4e5d52permswrite MD5 sum: a02506b31c1cd46c2e0b6380fb94eb3d [/INST] You can do the following: Python 2.x import hashlib print hashlib.md5("whatever your string is").hexdigest() Python 3.x import hashlib print(hashlib.md5("whatever your string is".encode('utf-8')).hexdigest()) However in this case you're probably better off using this helpful Python module for interacting with the Flickr API: http://stuvel.eu/flickrapi ... which will deal with the authentication for you. Official documentation of hashlib </s><s>[INST] How to install both Python 2.x and Python 3.x in Windows 7 I do most of my programming in Python 3.x on Windows 7, but now I need to use the Python Imaging Library (PIL), ImageMagick, and wxPython, all of which require Python 2.x. Can I have both Python 2.x and Python 3.x installed in Windows 7? When I run a script, how would I "choose" which version of Python should run it? Will the aforementioned programs be able to handle multiple versions of Python installed at once? I have searched for hours and hours for how to do this to no avail. Thanks. [/INST] I found that the formal way to do this is as follows: Just install two (or more, using their installers) versions of Python on Windows 7 (for me work with 3.3 and 2.7). Follow the instuctions below, changing the parameters for your needs. Create the following environment variable (to default on double click): Name: PY_PYTHON Value: 3 To launch a script in a particular interpreter, add the following shebang (beginning of script): #! python2 To execute a script using a specific interpreter, use the following prompt command: > py -2 MyScript.py To launch a specific interpreter: > py -2 To launch the default interpreter (defined by the PY_PYTHON variable): > py Resources Documentation: Using Python on Windows PEP 397 - Python launcher for Windows </s><s>[INST] Replace non-ASCII characters with a single space I need to replace all non-ASCII (\x00-\x7F) characters with a space. I'm surprised that this is not dead-easy in Python, unless I'm missing something. The following function simply removes all non-ASCII characters: def remove_non_ascii_1(text): return ''.join(i for i in text if ord(i)<128) And this one replaces non-ASCII characters with the amount of spaces as per the amount of bytes in the character code point (i.e. the – character is replaced with 3 spaces): def remove_non_ascii_2(text): return re.sub(r'[^\x00-\x7F]',' ', text) How can I replace all non-ASCII characters with a single space? Of the myriad of similar SO questions, none address character replacement as opposed to stripping, and additionally address all non-ascii characters not a specific character. [/INST] Your ''.join() expression is filtering, removing anything non-ASCII; you could use a conditional expression instead: return ''.join([i if ord(i) < 128 else ' ' for i in text]) This handles characters one by one and would still use one space per character replaced. Your regular expression should just replace consecutive non-ASCII characters with a space: re.sub(r'[^\x00-\x7F]+',' ', text) Note the + there. </s><s>[INST] What is the difference between " is None " and " ==None " I recently came across this syntax, I am unaware of the difference. I would appreciate it if someone could tell me the difference. [/INST] The answer is explained here. To quote: A class is free to implement comparison any way it chooses, and it can choose to make comparison against None mean something (which actually makes sense; if someone told you to implement the None object from scratch, how else would you get it to compare True against itself?). Practically-speaking, there is not much difference since custom comparison operators are rare. But you should use is None as a general rule. </s><s>[INST] Explain Python entry points? I've read the documentation on egg entry points in Pylons and on the Peak pages, and I still don't really understand. Could someone explain them to me, or point me at an article or book that does? [/INST] EntryPoints provide a persistent, filesystem-based object name registration and name-based direct object import mechanism (implemented by the setuptools package). They associate names of Python objects with free-form identifiers. So any other code using the same Python installation and knowing the identifier can access an object with the associated name, no matter where the object is defined. The associated names can be any names existing in a Python module; for example name of a class, function or variable. The entry point mechanism does not care what the name refers to, as long as it is importable. As an example, let's use (the name of) a function, and an imaginary python module with a fully-qualified name 'myns.mypkg.mymodule': def the_function(): "function whose name is 'the_function', in 'mymodule' module" print "hello from the_function" Entry points are registered via an entry points declaration in setup.py. To register the_function under entrypoint called 'my_ep_func': entry_points = { 'my_ep_group_id': [ 'my_ep_func = myns.mypkg.mymodule:the_function' ] }, As the example shows, entry points are grouped; there's corresponding API to look up all entry points belonging to a group (example below). Upon a package installation (ie. running 'python setup.py install'), the above declaration is parsed by setuptools. It then writes the parsed information in special file. After that, the pkg_resources API (part of setuptools) can be used to look up the entry point and access the object(s) with the associated name(s): import pkg_resources named_objects = {} for ep in pkg_resources.iter_entry_points(group='my_ep_group_id'): named_objects.update({ep.name: ep.load()}) Here, setuptools read the entry point information that was written in special files. It found the entry point, imported the module (myns.mypkg.mymodule), and retrieved the_function defined there, upon call to pkg_resources.load(). Assuming there were no other entry point registrations for the same group id, calling the_function would then be simple: >>> named_objects['my_ep_func']() hello from the_function Thus, while perhaps a bit difficult to grasp at first, the entry point mechanism is actually quite simple to use. It provides an useful tool for pluggable Python software development. </s>�����������<s>[INST] setting y-axis limit in matplotlib I need help with setting the limits of y-axis on matplotlib. Here is the code that I tried, unsuccessfully. import matplotlib.pyplot as plt plt.figure(1, figsize = (8.5,11)) plt.suptitle('plot title') ax = [] aPlot = plt.subplot(321, axisbg = 'w', title = "Year 1") ax.append(aPlot) plt.plot(paramValues,plotDataPrice[0], color = '#340B8C', marker = 'o', ms = 5, mfc = '#EB1717') plt.xticks(paramValues) plt.ylabel('Average Price') plt.xlabel('Mark-up') plt.grid(True) plt.ylim((25,250)) With the data I have for this plot, I get y-axis limits of 20 and 200. However, I want the limits 20 and 250. Thanks in advance for any help. [/INST] Try this . Works for subplots too . axes = plt.gca() axes.set_xlim([xmin,xmax]) axes.set_ylim([ymin,ymax]) </s><s>[INST] Secondary axis with twinx(): how to add to legend? I have a plot with two y-axes, using twinx(). I also give labels to the lines, and want to show them with legend(), but I only succeed to get the labels of one axis in the legend: import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('mathtext', default='regular') fig = plt.figure() ax = fig.add_subplot(111) ax.plot(time, Swdown, '-', label = 'Swdown') ax.plot(time, Rn, '-', label = 'Rn') ax2 = ax.twinx() ax2.plot(time, temp, '-r', label = 'temp') ax.legend(loc=0) ax.grid() ax.set_xlabel("Time (h)") ax.set_ylabel(r"Radiation ($MJ\,m^{-2}\,d^{-1}$)") ax2.set_ylabel(r"Temperature ($^\circ$C)") ax2.set_ylim(0, 35) ax.set_ylim(-20,100) plt.show() So I only get the labels of the first axis in the legend, and not the label 'temp' of the second axis. How could I add this third label to the legend? [/INST] You can easily add a second legend by adding the line: ax2.legend(loc=0) You'll get this: But if you want all labels on one legend then you should do something like this: import numpy as np import matplotlib.pyplot as plt from matplotlib import rc rc('mathtext', default='regular') time = np.arange(10) temp = np.random.random(10)*30 Swdown = np.random.random(10)*100-10 Rn = np.random.random(10)*100-10 fig = plt.figure() ax = fig.add_subplot(111) lns1 = ax.plot(time, Swdown, '-', label = 'Swdown') lns2 = ax.plot(time, Rn, '-', label = 'Rn') ax2 = ax.twinx() lns3 = ax2.plot(time, temp, '-r', label = 'temp') # added these three lines lns = lns1+lns2+lns3 labs = [l.get_label() for l in lns] ax.legend(lns, labs, loc=0) ax.grid() ax.set_xlabel("Time (h)") ax.set_ylabel(r"Radiation ($MJ\,m^{-2}\,d^{-1}$)") ax2.set_ylabel(r"Temperature ($^\circ$C)") ax2.set_ylim(0, 35) ax.set_ylim(-20,100) plt.show() Which will give you this: </s><s>[INST] How to compare two dates? How would I compare two dates to see which is later, using Python? For example, I want to check if the current date is past the last date in this list I am creating, of holiday dates, so that it will send an email automatically, telling the admin to update the holiday.txt file. [/INST] Use the datetime method and the operator < and its kin. >>> from datetime import datetime >>> past = datetime.now() >>> present = datetime.now() >>> past < present True >>> datetime(3000, 1, 1) < present False >>> present - datetime(2000, 4, 4) datetime.timedelta(4242, 75703, 762105) </s><s>[INST] How to run Django's test database only in memory? My Django unit tests take a long time to run, so I'm looking for ways to speed that up. I'm considering installing an SSD, but I know that has its downsides too. Of course, there are things I could do with my code, but I'm looking for a structural fix. Even running a single test is slow since the database needs to be rebuilt / south migrated every time. So here's my idea... Since I know the test database will always be quite small, why can't I just configure the system to always keep the entire test database in RAM? Never touch the disk at all. How do I configure this in Django? I'd prefer to keep using MySQL since that's what I use in production, but if SQLite 3 or something else makes this easy, I'd go that way. Does SQLite or MySQL have an option to run entirely in memory? It should be possible to configure a RAM disk and then configure the test database to store its data there, but I'm not sure how to tell Django / MySQL to use a different data directory for a certain database, especially since it keeps getting erased and recreated each run. (I'm on a Mac FWIW.) [/INST] If you set your database engine to sqlite3 when you run your tests, Django will use a in-memory database. I'm using code like this in my settings.py to set the engine to sqlite when running my tests: if 'test' in sys.argv: DATABASE_ENGINE = 'sqlite3' Or in Django 1.2: if 'test' in sys.argv: DATABASES['default'] = {'ENGINE': 'sqlite3'} And finally in Django 1.3 and 1.4: if 'test' in sys.argv: DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'} (The full path to the backend isn't strictly necessary with Django 1.3, but makes the setting forward compatible.) You can also add the following line, in case you are having problems with South migrations: SOUTH_TESTS_MIGRATE = False </s><s>[INST] Splitting on first occurrence What would be the best way to split a string on the first occurrence of a delimiter? For example: 123mango abcd mango kiwi peach splitting on the first mango to get: abcd mango kiwi peach [/INST] From the docs: str.split([sep[,maxsplit]]) Return a list of the words in the string, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). s.split('mango', 1)[1] </s><s>[INST] How to return json using Flask web framework My aim is to do data summary in python using Pandas and return the summary in the form of JSON. I am using the Flask web framework to return JSON. My code to get JSON is as follows:(excluding libraries) data = pandas.read_csv('D:\myfile.csv') for colname, dtype in data.dtypes.to_dict().iteritems(): if dtype == 'object': print colname count = data[colname].value_counts() d = dict((str(k), int(v)) for k, v in count.iteritems()) f = dict(sorted(d.iteritems(), key=lambda item: item[1], reverse = True)[:5]) print f json.dumps(f) In Flask I have to do the following things: @app.route("/summary") def some_fn(): # identify filename # do summary on file # send it back as json [/INST] If f is your dictionary, you can just do return flask.jsonify(**f) </s><s>[INST] Named tuple and optional keyword arguments I'm trying to convert a longish hollow "data" class into a named tuple. My class currently looks like this: class Node(object): def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right After conversion to namedtuple it looks like: from collections import namedtuple Node = namedtuple('Node', 'val left right') But there is a problem here. My original class allowed me to pass in just a value and took care of the default by using default values for the named/keyword arguments. Something like: class BinaryTree(object): def __init__(self, val): self.root = Node(val) But this doesn't work in the case of my refactored named tuple since it expects me to pass all the fields. I can of course replace the occurrences of Node(val) to Node(val, None, None) but it isn't to my liking. So does there exist a good trick which can make my re-write successful without adding a lot of code complexity (metaprogramming) or should I just swallow the pill and go ahead with the "search and replace"? :) TIA -- sauke [/INST] Set Node.__new__.__defaults__ (or Node.__new__.func_defaults before Python 2.6) to the default values. >>> from collections import namedtuple >>> Node = namedtuple('Node', 'val left right') >>> Node.__new__.__defaults__ = (None,) * len(Node._fields) >>> Node() Node(val=None, left=None, right=None) You can also have required fields by making the __defaults__ list shorter. >>> Node.__new__.__defaults__ = (None, None) >>> Node() Traceback (most recent call last): ... TypeError: __new__() missing 1 required positional argument: 'val' >>> Node(3) Node(val=3, left=None, right=None) Wrapper Here's a nice wrapper for you, which even lets you (optionally) set the default values to something other than None. (This does not support required arguments.): import collections def namedtuple_with_defaults(typename, field_names, default_values=()): T = collections.namedtuple(typename, field_names) T.__new__.__defaults__ = (None,) * len(T._fields) if isinstance(default_values, collections.Mapping): prototype = T(**default_values) else: prototype = T(*default_values) T.__new__.__defaults__ = tuple(prototype) return T Example: >>> Node = namedtuple_with_defaults('Node', 'val left right') >>> Node() Node(val=None, left=None, right=None) >>> Node = namedtuple_with_defaults('Node', 'val left right', [1, 2, 3]) >>> Node() Node(val=1, left=2, right=3) >>> Node = namedtuple_with_defaults('Node', 'val left right', {'right':7}) >>> Node() Node(val=None, left=None, right=7) >>> Node(4) Node(val=4, left=None, right=7) </s><s>[INST] How to fix: "UnicodeDecodeError: 'ascii' codec can't decode byte" as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkd as3:~/ngokevin-site# wok Traceback (most recent call last): File "/usr/local/bin/wok", line 4, in Engine() File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 104, in init self.load_pages() File "/usr/local/lib/python2.7/site-packages/wok/engine.py", line 238, in load_pages p = Page.from_file(os.path.join(root, f), self.options, self, renderer) File "/usr/local/lib/python2.7/site-packages/wok/page.py", line 111, in from_file page.meta['content'] = page.renderer.render(page.original) File "/usr/local/lib/python2.7/site-packages/wok/renderers.py", line 46, in render return markdown(plain, Markdown.plugins) File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 419, in markdown return md.convert(text) File "/usr/local/lib/python2.7/site-packages/markdown/init.py", line 281, in convert source = unicode(source) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 1: ordinal not in range(128). -- Note: Markdown only accepts unicode input! how to fix it? but in some other python-based static blog apps,chinese post can be published successfully. such as this app: http://github.com/vrypan/bucket3 .in my site http://bc3.brite.biz/,chinese post can be published successfully. [/INST] Finally I got it: as3:/usr/local/lib/python2.7/site-packages# cat sitecustomize.py # encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8') Let me check: as3:~/ngokevin-site# python Python 2.7.6 (default, Dec 6 2013, 14:49:02) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> reload(sys) <module 'sys' (built-in)> >>> sys.getdefaultencoding() 'utf8' >>> The above shows the default encoding of python is utf8. Then the error is no more. </s><s>[INST] How to keep a Python script output window open? I have just started with Python. When I execute a python script file on Windows, the output window appears but instantaneously goes away. I need it to stay there so I can analyze my output. How can I keep it open? [/INST] You have a few options: Run the program from an already-open terminal. Open a command prompt and type: python myscript.py For that to work you need the python executable in your path. Just check on how to edit environment variables on Windows, and add C:\PYTHON26 (or whatever directory you installed python to). When the program ends, it'll drop you back to the cmd prompt instead of closing the window. Add code to wait at the end of your script. Adding ... raw_input() ... at the end of the script makes it wait for the Enter key. That method is annoying because you have to modify the script, and have to remember removing it when you're done. Specially annoying when testing other people's scripts. Use an editor that pauses for you. Some editors prepared for python will automatically pause for you after execution. Other editors allow you to configure the command line it uses to run your program. I find it particularly useful to configure it as "python -i myscript.py" when running. That drops you to a python shell after the end of the program, with the program environment loaded, so you may further play with the variables and call functions and methods. </s><s>[INST] What is the most compatible way to install python modules on a Mac? I'm starting to learn python and loving it. I work on a Mac mainly as well as Linux. I'm finding that on Linux (Ubuntu 9.04 mostly) when I install a python module using apt-get it works fine. I can import it with no trouble. On the Mac, I'm used to using Macports to install all the Unixy stuff. However, I'm finding that most of the python modules I install with it are not being seen by python. I've spent some time playing around with PATH settings and using python_select . Nothing has really worked and at this point I'm not really understanding, instead I'm just poking around. I get the impression that Macports isn't universally loved for managing python modules. I'd like to start fresh using a more "accepted" (if that's the right word) approach. So, I was wondering, what is the method that Mac python developers use to manage their modules? Bonus questions: Do you use Apple's python, or some other version? Do you compile everything from source or is there a package manger that works well (Fink?). Any tips or suggestions here are greatly appreciated. Thanks for your time. :) [/INST] The most popular way to manage python packages (if you're not using your system package manager) is to use setuptools and easy_install. It is probably already installed on your system. Use it like this: easy_install django easy_install uses the Python Package Index which is an amazing resource for python developers. Have a look around to see what packages are available. A better option is pip, which is gaining traction, as it attempts to fix a lot of the problems associated with easy_install. Pip uses the same package repository as easy_install, it just works better. Really the only time use need to use easy_install is for this command: easy_install pip After that, use: pip install django At some point you will probably want to learn a bit about virtualenv. If you do a lot of python development on projects with conflicting package requirements, virtualenv is a godsend. It will allow you to have completely different versions of various packages, and switch between them easily depending your needs. Regarding which python to use, sticking with Apple's python will give you the least headaches, but If you need a newer version (Leopard is 2.5.1 I believe), I would go with the macports python 2.6. </s><s>[INST] Associativity of "in" in Python? I'm making a Python parser, and this is really confusing me: >>> 1 in [] in 'a' False >>> (1 in []) in 'a' TypeError: 'in <string>' requires string as left operand, not bool >>> 1 in ([] in 'a') TypeError: 'in <string>' requires string as left operand, not list How exactly does "in" work in Python, with regards to associativity, etc.? Why do no two of these expressions behave the same way? [/INST] 1 in [] in 'a' is evaluated as (1 in []) and ([] in 'a'). Since the first condition (1 in []) is False, the whole condition is evaluated as False; ([] in 'a') is never actually evaluated, so no error is raised. Here are the statement definitions: In [121]: def func(): .....: return 1 in [] in 'a' .....: In [122]: dis.dis(func) 2 0 LOAD_CONST 1 (1) 3 BUILD_LIST 0 6 DUP_TOP 7 ROT_THREE 8 COMPARE_OP 6 (in) 11 JUMP_IF_FALSE 8 (to 22) #if first comparison is wrong #then jump to 22, 14 POP_TOP 15 LOAD_CONST 2 ('a') 18 COMPARE_OP 6 (in) #this is never executed, so no Error 21 RETURN_VALUE >> 22 ROT_TWO 23 POP_TOP 24 RETURN_VALUE In [150]: def func1(): .....: return (1 in []) in 'a' .....: In [151]: dis.dis(func1) 2 0 LOAD_CONST 1 (1) 3 LOAD_CONST 3 (()) 6 COMPARE_OP 6 (in) # perform 1 in [] 9 LOAD_CONST 2 ('a') # now load 'a' 12 COMPARE_OP 6 (in) # compare result of (1 in []) with 'a' # throws Error coz (False in 'a') is # TypeError 15 RETURN_VALUE In [153]: def func2(): .....: return 1 in ([] in 'a') .....: In [154]: dis.dis(func2) 2 0 LOAD_CONST 1 (1) 3 BUILD_LIST 0 6 LOAD_CONST 2 ('a') 9 COMPARE_OP 6 (in) # perform ([] in 'a'), which is # Incorrect, so it throws TypeError 12 COMPARE_OP 6 (in) # if no Error then # compare 1 with the result of ([] in 'a') 15 RETURN_VALUE </s>�cQ3���� �����������W�r۶����(ӑ=�Qǿ<�s�4��m��u�N�d:0�Q�� �Vԧ��)�q�1�f��b����}���^]�~�����56%�V�8Mm�6:�����M��+�����S��{�:P��]ilL�� "�n>�E}5��{�ϴiuY�T(y��`�; 0P����M����.�xB������}( }���:����K[B�D�`0�ؗ�6���%�\IO� P����һ[r��7v�މ;fp��W�����z��zw�?=(J,,�����(��[U-!��� |^{m��6�m\��R;�U��sd�XY��6eG"0�DG&Q�CC~�@�Δ-��k���;K�㨎��S�!Y � ��|���-t�(Fs��B�9N�.M$6��</DliB�����ij}ho�����J�C9_߹�x��4 d�?(�5 �Ω���I囁b�$ш�0j0*�d����\ ���i�2M�~��]�U_�ħ�xi��`�w�V�B��=�[�5�ʀ�S�"��}S ��'�=�#���(�,P����Ӕ�����G�r�<!�˾A���2��i��!�#��-x&a�5��k0Ŵ\���w ��޴]CG���8k�U2�.A{<��9L������aq��:/���� �4&� ��<*�@��ՎG_�y�~���)��!�Rg'E΂����ou�k� c�*u5�P煞��S�9�+g��W�) ���\�x��„��40� �����/�,�Ue��o*r>є���r��V�x���ˢ8i#j�2�zfB��/�����ڶE��S�:/�Y1��`��-�H� �Q �- �G�c� ������fm`(/�ᯤ�n���m�C�P(��~�p:��r��l͍4 ���P��$&:KR ��o��Ƣ���ᳬh���(%C2��oK�b'�e ~29����y�_es��T+��=��f�,��E��>Я�;�cv��i���Y�~�XLڿaQ��ӄ��aT��r��m����О��^OٻP��V������ô 9��*�>�a8� �uk����ð\N��?�F� �t6�~׾)�>��PB/MSY;�[Oy��� �l/��2�%���q�Y���>*��A.��{��w������u����C�[�!�y-���}�F��hh���k/���d�_�s��ku�q,��m$�srU�ʯ��h�;!¬�Ą�z|������ �F�VSy#��Z����4Y�t�==�1Od�����kٻ��?�&���Dy��4� _{�x�Ho�t�������2�tr�A� 7(��T�f�mV�I�\�e��t�`Df�@��<��,���&���P�yZ�բ3 r�� ��u��--�ʘ��5��! h��B�G$r|30N�m�[�YI�ܮ^�G�qX�.�b����d�5�;{s���hsq��֟=�x�?;q��~��y�:������ X-j��:k��)%��0��P���冝���$y�S�PynY� E�)J���z�m���İ���x&�->���`��a�}yw�A�>��{�=TC[�G��B( � u!�N�̆�$f\�n�x�>�e��/�~�LH�>=L��S�� iER�mL��g�0��u��y�ǘc4�ѱ+�a񗨱օ��E��=bЦi6�o5�í*5���TR�z�\�̹U�G�� <ͷ�����z���B�/>����.�� ��D �������������uXKo����I�pMɡD:���&�&�zgzvۜ��L�p�>v�Knvq��1�!O 9P,_U�<H)wvg����W_��὏�ON�~����jLe��ڪekBPqe�q�/�[���c�z��}�]��ݽ�w/S�h��L=?;��ϔv�����j��7��F�����Q�+,t�̅i�Z�`��ظ�-�������*���u���ҵ��L�7Q�����L�:����/*S�6���#�i�6(_ӏ�F׵i����?����-Vr��x.'��z���W���2�ߨ�Vf�vmr[n):�P��G�u�[Z�V�NN=bp+ �`�� x�x���)}W ׅ-x�d-�g�/hy�kC����:��i��|�y�}��^��i`�e4. ~A�6TFlp�)J��`aX�U�V�^�+���-B�� às2H��!Ҋ�ck��f�]QI(���*��j"b@P�x��/��@��� �亅���<A�(���J��]����(?l��%V_z$���pf@�ҍ�_YzxL�,�,Y�lv!R�h��E,Cd;J��0�%��K���@R��*ʑ$7�{s�]���XL"�]��(�K���gG���:��f�]��-ݶ�Dՙ�O''XY�&��iTYm�V���)[*� C?!�z�[<W��aoc0U����+���g���϶��ˆ$����!�`��C}��k���}ef^�Թ�P�0ԆH��*(���$�n�M�Bx�葫�ɧ�a�١�M?�5�3�J���9 �dJ0�iSL'T۔B�� ��Ei�-�&jX ��]�A�AN|���" ���,4�@x*������65�*^�j���fig60�Tm8���>Kg�� +�2� 8�<��Ѣ�͖2��A���(�J���3/ J]���9����35?}����w�3��6o|�e����Q }_�-��"�\��[X[�Z� �p�:A��~��������h`�����*�����c0�'7F���Jm���,|�����Ɓ)ʉ�F�5-�����%Vx��%^���Sm��ۧ�h�X�^f�H70���0�<�5u Z � �6�̟�62!��9�M�p[Hfhʑ� ��Q�t�(��v��� 7j�s'���{n)�y <n x]���ѢNk먞-�͗� �e2�`"I�tvN8䓉N�B� i���=pK� �%0’���kݻ�o��ֆU/Z� J 6����L�x=�/̀ ���F���f�X��p��`"%��i#��tG,X����`I2 ��O�@s�%�P(~bc�L�46?�v���=���&�@ ����nJ :,0myM�t�kU8�+87XQ{�ÞBʁ�)@�7%�/��t�Z�"h[��T�S�dE^}M���hQ��}G��zM;�s����� �\1U!�����=�*�^�Lq�:@��)O%�5F/�� rL�TKC"��f8w�lc��7#����א:JO*(�q���x�zf�L98��:Fk��*pdˠB����/�� �(��.H 6�d;���Q ��RO˸1��KPH�R�8+1D�*2V�XVhѼ� �@�S�{~܂0{~H:E7R��������ުa��HGxI�D��ҤKR�"X2"x�pǬ�� ��V�޵�°Tx_趤�L���s7��SZ}!Cҷ�Ȇ���j����aS�M��>c}QXQ�j�^s ��.�!����Y�!p/<$T\�θ�@���Hkh�r�E�1A�.Jx�\-��� ?� Tc� ���ln�$��'/��R�6,���a;���%Q����L��\�j zU��[l��&9^�� �Q�Q�AE�4�F�Cc�#�ml�}Xuf��c%�d�(�p U���j�pBxK3���D����R��h�� SZ���M-A9�ӑ5f9v�\�R:��4����BM�/� "�o P��c�U`�N���@%�{�j+5=�C@*�O!�4�4 ��� 8�*I�3�R���'��贽�s���K�b�q��K��d:��W0-�@��,�I��ʵG �&�eQ�)�B�?��ޞf3K�0��4cP����kL�����e.�'i�g��)!>]u��t���G(���n��Qbg� �֪]���P�YO \� ���Qwޛ>�\�z����Kc؉�nЦI"tC:��� ��3�Dr �Ć�O�5dr~�2Pq�䖞F�3�{]kI�|}"�ä�bK9<��+vz��2ݐ�\��5����޹=Q�%�Z'���4�Ö�!�� ӒVh�8c�@A ���#Տ��^>8I���p�UXv�)i�����������Ȑ�X��!)�w�꽶���,>Ю�D�Y�t]�0��u��.AG-KI����da얤�Ҵr1��L�l��m�#��.��$�߄��T3ޱ�.�6>�)$�7~$��3�њ,t���]x�+�`z9�#R�ٿ�n�nX4���>��3��W�����?���������W?���?}����ݿ��K����~)e(�}r��ח|�J��U跟��ϱ&}�o|� ���? ��.�L����ρ�2�ۦ���)�$euX �ʙ��7�H&up��HLD6��k�5�����H���Z9�".ԑ?�.�p�q�ɦN�A�~n#�:�DD���6x8�Z��xZ� ��s���#�]Rx�����#����`��G Zꖈ�莑K� �<��t��T4#.6X4� ��b��?���ۯ>�zy� ���7�����o�囿������&f��O5�p4;��D�+5@bG�ٞ�����Ա��W���� �sFp�A��e���jr��:��O���v߹�|$������ �=멨?�eZ!^��ц$�:�1>DX°��F�҈��Z�&����W� &�`��K-�|݃��@�www;��MC/�ũ�Պg�*E]��MFi�a ���k����7��[��%��gW��߅T�I��C��ϘM�!��c�������w�X��x������I`���>�����ʟ^���Q��x]���7��x�#��h/�~|�_}(��v=��Nz�Ն�V9���{� Q~О�C<�^'Y�AO�P_��Vx�9j$����� ��������������Y͎���S4�Dڳ#���xaY��^X�KI�¢9�$�;3=�Y�:�)��kr ���I~�|U���]:�Zr�����ꇟ�O_]~���k��۫\��R��麵��*�fc��s�֦�S�v�ք��K���~�[�ڻ�,Ti��j�*�Ery�R����V56o;o�ض;��ެs])l�fە�+[����2dJ�p�Un#�i��ʨR7'�pV@Xsc|��FՎ���8M��A�;]oM�b=���>�^�xӶUu�N��]~teR�Q��^�������ߗ�5�U�� ;�f�%ak~�HA��@�� �d�}�2U�.�v��3Uc��Y�����N��;��se�Q���8�������xMR�µj�ߘ����xK��vGOԫ�b�/Lm�.�-�N�mh�Z^�gNj P��p���CP����U6䙭�v1ge v�@��Li*S��{ ���Ɣ���9�Op���a!T;_r�he�d���MO`�7F��o�=�!������J͢G�,����O�(�TO����p�q� <���@EQ �����Ҹvc}�����ы�{�)���@�a�'`�c�B�\$�g85#Dފͺ1l�!R�u��K��Tpz_��)H��}k ɽk�L=�|�([{�ͲT;S6��"rj�<z�%�{`�@�Cy�1/ ,��07�<~��x��k�x�$�*�7ey�K��MqW�>&}W�!���{ۑ0V)���(š��#��P/r���l����m��z£+�ƨLn�h�0 ��ၧ�W��ÝGZ���̛�r�h�~c����x�fX�m��6!��]�z �󟅄b7�5�_>�Z�%�t�Ô�����J# ��^���c��{o������k)���z�Qq@+ �U���Z��z�]�ؕ����f� ������2D�+%� �e{�ڐ�;)<*�©��� �� ����,DnA\7��!ۤG� �@b:.#�``��9=��f�B����m �I����[ (�䮈�-�@�b�n�d{�>x�c�&~T�#���Qr�M��t' �^�����]%�f&C�9j��#��[�ټz� �Q�!��x<�ɐw���8W5��"���B�*%��`���A�(#i�|�P�k�ʲ��@�d�Y]���(�S2�=Ÿr��fg����1bÎ��('�xSt���lh#���3̓��_J�V|�\$�5 �8͜.��� i�%��㚸�|PܔB��+?N^���7����v�ܜUFf��BSN;ΐC��C�)�9�Ǽ���! "IΙ�m�!��up �Ȝ\��n���P��=��5NIr��9;���s;Ԓ\^��$��eY�^�XP��l �d\Nl���6i_��G{\ ��&]��B�&K�υ�P������~J�S�N'������l � �R�b�k�u!ʱ�2��k���4�%B%(j�[��(�4��'�����l&��a�p��!I6�Uj,��"%���mikE���;y�?J`)��k�`�dJ�u1i��Qljz�A`���Tzt% ^� ,e���"Q����Y��g��B��ۛWˋ��׼�=�v,EW���S�ߪ��|���K�ߺ�a�L��� y�И٦t���V�c����z��[}8�����D�I���O�:;�Ջ�T�8�/y��;>�O'd����WV-Nm]�����T��Q�L�"�1dJ`.USD�N���j]D<��$������y_M���,A��յ�Q �>��䆄�B�ζS#��0G�<z� vԅLx�!`��U�����M�r*����{G�@�۪+��G^3��Ι�i��y��~5�ᥙGH�3d�o�����v�V3�%���I_ʒ����"S��!�nz� �@� �Ĝ]�΄����UJ���I߭[� j�a����o��uHA��cYʔ��Vs�H�%хΠ��QA�z��#�[l0��b���+`�`j:>cv��G���i�f��֥�|ɰ���2�jD8��(�%������'�7�c������˱�G�w�����j�._�В퐐�`��G���I�r��(yP""W�b��uܤM�������GtZV�7��9"����������߇��qP�|�I�WM ��F]]�ȼWWd���+Zpuu&2H� ��C!�t�if�~��i9h�A�[M0M�U��H{s\���qSn��R�Oh�"�E� ��v��~h����q�E�PS�������D�[S�9�?<^�CVz�bK�|"������Կ�����.>Z��A���b.d������p��Ï���jR�y�"S��K�f*�X+K~�`� 8Min�(6���4I>�����{� ��)��9T��3� ��S �.�r�|*y�҄���L�� a{yo�fV�͓V�D Z#��͌%?�.vuk�[�:��L��Э�lŦ���-�,,0#�䞎$2q�[��' ���@�0�Bͱ�n�2Ob��3�����q��B ��)�H�� ����ϣ�� `�Oq����F���wz��gF���|�������й�T=���>�\�]����2A\.��%��{�W�Wh�@[�'��%K��a��V1Hh�@��� A�h���#�I�]�Q�~bƄBnD�Ȝ�*��m�4x�R�=��/���Vكt(,�U�u��D���V��TCc��Y;�L�,!�\�R2�����#�#�1�)x$'�����Y�0��y�틒�}rb�����qJ�$O��х�+::���Gn*����_���IJqC�ע�7����� ,�y����-�-:��\������繌�B�b��yo ��#���NcpR��3���� �` ��iĒ8 $$/O�����!�f����eT�7��~D}"�) pb��Q��c�@.���u8�J׺0ѝՌƹ�.�;�ո����u](i�O},Kǣ!��ǵJ���� `l�GH#�R�/��� T��c ���V�a�� ��"��k�8�b ]Q��*�_�Y �&��Ř�4�l?�٣����S� ֈC��T��b,F��&OO�x�W򣻋�L,b��9E����yl��ɀM��Z��w U��]8��#q������8g���3���U,o��޵4�����nG{��"'�D�#ٸa1~�_ Nn5'�E�a�H�7��.]d+�s�'�ç����=�� �����������Wmo�6��_�y#�_�v�8ðv���-��S� �t�YK�GRQ�_��HJ���Ȇ}� Աt�{���㕻~�|���7��4�4�Pz-�ة�זĝ���e�VB�B��~c�xk�rX o�,퍨�p�M|�r�v^����Hj�hh��J�.j���UBi��5eAV�p���7����;» C�p�R��bg����� h2&���oV�U�6�៵�$J� �X MT��͆�+�Y&��q�3���j���������t��{r86b�Oc��R����>{:��o/�wURuQ;����hCs�*�&7bSE�r���)�2������S:���h��ן͎4ٳQ�zb�u��� An�f��5�ph�Ocj����O>�փ����(;>���d�/on��B�1���:GAx1��?y��|6�eْ�� i� �D�a�����)V%�c�1�,��42T��e�Җ��ʇ��8�.��QH���(� &�d{�8���.�#k� tc[��b̩BEm��M�e�8a�1�Α� �Ň�T; oEi�.4�C ��\q�_m�g�ɐ���-U�y""�#��(W���V�h6*��ic��!,ɭ° B *� h�{��҅����b�t��磅�� '��mh�`��B�/��g7��}��x���L�O��Y���H�T"%`�;�m�\�ϱ x�b������"���O�� SpA:���э��=�(��7�PE �������a^�Ԍ q��\��jV�v���L�����]�wH�-�2(��V�.��؝ĉt��!��1I9�,j\� cj=A +��2eiNj� j�1p����]R�d��ƒ�f���v�I�LX��g�,�~�e��@(\��ό����|� ���ht>�K3כ�iP��D�\�^ړ�DG5�����56X^̲���N�� p����+Y��2� ������z��,Ah��^rE27�N;ĺ� $xd,0��#tܽ���4����[C0�&�����������%�d�c��������LYs~�q$+����9TV�Y�N��&���e�Cݞ`���S� ֈ��E���|�;����ʡ[r�����],<`�B�"k�Fi�Z��*�Og�OEx��]v3ixο።��Rs���&�0� �V�E�)S@��TG��8?�?P ;y�9�3��������Qa�$�D�<��bp�� ן��1�<�L;;����PN+�~�S�+�Q.���@"����r��}�8k�R~�s>���D9ȕ�c�h�<t~�l�:,�����A��.SY+�V&�I |.ŏ�cb��`=*Z��`Q�(�_����a���N?�uTAqe�RcGv�6�# �&<��#��_�� &�%�o��2-�OfOD���>h���',=�n�&��ؚ��'�@x �6�c�_XxVEj�l�R:��)�$�:���|?��Q ��8��G�J"�78C�;�N�o�x%�D�6�:5&��}�����5�p$��0"�����"�q���LV�\��c�� ����4޽߅�^Z����'��C�q����L\M���E4j ����������������}XM����ﯘ[�h|���8[ً��n*�R�UCpH��P3��������k�tX��=�_w�n�G���������jϿi�ƭ�b��ߋ;�qgGg��N�~g]'�����td��qZ 0{��ӨV��n7vB�N�^����� �7�s�ڳ���<%q���y�^��%�ؘAlG�k��u+��6�c��߄Wݱ���� ��D7n�����3���I3�[M~�A:���x�"!��� �`7B9��d���f�������|����(8:��(�� ���F ���ĥ�ݎ�ܚ'-��;�+;zͨ��c;���ߠ�V����,��� N�mŧ9�h!S�Q����.O����(�L�������l<�˯7���t��Ýr�ى��� 0�N�,������/�Ù��'�R�7�_�g���t:�ˌ�p#��(��H�i�q��ĹxG����O8TFIRVe���D�qQ�Y,�9�D~����I-��U�KY�SrRGu\K�lDNpg�[ق��0�{�xq�%YR���$�⺬�8+��4�I\��bv�6����Y.g��,KY-NޖQ\V@�OI�fE)e�8I�I��U<E\�Y���#���(z"ś<��Bf5 �IF��.؈��YU'E^����ZV�̪k��yQ���"��\�I���i�r��E���(�"��*���Q�gE]���L&U1s���KF8I�1'+b㪐u�ș�L˺�9I��")Ռ����JV+b�*IҔi��,ʐq�Of'I�&i�k�@,«d h��I�,� 8ɣ��(�sv)Q*�\��UY�4_qR�`�lFR�|\�i�_���:M9�O�i-��"gG��˸N�%�8�:ߔbȾ���r*�(�n�ȟl�Վ��\?����Y7��� ��X�Ovl���=�|���!xJ�k`��:���6�� B��0k�,�B�o��%'��$��c╩����]���8�툿4y:�-��_�cc�ngCZ7ÙF��j#r����58@�Pؒ����<�9)��vȞ���#��ꝡQEL4�������L�`� Ӄ����\!���Z;NpLG<)w^���h�rv���M�q�� �M.����u��Guv A�)���%�[���@`3��P��j�S�.E����Q��!��0�h��I�_q�r�-��Hu�],=���g�����ET�&�k=�S�ݭ0���:�T��?�%�=;�p���g7|�~M�ԯ���Ϳ�F3r� ��K������zg�#B�@ �T×�|������Z)�j)> �h\>�E�7_�?�n�!t��;Π��؄TC�=M�L /��#�7�(ګ�^����p�e�I�5ҋw��&� �P�< 5�}M=���6<��$X���xq��Hʔ6������3 `����jٝq�īdO����0�W4-K�@�<m�A`'q�S��ז���sE]����+5` 7�x���� ;Z�:�M�i�@�`�q�C�@\(+� �\����Z��+`vP�n�:=%!��vXO[t��æ�Ň������D����} Y�ɇ��u�����//�8 8E���C7Ϥ��x�?@�h屢��ys�A�T0�i_�F����δ!΁����Y����L��k36O�8x�W-C�9G� $:��Kxڜ��,��.�@8s�.������~�'d�M�[�\�� ��4c��y@�����3"�!�-J$$"L�����������W� ��=��}������'Q�(�7�ㄚk�1�X�i!��=�r�l�f��<�������6�H��l#`��)/�Mg��q7�>�ttù�7�����H�=l2S�^^�ե�Y�b,��L&ףl5�.J�9��j��N�z޷af���qn�E��x��4М��C$[��3h /�4]Y}���ۃ��6����9�)�NA&�%��E^(�,a�����Oc`eBN�8��BU9�'݆ L@%�[��|�~B��{⒛��n?�i�Q��L ��q�,x�W������$��� "���>���z���t8ٗ��`����~{]ğ�]��B�~q:�V���Pu�y���\�Ʉ�����g�vZ����m���1�k����_n��xNk��<�z7\�w���V�y�^���ˈ7<��M?�����F�����;�_"�������%'�����������Z�v�������sڂ5�E��Ie9��ʗFNo9�,ID��������of HI���,vggf��ͬ~c�����͇�� U&�"��rI�z[�tI�&���sj �����P\��M���6��Sʳ;E��M�ՊbZWzY�ի��"�S���Z�&�W �H/����xq��(U\Q�/ռ�iєI��2γ:S��&+EkU-tU�����o�(p�f)](��%� z<ޕz3�l���|�� �k��^��خ�kxW����DY4�V���*�(�e�L���;��'� �Ϊ=F7Y��VLV�s}�U��������l�gI���au@�R����=dU�P��2߲Y���d0�uབྷ3R�9�♢�ղL�Y �+l�����P�|���Y��$���LC�"z� W���RAm8��BU�����F����2�<-*]Д5>��za eR���� 3-�$�i�`�Vɨ�����Uf�=|�-�i&�B���0���ke ?X�:�������� ����I��0OX��3S�,��=��>�O�?��p�~� ���!=�vuU[F��ڹ�-⬼�%���~6�*���8�dw *��h4�p0��Q@�6$�ā{�s�ۣw;�c�gsH��2L��y\�8��������<+0̥jAo���OR5��~J}[C����&����$cYY��Х�!Q�#;���to|���e40KU��|[����8�SO< ����%|(��i"���66~���{�������Yj�X�C:�瓁v�<%���>�Ҫ����b�C:0�������g�r6�vY5dsa����Z��X�g�[�{�(�q�TX���=�u�J)���<qEX�$JVe�$��i�T�zY�M���I�\E����k��2��~�\C�=ҷ�_�^_����/��W�!�Ͷ��b(�Z�3��~��MSY��l�\��_�"���C���D"��!������/[/R����7,~H��n�-r(貴����'N��1es1���w�x� ���)�c7+$ �����kN%�o4y���̓&Gnߩa���T7s��ۂ'��9���W���W;{'�f'G��W�\����2�����5*Я����{#�z e�O.�f�����ݤ/�{޷� �I4�<���Jo8W�ֹ��r�9'�?6�tε��R�V7l��X�E����JlM��)#/�\%��u���Z�85���b�կ�? c���>f!b��Ђ5f�L��O��� 0H�k��-��7J��krNw����+z�T�a�=�6�1,Nk���< 2[X[�,��-G��A�i��'2T�����X#�C�+�w@́_ğ��|Ŋߔ>`�T�@�(s��i� ���+�d5��0��7�ݜ�p���`3��R�������Ň��#��(� �r;��X/Y���tSQ�6���e@�h��@��Ս8�Qy�y��E-�0��#<-���u�oY�֨�l�W�D�FU(�M�: όi���g��J�����%�r�%�^����q���T�b�����q����y�� LnK/�,�i^���V�$� :��\��M;��J���������A��V�9�tN}�pf���_�.����t6���w��7�$+.5dx�^�9�ل�y���9�!J>���tD��2�v�v;,��V��'�=���p�l@,�� 2�s�#�j���@�.M��e0���5������̯l=ȇۊ�k5q�M����J �S�� �l������{wsN7���=�K8b��Ꜳ�N��4#[��S����FA�<������:a����W���^�t$�#��O���k�Q�m��+�8b �����*��VX&�3Q+�D]�x�4ꘓ�lÁ+o�ؑ�onD>����;���/�ZŨ�H����؎�I�:8C�e��έ=a�o�P�H~w�l�ܑ�z�����!�3��ig����䠷���Kͺ�U����P��Y���z�6di>�'�����Y�nO�ʝ��0�|� C�c��0�F_gKU�4��Ι��і��-�e���x��J;,�(��#n��.��2"�}�+�#���uo:��Z�~f�\��8q�##3jgU��N��R�d]e'�bP\�a��H����m4��nP\A�N�̊�X_ ��� �: 8�8M9��fIB��W5,�О�p�-���������Gi?������j��x�^���{�����l�blG��Ť��[aoI�}+��s�S�f��4��9�+�w�15�S��A�5� ���I�7�������%�B+.q4i�_�j�x��룯c ���Lϊ�a�pO�C66�,�� Q|AN[����Tz̶ ��er^p,�����}����f�,s�"���\��Z��"�IK�k�o��ol�~��������$Q�$��W�� .p�'���2 �׸�)l�t�Hx���N�QI+0��$e��R�z�p�szv�r��ҡI�{ͺ�Ulۈu�qIǻ�����y}$��R8�r�nޔuC�M�`.�&/2�/��c���NG�>�9u؂�|s��[����qf�a���cP�׋LL�c'�rݞݠeL�J��p��`6�����-E���`�l̎x����׎��Kc�ҍ�8�� �+{|M0�1u��:���������]:#�Y.U�~džp��b� ��-Q]�"?�`}�MqȿЏ���_��O��g<����o�pڢ�r�D6x�ʜ��kį��X޼rFv���tDF�;(�����g�{�od�N����[3'{4H@��A�'{4ȳaC���n���0�9 ���]�G[�z��ݐ�8���?}�~|��?�:������ha���?���>��I!;���dz��֟���tr��i��h������e�d|��dzѴ���I� �Ϣ��O�Y�v�q��CL*^�1�`�a/^�z��\�"y~� ��l8o=��<�����v�h�S���V����o��I�����5�#�'��O�CN��i<���'�'��� �>==;� Ó�} �Px:=����,��dr�'��0���NƳ�.�xڧ��N4:���hv�R��|=p�i4�� g'gna'Y8ni���qg��h��'3'�����<�Lg�:^��*Gk�8)ð��l�Ru�>�'�=�Gg��آNcQ'�����l�'��X8mOr��t6��z���h����٤�=�h��5�8���П�^'�{a�� ��E�z������d( �ݪq�k�`(�G�$ݵ�*��e���n��X��M�p�;�D6�����f-�{s�|� ���fr��t�m�F�&^�G'�݊;3fw����G���s� �;� h@r��:��$(^pm2o�\�.p��@W��2�ib���p ��h:m� A�˥Qb#R�*�񸮥��RNP:�U۪��^��8�.pQC��o0_qӜ� 5q'��׀H�em�$�.���%��p�9[r�(��ؿ2� ]� ���U�M�9O�ʦ]l-�Z�r���$ ��3Y�e'��/*Q>�:�s%�-�@�R�l2.~e����k��Av�,�ݞ'E⌶���e��7��@���L'��q?%/�X㈡��p6�����-Y)��mK��L�Ӵm 8��b?�E6��9{���v�,n-g>zλސ�z]n��-k� � ��'S���)KW�e��ю���U&홭��pۤt�. a�-r�\ nV[������x���n�<:�))�U�3�G;Cܦ/���m�Kl�I���ت�-�]0��k[_��#����:��#��-�BK ���y�ܕ��s�+{������V*_��bmcJ�U q�hܕO�1_d9h$��/Z�2iEob6T��� �� Ue�1L����v��^ðq(t`�F��~���͵��_B��^�Qzg��31��by\T�:��4�ۆݯ� �s�,�(S����Nl'+X� a�t?ɧE����BBmS����Ϗ/���9�J�r�K��ʌ�-|oۣ���J����M�}s�<��#��7��������%'����������������Wao�6��_1�}�Ju��r������ 8v��)�"�$�.kITH�k���͐Zol���6@k8|�f���;���������P�d:T���q��󺤽cXێj����ScJ����b�O0x�*�\Ч���yK�ҹNoJ��>�j�u��|����Z�����t+��XG+���Ͻ��v�x@��)�5 ����k�e]�F|��U�G� ��� �vv���R;�!6۬�pv��L �_��8SA��R;�KZ ��>�n�E�3��uN�`�h�Ɠ7p��MtW�O��vL ���.xv���F� ��tL{b*W6E�ixQ�q��o�!��i9����*#�_����o�E@Ԏ��o#ߌ�"/��ecU��K�T�γ�����'Y�-��~.R�!�>ȎPm�I��ڲ�S��6�Ƅu$4���CSSco�F� ���dptک�x��,i��lK"�q�k��~�y�����P � \,.�U+S�م zN'�mQ��Xd�.P��Z9կ帉�^p ϵ��:g8�7kS��VN(v��`@ʫ�3�\h�����@`��h�7����p�۫i`V�����.pg*�]0�Z����l�����@XWt�B��.�T�e�����mm�`��n�S���r�*A�C��� c{��{��A�p+Iq��L?>���{�0������\�R@KS�@��R��4���if���jȝ�t��Z�b�J�zU�p�r8��������Y9��o����L�����(�F{��#ȁ��P�P���r41b́2�z'����VGuI���.�~D���Y=T��T ��ت�j���M�@X��<�A/-�>C��Tǃ�Xd�4I|�2bD�NNv�'�|��߇��S2�K���CwN�Fժ��^:�����o�[����<;� NU�m�+S ����o�� g�8��/�?��߲��h��u��-mSkw@U�UD����R�䄡��1�e�����t��N?]_�������I�R�U���ti9��*6�F��+�n�pq1�ǰ ���(��`1�g3��=�9�� �ٓ�q��>*�i� Gu��O���GW���8�*�_}<��.�Ya�6häx�T���ɫ(.�%���//ޝ^�����b���'��%L��0ng����I��G9��O*�o�ى�<���-mc*�Zw�@ױ��S�Zq��b�F����g#M�ko��U�C�#�k��h��+ w��*��~JU� % ��8�T}�7w�0�j��ն"ћ@���ϕ�f�� ��z���gY�O[=�S�������7C�Z}_iHq9)�I(�̪�.��(̥n�&QB�6E�d����k�­tN0�7�¨t�?�)IN���yvͲ��b�s?)cNgA~�Ӱ�xCl{�nS�Yt�e����% �>�-i�Y�ܘ��d�N�����ۧv�Å�(Ӊ)ss�Vn�"�l͹Z%��.䇯�z�Bº���9]i�m7�m� _�!1$ %�T�'xk��j�\U� "�w��U����l�e?�_�Z'��� �{���%�◂��ȕϳˎ{�1j5`π�j�]qR�d2M�"��Ns����r�K�Y��f�)E�P�ȿ-xɟ���`����G�!��3�3��f���gs��U],�����h.��c�9���E���m�I5HR=&:�7 �oĔt��+ 8avKͅ���u�G/�M��;��ȓ��X|'O���Y��ny`Y�o�G�c�R���h�XJ�N�u�x��� �$�|fX\��|�£���2����r��l˾&��O8� �Gf��T���qgϳ7+��Y�%Q��������D (=�v�%�|���pY��;~Wf��t�T�q��ǖs��J�|� �r��6 � ��#O������x�+���� J���������������������������ek+c���������}������}��������������p*����&���������������������������v\3Ar���������+������+�������������feS8��:����������������������������~���2������������������������������ffD���%c�����������������������������Np� k��������������������������������Nh�@u۠���������/�������/���������������/k,�����������]�������]��������������n΍T���#��������|�������|���������������4nX�� ������������������������������U���Ǜ�������������������������������N^)�� ��������������������������������n�+d���y��������\������\��������������Ÿq0�`��������� ������ ��������������(gq ��!�������������������������������v^����Է������������������������!��������M�$���]����������������������!��������>GϠ�������������������������!�������[���5�_e����������������������!�������K}�c�� ��������Z������Z������!��������ML�������������������������!��������������������.������.������!�������c�W��6����������������������!������������'���������������������!�������+�*���v�����������������������!��������WƊ����������������������������!������������F��������������������!���������YjЧ������������������������!��������1�I�-��������j������j������!�������ˌ�ި�W���������������������!�������3Bg���j��������������������!��������}a@��4����������������������!�������C�.���T����������������������!�������K�ҙb�4-��������C�������C�������!�������[:/����D��������������������!�������CsT(�������������������������!���������b�h��X����������������������"��������e ���!�������������������������"��������4N��v�����������������������"�������(-v%�U�����������������������"�������@�l>���������������������������"���������:;�ǧ�����������������������"���������>���������������������������"��������� ��S�����������������������"��������/;*��p������������������������"��������ڒP� ���������H������H������"��������?��?�b\������������������������"������� ���������������������������"��������d��b��������p������p������"�������0U��Y���������_������_������"��������y��h�,�����������������������"����������G�����������������������"�������@�愃T ��������5�������5�������"�������(��a���1����������������������"�������xQ�[3�yA��������N�������N�������"��������/a����������������������������"��������"�Y�Z�������������������������"�������0K_pC���������������������������"�������X��a[�������������������������"��������ɶG`�ƞ����������������������"���������X�l8������������������������"�����������R��^����������������������"���������=������������8������8������"������� �m��l���������������������"����������ڏ�y������������������������"���������c���v ��������9�������9�������"���������^��wD����������������������"�������آ��A�Z������������������������"����������\d��c����������������������"�������pU T�������������������������"��������\���J������������������������"������� ����J�������������������������"�������(_������������P������P������"�������˘}�.���������!������!������#�������Q��w��1"��������������������#�������At.Ia��������������������������#�������i%�f���b����������������������#�������y ['��mj��������H������H������#�������QY�=Θ����������������������#��������t��r�������������������������#���������{v�����������>�������>�������#�������I�o�[�I���������9�������9�������#�������1��Y�ޅ��������C������C������#�������i �ځ�i����������������������#�������!�]���J��������"������"������#��������0�RZ��@����������������������#�������� ����b���������a������a������#����������Ѕ�{F������������������������#���������$��������������������������#���������P�Q��������������������������#���������`���7��������������������#�������I*2j�/�����������������������#��������)M���!\��������������������#���������¾��F���������@������@������#��������ݥHɻ2W����������������������#����������w3�������������������������#��������~�0���<����������������������#��������8�"8�� ����������������������#�������������D�����������������������#�������qqm� �O�������������������������#���������&���a���������������������#�������Ѵy�gЙS������������������������#��������2 ��$,������������������������#���������z���Ͼ����������������������#�������y��X�� (����������������������#�������!*l깃 k������������������������$�������:=�����;����������������������$��������2&�����������������������$�������rmy@���Q����������������������$����������E��y����������������������$��������w�fy����������2������2������$���������C����������������������������$�������r�L�_T��������������������$�������� �嵝��������������������������$�������� ��`� ���������������������$���������:n�ud��������������������$�������rBT��� �����������������������$������������+)��������������������$�������BwͻM�&�������������������������$��������>�J���\�������� ������ ������$�������z�V|� ��������9������9������$���������Y� �;M��������f������f������$��������F��ߑ0�������� ������ ������$������� ����3 ��������������������$���������q�������������������������$��������jV�ZE��������[������[������$�������B�&�P� ���������������������$�������Z���@�D��������������������$�������z� CS�S����������������������$�������� ���� ��������������������$�������r\�������������!������!������$�������ZB i��l1��������%������%������%�������B--ͷ�7^��������)������)������%�������B�ݕ��������� ������ ������%���������g�4�7�������������������������%���������?���������������������������%��������Z�ˡ_���������������������%�������2��������������0������0������%�������B����v���������H������H������%��������`��9��`������������������������&�������\P�?�����������m������m������&����������W��L����������������������&�������|��#D���������� ������� �������&����������M�d�����������������������&�������$P��^����������4������4������&�������m�U/�`������������������������&��������\�yR�R���������C�������C�������&��������' ���8���������w������w������&������� 7�`�Ui��������@�������@�������&������� r%9�%���������n������n������&������� �"���Ar��������6������6������&����������� �����������;������;������&��������R�$�D.��������<������<������&�������� ~�e���������������������������(�������\��aH�_��������� ������� �������(��������@H���W�����������������������(�������ԧ�Ʊ���������>������>������(���������xAɦ���������2������2������(��������mȎ�t�����������������������(�������d�~!:�+��������������������(��������P&EJ��*����������������������(������������} ��������C������C������(����������� �%����������������������(��������4���&/��������������������(�������\�0�#ԁ�������������������������+���������Ɨ͕K��������d�������d�������+�������P&ğ�7�����������������������+�������OYGV2��t��������D������D������+��������-K~��AB����������������������+��������1��O;��������T������T������+�������ot)������������C�������C�������+�������d�!�ʲR��������������������+��������# %���������t������t������+��������~�nȈA��������F������F������+��������P)Դ ��������B�������B�������+����������b��֒��������S������S������+���������&�x�^�����������������������+�������'xn��Yy������������������������+����������|��$$������������������������+���������5�����������������������+�������uFp2�O��������B������B������+�������h��Rݸ��������K������K������+�������W�m�Ҡ���������L������L������+���������h�����������M������M������+����������4�Ѓ��������O������O������+��������Ի5�����������P������P������+�������O^�tEއ��������Q������Q������+�������?J�P&�Ԅ��������R������R������+�������O �0a��$��������S������S������+�������7��O~�a�����������������������+�������_NP(�,-��������T������T������,�������UH��5���������������������������,�������k��%��S��������U������U������,��������G2������������W������W������,�����������}T����������������������,���������R��+���������������������,�������M��Lr�����������v������v������,��������S_�L�e���������Z������Z������,�������em^ ������������\������\������,�������}-Փo�%��������_������_������,��������M�������������`������`������,���������(����+������������������������,�������]�����v������������������������,����������[�������������������������,�������Ń;�����������)�������)�������,�������e&򖼧���������d������d������,�������e�q����|��������x������x������,��������� �'��������������������,�������mf��g3��������y������y������,������� �+��ֲ��������D�������D�������,����������ꠑ�����������������������,��������� ��=a��������N������N������,���������l>��2���������k������k������,������� I�"���"��������n������n������,�����������n�o��������p������p������,��������~���x��������q������q������,�������U�&�������������������������-��������] �ø�����������������������-�������}��F����������u������u������-������� Ǎ���]���������C�������C�������-����������m��"������������������������-��������8�"��פ����������������������-����������E�t����������������������-��������{�.^�&)����������������������-�������$ ��� ��������v������v������-��������;���l���zU���g�������g��������������#q�c���!�������9�������9���������������{|Vy� H��� ����2������2�����������������G���+����[������[������������������!���I�����������������������3���1�*���S����`������`�������������Kw _��p���q����e������e��������������â�ns�������������������������������[A9���N���������t������t�������������Cj���|@���������������������������+�"`�6���������|������|�������������s��B�ĽA�����������������������������5���0���������6������6���������������k�}��I���������������������������YϷ�q��������������������������U9���v����������������������������NLs�II��%���/�������/���������������N>hԗ���9���-�������-���������������l�e���j��C���r�������r��������������b�r�n���M�������������������������/J ��|��W������������������������,B�7�����u���������������������������{횕�������Y������Y�������������d ma����������������������������������!���5�������������������������������'��ڗ������)�������)��������������Nq��ə@O������������������������������^�C9�����������������������������n]㬻ڝ!������D������D�������������6%�����P�����1�������1�������!�������+��a����3���^������^������!��������?mWu�Uu��G�����������������!����������)ͮ���Q���$������$������!�������K�~ڈ����[�������������������!�������{TZL������e���G������G������!�������CB� �����o�����������������"���������(���������������������"��������������b��������������������"���������M�����������������������"���������tP�2��������������������"���������l�ڴx��#���������������"��������B����1���U�����������������#�������!�O����s��s�����������������#�������1��͗���������������������#���������� �����������������������$���������D���������������������$���������M�������������������������$��������\g�[��������o�������o�������$��������a�b�ɂ���������������������$��������V�^��" �����������������$���������m��O^��'���x������x������$�������R�&U���1�����������������%�������2L�{�p���E���t������t������%�������Z�}�]d��Y���E�������E�������%��������뫙�,z��w�����������������%��������@ʇݛ�������l������l������%����������&����������������������%����������C�U���������������������&�������̨ m�Df��������������������&���������ge{�Z�������������������&���������ʣ!���������(�������(�������&�������<��}r�E���������������������(��������� ��k"�� ���������������(�������<����ю��!���r������r������+����������D� ���5���s������s������+�����������ӽ���?�����������������+�������g��z����I���K�������K�������+���������A���[D��S���������������+���������v����u��{�������������������+��������=��B^����������������������+��������[�b�������V������V������,�������EQ�&��������]������]������,����������FB�� ������g������g������,�������JN��ӣq������7������7������,�������Վ�c���%���P������P������,�������e����֦���9���A������A������,���������������C���H������H������,�����������܆�?��M���_������_������,�������}M}������k�����������������-��������J�Sš~���u���{������{������-��������D�2R�������������������������������������������V������V�������������û5��D���������������������������;�S.�4����������������������������U��Q�?������ ������� ��������������71G�ֻ�� ��������������������������b���,_����������������������������%B��Ͽ��=���5�������5��������������nXL2�ڤ��e�����������������!���������5i��G���o�������������������!�������c���ʚ����y�����������������!�������[��.�v���������������������#�������yflT3�����������������������#�������Q��E\�O�������1������1������#�������� $��4T������2������2������$���������V���p�����������������������$����������\�\���������B�������B�������$�������B�bRK����������A������A������%��������p�s����������������������������&�����������Ȕ����������8������8������&�������Mqe�S���������=������=������&�������į����&����������������������(�������ԁ��/������������������������,�������[kQ��$���������c������c������,���������l��Nw����������������������,�����������U�����������$������$������,��������(S�5�����������h������h������,��������G饰�(z��������j������j������,�������]Z5�m��y��������o������o������,���������7e�b�������������������������-��������4����S��������s������s������-�������eVA�g�>J�������� ������ ������,�������E�s5����������U������U���������������H�`�����������c������c��������������`�*���������������������������������#q�YP�����������g������g�������������C�;�mʭ���������!�������!����������������M̪����������������������������������F��~�������������������������������+��㌯�������������������������������� ���T{��������}������}�������������ˍ�X�3%������������������������������*ǽ֍�������������������������!������������N�H��7���]������]������!�������Kc��w�Ø���������������������#���������X��A��������"������"������#�������y�����'q���!����������������$����������7ۛ����+��������������������$������� ������u���5����������������$�������:��a�̔���?��������������������%�����������M�_0���]����N������N������%��������s�\�ʥH���g����1������1������%�������B���'�J���q����o������o������&�������$�ݍM�U�������������������������(�������D_�������������9������9������+�������w�΢k�@=����������������������+�������o�����t��������Y������Y������,�������]n��6�� ��������#������#������,�������5Ay�L�ta������������������������,�������et������������W������W����������������������������3������3��������������A��z�� ���������������������������>�� �Ѹ��%���9�������9���������������nD4�ʁ���/���p������p��������������&������9����������������������������!'~��-��C���h�������h�������������� :K�{�n���M���2������2������!�������#�,C��e���a���������������!���������P8��H��k���;������;������"����������Q��M(��u���������������$��������MC��ķ������1�������1�������$���������fU<� �������8������8������(�������4[��X�I������i������i������,������������V}����������������������-�������5��>/��;����������������������-����������a�Ǝ���������������������!�������3��N��5�����������������"�������p~��%����3�������������������#�������!���ɥU��G�������������������#�������c\�ϫ���[���������������$�������J��Ǒ���e���e������e������$��������Z+I����o�����������������%��������±Y�}���y���,������,������%��������b�;=�>]������U������U������+�������)���8������� ������� �������+�������w ����(�����������������������������������j����������������������#�������!�Voף��������N�������N�������#�������Q�rO�7.������������������$���������}�ۥ������������������$���������Cb�J������*������*������+�������7�N���J������������������$��������[�@y�g?������������������������������<ӗ����7���"������"������"�������А<�����_�������������������,�������EëE�����i�����������������!�������3�]#���'��}�����������������%�������24����o���������������������-���������ŖF�/ ������M�������M�������-��������F�]��\������x������x������-�����������[�������0������0������-�������M)]}������������������������-������� �7�v��� �������������������-������������G��1�����������������-��������Z��������E���v������v������.���������ZH�����O���Q�������Q�������.�������<m�d����c���C�������C�������.����������b>�����m�����������������.�������l�"��˙���w���;������;������.��������m�O�n�����������������������.���������P��ٽ��������������������.�������T�\���HJ��������������������.�������-� ��������������������������.�������l0�?K�f���������������������.��������TǷ���[��������������������.��������uގ�+ ������x������x������.�������� Ar��o?�� �����������������.�������Tbe� �$���!�����������������.���������'��5��5��� ������ ������/��������j��1���S�������������������/��������i�� ��?��]�����������������/�������`XX���`=��g�����������������/���������M؋�|������������������/�����������ǫ ������J������J������/��������T�W��������7������7������/����������v�����������������������/�������ak��⺜��������������������/�������`}~��ʕ���������������������/�������H:���ķ[��%�����������������/��������m��0�}G��9�����������������/�������x_�2'�G#��C�����������������/�������P��k��(b��M���,������,������/�������0�.���v���W���W�������W�������/�������8@,�L�� ��a���������������/��������8����X��k�����������������/���������_���������������������/�����������q������������������/�������8��,�5�����������������������/���������!3C����������������������/���������3c�L2��������������������/���������V�E�������������������������0�������Ou&2���_�������������������0���������Yz�����)�������������������0�������鯈��;0��3�����������������0���������B���b��=���t�������t�������0�������ZqPV�pv��G���,������,������0����������� �t���[���������������0��������� ����Z��o�����������������0���������qE��֤��y�����������������0�������'ph����������q�������q�������0����������];�Ǽ��������������������0�������'Q�<�5�����������������������0�������O.+�ۖ���������D������D������0�������ĭ~������������������������0��������� ���X����������������������0����������5��q��������;������;������0��������i�y������������2������2������0���������U�������������������������0��������U����(������������������������1�������}��Oڮ �����������������������1����������׻�����������*������*������1�������M�k靧N<����������������������1��������A�˷�����������������������1�������M����������h�������h�������1��������_%�&ȕ�����������������������1�������-��ȳ�������������������������1�������eRPK7��'��������]������]������1�������mC�\н���������������������1��������'7d������������������������1�������u ��@�c�����������������������1��������&0���Щ��������O�������O�������1��������w��`�K�����������������������1�������=�BN�3���������Y�������Y�������1���������S?��uW����������������������1�������U�ֻ<�t ��������������������1�������큅Ab������������������������1��������� ���:����������������������1��������'9Z������������������������1���������/E3��B��������D�������D�������1��������*�N��Z���������9�������9�������1�������ť��Q�4;����������������������1�������uu4v��������������������������1�������U[��� �������������������������1�������-bo@������������������������1��������R�⫟����������������������1�������e������������������������1�������u҉G���������������������������1�������ž�l���!����������������������1��������Fp&��5����������������������1�������u�E��®�������� ������ ������1��������A9�F�k8��������������������1�������%p�w�����������������������1�������=��]�������������������������1��������o׾W*��������N������N������1�������mH?������������� ������ ������1�������J���2�����������������������2�������/كk%�~\��������%������%������2�������_kۈ��Ѻ��������������������2�������'����B��������9�������9�������2�������W�� ���������������������������2������������9=��������,������,������2�������o~G@���f��������������������2��������u����K�����������������������2�������?�=��ȃG��������-������-������2��������~�篺pi������������������������3��������>��`ŧ����������������������3�������_c�+��z����������������������3�������_�c�������������.������.������3��������ܢ��晕����������������������3�������סA�{���������R������R������3��������NŘ�E_������������������������3�����������$��������2������2������3�������o�q�?�9���������d�������d�������3�������}��h����������5������5������3�������ϔhO�������������������������3���������/�;�k$����������������������3�������_����b������������������������3�������7�n�#�)������������������������3�������w/嚛��%�������� ������ ������3�������/�UH�Gm������������������������4���������Z��ك:��������A������A������4���������0�����������Y�������Y�������4�������S�r��;���������Y������Y������4�������;k�}.��g������������������������4�������+pu�Y���������r�������r�������4����������ޕ�����������������������4��������]�/����������B������B������4�������{�@����������������������������4�������c��|��Wu��������9������9������4�������;�촁�U���������X������X������4��������0�&$��n��������H������H������4���������9/�cf�������� ������ ������4�������[ ޟuC��������)������)������4�������<�-�|\��������?������?������4�������ù]�Ù�`������������������������4���������� �����������������������4�������ۏ�Bۋ���������H������H������4�������3�0lůo�����������������������4��������[�"�����������R������R������4����������f���������p������p������4����������'�T'��������{������{������-�������}xbГ�<��������T�������T�������-��������x{6P������������������������-�������������������o�������o�������-�����������:������������������������/������� t�K�b�����������������������/�������x���#�\}����������������������/������� �$Sb������������������������/�����������@Ǖ���������������������/����������7���a��������;������;������/���������F2��������������������������/��������K�d��9n����������������������/��������ft�i�t������������������������/�����������ݬ(����������������������/��������1�p�������������������������/�������0h J��Z����������������������0���������h&��a����������������������0������������������������������������0��������!56���%����������������������0��������#_������������������������0����������W�'���������4������4������0�������w��l�ʣ ��������W������W������1��������7�A)��H����������������������1��������T�u������������������������1�������Օ�+cő��������n������n������1�������Մy��^������������������������1�������U�����%�����������������������1��������^U���ב����������������������1�������m�{�D�L�����������������������1��������4�7�O�����������������������1��������\ܽ��������������������������1����������+���������?������?������1�������5O�Dʳ��������� ������ ������1�����������8֌f������������������������1��������?V��g�������������������������1���������b5�������������������������1�������e��Ƶ����������������������1�������ݦ����$�����������������������1�������W�ܛ�������������������������1��������� Fa������������������������1�������M6�� �a��������+������+������1��������}��/5����������������������1��������4鰸�}��������������������1�������uw������������\������\������1���������c�P�̉����������������������1�������]{����`��������J������J������1��������nqxǍ�����������������������1��������ד�����������������������1���������bR�I���������7������7������1�������-��8a�����������������������1�������u��'�J�����������������������1��������,��O���������q������q������1�������eN2��q ��������/�������/�������2���������7��������������������������2�������V!�X�)h����������������������2�������Ga/���.�����������������������2�������?b3�u��1��������g������g������3��������=������������`������`������3�������7iYIQ�c�������������������������3���������Ġy���������0������0������3��������7e�\���������1������1������3�������fL�k�����������9�������9�������4�������;OG�o�z���������N������N������4�������C������:��������/�������/�������4�������co�̮l�����������������������4��������I_F����������?������?������4��������{�Դ���������������������������4�������{>s���P����������������������4��������m���������������������������4�������s� �+��C����������������������4�������3�g��Û��������F������F������4�������{�}����t��������c�������c�������4�������3��A��g�������������������������4�������#����T������������������������4�������;��`�����������F������F������4���������� �����������������������4�������ӈ"jP��w��������������������4�������k` \�R;����������������������4�������{�8�?����������>������>������4�������㮊�L�����������������������4�������;���O��'����������������������-�������Ek�:s�n��������}������}������-���������%��%�������������������������-��������������������������������-���������g ��������������������������.��������rH� ������������������������.��������r7�^�b����������������������.��������h��J�� ����������������������.�������쮦�Z�i���������=������=������/���������ü�������������������������/�������8e��n������������������������/��������u6���d�����������������������/�������SB��y���������������������/�������h�cz�{�����������������������/��������;�+�p����������������������/��������K��߀ �����������������������0�������ߍ��0����������� ������ ������0����������V�zi����������������������0�������/�\�y��A����������������������1�������%e�� ����������������������1��������-����c��������=������=������1�������m �F��W4��������������������1�������->�c�F�����������������������1�������m�A~������������������������1��������gV��Dž����������������������1�����������ɡ��������������������1�������]ү퐵Lo����������������������1�������=�)IԼz���������������������1�������eB�=�[�������������������������1�������������B��������p������p������1�������mCyj�������������������������1�������u�.����������H������H������1��������/_�5�r���������������������1�����������P��V��������������������1��������췑֯�T��������������������1���������Z���D��������������������1�������M���"�;���������������������1��������<�;� ���������#������#������1��������Tz��������������������������2�������G(�r�Q��� ������������������2��������M�4K�� ���'������������������2�������'2�PԐ�)���1��������������������3���������ݑ_���Y����������������3��������_�ɳ������c����Q�������Q�������3���������u$���l���m����8������8������3��������>�ܪ���������<������<������4�������V�Y{��������@������@������4�������s�?���M���������u������u������4���������]�0�ɹ����������������������4�������sLr+��������������������������4������������D����������������������4�������;E�+�3�����������������������.����������C��(���������{������{������.��������M`���1�� �������������������.�������� AȆs��������������������.�������t��_k�}(��+�������������������/��������j��,���?���2������2������/�������(ځ`(�?O��I���h������h������/���������b��^���S�����������������0��������y堰����g�����������������1��������'�7�~A��������������������1��������� �o�,���������������������1��������� I�#O��������������������1�������Ŧ�r��)��������������������1�������]��]��R��������������������1��������^��k��P������������������1�������]�r�ь�/������e�������e�������1�������mdR�k[��������������������1�������e6���U�������������������1�������ՃO��w��/��� ������ ������1�������ͮ6�������9���������������1�������}HR����(��C���V������V������1���������gCS�`,��W�����������������1���������T�?�����a���+������+������2�������ǁ�v�����u�����������������2�������O[zd0��%�����4������4������3���������$,���p��������������������3�������o�����"������>�������>�������4�������C:�m���������C������C������4���������r��*[��������������������4�������3�; �����������������������4�������s7�v_�L������_������_������4��������{�w�>C��������������������4�������sr���7w������J������J������4�������;.� � �������;������;������4������� w<�1�@��� ���������������4�������������������������������-����������F߫J��)�������������������.�������$��|�����G�����������������.�������Ԝ$ϲF���y�����������������/�����������q�3�������T������T������0������������7��������������������0�������o�V4ޠ6��������������������1��������Z�������������������������1�������]^����?��������������������1�������U% m�F���������������������1��������ף3�CP��������������������1��������V��YK��������������������1��������`g4p��G�����U������U������1��������Fտ$������|������|������1�����������'���7�������������������1�������]�O^#�5v��A���������������1���������0�K�Y���K�������������������4����������`�zM��}���G������G������4�������c�Ҭ�P�����������������������4��������ᖋ���8��������������������4�������ˏĪ���i����������������������4���������{Ԋ��������������������4�������C�gp ㋯��������������������.��������C=� ��L�� ���'������'������.�������\P&E�!2���������������������0���������M�����'�����������������1����������q�����O�����������������1���������9�5�S��c���7������7������1����������o�aK��w�������������������1��������@,�^�4�������������������1���������v���P������;������;������1������������W������������������1����������G�������8������8������3��������:���������=������=������4�������#�[��������>������>������4�������[�S��a������l�������l�������4��������qrV��������������������4����������w8ǐy�������������������.���������Ō�����S�����������������1��������R>� ���]���r�������r�������1�������m?⮍��o��g�����������������1��������$h)��$��q���J������J������1�������%3���E��{��� ������ ������1��������f%h}��������� ������ ������1����������Xʣ���������������������1��������|��S�FI������7������7������2�������o�P��Q�����������������������2�������G���_��������������������4�����������ʝXq��������������������4�������������������l������l������4�������c�����������z�������z�������4�������[�s�-�[i�������������������1�������m��<W�����/���������������1�������������-��9���X�������X�������1�������%����G���M�����������������1��������&������W�����������������/��������d�Pe�jr��������������������1�������m� �D�ڨ������u������u������1�������e,��ه��������������������1�������5e!��������������������������4�������V�ҜZ�������:������:������4��������o�39���������������������/�������C+r�n����������������������0�������O=��u�`������������������������1�������m�I6���]����������������������1�������5���ωO�������������������������.��������(�p(�S�����������������������.��������,I�ρ�!����������������������1�������e a�e����������������������1����������Doŧ���������&������&������2��������yNi����������(������(������2���������A�������������������������4�������;4�z��N|����������������������4�������;4 '�s�����������������������-������� �T"�������������������������/��������`(P������������������������/��������@7(�DD��������:������:������/���������/�Q�>���������-�������-�������1���������*��~���������P������P������4�������;$����������n������n������1���������9I��s��������5�������5�������4��������=�tø�����������������������.�������D�������������Z������Z������1�������U�J������������������������1�������5;e(��)v��������=������=������2��������������������E������E������4�������#l(l^�g$����������������������.��������p6�@���������H������H������/���������O������������]������]������0��������[D�������������P������P������4���������c��#��������������������3�������5�g��^���������R������R������4��������a��t� 2���������������������1�������U�V��}����'��������������������.���������Aڇ������1������������������4�������K�S��'���E������������������.�������l �Z��^d���Y������������������.�������l�.!��?G���m����T������T������1�������e��F�;�����������������������1��������kN0 ܭ�������������������������-����������=�������������������������.���������t�҂�P��������������������1��������H�0��O3�������� ������ ������2��������O''=���������������������1�����������:�C����������������������1�������Ma�Y�ِ�������������������4���������L���n���!���F������F������4������� !�Ȋ*��?���Z������Z������4�������� �w;����]�������������������4���������W��{^��q�������������������5�������-�Z���$����������������������5�������-ȃ�H�1z������^������^������5�������Վ(J��������9������9������5��������o�|7�R��������������������5��������'����az������!������!������5�������mj�q�����������������������5��������x�* р�������`������`������5�������-�p�K��R�����C�������C�������5��������������=��%���$�������$�������5�������}�v��:$��/���J������J������5���������h"�"��W���H������H������5����������G���k���a������a������5�������M�g���Y��u���b������b������5���������Z�-���������6������6������5������� ↚�V+��������������������7�������:��H��B������c�������c�������7������������Ŀr��������������������7��������k���q����������������������7�������2f8+���e������������������7���������T�\�b��������������������7��������8���M�� �����������������7�������‰�.:�}����������������������7�������Z I��?5��G��� ������� �������7��������5`�I�Rq��e�������������������7������� ���֎�������n������n������7��������J𵣽���������������������7�������b���y���������������������7��������I�M��r������������������7�������JA�+��������f������f������7���������yk��D���������������������8���������5o��4��������������������8�������a��R������-�����������������8��������$�"�Ոi��7�����������������8�������!����Y@��A��� ������� �������8������� ��{���.��U���@�������@�������8����������iX����s���h������h������8���������ϰ��S�������j������j������8����������W�%������W������W������8��������ߚ�����������������������8�������!ωEj��c������ ������ ������8�������QLfAȩ��������������������8��������+l��������������������������8�������[ u�3���'�����������������8���������Ym�X���;���C�������C�������8�������i��������E�����������������8��������5��솂��O���S������S������9�������CƳi[�����m�����������������9�������C�d���ݟ��������������������9���������Fr�Z�������P�������P�������9�������3�kM �71������m������m������9���������H�%0������T�������T�������9���������09��FL��������������������9��������Z��� ������@������@������9���������?����(������o������o������9��������Z����(���!���q������q������9��������G�!������5���@�������@�������9������� {7�;/��?���r������r������9��������Y�����I�����������������9����������������]�����������������9���������1���(��q���I������I������9��������Č�?��_������x������x������9�������k�´\ז�������[������[������9���������<�Զ������A������A������9��������`J���fb������,������,������9��������t�@b�ۛ�����~������~������9�������[�F��d9��%�����������������9�������sAeD�� ���/�����������������9��������]�k����k���n�������n�������9���������������u�������������������9��������-�2�������������������9�������Þtu�r����������������������:�����������������������������������:��������j)�_��*������R������R������:�������J��Q��������K������K������:����������*�Z�����������������������:�������b��8ўQ�������������������������:�������J ���J�����������������������:��������nӣ���0����������������������:�������R��+ ����������� ������ ������:�������B�@ � �����������������������:��������vA�4�R�������������������������:��������~T�>���������������������������:��������� �{�|���������l������l������:�������B�gi���������o�������o�������:���������m>�ܗ����������������������:��������vװ'������������������������:��������&n�_�������������������������<��������ڇ���\�������������������������<�������g��������������������������<��������9��h����������3������3������<�������7�T���2��������B������B������<��������U��O�>o������������������������<�������'\q�� ����������������������<����������o�4�����������������������<��������@���Ո��������������������<������� �:��m��������#������#������<�������W�*������������������������<�������'[���� �����������������������<��������X�Ms��������������������������<�������o��¨��=����������������������<�������_;g�L��$����������������������<��������Z,l���������������������������<������������8E������������������������=��������ae� �����������������������=������� ��!��P����������������������=��������������������:�������:�������=�������@��&� ���������v������v������=�������X���Q�!���������2������2������=��������t:��1����������������������=�������������R���������0������0������=�������ȃ�P��x����������������������=�������ȩ���K���������C�������C�������=�������hx��'�,�����������������������=������� V�Р�s^������������������������=��������G�������������'������'������=���������S� ��t��������F������F������=���������s�~촌��������F�������F�������=�������p�hcq����������������������=��������l^� �C�����������������������=�������`K����T�����������������������=������� ��H���O������������������������=����������ƪ������������������������=�������H�>is�pC��������j������j������>�������lj|+;��S����������������������>�������\�I2��`-��������e������e������>�������� �#�?�����������������������>���������⣯�����������������������>�������Ԟ�A�Z�������������������������>���������'k������������������������>�������,O�!�Ě��������r������r������>�������l�P�%����������7������7������>�������<%Я[�(����������������������>��������"�����1��������,������,������@�������z1��A�Ơ����������������������@��������=� ���)������������������������@��������{�W��B{��������?������?������@�������:��9١�Y��������)�������)�������@�������R:q���a5������������������������@�������j�0w�������������������������@��������%h����\��������������������@���������ݯM�+��������F������F������@��������*�Ҳi,����������������������@�������R#r?)����������3������3������@�������������bt������������������������@�������b���ķ����������������������@�������ҽ� ���E������������������������@�������j �β������������������������@�������"��ZS�� ��������������������@�������b���.�v���������I�������I�������@��������8컐�a����������������������@�������Z�T5ח������������������������@�������� �Ք� g����������������������@�������҅CPh������������������������@��������R��n�qB����������������������@�������B���,�������� ������ ������A�����������O��O����������������������A��������Z�sv������������������������A���������S�5�����������������������A��������ѡ����T����������������������A��������b)黱����������������������A�������� �f�� ����������������������A������� C()�=<����������������������A�������d@s��ʿ�������������������������A�������d5�������������������������A��������@�{�n���������W�������W�������A�������|l�Q�� j������������������������A��������\? �q���������������������A�������T�闇�{�������������������������B��������(�cۅ9m��������;������;������B���������%.��6��������������������B��������5wa����������Q�������Q�������B�������sXuF���%�������� ������� �������B�������ӆT�� ���������C�������C�������B���������r@-��L��������������������B���������~[��H�����������������������B�������sA{�A���������C������C������B��������c��RM������������������������B��������*Zr���=��������������������B�����������t�[����������������������B��������e�A��q��������@�������@�������B�������;�^��ݧ����������������������B���������q�ܩI����������������������B��������f���R%����������������������B��������@ۉ����������������������B��������U�Ǐ�����������������������B��������N�n綟����������������������B�������S�/�0��Z����������������������B�������;�K�'�� ����������������������B�������S�W��c�����������������������B��������41��uD����������������������B�������il��������������������������B������� C�7���w������������������������E������������ ��������o�������o�������E�������:��k������������[������[������E�������"[��{�B���������C������C������E�������J�d����g����������������������E���������os��3����������������������E��������I� ������������������������E�������’���j��������*������*������E�������j_ݬ��H�����������������������E��������ڍ�݋������������������������E��������P�?�O����������������������E�������6���R��������2������2������E�������2R��� �������������������������E�������Ze�=��@����������������������E�������m�A ��3����������������������E�������R�n��R��������R������R������F�������p<�V��v�����������������������F�������С "�z���������5�������5�������F�������`d��������������������������F���������|���J���������F������F������F�������`�;�<�.�����������������������F����������������������+������+������F���������C=�D���������)�������)�������F�������@Mf�G����������������������F���������i��V��������������������F�������p�������������h�������h�������F���������q����[�������� ������ ������F��������ڡ�����������C������C������F��������� �?��N������������������������F�������H}@��^���������S������S������F�������8��!�>���������I������I������F�������H�ɹ8�ܶ��������������������F�������������K���������>������>������G�������h#� ��'�����������������������G��������.n7������������������������G�������}G�A�1��������9�������9�������G���������/���\��������T������T������G�������H̔��������������������������G����������X�[�������������������������G��������'�r��ރ����������������������G��������g@�D����������������������G�������H�\���8����������������������G����������v�ؒp����������������������G�������X�!6ʚ�����������������������G��������f�>E�(���������D������D������G��������|�`�̙�������������������������G��������e�����S����������������������H�������me,�/�����������������������H���������������������&������&������H��������8���������������������������H��������u�i��J��������V������V������H�������� C:�{�����������������������H��������e��! ����������������������H���������sة��2����������������������J��������^�y�>B����������������������J�������������. ����������������������J��������R��֪�M��������*������*������J�������me3�Gx����������������������J��������2��G$����������������������J�������r�J+��y���������Z������Z������J�������2kht������������W������W������J����������͇�� ��������������������J��������㘒��{�����������������������J����������̍�t�������������������������J�������"-��t�����������J������J������J�������ҏw�i����������������������J�������+te��k����������������������M�������jùo��p��������(�������(�������M��������6(�p�������������������������M�������� "��{D��������������������M�������j8�j�� ���������F������F������M�������JG �����������������������M�������J��a2�������������������������M��������2,�/����������������������M��������������������r������r������M�������J�c��`�����������������������M�������+�"j�_��������C�������C�������N�������9��ܸ���������������������N�������9�hC;� ����������������������N��������!�c�h������������������������N��������m�O��a��������U������U������N�������9ˏЙ����������D������D������N���������eM�}����������������������N���������'� x����������������������N�������q/r��l��������2������2������N�������A���7�����������������������N�������-�펿����������v������v������N������� F�_L��@��������B������B������N�������ye�)���i��������S������S������N�������F��C�gt��������������������N�������aWP�ᔄ�����������������������N��������n�)��u�����������������������N�������9/t_�����������������������4�������s��NZ�XG����������������������4���������/~��������������������������4�������;�ɾT�7����������������������4��������(��3�������������������������5�������݈he��Ã����������������������5����������,(������������������������7�������Ne��λk���7������������������7��������3��������A����i������i������8�������)��}�r����s����k������k������8���������b2RĜ��������S������S������9���������Gi����������p������p������9������� �^���,����������������������9����������'o�� ��������s������s������9��������P�d�=(��������9������9������9���������[UH������������������������9����������Ї�g��������}������}������9��������Y?ڍx�� ���T������T������9�������c�f����������������������9��������<< �X*�������������������:��������oΘo��g��'�������������������:���������x��9��1�����������������:������������MX��E�������������������:�������� `���v��m���5������5������:�������=����8����������������������:��������M�>�����������������������:�������Rh�Š� ��������������������<�������w�s$ִ�����������������������=�������4L��f��������������������=������� �=�΁�� �����������������=��������!�M�q,�������������������=�������x�OG̖>9��!�����������������>�������4F�Th�@���S���9�������9�������>�������ԉ�WN����]�����������������>�������t�?Mh�A���g�������������������@�������z�f���/��{���M������M������@������������V%����������������������A��������EHK��.X������������������A�������sj�č`������1������1������A��������ȑ o�|�����������������������B�������k���o��U�����P������P������B��������z#���x��C���������������B��������V�kݙ ��M���E������E������B��������7��Ψ��W�������������������B�������k�i�w ��a���`������`������B�������kԚaﳾ#�������������������B��������*�Xc��4������W������W������B�������+�/�KB��������������������B��������DC��8���������������������B�������#���u���������������������B��������J7"թ���������������������E�������@��̂������b������b������E��������� 0�Ǒ����������������������E��������Y%ߦ�O��������������������F��������ʈ��7��=���;������;������F�������� ����e���[�����������������F���������O4#͠��e�������������������G��������h�M��G ������ ������ ������G��������:�"1��e��������������������H��������0��i?������Q�������Q�������H�������m�� Z���������������������H���������J^��JJ��#���x������x������H���������{y�e���-�����������������H������� ���X'��7�����������������H��������4��k���A���W������W������H�������E�Ȥ,�O���K���������������H��������u�"��@��i���9������9������H�������͕��E���}�������������������J�������2q����\?����������������������M��������������������s������s������M���������:�a���������������������M�������"{ j�������������������������M�����������Z����������������������M���������y�T��� �������������������N���������.�����������������������N�������q���J�����q������q������7���������?š�o������ ������� �������9��������/q%�輏������������������9�������3<{Á"d��������������������:��������ْ%�d�����������������������:�����������(��D�� �������������������:��������$D⮸X�����c�������c�������<�������wg7(������?���������������<���������|�\��}��I���-�������-�������<��������U�h̋r��S�����������������<�������7z��쟺���]���q������q������>�������\����������K������K������>�������d�D�'��������u������u������@��������xh�����������������������@��������h��ә���������������������@��������0tN�4������������������A�������,S��������������������������A�������lV�M�m��������G������G������B����������-�i�����������������������E���������i��������� ������� �������E���������?�E�����������������������E��������h��n�K�����������������������F��������w� ؼl����������������������F�������X�:����������������������������H�������uz.����w��������S������S������H����������dP�)�����������������������H�������ş����']����������������������H���������y���������������������������J���������r��^�������� ������� �������M�������B�����������������������������N�������Q�K�"�L�����������������������5���������B��������������������������7����������p�_B������������������������9�������[0�1��r����������������������9�������������k��������������������9��������?�/�vE��������E������E������9��������1!�4%��������v������v������9��������)�C�su����������������������9���������L��������������������������<�������7�\���{�����������������������<��������p���A������������������������>�������|����6z��7���������������>�����������}�Ұ���������������������@��������&DF�0����������������������@�������raԋ�� ����#����N������N������A�������d^y����g���7������������������B�������Kr��_g���K������������������B�������ãB�!�'���s��������������������G���������3-�������������������������G��������8����$��������+������+������G����������u��R��������$������$������H��������)\�⁏���������'������'������H��������������������h������h������H�������m� ������ ���*������*������M�������A^�ٝc����� ������ ������N��������n�>�Y8��'��� ������� �������5���������� ��f���1���d������d������7���������`A&�b���;�����������������9��������?����u��E���������������9��������^٨����c���4������4������9������� �[0� ���m�����������������:��������x4��٩p��w���{������{������:��������To�gוE������������������:��������)6#�O�������������������:���������;����������������������@����������F�u������� ������ ������A�����������/���������s������s������B�������;,t8�����������������������G����������Л���������������������H��������A�.��D�� �������������������J����������i��1�������������������7��������>�n�����5���[������[������8���������������?���g������g������8����������p�����I���V�������V�������9��������!�]�����S�����������������:�������j–<#�U���g�������������������E�������"���j�r���������������������F�������N�Y�<+������@�������@�������M�����������Ά�������������������7�������:�%��:J������������������8�������˿�p�C�����������������������9��������a����#i����������������������9��������<�wM�L-������`������`������9��������g|������������������������=��������P� f� ����������������������=����������RѺ���%�����������������@�������j��D��!���9�����������������B��������V�xղ!��M�������������������F�������� ��e�$ ��a�����������������M�������Zq�|�ƭ��k�������������������B�������S9�6)��B�����<������<������5�����������w������������������9��������,�Q�������9�������9�������A�������̳�F��������5������5������B�������#�E��1���������������������B��������ac�����������8������8������N��������씯,���� ���������������N����������l�����)���q�������q�������N�������1R��S�����3�����������������N�������Q���.�I��G�������������������N�������)�Ñ-�K���o��� ������� �������N�������Y��������������������������N�������t����g�������9������9������N�������Y��b�|x����������������������N�������9@11*� 6��������������������N�������ALv-�ƕ�����������������������O�������� �9��Z�����-������-������O��������rL�֧������R������R������O�������,[VB�&���_���V������V������O��������UcI�z��i�����������������O���������n~�i$��}���N������N������O�������dE������������������������O�������T#*Tlϗ�����������������������O�������<�`�LѨ�����������������������O��������r���~�����������������������O�������t*�{�������������������������O����������h��0������������������O��������dR�b�0������� ������ ������O���������t��k���������������������O�������,M���@�������B������B������O�������TE|��"������%�������%�������O�������d3C��V���'�������������������O�������dh~{}à��1�������������������O�������dp1���i���O��� ������ ������O��������$��P��2��Y�����������������O��������cy �<S��c���5������5������O�������D*#I���~��m���X������X������O����������!���������,������,������O���������o+��,�������$������$������O�������\��3�����������������������O����������(������������������������O���������E����������������������O�������"�` �,���������������������O���������#E�����������������������P�������S����y��+���!������!������P�������oڏ�©��5�����������������P��������?�����D��?���������������P�������kRՠ`��6��I�����������������P�������s-=�AO��S�������������������P��������6f!���g�������������������P�������v �ʩ��q���n�������n�������P���������zA�������� ������� �������P�������������������m�������m�������P�������W�V:��l��������������������P�������K��A�a���������������������P�������+��L����������o������o������P�������K:�K���������'������'������P��������u�ĥ��������������������P�������+k�oI�%���������������������P��������̮�Τ������5�������5�������Q�������gB�x!���������%������%������Q��������7����I9������������������������Q�������+�x���r��������b������b������Q��������PVU`�U���������q������q������Q�������_m���k�������������������������Q���������@'�Z`����������������������Q����������Ɯ�C������������������������Q�������g�����^��������9������9������Q���������V���������������������������Q��������Ur��������������������������Q������� ��V�U���������X������X������Q��������<�Q����������������������Q���������jP� ��������������������Q��������$F�?���������9�������9�������Q���������G:�4���������������������Q������������sB����������������������U�������|]�Aщ�������������������������U�������Dnj��E���������,������,������U��������jM^�y��������X�������X�������U�������� #�>����������r�������r�������U���������ɶ�&��������X������X������U�������|6+�S������������������������U��������;O�������������`������`������U�������d�������������N������N������U�������L��5��������������������������U���������6T��*����������������������U��������՟����9��������������������U���������t���������������������������U���������C��������������������������U�������|�7rI�������������������������U�������D�@�������������������������U�������d��Ͼ�d��������V������V������U������� m�$h��e��������������������U��������3�6\�������������������������U�������|U���O����������������������X�������Ib��I���������!�������!�������X�������ID�d��������������������������X�������Q�P(������������������������X�������1��"���f��������|������|������X������������ ��������������������X�������� ��$�k�����������������������X�������1*]EE����������f������f������X�������y��̩ٗ������������������������X�������1���Ib��������;������;������X�������IZ>���������������������������X���������35�80��������'������'������X�������a)�r�-���������������������X�����������������������������������X������� �Q�݅�����������������������X����������?ˤ���������)�������)�������X���������<D�-��������h�������h�������X�������Y�ª��R1��������(������(������X�������Q�}�%�‘��������)������)������X�������Q�[��c����������������������X����������s���0��������*�������*�������X��������J�r��p���������r�������r�������X����������x������������������������X����������~�����������������������X��������v�N"�������������������������X��������e/�!+������������������������Y�������6�%/6�}�������������������������Y������� �p�w����������������������Y��������%j_��2��������C�������C�������Y�����������t�Z��������������������Y�����������0��e��������U������U������Y������� 1�м��������D������D������Y�������.�n�B� ����������������������Y��������7 �Y�����������M������M������Y��������g���$������������������������Y�������~0����o��������.������.������Y�������'|qE�����������T�������T�������Y��������q�'I�:>����������������������Y��������+(��S��������*������*������Y��������k|F�����������W������W������Y�������vϺ�G������������������������Y��������T���&�������������������������Y��������� ���<���������1������1������Y�������N���}�6�������������������������Y����������K������������3������3������Y�������]�T�g���������4������4������Y��������D���A����������������������Y���������7�������������5������5������Y�������^X�]�.�������������������������Y�������I�YN������������������������Y�������.���/�� ��������;������;������Y�����������w�c��������;������;������Y�������뒀����������(������(������Y�����������h����������������������Y��������A�\��=��������=������=������Y��������1{������������v������v������Y�����������N��������@������@������Y�������=o�s��9��������m�������m�������Y�������~~:�⬴����������������������Y���������ѩS�����������������������Y����������8�����������t�������t�������Y�������~�rM���)��������9������9������Y��������C�Kʮ�v����������������������Y�����������Ⱔ��������������������Y���������c������������J������J������Y�������~ܻ���-���������K������K������Y�������6���ђ�&��������������������Z�������V�ZV�}�������������������������Z�������&�W������������C������C������Z�����������u�ŭ����������������������Z���������2B�#����������������������Z�����������|�p�����������������������Z��������k��Q�9����������������������Z����������K��������R������R������Z��������@|Օ�)�������������������������Z�������n%����e����������������������Z��������,oq��&3����������������������Z�������VA���(�����������������������Z�������F�yf�Eg����������������������Z�������&)���黰��������t�������t�������Z�������&d�� ������������������������Z�������W�:���)����������������������Z��������R�� �����������������������Z���������z�ѽ�����������������������Z���������䠢l2��������5�������5�������\���������*-���Y������������������������\��������x�<GǾ���������f������f������\��������.P�J�g���������]������]������\���������ԭ�@��������^������^������\�������=V�-�ˢ��������_������_������\�������m��Er����������������������\������� o�:��������������������������]�������c� 29� �����������������������]���������v���������������������������]���������x�1��%��������I�������I�������]����������f��� ������������������������]��������� Ū3&��������d������d������]��������'h��������������������������^�������� }s��vz����������������������^��������~��&�������������������������^�������ΖQ��ƉR��������q�������q�������^���������o�������������������������^�������މeo�@���������f������f������^�������>�������������p������p������^�������.�p�%��O��������g������g������^�������6=R�����������P������P������^��������h8���`������������������������^��������)�'ڿ�e����������������������^�������ޢ�]���i������������������������_��������ܡ�'�����������������������_��������}��g�|t����������������������_�����������J������������������������_��������������������@�������@�������_�������Q�����������������������������_��������?������������n�������n�������_��������l�8@������������������������_���������x������������S������S������_��������2��|������������������������_�������� �m��r���������h������h������_���������m?��������������������������_���������VV����������� ������ ������_�������A�6�������������������������_��������R�N˰�����������������������_��������6;�̆C�����������������������_��������?foˮ����������2������2������_��������*�������������j������j������_�������Q���������������������������_���������_������������s������s������_���������I� ����������^������^������_�������i���U�������������������������_�����������j������������������������_���������tȜ����������T�������T�������_��������X����`���������8������8������_�������q�I�(�������������������������_��������#f�ٲ�����������������������_�������y�����([��������������������_������������w(��������B������B������_�����������d� ���������������������_��������)�n�ª���������Q�������Q�������_�������D�=B�e�����������������������_��������~�>�� �����������������������_��������H���|����������������������_���������@���}�����������������������_��������ީϞT��������[������[������_��������| ����������������������������_���������J�X�j�����������������������_��������I�{i�ފ��������������������_�����������b���������Q������Q������_�������)|뮕ԧz������������������������b�������S̈́��{����������������������b����������Z�ք��������>������>������b�������٧yS��������������������������b��������4|0�������������������������b����������u͟���������c������c������b�������a�f��!����������������������b���������#��4 ��������F������F������b�����������rd��������C�������C�������b��������$c@��b��������W������W������b�������A0R4s�l��������s������s������b�������qx͌������������Q�������Q�������c�������B����Š��������������������c��������p���1���������C�������C�������c��������ɒ�:�������������������������c��������*�{��������������������������c�������z?����������������������������c�������r�����������������������������c��������4�����������m������m������c������� �K[�{���������������������c���������������������C������C������h�����������J�������������������������h�������1}~b�����������>�������>�������h��������P8t�jf��������}������}������h�������ٺ��!�������������������������h�������ٯ�9��/����������������������h�������I-u��՛������������������������h�������ak�������������|������|������h�������A�2*� ��������4�������4�������h��������� �������������H������H������h����������RԻ���������g�������g�������h��������7H �}��������)�������)�������h�������I|㈖�����������u������u������h�������y�i5)�Nq������������������������h��������=os�ӆ�����������������������h����������×������������������������h�������������8Y����������������������h�������A��Ԉ��������O������O������h��������1Y�+�d`����������������������h�������iBI� ���������������������������j�������Z��0���I����������������������N�������q���д�Q��������S������S������N���������q�b���������/�������/�������O�������t�!�m��h������_������_������O���������٩�Z��� ����`������`������O�������L��(2������������������������O�������܀� =��\���)��������������������O�������<�7/�N����3������������������O�����������q�I?���[��������������������O�������9���������e��������������������O�������������F���y����]������]������O��������:?�ØZ�����������������������O�������4L��A��>������������������������O�������4���ގ���������������������O�������T%\w��"6������������������������O�������$ם�������������������������O��������)B�� ����������������������P��������},�(�C��������������������P��������[�����k��#��� ������ ������P�������#A����P���7���������������P��������Ǣ��2���A�����������������P�������������K��U���6������6������P�������szG-�ʕv��i���i������i������P�������S��~��x��s�����������������P�������;�{%>��h��}���������������Q�����������J�Q��������������������Q�������'�R�Uo������������������Q�������'#k���\X����������������������Q��������d����4������c������c������Q�������� �\�ݍ������2������2������U��������Z�҃�Z�������������������U��������.��������������������������U�������������A�������������������U�������\�1�B�Ye�� ���-�������-�������U�������d��(��������{�������{�������U��������(�s�����'��� ������ ������U�����������4�S��1���s�������s�������U�������,r*T������O���c�������c�������U������� Ҵk���^��Y���0������0������U�������yO������m�����������������X�������9�:���b�������E�������E�������X�������1)�`�P?������a�������a�������Y��������JYH@�<$������B������B������Y��������׿4��PO������R������R������Y�������������+o��������������������Y�������Vn�ƻ�*;��+�������������������Y���������miϰ0_��5�������������������Y��������L��ɪ��I�����������������Y�������~fU���"��]�����������������Y��������+�iK��?��g�������������������Y��������?\��6��q���������������Y�������.Z������{���B������B������Y����������w]��6������G������G������Y�����������P����������������������Y����������b/Ǣ&������M������M������Y�������V �c����������������������Y��������یb � r��������������������Z��������� �o�Q;��������������������Z���������Oɟ�dj�����������������Z��������DT/2�}��������������������Z���������]�����/�������������������Z���������4f����9�����������������Z��������X���5���C���Z������Z������\������� �H��#[��k���\������\������\�����������5�������y������y������\�������-Ͻd׋����������������������\��������)o8��+�����������������������]��������H*��ޡ�������7������7������]���������&+����� ���9�������9�������]�������KT� �����������������������^�������~%�a#�:��)�����������������^���������hS��ܴ��3�����������������^��������W��� ���=���S������S������^�������fӝ9��L���Q���{������{������^�������+@��s��y���&�������&�������^�������^���&����������������������^�����������@�P/������s������s������^�������.�$�k�ZK������<������<������^�������f�=�k�� ��������������������^�������ޢ'^�����������������������_�������137������������������������_����������S �������������������������_��������6� n�)�������o������o������_��������Pwz�0�����p������p������_��������䤸e��V�����x�������x�������b���������3�}����K�����������������b���������=*|�w%��U���������������b��������\Gn���L��_�������������������c�������Z�P!x�����i���v������v������c��������y����]�������x������x������c��������D+�;� s������F������F������h���������I_��3���������������������O�������<%�.���� �������������������O����������|u�m��E�����������������O�������<�!�K�����c�����������������O��������6w���n��m���9������9������O�������d6@����w�����������������O����������%H��������c�������c�������O�������$�F��'������������������P�������KB���]l��������������������P��������*6m�r���������@�������@�������P���������]�"$��������T������T������Q�������w$��y�;������������������������Q�������?��}������������������������Q�������7� ���������������������������U�������$V�ɛ�uB��������W�������W�������U���������OL�������������������������U���������w>�����������]�������]�������U�������������a�����������������������X��������Gp*����������V�������V�������Y��������� C#��g��������O������O������Y�������~k��� ���������x������x������Y�������� p���������������������������Y��������0����#��������<������<������Y��������|�ax�$\��������e������e������Y��������` ��[�������������������������Z�������nK�ũ� ���������S������S������Z�������.���`���������V������V������Z����������w�����������u������u������\��������_JZα�������������������������\���������D�������������������������^��������l��ՉQ���������P�������P�������^��������E��y��������������������^�������������/��� ������������������_��������|�ծ�#���)����k������k������_��������#T�� ����3��������������������_���������x"�ͤ���=������������������_����������/���9���G����9������9������b������������ ���y������������������c�������ziY=��������������������������c��������>ׇ��8����������������������c�������B��ۢ���������<������<������Z���������v��S�����������������������N�������q ��X�������9�������9�������O�������,�|�Ε� �����"������"������O�������d���I�*����������������������O��������+���.��#�����������������O���������Ip@��>��-�����������������O�������twY(��#��A���������������O�������dE�KV���K�������������������P�������㘚�R�����}���*������*������P�������s A<�ϧ�������o������o������P����������-��1�����������������������Q�������DY���������������������������Q�������O[_�H�5�������>�������>�������U�������|M#�h�{N������������������U�������tuu����4������)�������)�������U��������a�z����������������������U�������l�@Wd�}�������d�������d�������Y���������->������������������������Y���������Q�u�g�����P������P������Y��������ᦝ��oZ��1�����������������Y�������~+��ݼ���E�����������������Y�������ޛo�m�&���c���������������Z��������ug���Zg��w�����������������\�������Uo" ��_3����������������������\�������%3�p���������������������]��������;�҉���������?������?������]�����������0+������}������}������^��������=@��A�������������������_��������K�=����������r������r������b�������9����/E����������������������c��������5"Ąb��������������������c��������F����^�� ���y������y������c�������jq|]��ˡ�����H������H������h��������g����n��!���A������A������h����������裉�n��5�������������������j���������om��p��I�����������������h��������$Äh�'��S�������������������N�������QB� Q��f��g�����������������P��������S�>�]G��������������������P�����������2얺��������������������Q���������ր�������5�������5�������U��������H$�q�.��������������������U���������;z��������Y�������Y�������U�������lE�X��������/�������/�������U�������\?�ɓ�����������������������X��������~q��L�������-������-������Y��������Q����������'������'������Y�������NP�Y�������E������E������Y����������ޞ�%��%���~������~������Y����������_���J��/���h������h������^��������3 �i���C���W������W������_�������A�l������M���z������z������h��������ԟ/������k���������������O�������d^�I����������������������O�����������N�K������������������P��������\e����������.�������.�������U��������/dYD���������������������U�������\{���"������P������P������U���������I�µ�������������������Y�������^��A�^�����Y������Y������\��������r\��� ���3���R������R������b�������Ij3���/8��Q���f������f������c��������)�_�����e�����������������N�������1ON��+N��������������������P�����������3,������t������t������X����������4��!!��������������������Y�������6Uq�����������������������Y�������N�h�Q�����������������������Z��������V����e����������������������]�������べH��9��������������������^���������*m����������������������_�������!J��6��#���m�������m�������_�������IW9u�����A���T�������T�������b���������h�}��E��U�����������������b�������!6ηvƪl��_�����������������c�������Z!B �� B��i���~������~������h�������)R� ���v��s�����������������h��������~9P������}���������������O�������\�T���������������������Y�������N�T��Θ�������Y�������Y�������\�������e���t�R@��������������������b�����������������������������������h���������ߤ��н������I�������I�������h���������ȸ�5�����������������������U�������,���e���� ���q�������q�������b����������ϑ����1�����������������h�������q4| b�����E�������������������N���������s�ӴI��Y���?������?������O��������6yU�����m���H������H������Q���������Oh^�r`��w���M�������M�������b�������Ѱ���5������*������*������b����������r��������/�������/�������h��������".wՉ�9������ ������ ������P��������"j��������������������������Y��������!�U����������������������X��������e������������������������P����������J��@����������������������Q�������DB� ��������N������N������U�������|�����!���������R�������R�������U��������Ǹz�`�������������������������P��������_�����H������������������������b���������J��x���������]�������]�������Q�������g� 5�������������������������^��������A�p�������������������������j���������fP�������������������������j����������d?�������������������������j����������w�ߦ��������[������[������j���������=;�b�����������������������j������� �[Ũ�'+��������������������j������� �)'�����������������������j��������5�H�������������������������j�������bd9��"�����������������������j��������(�� �����������;������;������j����������G�5���������������������j�������B�,���\����������������������j���������gT�������������������������j���������у�� t����������������������j���������E��� ����������������������j��������ݞez��9����������������������j����������>��������������������������j���������=H5�|����������������������j������������o��������a�������a�������j����������W��m����������������������j��������L����D�����������������������j���������]��Mc��������\������\������j��������^!{��36��������o������o������j��������j�������������������������j�������Z�;�Q�����������n�������n�������j�����������9�������������������������j�������ZT^.����������C�������C�������j��������ww�Զ�P������������������������l���������41s��i��������U������U������l�������E��@��@�����������������������l�������MF�+~���������������������������l�������������������������������������m����������H���`����������������������m��������3�A��o����������������������m�������i�O�����������������������������m��������iw�¬y������������������������m�������AxÊ��u����������������������m������� ���P��_������������������������m�������QD�A�lX����������������������m�������I��:��H�����������������������m�������Y���$ ��������2������2������m�������) ?/��V���������c������c������m��������4����:����������������������m�������Y�Z�8����������������������m��������K��`���������V�������V�������m�������1��$��^��������7�������7�������r��������'����[������������������������r�������*_Aѱ���������;������;������r�������*�=5�:$����������������������r��������9�I�u1����������������������r��������T�'t� e��������������������r�������jHz��F�����������������������r���������Ҥ���������K������K������u�����������\1������������������������u����������~�� ������������������������u������� 5�5b�wz��������7������7������u���������>�g�[�����������������������u�������}��@��#a����������������������u������������5�����������������������u��������(փ��$�����������������������w������� �l�������������\������\������w�������Y+�B���������@�������@�������w��������%Q��֤;����������������������w���������( ��ɶ����������������������w��������̓��N����������������������w�������P'�7T�p���������������������w��������xx������������������������w��������-�� ���������R������R������w��������>A���|%��������'������'������w����������˨������������������������w�������@j�-�� F��������.������.������w�������x �9hĽ���������������������w��������� �'����������W������W������w��������d �Hq����������������������w��������P �����������������������w�������h�q��6}����������������������w������� �����b�����������������������w��������U �8���������V�������V�������w���������c�����������������������w���������\�-�=�������������������������w��������! \:�����������%������%������w����������� �R�����������������������w�������H�c7=������������������������w�������x1���ZJ��������������������w�������@�] �������������������������w�������(�T���#����������������������w������������/a����������������������w������������X����������������������w�������P��������������������������w��������^�G�8���������T�������T�������w��������� ��X����������������������w�������xM=�$� ���������s������s������w���������#v!�����������p������p������w�������`(�.ܥ���������'������'������w���������Zsǀ���������r������r������w�������@�����f���������6������6������w���������\הbk��������%������%������z���������`3��,�����������������������z����������� 8��������h�������h�������z��������hƳH����������� ������ ������z������� j�⡆pv������������������������z�������)�.���M��������Y�������Y�������z��������Ȱ��#��������|�������|�������z�������y_C�N�����������-������-������z�������1LO>�%�����������������������z�������!���P���������������������z��������v�D!� �����������������������z�������1�ീ��{������������������������z�������G�K��v��������X�������X�������z�������Y�<�k�"���������1������1������z���������p�)�b4������������������������z������� (\��Ǩ���������N������N������z��������u��Ւ����������e ������e ������z�������Y`K��� ������������������������z������������ť��������������������z�������Q��i �E�������������������������z��������x,���������������������������z��������,v����i�������� ������ ������{�������w�����������������������������{�������weo�Q~��������������������{����������}��� ������������������������{����������&��S����������������������{�������_��Ű�ͨ������������������������{�������_�n��ƹ�����������������������{�������W�V���He����������������������{�������G� n���n��������*������*������{�������o����ǟ���������������������{�������?��=��z�������������������������~�������^�;����������8������8������~��������E�P �|���������E������E������~��������p7;��3���������o�������o�������~������������jP��������$�������$�������~�������tGU@��������������������������~�������&!/��8��������~������~������~����������-��������������������������~��������1�+g�ì����������������������~�������~nb���_�����������������������~��������H@�h�������������������������~��������_�F�\�����������������������~�������~)��;1��������9������9������~���������~_�����������2������2������~��������q\I���������@�������@�������~��������^=��<�����������������������~�������U,�V����������T�������T�������~��������23i�A���������p������p������~�������q{��+�����������������������~���������������������������������������������9. �Y�Y{����������������������������ѽ�0���������c������c�����������������3���������S������S��������������� �� Z������������������������������߱֍�M�������������������������������Q��'��>���������O������O�������������9P��ʻ����������������������������������&��������3������3��������������Y�Y&�9���������K������K���������������(@��^��������Q�������Q��������������I;�b����������������������������������6'��<Q���������������������������hˏ�j������������������������������]�-n�n������������������������� �������˲�aՅ�K��������*������*������ ��������;��-��������������������� ���������i�#�yV�������������������� ������� �U|�™������������������������ �������{F���#���������������������� �������K��L{������������������������� �������k5�]�������������������������������\�&�!����������������������������[nR��%>��������m������m�������������R�������������������������������������;�R�c�����������������������������%?���`���������?������?��������������T���=�������� ������ �������������-1��s� )��������1�������1��������������*T"NP��2����������������������������� ��v�5[���������������������������B�wA��������������������������������r7��ǫ<L�������������������������������J�>�Ȍ>�����������������������������Zf�:��p��������]������]�������������J��yF�V�������������������������������r8}+����������'�������'����������������De�X���������B�������B��������������:LP�T��������������������������������Xvg�����������������������������������;3�F����������������������������3�U����������� ������ ������������� ��]�cu�������������������������������V��>���������������������������������ч��������������������������������t����������*������*���������������đN�4 ������������������������������A��%������������������������������ۺ# ������������������������������bZ`W ���������������������������������� ����P������������������������������d�� �L:��������T�������T���������������b\�`��������������������������������`�} ��������u������u���������������i�8�:�����������������������������p�&Y��� ������������������������������3u7 ����������� ������ �������������2={��Na�������������������������������0�ڰ�F�������������������������������`��U����������������������������������� M��w�Y���������E�������E��������������pW����*��������������������������������Z=��d�������������������������������R���� ���������������������� �������/C�4��G���zU���"������"������ ������������B����������������������� ����������n#���������� ������ ������ ��������CP���`v���%���� ������ ������ �������W�`N(������/����X�������X������� �������'^��ī����9����$������$������ �������wS~���{����M����%������%������ ����������n�h����W����&������&������ �������_�e=������a�������������������� ��������[���S����u��������������������'�������{��ߋ�Q��������;������;������'�������7|�����������������������������)�������W�y��+��������� ������ ������)���������?ݐ����������������������j�����������"�q�������������������j��������׼�����=�����������������j��������n�(�fK��G�����������������j��������k����{{��[���Q�������Q�������j�������B�p�u��9��e�����������������j�������Z{Svr�$���o���������������j�������"�"�*�w4��y�����������������j�������r�*zͳ{q����������������������j��������_�Y��!������+������+������j�������b�4��Ѥ�������������������j�������ڦ�z隚������� ������ ������j�����������ҙ���������������������j�������*��4ʅD�����h������h������l���������#y����������������������l������� �����#�����������������l����������Z�q���-�����������������l�������m3�.��b��7���k������k������l��������Z���v���A�����������������m�������y� �֚���U���M������M������m�������i3�������i�������������������m�������!/�� Q��s�����������������m�������a�����R��}���m�������m�������m��������'�!�u��������������������m������� ����S������x������x������m�������R��5�p�������5�������5�������r���������<\��=����������������������r�������2��� 1������9�������9�������r��������F:G��H��������������������r��������&P ��V���������������������r����������̉��������9�������9�������u�������dPŗ���'���m������m������u�������]�һ�����O�����������������u���������.Җ���c�������������������w����������v��f��������������������w�������@'���߃���������������������w�������h'5������������������������w�������  ɝ�S��������������������w������� ��aJ�Ѱ������������������w��������5O���Q������=������=������w�������h�C6���������7������7������w���������Ҭ���y��������������������w����������}�\T�������������������w��������my�1�������������������w����������V����?�����������������w�������ȋ]���/Z��I�����������������w��������4�5�����]���M�������M�������w�������`��ߑf��q���.�������.�������z�������A�{�I���{�������������������z�������e�sY�S����������������������z��������8��0��3��������������������z��������6~�����������#������#������z�������y��^�� ��������������������z�������aw�l��F���������������������{�������_� %dͪ������������������~��������� ��Vl��%���t������t������~�������ޒ����&���C���������������~��������\Peq�.c��a���6������6������~���������·�����u�����������������~�������&_rgϽE�����������������~��������Q������������2������2������~���������c��tw����������������������������������������9������9��������������������������������������� ��������I�e��U�������$�������$������� ��������)[��sK�������������������������1��q�� �����S������S�������������zoS�m�����=������������������������R\�'O��G������������������������J��R����[�����������������������������?��ƚ��o���������������������������C��}p����������������������������˾��ݟB����������������������������]��H������S������S��������������y��잾�������������������������p�ơ ���������B������B������ ���������|�4�)�������J������J������'�������O�uD˟�W��-�����������������'��������؁��!o��7���:������:������)���������1i�,���A���������������)��������T�u�\���K���%������%������j�������Z� -�{/��U���<������<������j���������~ط���������������������j��������:� �����������������������j�������"�������������������������j�������z�g�}����������������������j���������rą�k��������������������j�������� �2�������c�������c�������l������� &��%�F.����������������������l��������\80��{�������������������������m�������9�KI�-�����������������������m�������� G�o����������������������r�������RZ8�-�}������������������������r�������">�������������_������_������r��������ۍ�*�D���������j������j������u����������,���������������������������u�������U2��~����������������������u�������ռ�WQ����������<������<������u�������b���ۅ������������������������w���������6A�/ ��������(������(������w�������H�ꯃ�c������������������������w�������@�k5��*���������;������;������w�������x Y��Š��������`������`������w�������hr����h�����������������������z�������xJ���E*����������������������z��������R ٵ��������������������������z�������ek��\����������������������z���������c솬D��������{������{������{������������������������������������{�������ڀy�5u��������������������{��������~0Ի��'������������������������~����������8���n����������������������~�������������,����������������������~��������c ��]0�������� ������� �����������������{�i>���������������������� ��������Ö�5�z���������?������?��������������P����L���������u������u������������� J��㞑��������x������x��������������p��?��������2������2�������������"&���w�������������������������������2Ŷ� ����������6������6�������������*'���������������������������������bӨ�����������������������������������B��U��Sp��������'�������'��������������z�2ݒ�e����������������������������*�Kf��pf�������������������������������Y��ϰd��������L������L�������������,n^����E��������'������'��������������ǡ��?D���������������������������������/�t#����������������������'�������o�j��?����������������������j���������G�I�?]����������������������j�������� �n����������j������j������j���������ʿ����������*������*������j���������8�F����������������������j�������:�$�B�������������������������j�������ʢ�0V��q����������������������j���������� �r[����������������������j����������6��' ����������������������j�������r� ������������y������y������j���������? ����������i������i������l������������`�����������������������l�������m� ~ֳ�����������������������l�������}Q��������������������������m������� -z3���������������������������r���������.5��s��������A������A������r�������:u﯒�}|��������F������F������u�������% Z���;��������.�������.�������u��������T<�\��m����������������������u�������e�o�������������������������u�������$��������������������������u�������U�����x����������������������z��������k?�ߠ��������������������������z��������wϲ0�Q���������A������A������z���������E�,{��������<������<������{���������ճ��<�������������������������{�������'���p�`���������o�������o�������{�������?~#�����������c������c������~�������&4'�Ǣ��������r������r������~�����������������������������������~�������~H��Sm�������������������������������R���M���������������������� �������#ٷɼ�^y�����������������������������{�g����m��������@�������@����������������=��T���������!������!�������������R�p�_�1:������������������������������ ia����������9������9��������������P7�㜅���������v������v��������������jtp[��|��������/�������/��������������`<.�Ă�\�����������������������������p�:��:�������������������������j�������ZHl��]��������������������j��������c�����8��������0������0������j�������r�(�5����������.������.������j�����������z������������������������j���������a� ����������9�������9�������l��������n\��[����������������������l�������MQ��J�#;������������������������u�����������]����������������������u�������]'V!ɜ�����������������������w�������p�6�g���������������������w�������p9���δ������������������������{��������"S3��n�����������������������~�����������u����������� ������� ���������������1��2�������������������������� �������s��>.��r��������9������9������ �������s]b)�G=�������������������� �������# &�f��%�����������������������������գ��������������������������������=W�6�V���������"������"������������� fQH��������������������������������JU�/����������������������������������(#o�������������T�������T���������������}�]��N��������������������j�������:N�}���m��������������������j��������> ?����������6������6������j��������g�hb�ul����������������������j��������e�s]��6��������������������r�������j�0�;�����������������������r�������Zc�x�"e��������������������r�������B1)]o��_����������������������w�������(W'*K��#��������-������-������w��������lВ�9���������-�������-�������z�������ِɁ}����������>������>������z�������雜�������������������������z�������-) Ѣ�����������������������z��������)"xM��������������������������{�������/3lD���������������������������������Q� �������������������������� �������[�a��s�������������������������������֝�����������������������������.z �d������������������������������ʋ���v������������������������������v��Ɲ�f�������� ������ ������ �������^t�:�`���������b������b������ �������W�5\妜�����������������������j����������������������������������j�������Bv$a_�����������i�������i�������m��������#0�1]����������������������m�������A��|���W����������������������r���������� �}�����������������������r�������Z�P�������������������������u�������]�PE����������������������������u��������� }�>�����������������������u��������a��m�$N����������������������w���������Ρ*�m3��������<������<������w�������(��8��:����������������������z�������IR��ټ����������P������P������z�������)l�����������������������~�������n��v�����������:������:�������������K�Ĩ���I��������y������y�������������jOY�-�������������������������������zMT�����������������������������Z��7����������������������������������p�>�#�3�������������������������'���������O������������7������7������'�������?���c۠��������� ������ ������)���������N�ە����������������������j�������"T7Oj�Q@��������b������b������j��������������������������������m��������J��'�}�����������������������m�������)�<������������6�������6�������u�������5(�1��Os����������������������w�������� +�������������������������z��������i�ߡR������������������������z�������Q�L�׀��������������������������z�������)�)ߙ�@t����������������������z��������j�:��C������������������������z�������ɾ� �B�������������������������������1�y ����������������������������������DZW��ߺ���������������������������������Ńid�������� ������ ������ ��������͂�T������������������������j���������3*�R���������Y�������Y�������r�������r�����A$������������������������z�������Y����ϊ��������� ������ ������z��������_�Qף.��������d�������d�������{�������Gau1���.����������������������~��������b��%����������<������<������~��������?uX�_�������������������������������_O���u���������T�������T��������������"v���)����������������������������2�!��������������������������� �������o0�iT�M����������������������)��������� K(�p-��������3������3������)�������;q����������������������j��������?� ��~��������-������-������j�����������ٝ�`������������������������u�������[^���l��������������������z��������5}&�����������������������������"��`��g����������������������j�����������u�x9������������������������u������������Z����������������������������M�:�L�������������������������j���������@\����������f������f������j�������ʗ�������������������������z�������!12����������������������������~��������5�`�Ï��������c������c��������������hLx����������E�������E������� ��������*��+�{�����������������������m��������ۋ}%������������������������l������� ��3N�}�����������������������j���������Rd�������������������������r��������'���"�����������������������z������� ������������S������S������~��������X0M������������J������J������������� �������������9�������9��������������Eȍݱt��������E�������E�������'�������O���V ��������{������{������j����������<�옭����������������������j��������{,�=�Cp��������S������S������m��������ЗZ�'��������s�������s�������z���������5 ��G�����������������������'�������7D��O�������������������������j��������aE2��p����������������������j��������;�8�����������0������0������z���������o��<<��������)�������)����������������F���:���������9������9������~���������9@u�X/�������������������������������f�9'�e�������������������������r��������A������������q������q������w��������Z�A��~�����������������������z��������P�n�Ԣ������������������������������!���'�����������Z������Z���������������r�t����������D������D������ �������/K�=e� ���������������������l�������u�E%�DD��������������������������������_�o�������������������������~��������b��u�ѫ��������@�������@�������j������� "[6%�����������������������w��������S=ڊ�xo��������������������������������oq��E��������j������j������w����������Z��^��������C�������C���������������!H%|�����������9������9������j���������{Tj�b?��������J������J�����������������������������S������S������j�������B��hy�|���������+������+������~��������)�� �����������������������j�������B�) d�ܥ��������,������,������u�������-���<U��������\������\������l�������&� ��#K�����������������������������D��c���V������������������������������G*��� J�������������������������������������n���������P�������P���������������-� �X������������������������������=x�dV��������F�������F�������j����������@��.�����������������������l�������%z�8�� �����������������������z�������AV��G�#���������)������)������l�������?��������������������������w�������x������������������������������)��������W�٬������������������������u��������-�x�ҝ����������������������w��������ST��Dz��������4�������4�������z��������A>;��2���������\������\������)��������NJ2���������������������������)��������4�!�%���������������������)�������'h\H��q�������������������������)�������� �zR��s��������A������A������)�������/��褚1<��������<������<������)������� 1�p�G���������Q�������Q�������)�������O�� �i�����������������������)��������΂i���������������������������)�������O:t���֨��������5�������5�������*������������o��������l�������l�������*����������/��t���������������������*�������[l����������������������������*�������s=!1�������������������������*�������"�����������7������7������6�������� Hn� �����������������������6���������J���ho��������e�������e�������6�������q�S����������������������6����������f�� ��������������������6�������4)�o�W����������������������6��������;�s�7����������������������6�������:�u�؃����������������������6�������������������������������������6�������ql����{���������������������6�������a6D\h�&���������������������6��������n�h�#�������� ������ ������6�������ɠ�k��5���������~������~������?��������b�F"���������� ������ ������?�������УdI���'����������������������?��������ע׌#��������9�������9�������?���������h& �v{����������������������?�������p��]ƣ����������������������?�������X�ĨH���������� ������ ������C��������2�{H�����������%������%������C��������� ��/���������i ������i ������C���������Q�O�&�������������������������C����������<��w�����������������������C�������-� '�����������/�������/�������C���������q��D����������������������C�������5օ�E����������������������C�������-s���}�������������������������C�������-v1��ë���������������������C��������/T�ϟl����������������������C��������'����������������������������D���������w�ᥗ����������������������D�������Cjw�g������������������������D�������K(�������������������������D������� PO�n��I������������������������D�������;c.IE��&��������:������:������D��������Y������������������������D������������N��������#������#������D�������N1���������������������������I������������#z������������������������I���������S�y��$������������������������I������������)m��������0������0������I��������o�Y�81��������������������I��������>�F�����������2������2������I��������\Kq�ý���������l ������l ������K�������^Z�E٧������������������������K��������_ƉX�����������������������K��������|�G���F����������������������K�������f�c���������������������������K�������v�4I��6����������������������K�������~�i���~X����������������������K�������NI�r��u)��������u������u������K���������9km��{��������%������%������K��������W����~n��������������������K������������z�������������������������L�������*�L����i��������������������L��������������������� ������ ������L��������2�����������{������{������L�������b{�(x�n��������2�������2�������L�������2ةq#�����������*������*������L�����������:���������;������;������L����������d��� ��������������������L���������w����������#������#������L���������mH���$������������������������L�����������w������������������������L�������ot�C�؛�������� ������� �������L���������/ �7�������������������������R�������� ����WF����������������������R�������?�o�� ���������2������2������R��������}������������� ������� �������R�������?X綍�����������������������R��������j�.�.���������2�������2�������R��������^YD:����������C�������C�������R�������wW~��p_��������q�������q�������R��������h�����������F������F������R���������uƗ�Y����������������������R���������@���{����������������������R��������j�)�K�����������������������S��������ϝ:c�R�������� ������ ������S������� À��\����������������������S������������Y��������/�������/�������S����������b�����������>�������>�������S��������b�������������*�������*�������S�������=`w�͕�����������������������S��������ɵ�!��������������������������S���������g �; ����������������������S�������m��/�����������o ������o ������S��������9uGz�A����������������������T��������ud� ���������� ������� �������T���������SȠ�c����������������������T�������TDž.8��������������������������T�����������w�ZN����������������������T���������x ˋ�������������������������V��������'��/�+���������2������2������V�������?���p��5����������������������V�������?�d?E�����������6������6������V��������ظ~ʦ���������������������V��������~�P�X����������������������V�������?�����n�����������������������V�������'D[���.���������������������V�������G�Ά��������������������������V��������m]V�7i����������������������V��������Ӿ�p����������������������V��������W�f���Y������������������������W����������]�1C��������%������%������W��������bp@b��%����������������������W��������L=�����������,������,������W��������@C���M���������*������*������W�������k�n������������������������W���������H�=� %��������-������-������W��������L3�b���������2������2������W�������3R:A���������������������������[�������u\������������� ������ ������[�������m5�7�$�������������������������[��������\�����s������������������������[�������5�%�W�s ��������/�������/�������[��������-�/�C���������1������1������[����������������������������������[����������:.������������������������[��������U@���6���������������������`�������6��d �V��������W�������W�������`����������Q��Z����������������������`�����������4��������e�������e�������`���������p� �����������������������`�������޹z���������������������������`�������N���l���������������������`�����������������������������������a�������|����� �����������������������a�������,6_���@n��������-������-������a���������J��|�����������������������a�������l�T���.���������~������~������a��������p����l���H`���t������t������e���������Fo����������!�������!�������e�������~��t����Q��������������������f�������pz�`.������[���� ������� �������f��������e>tE�H/��������(�������(�������f���������"��������������������������f�������P��ţ����������[������[������f����������R�����������������������f�������0���?�O�����������������������f��������� R脮\����������������������f�������P���^�7�����������������������f�������h0�ݬ�U��������������������f�������H��s��-���������W������W������f�������0E�_�#���#�����������������f��������r�o��u��7���&������&������g�������B��e�ט���K�����������������g�������2���� ��_���=������=������g��������\�PߣW���i�������������������i�������8MK�f��w��������������������i���������c ��������d�������d�������i��������m�n�p���������������������i�������� C×�H������b������b������i�������ି�[� ������T�������T�������i�������������I�����i�������i�������i�������x�����+J�����:������:������i��������� ������'��� ������� �������i��������b�:������1�������������������i�������p��iQ�c��E���W������W������i�������x.�c�`��Y���9������9������k��������J����r��m�����������������k��������P��G�E���w���<������<������k��������v��&�LB������7������7������k�������h�^)�����������������������k�������(�Ֆ�K����������������������n�������E�C-�� ����������������������n�������=�WYF�����������������������n�������u�Y��������������������������n��������3�� �jD������)�������)�������n��������=kuj��������3������3������n�������-�a���� ���?������?������n��������-�n��z�������������������n��������Q) ��K��!���m ������m ������n�������e�)sy�*���+�������������������n�������u|�����5�������������������o��������M�ʎ���I���C�������C�������o�������;:�Jͩ���g�����������������o�������s������j��q��� ������� �������o�������[R��c�3��{���W������W������o�������ә����������V�������V�������o�������[\6���������g������g������o��������U��6��a����������������������p�������c�k�וi���������������������p��������W7Φ���������(�������(�������p�������IS��3�������>������>������p��������}� G�%����������������������q���������$��K���������������������q�������6Yli���!�������������������q����������Q���������������������q��������V�g����%�������������������q����������'H��K��/���������������q�������. �j��%i��9�����������������q��������Ag2���M���������������q�������O(� w��a���%������%������q�������w 9�����k�������������������q�������y��m��3�����8������8������q�������v��Y}������������������������t��������,Q��m��������������������t�������yԂ�y���������C������C������t�������y>Ed��aH����������������������t�������Y14��x���������������������t�������y� ���X����������������������t����������P��,���������������������t�������1�N. �9U�����7������7������t�������!�U4�����)�������������������t�������Y��?pГ��=�����������������t�������I�5Y�� P��G���m������m������t�������!beC�r���Q�����������������t������� j�G�����[���D������D������v�����������Ȅ��������������������v�������1g��E�Z�����������������������v��������} ���Ԧ����������������������v��������&��ק������P������P������v��������b\���w�������=������=������v�������Q�?�L������d������d������v���������o!�7n������9�������9�������v�������i�VB�.����������������������y�������u[tLܸ�������d�������d�������y��������RN��N�������������������y�������=*N�<�I ��#���g������g������y�������%X�{���7�������������������y��������W< %�����_�������������������|��������);j ��{������7������7������|��������+Ҽϋ��������������������|������� >l�Άd������5�������5�������|��������А{���������Z������Z������|���������HQ�������H������H������}�������'�o��N������I������I������}����������٫R���E�������������������}��������Å���P>������s ������s ��������������mŘg�������2������2��������������ɨN޷�j������������������������������v�5����������������������������,��s�\$����������������������������4M2�0<������������������������������&<vz�Z������������������������������T���U�6��������'������'�������������L�[���/��������:������:�������������Թw$��ށ��������W������W�������������D[y�����������L������L���������������b�W�s��������N������N�������������,g)mP����������������������������������|����Ն���������j������j�����������������τ+��������������������������������Xm�Ž,;��������q������q���������������`=9�X�������������������������������_b���j��������K������K���������������o�����&��������)�������)����������������fǁZ�_5��������T������T���������������)c���X��������Q������Q��������������g��?��������������������������������WFϔ�n���������������������������������?�T�����������S������S��������������'�J�������������������������������������U� �t���������9�������9���������������_Wt�����������l������l��������������W"�� �*���������/�������/���������������8 ~��������������������������������t����rH���������������������������������q%�1�:������������������������������N���H���������U������U��������������w�'�A�Jb��������_������_��������������?��������������e������e��������������G�b$ײ���������W������W��������������wU)�,�×��������������������������������������������������������������������t�U�ɩ6���������5������5��������������$;C�т�����������������������������������dא��������� ������ ��������������,�P4F�1K���������������������������������ݵ�~��������Y������Y��������������t8����5��������;������;��������������,�r��� ��������N�������N�����������������z�������������5�������5���������������,{�9ñ�����������������������������������ڵR��������^������^���������������W]��6{��������`������`��������������l������������-�������-����������������.W��Z���������5�������5������������������_�I���������O�������O������������������u��k��������P������P���������������h�7Z�7�������������������������������������p�����������������������������HE>q�U��������|������|��������������w�������������&������&�������������� �&���������F������F��������������O)؛ʝ�$������������������������������𿬮�Y4���������������������������������V�;����������f������f��������������|��V�B��������� ������ ��������������o����r������������������������������ÈO�O�������������������������������g��.��������������������������������)+Q��j��������������������������������Cܔ������������������������������������Y��^�������������������������������+� ���h��������������������������������ρ��喂F��������<������<����������������Ŕ��?��������5�������5����������������蘆0ÿ���������h������h��������������W~H�P��s��������i������i���������������iX/�з��������I�������I����������������=; 娵��������������������������������Lo�"�������������������������������/����.\������������������������������������������������������������������Wݧ�ω�)��������m������m���������������|�Y�p��������n������n���������������|�註��������� ������ ��������������π�����r������������������������������������لj��������p������p��������������g�4����g��������:������:����������������C�����������������������������������l6��|{��������������������������������G/����������r������r��������������g�1�d������������������������������������<���D?��������.�������.������������������o�e���������������������������������y!��bq������������������������������A����9���������=������=���������������%Z}�������������������������������������Ո�!�������������������������������� �>z���I���������������������������������0�;G��������R������R���������������@߾�̀2ow to i�����������������������q����'O librar�t������t�������������� �n���]fon newb�K������K�������������� ׭���]uides t�(�������(������������������ވ8Kt this �v������v��������������!9�V'��^oing to���������������������郥h��S in fut� ������� ����������������V�WϞ�� provid��������������������� g���uats to �B�������B��������������������!�w to ge�Q�������Q���������������ɸ�_�� ence wi�y������y���������������wB ��VYysql fi����������������������Y���w averag�����������������������Mx�� �S�ps on h�~������~��������������=�K����Cdb libr��������������������������}v�p��Bme and �7������7������*�������o����ze repro�D������D������?�������@������vf mysq� ������ ������?�����������s���older c�j ������j ������C����������)�is comm���������������C���������x>K��t trust���������������C�������e��js��sers us�������������C�������=+V<�=�quired ���������������C�������mQ)*���ger nec���������������I�������0ZY$<�x�looks f�=�������=�������I������� �<s�)sr loca�=������=������K�������>�$+�� direct�7������7������K��������<�C�:�he warn���������������L��������Ie��ַ�on setu�S������S������L��������̰�+ge and �������������L�������bt�4��|R instal���������������R��������;8e ��Wlibrary�`������`������R�������WwU�ܓ�ending ���������������R�����������-eed to �P������P������S��������_|���Dzmysqldb���������������T��������.���(�ql pyth���������������T���������x+�W rwarnin�9������9������T��������by�7�j�ed from�+������+������W�������j����<t xxxx �������������W������� �a��sys pat�������������W�������;��˼�ut to s���������������W��������-���hufuture �����������������[�������EC�4�T�the top�����������������[�������u�4 ���aific ex�����������������[�������M�q���ns form���������������`�������V�m��y�i can t�������������`���������tC�� false �)�������)�������e�������ޘ�N��_�ument s�����������������e�������֨� =�ll asm �4������4������e������������� with as���������������e�������~�5dT�O� numpy ���������������f�������a^����build a�5������5������f�������8s���YUbject l�_�������_�������g�����������mtrt nump�����������������g����������wn�} x gimm���������������k���������v����t itera�������������n��������,+� �o;tores t�������������n��������;Z��ԉ�gimme b���������������n�������I���t and t�������������o�������#���E�F� way in�������������o��������| �j8mpy fro�������������p�������{��%�Jt count�����������������p�������{I&N��able it���������������p��������q���2(citly i���������������q���������/�}���loat s �A������A������q��������5��'�� of dat���������������q��������-~$��first c�;������;������q�������&��Xǵ�emainin���������������t�������Y-�,6�bi do th�����������������t���������$&�(�ta pand���������������t�������y�0�M�a�ns list���������������v�������1�D/ʛ��the col�A������A������v�������I�×�S;to writ� ������� �������y��������D�X��fe best �����������������y��������螙���nconsis���������������y���������� �� is not�����������������y�������=\�����permitt�����������������|����������K|�6�al reas���������������}�����������\ex is w���������������}�������'j�-c͒[indexin�������������}�������&�F�:atafram���������������������������΍�more on�T������T��������������'+k�#���ros to �����������������������+,�|�do this�u ������u ����������������P����Vas np n�@������@���������������gI��Ⱦa colum���������������������������T[׏�rs arra���������������������������-���b}uples a�N������N����������������O?2���he reas�Z������Z��������������� �@ԝ� round �\������\���������������&�5F� � in pla�������������������������'Ǹ�⟚�at with��������������������������f����1Qhe reas�������������������������'�����]�other r�l������l���������������RPL���~ on all�n������n����������������2ܿ�egative�������������������������s��=2though �����������������������π3)F���you can�������������������������O�������nblas m�������������������������iht���Hently d�w������w��������������aV`4��g the m�2������2��������������q���X���no affi�J������J���������������Ǒ,b�pVsure in������������������������R�\U�>�nlocal �)�������)���������������r�I�should �1������1���������������w7%��(�closure���������������)�������w� ��r�a dicti�������������D��������@�� ���python �������������D�������?�\K��� ways o�r�������r�������K�������� ެ��)�oblems �m ������m ������K�������L��) is exe���������������K�������"���+��������2������2������L��������X����{�����im� ������ ������L�������k�y]����������V�������V�������L���������e���s���L��������������������L��������h�������sou�����������������L�������2f]�P��9��7����������������S�������U�)������conf�-������-������S�������E��"��b ������������������������T�������L���˘��variabl���������������W�������Toبj���ad��������������������[��������\Q@V�� �succes�����������������`��������h ؠt�form����7������7������`�������~Ñ�&�����������������������`�������޽�p��yfile���f������f������e�������N%3�2�8X����������������������e��������Y `���ong�����G������G������f��������u�\���z��������;������;������k�������8�9��,(��������_������_������k��������ˢȕԻ�������7������7������n�������]�ٴ��_in������s������s������o�������-T�����rd��������������������p�����������si���������������������t��������� ���n8�������2������2������t�������IҐ��������������������������t��������]kN_�u��� ���u�W������W������t�����������*����������������������y��������@u��4�������������������������������47i)��7��������������������������������59��������������������������������'�FϿ�^��������E�������E����������������g5K������������������������������������-�������#��������������������������Gȍ��|����fl�����������������������������Y���������b������b��������������w��0�-8��calcu�#������#��������������jh�+������2���O������O������������������}ŏ ���krz�Y������Y�����������������D�N���over�����������������������A�(w��`"��������,������,��������������)��=����annot�������������������������A�}�v��c��������7������7�����������������ʲ��partli���������������������c��t�ϔ��������}������}���������������7�����contain�E�������E����������������G��0�� 7������"������"���������������y��s�tpir����������������������������@j��eQuffer�����������������6������������j�r�������������������C�������E_>M�����������7������7������C��������hr�n�����������������������D�������K+��`�or����������������������S�������e�lW�1��������`������`������V��������7W�J ���������������������W����������R�t����������������������W��������2���)rror��������������������[��������2�+��.����������������������i��������mp��������U�����������������t�������Q=�D��T����ha�����������������v�������1j�������������K������K�������������d^���*���dff�����������������������?��!VԽU�pypars� ������ ��������������� �Q�Շ����caul��������������������������]�E\̹�������������������������������d>G����consecu������������������������DZ0�cL�java���,������,��������������5yQ5�����7�����C������C������������������,��pti���������������������?��������^�{/���������������������D�������k�� ��Ҡmeasur����������������L��������^�����7������!�������!�������a�������< ��_���������������������i�����������SH��������(�������(�������o���������'������������b������b������q�������Ρ�e+�V�grammat���������������}��������`��?˙�rdtyp���m������m����������������A�{�`�t�����p�������������I�������0�RMһ�U���������������������e�������>du�6��������=�L������L��������������������95�����R�� ������ ���������������dڪi�������X�����������������������<���6��*�� ���m��������������������������/���4���X��7�������������������������="v"�v����runt���������������)���������r#>�n�����mi�������������V�������/�)����|��7���������������`��������)n��������zon�����������������g�������Z��5b�������������������������o���������R+��;Lcach����j������j��������������� 7���k��yield���������������R�������/j�cx�yampl����V������V������W��������$�󝪗��������7������7������g��������!�i^�s��zip����H������H��������������o5�O�;Tmension�����������������������1~�śXjsomeseq�������������D�������������A�dreques�����������������|�������I��^��������4������4������*��������+�q��������X������X��������������DSe���Ҏwordles�������������D�������ËI8؉U��������r������r���������������/�����������B������B��������������w&���݌_�����������������������������-gA\��j������ ������������������������^�#��,old�����������������������������W]ġD�������������������������������-����t�������������������������������y�)��������������������������������U���N�/������a�����������������������=|�d~�������� �����������������������sVP�9Y��b2�7�� ������� ��������������;�~���C���� �������������������������k� 8 �����dec��������������������������R��yj�pseudo�����������������������J��v���lng��=������=���������������� *�/�appropr�5�������5���������������c���L���| �����J������J��������������3? ����ablenam�U�������U���������������+������ ����������������������������������T�metach����������������������������5U��������j������j��������������{�L�l�pir�����������������������������÷����6vid������9������9���������������a�,�j9�������I�������I��������������� Ck���lomeLQ��������������������������jq�{����������������������������������K�wh%�L�������������������������������kSw-��gment���F������F��������������c)W���<�����������������������������k>���6�count���������������������������`VфN�ssign�������������������������������iP�����������������������������K�,�L1��������>�������>������������������U�ښ��������6������6��������������[#�D�������nyq�f������f���������������Kȃ*�r�dl���� �����������������������&Y<������������a�������a���������������VG��j� ���7 �������������������������� ɐA�-����uni������������������������}v����� ����C�������C���������������n�-)^�l6�� �������������������������nǩx���+��multi�!������!����������������rQB��%����������������������������v�V����� ��������������������������V�p{t�a��������������������������������Jb���ordin�������������������������6�k��Yscenari�T�������T���������������|J�c� int�������������������������������_Z�A8eader�������������������������F�ݳ]�S���������������������������������~,� ��:wnershi���������������������������͠��������� ������ ���������������>.$���l����������������������������fU��J��������� ������� ���������������j� ��i������u����������������������tt{������ ���r��������������������������j�����������v������v�������������� `����X�����M������������������������r+�(?�)�����de�<������<���������������,���� f������O�g������g����������������r�^������+A:��������������������������M�Ƙn����use������������������������� NmK�F������b�����������������������rVi�"�i���e:�7�u������u��������������ڱC�)������vist�����������������������2�S�p�>�����ch�������������������������R`��6�|>��llvm��'������'���������������/"ږDŽ������������������������������ZF����Z2�implic�`������`������������������������������������������������� � ���d ��7�������������������������*�5.��racoll�������������������������� 3g۹0��att��������������������������rqf9�xn�������h������h����������������HЂ���������Q�������Q�������������������0&link����� ������� ��������������*�V���!str������������������������������U�b������������������������������ ,�;7�Hblet����-������-��������������¸�o���eteopt�����������������������w�B��I���������������������������������<�}�rc����������������������������:�,G%������ �������������������������� �Z �liant�������������������������������6T�����������������������������Z�="鋣�����yB��a�������a���������������5l}��3rnda�������������������������������8�ѥ���������������������������������گN0��������������������������������� �q���dstr��5������5��������������\Uw�䮴������������������������������T���ƕ����P��N������N����������������6�߂p���������� ������� �������������� cV������s��������������������������@V.����������_������_��������������lLv��x��syslog� ������ ����������������:����������������������������������<�H88�Dc���nece�G������G���������������*���`���������H������H���������������ϺY�m%charm���n������n���������������Y�7�VU������������������������������ˁ�u�9���pstat����������������������� �e(���Kcachegr�c�������c����������������W�S�!=�����������������������������$1��������������������������������t�[즇�������������������������������|��]�������������������������������l� ���������������������������������Xճ���ff������� ������� ���������������dе��un������������������������������}�S �V�������������������������������a� �bar���������������������������}���~�����������������������������������,'7���������m������������������������tD;�ڒ(��������*������*���������������ʄ�P����������f������f�����������������GC�%�������������������������������%��˟2��7��D�����������������������E~�ɿ�������O�\������\���������������#^��{���unpa�<������<����������������bn�X� ���us�>������>��������������}c�l���0������������������������������xXFH�����subj������������������������%8g�J������������������������������M�6��������urls�������������������������[��|��7���(������(������������������Creg���������������������������UF.�b���cheby������������������������Q�������������2������2���������������� 4�Ȧnintend������������������������;�^��������������������������������AR�����������C�������C���������������� �b�q��������� ������� ���������������yL���V���������[������[��������������u ������������x�������x�����������������4:_ψ�equR��������������������������R� ��4������������������������������M�0t��^ueri��������������������������Z��%m�������S������S���������������������kset����{������{�����������������Y�8�������������������������������M/��m�����������R������R��������������MD4S�ѴG�����p�����������������������5]ũ�����������8������8��������������uy�.���r������� ������� ��������������e�&J��q��� �B�����������������������۴_�{� ���sem�����������������������u��W|��Q�����d� ������ �����������������}�x����gcm��������������������������:�^��Z����^����������������������=A K��������ut���������������������=�N���!&��������V������V��������������u��s����xvec������������������������������,��4����nsam�M�������M���������������՞�0���c��7���4������4���������������b������������Q�������Q�������������������toot�����F������F��������������M���R�,������������������������������e5���0changab����������������������������F���������(�������(���������������e���� >etyp����������������������������5����Z�������@�������@���������������U_$U��lY��������Q������Q��������������m�2A�T�int�����E������E����������������MS��cSoku�����%������%���������������uN\��b������������������������������}}��Ձ��yq�������������������������������CQ���������������������������������&Y���|�����������������������������* �Λ�bL��������1�������1����������������-O��3����dyn������������������������u����+���comb������������������������ :�Q���������������������������������Z��A��� ��cnt���I������I���������������r8X5�4�������������������������������kG�dU���out������������������������5����:�pyopen��������������������������3������������������������������������f��r<������������������������������ �v���g�~��������������������������������Z+�����isope������������������������6h��H������������������������������h�U�x+�������� ������� ����������������� �۾O�havers�����������������������H��֓�u:an��������������������������h� i\���efmt���� ������ ���������������,��� ����������������������������Hk�3��uca�����2������2��������������� $=t�:d��������r������r�������������������x�������� ������ ����������������t������������������������������������ouad��������������������������������Y��A��������������������������(DQz��4��7��0�~������~�����������������-:��������������������������������o����������� ��������������������������N�82����CP��� ������� �������������� ��5 ��f�������I������I���������������$c�:������*���������������������������@E-��G������w� ������� ����������������Z�9��� ��\���7�����������������������X��񊣛���epsi�'������'����������������+KI�(t�������������������������������L;/�������bu�8������8��������������X�wF� �������������������������������8����H;�����������������������������8�|������dry�o�������o����������������e���+�yourpa��������������������������Xp.HŢ$develop�����������������������x���e�d takin����������������������sk>��2using o�������������������������TW6ǢGne line�����������������������Ъf#��qql conn�� ������� ��������������@�ƉB��tivalue�����������������������`�b�����with it��������������������������valuedi�����������������������`�ǣ��esented���������������������(I���d�s not s���������������������������>bj�@�ow do i� ������ ���������������b���Uquest p� ������ ���������������Ӣ;�� to fet�I������I���������������� ����w can i�y ������y ���������������L@\���ents fr���������������������h��c��)chments���������������������́ M��'hard on������������������������P)l�� detach�����������������������M Z_��� gmail �7������7��������������e�zD�ɫ�rch non�������������������������esO���imap ru�������������������������<���n the wh�������������������������+Aםtring e�������������������������Օ����9t to ge�D������D��������������;�3Tݵ�'part in����������������������!������ent mai� ������ ���������������vDO��`t get f�g�������g�������������������,���lename �?������?����������������9�ϼ]. part d������������������������U�7ٰ�) att pa������������������������ ��.�Hn att p�;������;����������������� �w�decode ���������������������3��i� pthing b�������������������������{�q�죁�ne coun��������������������������=ft+��@al in s�<������<�����������������t��'Aselecte�������������������������n�~�S� writin���������������������V2��.ľ�on to l�D������D�����������������vh͟& exampl�����������������������^��fu��lotlib �2������2��������������m{3��z dir j�����������������������&��m֎=ove lis�������������������������֖�v�and wha�������������������������Z�EE�ock info���������������������������:��ge it s������������������������R”�+`shot x �D������D��������������cy��''as diff�0������0���������������_�Y+�o�nction �B������B���������������+٩�Hf you c������������������������a�� i impo���������������������*m�s��(i will �����������������������r�@�z��0lib imp�� ������� ���������������$1Ŀ 2module �������������������������f�?�)qtween v�����������������������*c�`=��ving lis������������������������Vb�r�p and li�,������,��������������\ �����ion wou������������������������Qt�_�(Ange num�&������&����������������zO=�qRve deci�"������"��������������� $P���as pep �'�������'���������������=]�q�`tis is m�����������������������-Tz񳭛�lly rea�����������������������m��?���Like to ����������������������� �.���his is �5������5��������������m�W~K��too s t�����������������������}3 �g��ally re������������������������8�r)�0�at i d �����������������������������C؁le pers�������������������������З�Cf this �&������&����������������T�wsber exp�{������{��������������M�v����onsider������������������������Sһ#�Jnd less������������������������٫Ҳ��escapin�����������������������m�c1l���possibl�����������������������mg�� it if �����������������������e9�l�Rg const�^������^��������������uçn���]eally r�����������������������-@�$���Zon line� ������� ����������������:��ƫ-k as th�����������������������m6�As�tanother�9������9����������������7��rximum l�����������������������E#���%>good se��������������������������o��,Wrun sav�� ������� ��������������-2VǦ��otebook�#������#��������������u�&���� using ���������������������mq$`W�u in fin�J������J���������������9�iꊑo the i�������������������������W`�9�n noteb�/������/��������������%�� �Ӛ�nd then�>������>��������������݉~����o achie�������������������������B���$��appreci��������������������������2���;e conte������������������������Qm*�7�in the �[������[��������������2�t�z�e it as������������������������/��b�Sfile fi�����������������������h�a���L� be sil�����������������������������5ˆ�nctions���������������������8 a�����ilable �5������5�����������������I�ʤ the of�@�������@���������������g�+G�}�tebook �������������������������֪����d as a �C�������C����������������2�ʶ�`� resamp���������������������������̟��<�underst��������������������������V���e resam�6������6���������������I&X���forward��������������������������H�Y�fset st�������������������������M2'�:�� online������������������������F�4r�T�for day���������������������=t㳂�)onds bu��������������������������~6��`Aw i hav�������������������������;/ZYF�kfe first������������������������w����}`s there�N������N��������������{e•��~ion for�r�������r���������������{ژ����ind it �������������������������z��yHr them � ������ ����������������ˉ^��Vustom b�����������������������.ϔe�vuency m�*������*��������������N��lÔ�month e�����������������������n4�k�N+month e��������������������������ڨ5�oaency bm�����������������������������rVuarter �0������0�����������������Z�incy a y�2������2��������������B-�}����bas bus����������������������%�& ��y l mil���������������������"��.P�"�onds se���������������������Rܚ�b�a offset������������������������ �J��note th�� ������� ���������������]��\differe�����������������������Ĭ���Φ�st how ��������������������������c��E�� lar str�����������������������Ը�ݖ�N*omestri������������������������M�a·%Rllo wor�Q������Q��������������-�#!�քessage �I������I����������������L�1�=4unicode������������������������$T/�@)g strin��������������������������� ��Xlu hello�.������.��������������mfD��M�ight be�����������������������5�/��A( questi��������������������������S9out get��������������������������`�P����e orang����������������������r@���!3t how d�C������C��������������Շ����and sen�����������������������M8���gs mock �� ������� �������������������T�on prot�)������)��������������pL�/sularly �?������?����������������<.����space o�������������������������x&�=manager�A������A��������������e��Z���3open mo�������������������������c���te some�9�������9���������������ӈ��W�M�rn valu�E�������E�����������������:����*ract a ����������������������e���6�rray do�\������\��������������������� python�������������������������^�q���ay a ar�����������������������Fu�^ray see�����������������������r����ray wit�������������������������:b�M��n my arr�����������������������Bit����k double�������������������������%h�ʹs idle ������������������������^t�+�now if �����������������������l6W=��%clear a�������������������������Mճ�nd clea������������������������M�y���9 termin����������������������߁ĺ�z�ndow fr������������������������;��$�Nsthe she�����������������������-TeQ-�� t thin�����������������������}�7V��Dnfigs m����������������������� B`��%� declar������������������������zջ��used it�*������*�������������� ~[�W�i assum���������������������������ף2d to te� ������ ����������������޹����blem ho���������������������5>M9�� �s proba����������������������(e��) implem������������������������=�e�� t i have�%�������%����������������R�?��x functi�����������������������������W��ef spam�X�������X���������������3����>+lt else�� ������� ��������������v����4 been p�������������������������;���a�n into �����������������������r L �ŷD def fo�����������������������b�W�\�1i foo de�����������������������rG�.���g prope�����������������������m�\U�Ywin the ����������������������������uld be �����������������������ݛL����t helps�x������x��������������5�`�\�� python�� ������� ����������������|�д�ic ques� ������� ���������������-HUfޔ<#thin a ��������������������������Tw���le progr�� ������� ����������������EdI�2! loop b�S������S����������������[)��� pdf th�|������|��������������5�=%��&tring c�����������������������B��K�ʹ str nu�������������������������5e0�j2avefig ������������������������W���a�iable n�P������P����������������-�t�0df loca�����������������������*_I "��-is the ��������������������������]�`���mplate �'������'��������������#�8����ing num�=�������=���������������bΦp��why is �����������������������=S���,� done b�o������o������������������[��hon mus�� ������� ��������������� F\��r set i�����������������������n�d-��� am i m������������������������ =@��trary b�6������6���������������,�����Yeletion�2������2���������������_�{�H�h just �"������"���������������Mn}�޼� can le��������������������������糠�Mey will������������������������������K/ the co� ������ �������������������o keys ������������������������A���ently r�����������������������"j���T�foo and�7������7��������������;$�&B���s infor�b������b��������������n���d�oo none�B������B��������������2��<�_pt and ��������������������������I��6ted bef�����������������������H�����LTow depe�������������������������gb���o a nex�S������S���������������Wɖ� none t�C�������C���������������:�����UOse one �V�������V����������������l�?5��ct the t������������������������ �����nly use�)�������)���������������C� +��8table o��������������������������±���ou are �P������P��������������Cv���&ugh tak� ������� ���������������xj��<ӕN by bra�R������R��������������|�- ���npredic� ������ ����������������>,���N denial���������������������������ۀ��rent st��������������������������T@r�*�impleme�M������M����������������W�*�9�f the h�b������b��������������x�D���� dict i������������������������s�E��y effic� ������ ���������������I��r�ces the�� ������� ��������������WJ�4��dly cont�������������������������"�!|�=�tual ke������������������������_�H���d items�����������������������ڊ϶��Q�rovides� ������ ���������������&��vof dict�������������������������H��7of some�������������������������zǘ����s remem�������������������������Z��os�:�eys lis�@�������@�����������������"j|��^en do s� ������ ��������������*E��k�ionary � ������ ��������������jD�x׋n�ype is �C�������C���������������2�����ordered���������������������������~��늝 python�����������������������z˜�L�feontext �����������������������*�{|��n ip so�����������������������j܋�jȜ<somethi�n������n���������������}%��΁� an arr�s������s����������������9c��Yhat hav�-������-����������������a+�x�ocket d�o�������o���������������Bʼ�ڌ��uld sug�������������������������Z �#Q��6lent to�������������������������0��]d���s y wit��������������������������j�;M���correct�P������P����������������J﶐۬xamples������������������������[i�H�ntax ha�����������������������C����lib nes� ������ �����������������]k�� x b as��������������������������y���6t of co�" ������" ��������������0%U�/��imgr thi���������������������������$9��+t manag��������������������������(vk���roblem ��������������������������Q����latest �d�������d������������������_l�k# of pip�9������9���������������39���do pip �� ������� ���������������Ҫ��� with w�@�������@���������������`�'[��� site p�������������������������(���e�n main �' ������' �����������������b�B| librar�( ������( ���������������*��e�`ild pac�) ������) ��������������`: F��]@ssion f�(������(���������������}�8<�͇pip com�����������������������@��r��Vickage f�, ������, ����������������a��}hy pytho�����������������������+)��z�or pip �����������������������k]J����ls for �d������d��������������k�"����use whe���������������������+��R�pupgrade�w������w����������������,��Kons upd�h������h��������������˶ ��Ҩed in s�����������������������K� ���mis not ������������������������*+�4���e i rec�&������&��������������k��=h��:game mo������������������������®/���ing err�2 ������2 ��������������KCA�/�t file �E������E���������������]��˿��mport i�"������"��������������[k�Jg�Y0pygame �7 ������7 ���������������I��(��y in bi�u������u��������������-͖��#� i see ��������������������������"��k���e you m�w�������w�����������������I7G�X�go for �9�������9���������������ÈT�d��a colum�8 ������8 ��������������k�n�X�rt an i�9 ������9 ����������������ɟn� �r examp��������������������������1����qtt loc � ������ �����������������m�reset i������������������������LD��rag obs ������������������������q*��� level �� ������� ����������������1�9�cY s ins������������������������37�L2ve spen�������������������������k&�����_ow to g���������������������������Y�ќfferent�{������{��������������ZR��,��e heigh�'������'���������������O�%>�Ge uneve�������������������������"��oO���ture im�� ������� ���������������L �̉��plotlib�� ������� ��������������r^�A���icker i������������������������H���i� y np m� ������ ��������������H���Brds if �������������������������Wsζ׷�*t i j g�N������N��������������7�F'����ots adj�9�������9���������������j��j��Sax fig �)�������)����������������h����m plt t�H������H��������������o����g x heta�P������P��������������_:�I�� rotati�F ������F ��������������B��(��^axhline�����������������������'�����Lt axvli��������������������������g����hch e su�)������)��������������WΓ�!�j�harey a����������������������ң�Ƣ�le plt �����������������������G�_S?� ]for col������������������������n!Л�t just ������������������������J�)�I[or it a�y������y��������������_s`�,�h� np imp�I ������I �������������� &9��t�axes pl��������������������������*�D� ax fig�;������;��������������OR��4��?r ax pl�������������������������k��A�te serv�����������������������O|�Bq���e and e�]�������]���������������ϫ6���w�op and ��������������������������4����*eived t�/�������/�����������������9�H��5ystem s�l�������l����������������;zҤ[�lly boi�����������������������c���T�be fep e�)�������)���������������{��X ���mes gre������������������������,��#͵Tred an ����������������������� ���¡]9 the do�������������������������C0��=�/� nonzer�R ������R �����������������W�A python�� ������� ������������������1�p_xecutio����������������������9X[ӛ��nly is �,������,��������������S�w$߳}]ut cont�$������$���������������@.m��} exerci�����������������������;'cZ8��De error������������������������x(��)�o mkdir�� ������� ��������������[�u� �/n only �?������?���������������۰R�;� sudo r�;������;��������������+V���/lot of �r�������r������������������Z�� ls impo�������������������������޿ ��back an�����������������������#� Ҝ��zt pyfla�����������������������M�x�o read ����������������������� [�W���\ep chec�V ������V ���������������i/��ich the�W ������W �������������� ]��֭��een the����������������������� ��I)���een it ���������������������������k���ours an�����������������������0F�h�|'want th�W������W���������������❉y��t eithe������������������������b 2��Unot fus�9������9���������������u '�:L times ������������������������⥢z�rs but �Z ������Z ����������������>զ�r to ev�p������p�����������������G�;�e befor�[ ������[ ��������������;��ǣ��imple y�������������������������.��0�ises a ������������������������`6 �$*one has�0������0�������������� ��>�v�e time ���������������������������(ou have��������������������������z�7��� so you�� ������� ���������������=�����rs minu�] ������] ����������������{���td seco�#������#���������������T)���nd defa�������������������������ٳ'ݖ]factori��������������������������?5�r��ectiond������������������������v���� Qdefault�a ������a ��������������[3闬-ues tha�������������������������3�P~ƃ�ook up �������������������������vPbxU�"~uld be �m������m��������������&��v��K though�&�������&���������������V�b���^ little�C�������C����������������'���g ready ������������������������|�Ж6better ���������������������������� o with������������������������>h$��lictiona���������������������������+0²RAy use m�h ������h ���������������>��Ǘect sto� ������� ����������������O�l>ß� beauti�R������R��������������N��b�ew entri�l ������l ��������������Vu0��L1g s s ��������������������������㈭��,ion and�&������&���������������9t;!� wo list�m ������m ��������������D0S��/ttp doc�9������9��������������ο����ipy sta�r ������r �����������������'�ЇTrsonr h����������������������Kc;N��ptes a p�!������!��������������6��4���n the p�������������������������K;"�p�asures �������������������������|ǹ��correla�v ������v ��������������}9�F�)�en and �i������i��������������vYG��>relatio��������������������������ߝ��e proba�w ������w ������������������u�;Sobably ���������������������������+�� an or s�����������������������>�eG�@orrelat������������������������Y����Rference����������������������������Z�.% unreso�����������������������˨�f$搽f the d������������������������t�:��� feels �z ������z ���������������B�p��d that s�Y�������Y����������������qOn=��ng i am�9�������9����������������+����U�able to�d������d��������������K�y?9�N�s path �������������������������{�L����import �4�������4���������������b�`�I���ne at a�.�������.����������������j%��rectori�Y�������Y���������������z��%��Ztried a�7�������7���������������8~�m�|% the di�����������������������j��F�� ly neit�J������J��������������� ��E���end fun�� ������� ���������������v���� path a�c�������c�������������������� s not �|�������|����������������M����Qt the p�� ������� ����������������ĀFot gett� ������ ��������������@ �;H�^�ons of � ������ ���������������i�9��x simple���������������������������lϢ�at exis�������������������������"��perties����������������������`PP=��� pane c� ������� ���������������ҹ`�� �hm as a�������������������������S_��� nontri�������������������������0�}��Ա with a�������������������������{Et��_t happe��������������������������k�b�>� input �������������������������|��"��� fill a�* ������* ����������������IH��s algori�-������-��������������ëg�@�mpe len s�1 ������1 �����������������jk��ion in ��������������������������m��k�*ly an e��������������������������$� ��$tion in������������������������ה���3 else f�p������p��������������kn�%��+@i for p�������������������������{iD8���\d print�������������������������!�>L a way �������������������������s2I����]ithm in�P������P��������������Sva��\umutatio�����������������������������Qٱ�eld pre�����������������������'�����rm or w�@ ������@ ���������������υ�t�ng else������������������������� N�����8erm in �����������������������"���ʗ�; yield �g������g�����������������oӄ~ta and �C�������C���������������j�mޖ�making �����������������������7"���Ο plt he�������������������������'�!D��״ut righ�� ������� ��������������oɰJh�:Jtplotli�������������������������ߝ> �O in the�����������������������������s to ma�*������*��������������cխ�'��Qrmat nb��������������������������{������pdated �L ������L �������������� _k�ΰ�data gr�%�������%����������������D+L���ngdata �3������3���������������-5��ىotlib w�;������;��������������ۦ����:ot as p�������������������������r��Vingdata�����������������������[�����¦a accor�������������������������km\���1�u inpla�&������&��������������� ���Ļ nba so�>�������>���������������c<�Y˖�Hue nba �,������,���������������͕���plt sub���������������������C��{���c minor ���������������������c��Ɇ��Ik top s�H������H��������������{�#3��S�ics lab�����������������������{�{���rt inde�I������I�����������������S̖ks rota�c ������c ���������������c.~k�B�false f����������������������������it tick ��������������������������"�'zut look�e ������e ��������������6m�郾Sztebook �� ������� ��������������������bhon tim�����������������������VѰ���{Hf some �j ������j ��������������N�W��+ome dat�-������-����������������{|�k�to conv������������������������[���4me than �u ������u ��������������>r��c���s have �F������F����������������p�Nٝautil re������������������������yY\�D�d party�������������������������[߯�ollowin���������������������������;��a�ort rel���������������������������`�xm date �����������������������Ks�.te date�{ ������{ ��������������� t…�V with t������������������������bA��p a litt��������������������������kve none �2������2��������������{n�1��brom dat�������������������������7�$��ar year�� ������� ����������������o3�m� no thi�4������4���������������Z4�1�� to kno������������������������~��some da�a�������a��������������� p� ���'of the �������������������������M7� s s i� ������ ��������������:���ݦmersus i�C�������C���������������� �&��� seems �.�������.���������������;�nqJ�$r creat�������������������������S�<�Ÿ�alizing�Y�������Y����������������ҥp��D�at in f�3 ������3 ��������������sX< Dե�ural to�������������������������S��Y�Ɠ�rly sep�2������2��������������[�4Q�Ĕ�tializa���������������������������!���tializi������������������������� �������on to i�=������=�����������������&S�X6es so y�i������i��������������7�'v��S s that ��������������������������F�� o assur������������������������mntE�ψvariabl���������������������������\���W�nit wil�������������������������sЉ���noddy i�M ������M ��������������{�$H���a strin���������������������KK}K���ztring l�����������������������YbԴk�pytypeo�������������������������St2x�x�ll note����������������������� d+ԟ�ned her�O�������O���������������c����j� only b�����������������������S\w�H� Gthe ins�����������������������k�pR*��~an empt������������������������Ѷ�'��, about �_ ������_ ��������������C]�ာs�sually �����������������������&:����4H mutabl�[������[��������������'��h���s an in�*������*��������������V���)ᝰ this i�c������c�����������������U?�fgs comp�s ������s ���������������'����uu object�� ������� �����������������"���a from s��������������������������?��Ct right� ������ ����������������99���)ove the�?������?��������������+��C�{n subcl�/�������/���������������� �{�C�absolut������������������������������1cessary�� ������� �����������������V����l there���������������������bV�S���� on ins����������������������������Կ{ldn t f�������������������������0�3mQ�x` have i����������������������������ؠ���so emac�����������������������zn^ ���bar now�H������H�������������������Cchat in ����������������������[��X�othing ������������������������� ����t are t�6 ������6 ��������������;z�ҋ��� if you�����������������������d^ �uund put �W�������W���������������sWEd� s this �,������,��������������{�G.P��� ve bee�d�������d���������������b���Y�.seems t�����������������������"����� you fi�J������J�������������� )����K(root fo�7������7��������������s�"���X such a�6������6����������������Նe��U benefi�{�������{����������������Y3�z���utocomp�Y ������Y ��������������������W� then a�d������d����������������kz� ist loa�����������������������c�.n���ath ema���������������������kb��.�n mode �R�������R���������������۶8�I㙥list au�p ������p �����������������-�PYymacs a�������������������������� $;��S9 autolo�|������|��������������C���Z�"�to comp�?������?��������������K5���all aut�� ������� ��������������˔-���ًe after� ������ ���������������� ���plete a����������������������v���Ϊ�dify yo� ������ ���������������6��� e to ad�������������������������r�r?�Y�okup pa�F������F�����������������O���ocomple�� ������� ���������������8����� functi�����������������������:�%«�}Ctation �'�������'�����������������[䞌�son put �����������������������j�U�d�+: name c� ������ ���������������J�:V���ill sho�������������������������Ħ�1l in qu�t�������t���������������x�?��3�the cur�s������s���������������������ediatel�- ������- ��������������0���W�� defini�X������X����������������!�]�.� the do�~������~�����������������f��Qt to se������������������������h���с(y nice �< ������< ��������������S�p��5�bol at �= ������= ���������������2t��e the f�1������1����������������>�ˎta them s�9�������9����������������d�먂Vin gene�Q ������Q �����������������戤rjd edit ��������������������������7���jre s ex���������������������������2���k for t�����������������������cQ ��备 want t�%������%��������������#L��e�h�status �d ������d ���������������YI1��ped and ����������������������Ҟl����already�A�������A���������������c�Y����ead of �� ������� ����������������̑��H�de free� ������ ��������������jQ�����e s s ���������������������r�����)th aera�C ������C �����������������hZ��ed init������������������������ꚽ��v� but it�E�������E�������������������/�!�ils dat�������������������������3w�7t�5 ationhi�c�������c����������������4��Xge http�o ������o ���������������a����e/lright �6������6��������������V����qp datab����������������������������L�5]igratio��������������������������:��7ions al�w�������w���������������C.Ì��Hmation w����������������������R������age py �� ������� ��������������Z� :��es me t���������������������S��� ��Bn someo�% ������% ��������������0��U��lGing the�. ������. ��������������'7� �;�syncdb ������������������������b0� �}�ations �����������������������K! v�mew app � ������ ��������������sL�K�ڭ) to the�����������������������"�z�x have t�������������������������#����� as soon�������������������������Ç'�V��/cdb dja������������������������������Seated t�����������������������*u\5��:ons del�I ������I ��������������cu���rom you�����������������������b�v~�2Otion an�B ������B ���������������辂��R_you alr�I�������I�����������������T(��2�ase so �������������������������+eǜ�that th������������������������l�~�_�roject ���������������������������x�i���db this�O ������O ��������������c~[w���9ach app������������������������ yv��@he init�| ������| ��������������������[migrate�� ������� ���������������WX��dTh table��������������������������ù�r apps �7������7��������������G���T��#ion app�Z������Z��������������� ����M�e fake �����������������������P���S���uth mig�������������������������,��%��qext tim�s������s���������������6U��Fon app ��������������������������}��jr initi������������������������''u�)Ce apps ��������������������������UX��{�me migr� ������ ��������������SK"�‹�on file�V�������V������������������ ��>Vn pytho�� ������� ��������������{��y���� s inst��������������������������O�P`蜮uld lik�������������������������GƜ�*�ionary �������������������������m�[�WOme now �����������������������Kȩ<���name bu��������������������������c�f� i coul�����������������������ÍE���J;t all t�� ������� ����������������uR��Hc key f������������������������)���Glike th�� ������� ���������������}�����ame is ��������������������������'�݈�ts valu�������������������������9�J�1�C�edit ok�����������������������������e�%�ormulat�o�������o������������������ڞ'd becau��������������������������]���thought���������������������������l�e�key nam�� ������� ���������������3)@��ut inde�� ������� ��������������� d�5?to refe�4������4��������������1�W�����s by de�1�������1�����������������2���.eys the��������������������������Q�D����f all t�T�������T���������������ѝfy���o for k�F�������F������������������k�k[ key va�x������x�����������������ƪJ#in mydi��������������������������� �ve a ha�} ������} ��������������ѕ1��ɀ0hope i �� ������� ����������������b%:�Ppels man�� ������� ��������������IX��ڟU�is save�� ������� �������������� "89˞�Kl user �d������d���������������`>fC��3ects ge�O������O��������������� �;X�X�ser use�������������������������X�this sa�����������������������Q���ګ�save sa��������������������������i�9r readi�� ������� �����������������OJ��\riginal�� ������� ���������������V '��#)timal n�� ������� ���������������>�y����ead of �P������P��������������BG�����e idea �������������������������Ғ�G�Y�jects g�����������������������b���'�Mdd bar ������������������������>����id app �� ������� ���������������E�X��ym app b�����������������������cY��ϵrs foo �q������q���������������PM�_��-ert int�p������p�����������������%R���oo bars�������������������������Zȗ� bars f������������������������ ��A��an do b�9������9��������������b2Ϗ pk bar�Y�������Y��������������� r�p9��J bar wh�w������w����������������,D���id inse�@������@���������������&�PL�L�t app f�� ������� ���������������@vd��z0o id ba�4�������4����������������fLU���that yo�������������������������:�����ΰs get p�������������������������wu~�@=app bar�����������������������h����re app �� ������� ��������������P�™���?alues s�����������������������H�l̍�i�s foo i�����������������������P������o bars �����������������������P�y̼�#app foo��������������������������>#��dere app�����������������������������@�a�gn a li�����������������������8��c�e�ch the �F������F���������������P92��q�ments r��������������������������$S��'�s id ap�����������������������@rH:׎��and app�+������+��������������0)A����nd the � ������ ���������������2s����rs add �� ������� ��������������X��8�1nal of q�� ������� ��������������P�J�ޔ�Ep foo b�� ������� ����������������W��[=foo bar�U������U��������������@BX���M inst c�����������������������@�4�`�}python ���������������������0V���FMon whos�z�������z��������������� � n�!6ictiona�>�������>���������������8��i.���he key �����������������������@03#��Png odd �p������p���������������/���.xa hello��������������������������K�n���eto acco������������������������� �Y���bove fr������������������������ �p�i2 b dict�H������H����������������Y�Φ�'o use a�N������N������������������ή�lly be ������������������������=}��g�want it�s������s�������������������s in py���������������������8]2�N��?ace spa�����������������������0��R���Yline ta�� ������� ����������������D��� is at �7������7���������������,u?+��cs empty�������������������������ѳ��>he simp�� ������� ���������������G���ed as a�����������������������0b���owi simpl�� ������� ���������������9y^��yments o�c������c���������������� Ȗ5Cay to c�)�������)��������������������܍hould b�K������K����������������Q$љwse if e������������������������ Vson a b�0������0��������������-���y�isk is �����������������������n� �= np arr�Q�������Q����������������O�� �est if � ������� ����������������;n�~��Gin ipyt�o������o���������������N�fe�K`oks and�������������������������z�Ð��ҥonda a ���������������������҄2j7�o� starte�����������������������LB�U���orts an�/�������/���������������b��٢�msion to���������������������b���7ich is �� ������� ��������������*a.�ܠart an �t������t���������������Lo.!���my curr� ������ ��������������b�����here is�N������N���������������[HT~�;�es a sp�>�������>��������������������߆{at dete�������������������������}����them th�]�������]���������������V8�?���ments c���������������������I�RC�]� interf������������������������B�� have t�;������;��������������������++nts sec�� ������� ���������������v͔�� Lrnels u�� ������� ���������������N�9ȸP nda ker���������������������nz���� py pyt���������������������V�"���o�all not�D�������D����������������M�H6��vate py���������������������������Җ��pyou sho��������������������������^�'�ʒhon and������������������������G����Kn pass ������������������������S9���j� to ipy�}������}���������������zQ��8�o chang�������������������������Vx��1���python �� ������� ��������������ƫ&���'�rmation������������������������_�{A��2e the b�h������h��������������C���f���ch simp�A������A���������������,I��sth toda����������������������� � O>��Hif a we�� ������� ���������������l��Y��vf the h�������������������������K `���tcode m��������������������������@LC���� http s�����������������������3�s�-�a5www goo�� ������� ��������������+� g�9�o get o�)������)���������������L%r��[�thon in�� ������� ����������������kɽge this �!�������!�����������������_7J��ow can �5�������5���������������ᚥj�2use os �9�������9�������������������q��G first �i������i�������������� �2�[��he seco�� ������� ���������������B0ڽ��znding l�A�������A���������������9��_��halling ��������������������������#5�̟'�alled p�)������)��������������i��4ȁ��i run l�9�������9����������������ՙ�� 4ldd usr�� ������� ����������������La�l�t found�/�������/��������������������Wso lib �������������������������򊄱5ere to ��������������������������Y��� �ibpytho���������������������������-j���b if th�� ������� ����������������k��<� change������������������������.nb���add exp�r�������r���������������)O�I܀�` etc ld� ������ �����������������Xi�i a syst�c�������c����������������s�чst how �������������������������}s�Y�aracter������������������������Aп�Ր�ue has �� ������� ���������������� 6W�¢f it ha�� ������� ��������������@���5��"nd not �����������������������`9�Ff��ven but�� ������� ���������������dP�5� other ������������������������� ῑ, there ���������������������0��@ ��Y with t�� ������� ���������������|���map xra������������������������l���"ke that�����������������������p ��h�p�g for t������������������������D�>��Gx y val�[������[�����������������ם�%K slower�b������b��������������( ���O� k in r�?������?���������������ƚl� onverti����������������������������X coords�i������i��������������h��fD�ϔ x flat�^������^���������������@IC��a flat �*������*����������������O�g�<ct googl��������������������������>�����Bwords t�p������p���������������_�ߦ���uthenti�� ������� �������������������4�nticato�� ������� ������������������-�ds hotp�����������������������8)����T�ch mean�K������K������������������G�s� for ev�M������M��������������(�<zo��ow goog� ������ ���������������6=2��s<te hotp�;������;��������������`޸�����ind muc�� ������� ��������������(�=�'��rne inte������������������������ԫ���Ž decode�� ������� ����������������'D��P~ls no h����������������������� ��G��fffff r�����������������������`qdѐL� above �������������������������\Ph�� using �����������������������(Ap��oid eve�� ������� �����������������Ĩ�ch inter�� ������� �����������������g2���o key p�� ������� ���������������� w��lng wron�2������2��������������P?���)totp in�C�������C���������������(��⃮�thon li�� ������� ��������������8ū���o set a����������������������H0yD��Jem seem����������������������ADi<�#� value � ������ ��������������Ps3hͻ!wing co������������������������������Oonetime�������������������������Z �TMstruct �c������c����������������=�j�(ret tru������������������������%y�b#return �����������������������8�KK�_�n get h�A������A��������������`V��!� token �� ������� ����������������X�]���uld inv�� ������� ��������������P�n�`� token �����������������������s�.���et valu�C������C���������������(��g)viding ��������������������������ã)�� interv����������������������A�L��]� after ���������������������������K�� should������������������������Ļ��@egers a�����������������������{����ZJin the �������������������������q@����t it mu�2������2��������������Ѿ|Y�lksurely �� ������� ��������������1���}� want o�� ������� ����������������y�\ᨎon the ��������������������������cs��� want a�� ������� ��������������R�[<�v�ect you�W������W��������������c��Tӂ�c based�t������t���������������EB�u��rng code�����������������������@c��%� secret�� ������� ��������������0F�2z���rint i ������������������������1w#ʠ�6o i you����������������������* �ich is �)�������)���������������Џd�̗XSept if �������������������������X���-* to the������������������������遲���Xcalled �����������������������H��|?�@�hon i m�������������������������0�v��$ s and i�/�������/���������������ѩ&���nt call� ������ ��������������(p�T���* self a�����������������������X�3�f�!�what is�� ������� ��������������Z�R&랕 of all�A������A��������������������'e to th�� ������� ��������������8�L�B��rt and �/�������/�����������������vl���p differ�1������1����������������^�<��@ as f s������������������������g��the ins�|�������|���������������XE).d��is atta�������������������������vd��� usuall��������������������������)a8���d on th��������������������������~�����e which������������������������_w�▃ed the �6������6��������������%�2fD��t a nic�������������������������r �V�e of a �p������p���������������N,Q��U�the siz�r�������r����������������2��݅�3rabs su�}������}��������������:%BV�R�ze star�� ������� �������������������T�r f in ������������������������l�b���� f tota�/�������/������������������� �$ for fu�F������F��������������֬ߧ �A�use os ��������������������������! c��� to gho�������������������������N�h0��!ile rel�4�������4�����������������#�r�m pypi ����������������������O�O>�(zndir s �����������������������+�A�΋Cshat i m�_������_��������������+�+H���ce to a������������������������"�*��C�from wi����������������������ll' ī� this d�����������������������i��?���lue wit���������������������� �h(ȿ# in pyt���������������������0�/9>�M� parse �Q�������Q������������������C���s s in�� ������� ����������������2���n s mul�� ������� ���������������z_r���X from t�� ������� ����������������n��@i def g����������������������� @D-�tznate pr�5������5������������������T�% result� ������ ���������������7��ґ|e code �[������[���������������}�,�Gprocess� ������ ��������������X\��|�1Ss a pyt� ������ ��������������h�R���n�ion in �����������������������H�J/�}�interru�������������������������G�E�`Zn t be �9�������9���������������@���a�\�certain�������������������������Ѝ����M�e that �F������F����������������?~�#8is spec���������������������������L�Ԩ1interru������������������������*%~�� to spe�������������������������;r�ݔȢ&th resu�<������<���������������kUH�code do�5������5���������������^6m��or data�����������������������ស w�7� it bor�Q�������Q���������������i��到� string��������������������������O���ces into����������������������"���Ttring w�X������X���������������W�$��b�s a rea��������������������������Ak�W��� who ar�����������������������ʿP�V�KBken all��������������������������� 8O�Z� am usi����������������������������#���end jas������������������������b�8�u.his see������������������������&������like th�����������������������P��9��$;ight no����������������������N!��/2d they � ������ �������������� �����nd afte�������������������������hzN#�� jasd r�� ������� ���������������~�qğ� result������������������������2B�6�·e inc t�� ������� ����������������IwM��� http b�����������������������@��c1���kittles�������������������������$���b�notafan�������������������������Y�Ӆ94apple i�5�������5���������������������dia mic���������������������BQ�N��Zis the �h������h��������������2��qLJ�: lookin�����������������������B�."�1�ne lear����������������������O�-m��l model�������������������������~�nXئ ntity r�.�������.����������������8�� �hings a�� ������� ��������������;���;�a� word i�����������������������3&��=��%n look ����������������������I��� tarts w�������������������������!"k�f��(s the d�� ������� ��������������y�����le over����������������������5��&���sifiers�� ������� ���������������g�%Q��multipl�� ������� ��������������(e=���9�ible to�-������-���������������~�(���list at�������������������������H�x+[��e eleme�������������������������`v7Kʍ~�g like ������������������������!�9��51list th�b������b��������������8�T5�� delete� ������ ��������������n\'���{acent i�����������������������8f����3�e best �������������������������>��E�acent y�-������-��������������H`4p���yntax a��������������������������Q$�āecific �������������������������`�y��ѫ�not sup�������������������������\͒�����hat you���������������������,�N���@�d progr� ������ ���������������Д���env no �����������������������Lj�6d߇rng glob�����������������������kx����� seem t�������������������������ƕ@��Wa virtu������������������������״�i�sion vi�����������������������‡��F� python������������������������������Fctalling�/�������/���������������:D���Eollecte�������������������������ʆȉ � �stalled�;������;��������������Rb����Jpip e f�����������������������8K���JY get a ������������������������J����w� foo fr�X�������X���������������ڗ��U��ashrc f������������������������b6��T,forehan�� ������� ����������������]�Ȅ�rings a���������������������������7�����rts by �)�������)���������������v�J�I� things�����������������������������.���habetic�"������"����������������y��� �ort so �����������������������)?�#ڴQbe sort����������������������� �8j����should ���������������������������-t����t is th�����������������������`��\��f there�� ������� ����������������b�g� best w�V�������V���������������H����nst ibm�e������e�����������������k�ϡt more ���������������������8,�*�=�te the �~������~���������������bb*�1�n icu a�y ������y ���������������٢� ���hile st����������������������������K�tween t�������������������������he?�n�\ation h������������������������ �\��m#ractice�� ������� ���������������#�޳�ted a b�����������������������s�H��[dr creat�>������>���������������&B�B��rted a �������������������������Z�� apps u������������������������+سo�>�use pyt������������������������`�:���Esing py�X�������X����������������Ή1x�s@hat thi������������������������P�sI��� the mo�������������������������3��Ѱ�google �������������������������˹���jango i�� ������� ���������������b�>��4n pytho�W�������W����������������w���r� it s s��������������������������' ����able to�9�������9����������������ƒGded by ������������������������V�����|n djang�5�������5���������������1��0��Arting e����������������������1/��{�ting ga����������������������8�׺�q<nd our �������������������������1o�M���gears n������������������������ES��B� librar�a������a��������������������ssions �M������M��������������bس�\Sy chang� ������ ��������������0���&�ˁtire dj�9������9��������������H.�\�\�t using�H������H���������������䈸��nting o�P������P����������������\a4���n using�� ������� ��������������“�����cy inexp�� ������� ����������������/���pes that�.�������.���������������˜�/�c� django�� ������� ��������������À�y���jlogies �)�������)���������������� ���R� on gae�E�������E���������������ɞ9Bľ��to bigt�����������������������@ֻR!��[ing abo� ������ ����������������˩ ޛ�ou just� ������ ����������������#�{��S scale �����������������������|($���K�me pitf�� ������� ��������������!,a���hkf you u�*������*�����������������Hv�-( you se��������������������������ݾ���Vny reas�������������������������r�^���structu�� ������� ��������������R�(ѡing for�������������������������P��"��{e thoug�;������;��������������pɏ#r�:�onent o��������������������������{��� gae wh�T������T��������������8��V��� using �X������X��������������B���8�P t and a�� ������� ����������������BH�>emple s�>�������>������������������J��ion how� ������ ���������������s�p��92ed serv������������������������sѶ2�zJ that p�0������0��������������+k�q̳zides as�����������������������#S$�9��oad bal��������������������������.��"unless � ������ ��������������q�q5>�b�e borde�������������������������jB�i�4�ng that�� ������� ���������������o^���xr choic�������������������������J͗��ؠ� d say �� ������� ���������������r5���`�edit ju�� ������� ��������������(OwI���ometime������������������������;��J�ũrun sql�~������~��������������F��Z���&ts on y�������������������������xzК�pcoming������������������������XV �m�e which�� ������� ��������������0�N����}om goog� ������ �������������� �m4ئ�ject wh�������������������������0��y��Sing wit�2������2��������������F�?�C���latform�s������s��������������ٜ����ed the �P������P��������������+���S�m signi�O������O���������������+�+� �structu������������������������@��K�нbetter �W������W���������������j��� you ca�y������y��������������j��k|�@�but for�3������3���������������;H����� people��������������������������͉ python�����������������������"5_G �.�ve come���������������������������� ���data to�9�������9���������������b(�܊�&re it l�� ������� ���������������(��� �e sendi�� ������� ����������������/��˘ion in �.�������.���������������y��.��a datab�� ������� ���������������,`�?��`n objec�O������O���������������k�.z���sed as �����������������������e�ç��memoiza���������������������i(g<�g pickle�l ������l ��������������:�;S��%an have�!�������!�����������������&�;�fpush op�K������K��������������hѸ��nd an e��������������������������a��Y relate�����������������������Cv^}��Fwmallest�����������������������h��r��!�d list �������������������������A��}/�ևous imp������������������������h����? rbtree�!������!��������������E�p�t��jinding �� ������� ��������������@�n\��K�write s�������������������������e[Y�rossing�^������^���������������n��퇝thing b�����������������������D?��㉍�aries a� ������ ���������������Lg$ɶhen lot������������������������AY��E�a dimen�D������D������������������q�e peak ���������������������499��ݸTlocatio�&������&�����������������z�18alues a����������������������&k���{�nterpol�� ������� ��������������̣*��-�only ca�'������'��������������Lg����ove a c�����������������������̇C2�m�re the �8�������8���������������tq�-��� to wri�� ������� ���������������@uݤj1unction�������������������������lT������well up�����������������������ԺOd��ye creat��������������������������\ٚmUe inst �������������������������#����;and i v�����������������������4��ғ�:}es come�����������������������4a-v���review �������������������������<�%ʧ�r�d this ����������������������������n���=reviews�9������9��������������<�m/��v9ta it l�����������������������/m����*hat bei�����������������������?���R�mooth s������������������������ky|�„� the pe�3������3��������������/�����Eou do n����������������������R���f�ions if�������������������������>,�beconds � ������ ��������������fߑ���e time � ������ ��������������?�Nc��>s i hav������������������������[�l��e7en the �H������H��������������w@����O�strftim�����������������������on��d�k�properl�E�������E���������������/nxT��Bime int�� ������� ��������������Fi�� the fr�������������������������!ȟ�n�� remove�F������F��������������9ǃ�c�l�mport c����������������������ş���� unter v�����������������������yb�9Л|5unter m��������������������������y��� inst u����������������������nb���e ubunt�������������������������{{���� the se�+ ������+ ���������������v4�ѐ��to unde�����������������������J)���a� of cha�>�������>�����������������3��� this d������������������������t0p���d for a�D ������D ���������������iU�q�"�c ubiqu�����������������������bߛ����tes the�2 ������2 �����������������f�=�iles be�_������_��������������Z�����$�his sit������������������������V���Ūthe fac������������������������,t�3�ngs as �����������������������Z��5/��emained�������������������������rz����1tes thr�����������������������J~�a�rating ����������������������i�Ď��ts base�7������7��������������:!v��̜racters�D�������D����������������� ��racters�W�������W����������������#=��g instr�?������?���������������B�苗��riting �H������H��������������Ӽ��w���ded in �������������������������J��a�st of t����������������������u"˹�thand co�C������C����������������ɛ���d inclu������������������������f0�W��@ng in o� ������ ����������������z��?text pr����������������������������׏` until �~������~�������������������M� encode������������������������ľG��L�ter str����������������������H����aracter�6������6��������������;�9d��ICefined �J������J��������������� ������ e g as���������������������������i�Dunique �< ������< ���������������o =;��ents no�����������������������������Srsal ne�������������������������t3ۜ*i have �����������������������7fA�L��icode c�������������������������_�'1 single�����������������������6E �~�ents a ���������������������X� *�R�graphem�B ������B ��������������?��M����em unic������������������������Wj�ɰ� python�|������|��������������oxEyv���ved cha�����������������������g����)re actu�����������������������WXIL��Z!e unico������������������������~^�.��-lies th���������������������G2���Qp percei�������������������������'�)�%ٙoaving a�����������������������?��鹭racter ��������������������������}�x����is its ��������������������������TI��� stored�����������������������og�6��ٝde poin���������������������������`Aalleda ��������������������������` �gs str � ������� ���������������/�����B for in�D ������D ���������������gG�Κ� litera�������������������������_lq�����e simpl�'�������'������������������J��J� form a������������������������摉�{�ally wh� ������� ����������������-=��u shoul�F ������F ��������������o T�Y�d�e encod������������������������~����can che�1�������1���������������?m�ay��Xects py�����������������������7�\w��K�lp copy�<������<��������������1���%� encodi�������������������������QĘ�>�an be e������������������������xD�w2o its b������������������������H� P�Y� charac������������������������p�1�)lblank i�D������D���������������y�V��annot b�����������������������G�G^��{oding t�9������9��������������/��e���ith a u������������������������+=�A�cter st������������������������K�y=��� encodi������������������������ �Oi�<�ute pro�S������S��������������?E�{�should ������������������������ _���'me the o�������������������������>�ȸ�general� ������� ������������������_�� �lt enco������������������������$�~-�8^ing cat�������������������������`��gof stdi��������������������������x����R�e set t� ������� ���������������gge����Ong utf �?������?��������������ۨ��ȸ�you put������������������������1������ble if ��������������������������r^�a���this li������������������������,4���his for�L ������L ��������������������cale im�������������������������WW�J)���ith pym�����������������������������^eature �����������������������������6���s faili������������������������zH���0ngodb c�������������������������OC&d���llows i�H������H���������������s�K��.� connec�����������������������oCKG�� nection�O ������O ���������������ƍ�A���st in d����������������������Z.�C�ns scre�$������$��������������W��y�Hvions sc����������������������F�Q�aO mentio�W������W��������������� ���V+n site ������������������������'3��{G py mac�Q ������Q ��������������o���ݑ0st item����������������������et��LLsing py�����������������������^�W�i� anyone�*������*���������������|t���_d direc�� ������� ���������������bi�ҩ� to sor�������������������������-�؃� atch re�Z������Z��������������.�ye�g�s mro d�� ������� ����������������Ԣ���malong c������������������������ [����Jin a ty�~������~����������������y���$ass mai������������������������O�V�Z�s c a p�p������p��������������")�0��,Y a type�����������������������R�5���f;e class�V ������V ��������������B�H�L��on up t�������������������������-3���eritanc�9������9���������������X��l��Zin d cl�G������G����������������=����n a typ�r������r����������������E�%��Xd no cl������������������������� @��=e that ������������������������j�2S���ame lev��������������������������(�� and c ����������������������D �f�  more t�������������������������σ.�"�(w define��������������������������R��n\ class �h�������h����������������ٽ�bt s s i�����������������������.� Ợ string���������������������������K�l���example�������������������������� ���>� replac�����������������������/�Ą���}is prob������������������������������)t pytho�` ������` ��������������G&tF��Ohed with���������������������������k���ving me�y������y����������������ě��ulator �d ������d ����������������?���cctal ar�����������������������G%j��ϊ�with a ������������������������1��a��octal r�����������������������g�5[��nntly co�2������2��������������A��4�5� c like�����������������������_�fɯC>o inadv���������������������Y�ߡ� with t�����������������������?�E`�cdngo ten�������������������������������pn but i�A������A�����������������'��Kpace wh��������������������������6�F�z�cters w�������������������������7K4S� Rodeladm�g ������g ���������������WMUի��e easy �j ������j ��������������_|%O,��Cn this �l ������l ���������������j��!�YD follow�]�������]�����������������L�� print ��������������������������j%�w� �st j is�����������������������2�����sIing to �C�������C���������������J�(I�.ration �V������V�����������������L���� the en�|������|��������������j��Y���` l s s�1�������1���������������:�A����n pytho�q ������q ��������������ҕ����|�python �Q�������Q�����������������/�Kjt what ������������������������E�����ython i�k������k���������������u];x��,ig enou�� ������� ��������������Z�|8���ision s��������������������������I�Ԃ��lows me�C�������C���������������a��ڡ�� instal�����������������������yF/G!��Cimport �������������������������q��YP��install�� ������� ��������������a�|l��a�tall ar�{ ������{ ��������������Hn0ӻ0�ger thi��������������������������i�X��rtitle b�����������������������2�,j�U� would �����������������������������dy joeb�����������������������ӛ�ʙOcter bu�@�������@����������������K^i�4/joe bob�� ������� ����������������mJ�$]ying to��������������������������OM���[�kage bu�1�������1��������������� ��:��mework �������������������������R�+�A��sql pyt�-������-��������������2A�Z¨�olders �������������������������������om setu������������������������p�6s�]Qoutput �����������������������G�}"�"e strin�o������o��������������'���8��Sup posi�� ������� ��������������yIV���six py ���������������������ߗ�犚�odule n��������������������������.!���setup p�����������������������$����a in var�`������`��������������|E�>v�q�log in � ������ ��������������<g�q����k pro j�G������G��������������,��e�� use th�/������/���������������~H`$��Oor pyth���������������������,�H����6tall my���������������������������}���!�ibmysql�-�������-�����������������ȿR� parse �@������@��������������?�w>P�\under g�������������������������O<�2ן>�ou reco�����������������������wܦL��� include����������������������`���_he link�������������������������)��ޔ�erializ�����������������������3��4json s �����������������������������t stori�0 ������0 ��������������I�iLܦ�is arti�1 ������1 ���������������V��j�LGuntime ����������������������� h���w�an impo��������������������������'� ���Qmport j�����������������������kt%{b��^r a com����������������������� ������ould do�������������������������<��B for pu�4 ������4 ��������������s��E��� if you� ������ ���������������~}R���� api do�����������������������+\�I_python �r�������r����������������\6x��:\the pro������������������������?k���atform ���������������������O�2��� Hle why ����������������������a%��֌ print �����������������������_?� �ڝn after �����������������������gdˈ첲6d copy �����������������������_m�B��� find i�����������������������Gq�d��83ver fun�����������������������g�w�a�a3ou call�� ������� ��������������_��5 ��\tegers �����������������������G�ӣ�*you can�����������������������?,ʗ��l�ou just�����������������������ﰑn��h�aces it�J ������J ��������������������Emutabil������������������������Ɂk��- object�� ������� ��������������YY��Q on the���������������������������ܞ�o the f�������������������������?�{[1���er lang�A������A���������������c��*�Lst reco�P������P��������������o[��1� projec�h�������h���������������������my defa�������������������������u�{�WOized i �2������2��������������g�~�2��gnore f�t������t��������������,� �4�ons for�+������+���������������@�����Viled ob�g������g��������������R��ª��or me i������������������������:z��9tributi���������������������_o��2�project�� ������� ���������������0~Nˍ��docs bu���������������������������u�Y�lent in�#������#��������������')��ʨ�g to im�������������������������o����HG contai������������������������<��,� g separ�I�������I����������������~�� <t as a ����������������������):\����ly what��������������������������;7�_���y inst �H������H��������������ǎ֝����e wild �� ������� ����������������<����N i woul��������������������������L�� �flask h�d������d��������������_���wȏb flask ������������������������D��ڜ�� e g ap�~������~��������������zH�􁻱set def�� ������� ����������������p��3Eug poco�w ������w ��������������a�a�0���xisting�t�������t�����������������9_C���s where�������������������������(ZB�J3a lot o�n�������n���������������Q@��L�7Jnitiali�@�������@������������������;P��pon fir�����������������������������`�®hange o�����������������������)A� ��Źbut the�w ������w ��������������r�t���_o be ca�S������S��������������Z�4�3��� from t�} ������} ���������������~It���nput is�����������������������bϛ8��33ping th�������������������������x�!�cKand ove�����������������������j�� s�;�def ini�����������������������OE�dŌ��n pytho��������������������������/6e��s there�O������O���������������z;���#Ge a dec�����������������������<�Y&��e} under ��������������������������lUj�%�ifferen�����������������������d�qv��i lazy f� ������ ���������������=��W��� if not���������������������������Ȇ���gelf att�� ������� ��������������W7N�a�R�bject l������������������������ph��UEtest t ���������������������i����� a t a �����������������������łY�ި�z now i�� ������� ������������������+�unique �s�������s�����������������:�>�v�e inst �h�������h����������������w�3���nfigpar�A������A�����������������E�t with ������������������������L~�ܻ�ong tha�����������������������,�ѡWer file�3 ������3 ��������������+�:z��( i coul�6 ������6 ��������������# �t��� python�� ������� ��������������S�d�~��reading� ������ �����������������+Z�m�e eval �8 ������8 ����������������ӻV��p the ev�~������~�����������������Z��� s inst�����������������������O<� �#the pre������������������������`�Lr�%�in vim �2������2��������������7����� the li�������������������������?;P�����functio�s������s����������������s�͡�ion abo�2������2���������������M�,��.�n this �~������~��������������όt]q�Xfunctio�����������������������_�Nv��ike it �������������������������?�a���^fter i ������������������������Y���pse i v�� ������� ���������������;�����n your �����������������������W �q@��ment in������������������������ ����N�le pclo�3������3���������������+�풸�� can t � ������� ���������������Z���n�k et to u��������������������������;�Z�ution f�t������t���������������H�3��#Iod hack�������������������������|A�nm sys i�����������������������_m�i�-Wdoes no�9�������9����������������+��σtdefaul�������������������������"8�Eom sys �����������������������Ť$t�C�eak cod�)�������)���������������_E��v�̧default�,������,��������������j�Ca����o log t�����������������������"#���MM runser�b������b��������������z� ?���nder ap���������������������������@���#ibility�x������x��������������tw�r·��go logg�����������������������,gb�n���ose for��������������������������O�,� rmat le�����������������������wt�陾_ole lev�������������������������zz�բ�ler for������������������������շ<J your f������������������������� �b.see htt�5 ������5 ��������������;�ذ�F<hon str�Y�������Y����������������l�)���dumpfil��������������������������Ӽ�฽eated u�������������������������'R�V�r� est is���������������������?M�p���E in pyt������������������������W��8 dateti�����������������������_�ш��B+ime obj�l������l���������������n������to have�%������%���������������f,�zӾ� howeve���������������������������� ��»e date �������������������������>�L���trptime���������������������������n=��(�y date �����������������������A�g3�m�rom dat�����������������������)-�%�s~tue jun������������������������9��x�n datet�T�������T����������������ZP��ILe datet���������������������2�U*�t�ptime f������������������������7�]�}Hat it a����������������������� ,ͮ�� that y� ������ ��������������˛ݍ�1il sorr�u������u��������������Ԍ=�պ� ve date�������������������������?�t���3)cs and �0������0������������������ ^emy ove�.�������.���������������*�t���x�prefix �������������������������'�;K��Ptey s ��������������������������G�(�s there�����������������������O�R�T� <riable �����������������������_2�>7��plement�8������8���������������|���� left s�������������������������o�k{]�\�wanted �� ������� ��������������?Kk"�� i woul���������������������J���#���a trace�������������������������7�?�H͸&tdin li�9������9�����������������/x��a strin�������������������������2{���DE cc a b�( ������( ������������������™�Et requi�, ������, ���������������H���*�reg s m�Y�������Y����������������׿�u�!At timer�P������P���������������]qZ��� encode�0������0���������������P{>�ۢ sum or�����������������������;x����"Vin comm���������������������������j0�߮�c a bb �����������������������/t�Y��T�he adva�����������������������߄z�G�2�nse of �Q�������Q���������������?r���� benchma�����������������������S��� �orce it�~������~���������������^�ك�7�t struc�����������������������O1�LO�J�ortiona�S������S������������������M��V in pyt�E������E���������������(���4{b y cc �������������������������}�3�tes b y������������������������� � >_�� this a��������������������������&{�e� of arb������������������������>`k��,} inst d�������������������������g����Emke a st�����������������������/�j����dt of th�E�������E���������������w<�����newinst�N������N��������������!�ӫz��tually p�p������p��������������!��56�3ating j������������������������4�S�0�f the q���������������������������(�s much �h�������h����������������̵�d��ow of w����������������������������'�Õ� have a�@ ������@ ��������������� kǮmm in ja�������������������������o�vkY�yCtrying ����������������������������3�E�a more �� ������� ���������������u������t class�[ ������[ ��������������O�C.?���parts m���������������������W[L�vm getat�e ������e �����������������M�� were t�@�������@��������������������*pe date�� ������� ��������������DA�p�time a �������������������������1<3� at work������������������������Tw���3�red tha�*������*���������������h�M��qimport �������������������������OPS-�؇s case �o������o���������������^5a<��l modul������������������������;�3M�RA in foo�I ������I ��������������O�/�^���dule fo�/������/��������������BR�|�e to fo�������������������������-�HJ��:ave to ����������������������������dq��rts of �t������t��������������ϓ�"|��n we do�����������������������rA��[,e loop �& ������& ��������������I���*���s this ��������������������������h�2��`�tantiat�_������_��������������w�ն��,� python�������������������������r�6���,g in py�����������������������_�� ���ally i �9�������9���������������'�#�ʉ��dom cho�)�������)���������������7z�G=���ong str����������������������������,�"Xom getr�/�������/����������������$v�~ѕg out h��������������������������r0���i came �����������������������b���щpk and i�r ������r �����������������;��[a mil r�� ������� ���������������w,b���g bits ����������������������Dp�ӱ6�mhex uc��������������������������cĠ�d out t���������������������������L™�|�cters c�������������������������5r s just�H������H��������������7�Q2���how to �~ ������~ ��������������Z�N�$��6b sendm�9�������9���������������g%�j��s the p�� ������� ��������������hT�;H˚�uld be �F�������F���������������WFE����-r to co�6������6��������������?~;8퀲act onl�N������N���������������~ϭ���t the e�����������������������oI]Q����e a str�P������P��������������7�nt5���wever s����������������������������a��, msg to�Z������Z���������������i^n���ity exa�M ������M ��������������������m smtp ������������������������a� ����xample �n�������n����������������"XR?��om john�������������������������'�������subject�������������������������P�,S��Hc msg as�P������P��������������8(vS��G�thon s �y ������y ��������������Q� ��� of pri����������������������/���_�printf �����������������������2oM41��int mod�N ������N ����������������(/���ion ret�����������������������’�\����epth wi�������������������������Z���ample i�1�������1���������������w�p rڷUlast ke�+������+��������������2�Ǒǯ� s s in�������������������������J �{0m using���������������������o~�Q���# the pa�~������~����������������L����but pri�Q�������Q���������������� �#z�>�tdout t�b ������b ��������������?mȡI read t������������������������/=��ɏ�d that �T ������T ���������������Pc�j>eader i��������������������������w�� � sys std�������������������������KFh���% dout ex�����������������������s��� ��Oa eleme�������������������������~0j�8enttree����������������������W ǐ�syntax �S������S��������������rM������mlns xs��������������������������l��rdfs ht�������������������������M2���ut http�m�������m�������������������geague r�)�������)����������������{�8j�@�league �9�������9����������������;n>���9mment o�����������������������/B4�C��������������������������������������|:���������������������������������:����y��������6������6����������������E𼙫���������������������������������C��B�������������������������������S�a��!Q��������������������������������|����������������������������������G��9������������������������������������/H���Z������������������������������������������������������������������7���G��������� ������� ����������������5M�]���������� ������� ���������������ϝ*��9M�������������������������������>l�{�����������������������������������|����������������������������������Z�ʞ����������j������j���������������������/�������������������������������9�����������������������������������w? S��\F��������� ������� ��������������g]=5����������?������?��������������ϝs��F`��������� ������� ���������������5�`��:�������� ������ ���������������O~����������������������������������y���YM�������������������������������\�Ҽ������������������������������������7������������������������������y)`�x����������������������������������Q�ך������������������������������Y�ˎk�����������)�������)���������������APu|'����������������������������������A#��a�\������������������������������уj�q��p��������;������;�������������������wD��������E�������E����������������eE���������������������������������q��R)��p�������������������������������.TEw����������������������������������y�B�jy��������������������������������6kD��r��������I�������I��������������� �<< �����������������������������������Uz��������������[������[����������������˼��3"��������j������j����������������K��J��������v������v����������������bn��̱������������������������������łT�kɽh��������� ������� ��������������u�X��l����������������������������������k��V̋�������������������������������Ťۡ��#���������������������������������������y������������������������������u�U?F��������������������������������%�k@>�lk��������|������|���������������� B�a���������C�������C���������������� EV������������M�������M������������������������������ ������� ����������������c�"�'��������d������d���������������Zz�����������+������+��������������ż�x�� ���������� ������� ������������������Nh��������� ������� ��������������M��~��d������������������������������@��k��������� ������� �������������������������������������������������}�3����������������������������������%��������������� ������� ��������������U�T� ��������������������������������4ց�������������������������������ɽs.ς,����������������������������LQ�"�������������������������������k�%���������������������������������E�秹��������������������������������lN�Kɚ�^�������������������������������]�9T��c��������5�������5���������������L~1���Y��������� ������� ����������������#�݌����������N������N������������������A�Z���������� ������� ��������������<���ç��������������������������������Y@��G��������k������k���������������4���]�����������������������������\�1�������������������������������������Y�7o��O�������������������������������J���B���������H�������H���������������d��������������������������������l�p�t������������������������������L^`�x�� ��������"������"���������������\�O����������������������������������\1m��I|��������2������2��������������jY���d��������9������9��������������rH� y�[�������������������������������Z_�[C��H��������V�������V���������������r�*����������������������������������8���R+�������������������������������� ZI���������������������������������Z������������ ������� ��������������*�0���»������������������������������"�@�Aԅ��������������������������������z�fj9�k��������������������������������rZ7s����������� ������� ��������������Z�!y��"��������@�������@������������������o6������������ ������� ���������������b��L�������������������������������Lt���L�������������������������������ʓ��RB��������������������������������z�J΀���������� ������� ��������������zp�6,�j�������������������������������c��aG���������������������������������{!ᩱ���������������������������������k��O,� ����������������������������������6R� �������������������������������;��n�����������������������������������j��}��������S������S��������������S�jC3�!>������������������������������ �Fo>�z������������������������������s�1J���@��������� ������� ��������������۝H���H+������������������������������ �����xy����������������������������������3������������������������������� Z�I���U������������������������������;�9(������������ ������� ����������������G��2%������������������������������;۶%��*V��������������������������������8���r��������� ������� ����������������!�W������������������������������;���Y��������@�������@����������������'3]�����������������������������������I�D�3P��������������������������������Mi�*{���������������������������������b����������7������7���������������C���K������������������������������*»�l����������������������������c3�$��D�������������������������������2�ǃ�yg��������������������������������{�)�(塎��������A�������A���������������S�)!׶��������������������������������c�7�����������������������������������S^ ^�������������������������������-_4����������������������������������A�L��q�������������������������������~�ȕ�4���������������������������������.��\[�E��������������������������������������%��������������������������������Sen��{�����������������������������ȉ�2� ���������������������������������.žE�Y%��������� ������� ��������������"�J�봰�������������������������������ì& ��D��������2������2���������������Uw;��W��������������������������������.��/�X���������V�������V������������������0N�Ӓ�������� ������ ���������������#�rx�k'��������;������;���������������� h�����������������������������������ƛ>�����������[������[�����������������i-�� ��������������������������������v(�ߣ�������������������������������Vc��֝FG��������������������������������v�[ɬ��������������������������������";DV�;W������������������������������v�� ����������� ������ ���������������� �����������������������������������xK��>��������� ������� ����������������>+��]��������������������������������>��S���������������������������������<�dnާ���������������������������������Ͱ*�'�������������������������������f����)�����������������������������&�?� ݈���������'������'��������������f,����rI���������������������������������;[V���������9������9��������������~t���ȿ�������� ������� ��������������F��<��ޒ�������Q������Q���������������~��q�q�������� ������� ���������������h~i��V.�������=������=��������������4�lP�/3�������� ������� ���������������� U&����������g������g����������������\���F�������a�������a���������������&}B�f�\����������������������������������p'Ŭ��������T������T��������������n�s�������������������������������������4���������� ������� �������������� z��Ë�o�����������������������������`���屜�������������������������������8�BW�=�������1�������1���������������X��w�������������������������������������n�[}�������C������C�������������� �<���% �������P�������P����������������ށ����Q�������n�������n���������������������������@�������@����������������?�҇��O�������o�������o���������������XA@!†��������������������������������8L������������� ������� �������������������f��������� ������� ��������������`��ZA�L��������2������2��������������P㾳k�t���������������������������������6���-�������������������������������ȼ������������ ������� ����������������:����������������������������������X�c�!�/#�����������������������������8�Q���߸�������R������R���������������$��̌Q�������������������������������b�5���������m�������m�����������������`1�#������������������������������M�u���������G������G��������������0U��ͺ�������F�������F���������������0�v� �s��������� ������� ��������������\�r������������������������������������#��͛��������� ������� ���������������n�Vτle�������������������������������g�ۏ��������� ������� �������������� ���g��m������������������������������U���Ɉ���������������������������������+|����������P������P���������������o$E{ˣ���������������������������������ԎԔ��������7������7���������������=Y{��{������������������������������� �M?��=(������������������������������P��������������������������������<����v�������>�������>���������������<�Ƒ�mv�������������������������������\��惟*��������2������2��������������D��b��a��������%������%��������������|�@`?����������������������������4����������������������������������������;��g!���������������������������������_���>�����������������������������L�_Ӏ��^�������������������������������g�Z_�׭�������� ������� ��������������D��R����������� ������� ��������������t�H����������������������������������<+~�����������������������������������ԍU�3�Es����������������������������������������������������������������������B8��������������������������������;���÷�������D������D����������������� �/��������:������:��������������D�sy�MA������� ������ ��������������,�M���B�������{�������{���������������Ԧ� � ������������������������������T��z�� encodat�H������H��������������$���Ǽ�atafiel�9�������9���������������D�a����Jlduserc������������������������=c9��ddtestsf�������������������������T�%S��Hdereddi�H������H��������������T� H��~erencep�����������������������,�p��adminyo�m������m�������������� y�h0���ablemix�� ������� ��������������t�LĜ��vtoshni�h�������h���������������dk���[�yboardi�� ������� ��������������,��?M�kglisess�� ������� ��������������V��Y�SYmiddlew�&������&���������������HN�����imefiel�� ������� ���������������l���J�������%������%���������������ڨf���J�������������������������������m����������� ������ ���������������26PM�T7�����������������������������Nm�&���:������������������������������(��������������������������������������Ǖ����U������� ������ ���������������ڥ�m�9��������������������������������p{ƪ�������|������|��������������6�҆����������� ������� ��������������&�P����������� ������� ����������������������������P������P��������������>�C������������������������������������ ΁Z����������������������������������P-�������� ������� ��������������N/���ص�������9�������9����������������������������������������������������Ju�I����������������������������������%\���b�������J������J����������������ѽ`�۟���������������������������-�c_�Ω��������������������������������wïV�=������������������������������"����f^�������� ������� ��������������j����������������������������������2�R�����������o�������o���������������+�;C�Q>�������� ������� ��������������Zl譔���������������������������������R�"Z����������� ������� ��������������b�ør��X�����������������������������ҭR^��.������������������������������� ��Р�_�������;������;���������������j��eڄ������������������������������Z4���������������������������������j��w��^�������� ������� ��������������d!e��̮B���������������������������d#�Rݸ��������G������G���������������呄?ʌc�������J������J��������������,��nj�U�������B�������B����������������c�D��v������������������������������l����]�������������������������������$�����|e�������� ������� ����������������Z"����������������������������������|���2f�������v������v��������������$8�J��J�����������������������������\w��˾n��������������������������������|�X㱓Ѓ�������;������;���������������D�>ی\�������� ������� ��������������< 9j��W�����������������������������l5YSg��n�������� ������� ��������������wAo�g��������������������������������.�b���YX�����������������������������&�ᳺ�8������� ������ ��������������Fq}�N���������������������������������'䝛�s�������:������:��������������">2ש>���������������������������������<WԂs��������>�������>���������������fQ�E�*��������������������������������t�ʠR��������9�������9���������������V,�G���������������������������������>�e���������%�������%���������������V�c)� ������������������������������ږ��{���������������������������������~5��[���������������������������������W�Y���������������������������������-a�vA�������������������������������L�c����������h�������h���������������>���0�(�������������������������������I ��������������������������������V�eP��:��������� ������� ��������������F�X��9������������������������������&�d��K�������B������B���������������� �9���������� ������� ���������������n�'��T������������������������������Ksצ������������������������������/�B������������������������������������������ ������������������������������ҳe3�V �������q������q�����������������ď�-������������������������������'ӌ���"����������������������������������D��O��������� ������� ��������������?�^pʊ��������>�������>���������������G%i�^��������������������������������Y`D�x���������������������������������ឫ�Q��f�������� ������� �����������������܋��������������������������������X��ڀ���������������������������������mdb�������������������������������ž��Lj9����������������������������D>���4�������D������D��������������MD� ��2������������������������������M "[�6(����������������������������������z����������P������P��������������l�K@���������������������������������ʧi�������������������������������z�������������Q�������Q����������������fƈf�̶������� ������ ���������������8ƒ%�~��������0������0���������������+�*Wԓ-�������?������?��������������*j��d�������������������������������������d��������'������'���������������[1���x!�������F�������F���������������k��E��v��������P������P��������������C���gA�������T�������T��������������� �O=��z���������������������������k;SGտ��������������������������������;T�����_�������Q�������Q�����������������/� ƭ4�������<������<��������������3�B{��������������������������������3��p��Dv�����������������������������{��h��X������������������������������{Aq�+��T�������0������0����������������w�M���������������������������������u��#|������������������������������V �� ���������������������������������&�p!�������I�������I���������������3=�tF��}�����������������������������sa��*������������������������������ _�3���������*������*����������������+���������i�������i���������������n}V������������������������������������:r�a��������0������0���������������V�%��������������������������������F�yZ��^��������������������������������K�� ������������������������������VEb�a����������������������������������.C֢�)V�������������������������������@�T����'���������������������������8�~H��^l�����������������������������肎J�6���������������������������������&z��������������������������������<�_��ф,�����������������������������d����ぃ�������Z������Z��������������\�|����'�������8������8��������������������������� ������� ��������������$��p��`�������p������p���������������w�����������]�������]����������������P���w����������������������������������,�`~�������)�������)������������������vs���������������������������������/y� �E��������i������i���������������m#n��(�������������������������������P�E�p��������&������&���������������Z�PJ�������������������������������B�ǟ�x-�����������������������������>����Do�����������������������������v�k��<3�������� ������� ���������������A?;�����������q������q���������������אĴ��������������������������������)Iw�ڀI�������������������������������;s��h�������t�������t����������������X�����������������������������������j���ÖPL�������*������*��������������J���&��1������������������������������������������� ������� ����������������O� �9'�������������������������������"&�%H���������������������������������̏=� �5S�������z������z��������������L�m�,�����������������������������C�d�@��������C�������C�����������������O�J�����������������������������<`�z�g�������� ������ ���������������i$���1�����������������������������������摳$��������� ������� �����������������B���R�������� ������� ��������������V��v��UI���������������������������������2��&������������������������������vU3�������������������������������IA5�G��<����������������������������O��s��f�������4������4��������������m�X��ϲ�������� ������� ��������������J���f��������� ������� ���������������ȑ?��������������������������������"^��״=O�������S������S���������������Q%1j�ER��������������������������������1�*���������������������������������1��(�������������������������������6�MJ�}�������|������|��������������S���h>�������o�������o���������������Y�������������'������'����������������������������K�������K�������������������!K�����������������������������s؃;��4�������� ������� ����������������‚�����������������������������������S������������ ������� ����������������O �9f�������V�������V���������������~������������������������������������s����������������������������������@�׈�������������������������������P�g^�}/�������� ������� ���������������;Ğ�Z������� ������ ��������������R����������� ������ ���������������0Ԛ�m��������N������N�������������� �9G����������� ������� ���������������[�h��V������������������������������������,�������H������H���������������rt�`���������������������������������j������������>������>����������������Ҡ����������������������������������z��m5����������Q�������Q����������������N���w#�������i������i��������������VÆ#�� L�������C�������C���������������sr(Ҭ��]���������������������������S3vo�@#��������������������������������g��6����������������������������� �&<ہ��������������������������������X�lٕ\������� ������ ����������������Rm9�f�������������������������������~�k��p��������{������{��������������`� ��Ʉ��������� ������� ��������������p�r�|�hm��������������������������������&�FL�@ �������������������������������,n��m��������2������2���������������&L>��u�������������������������������&��:LJ���������� ������� ���������������ofx�����������������������������������5��D����������������������������������!��,�����������������������������Cn񝇎#v�������)�������)���������������{��4h�F)�������a�������a����������������M�;-��������������������������������^V����������������������������������n��$�������� ������� ��������������.�����p���������������������������O�()d�. �����������������������������5%z�������������������������������������љ����������������������������������4�������� ������ ��������������K�������������� ������� ��������������Á}%����������2������2��������������fe��O��k�������� ������� ���������������~(���������������������������������M��� p�������W������W��������������v@D����������� ������� ���������������rp�U����������l������l�����������������W��9�������������������������������r��,,�������N������N��������������f����D��������w������w��������������fߋCߋ���������~������~��������������J^�׏�aY�������������������������������rU�а�u���������������������������7=ڔ����������� ������� ����������������W�������������������������������������8��������������������������������bUY�7 �������� ������� ��������������J�l�����������Y������Y����������������7`�|���������������������������������գ=�������s������s���������������Nx޿�w����������������������������⿓������������������������������IfML����������F�������F����������������:���!�����������������������������)zؕa�g�������[ ������[ ��������������a�eZ}�M��������S������S��������������1�����'�������0������0��������������Q�����VX�������������������������������W8y�܎�������� ������� ���������������� �m��e�������*������*�������������� ��o��}����������������������������2�����������L������L��������������a���Z�h��������{������{��������������a�e������������ ������� ������������������C��������i������i��������������ic�8����������q������q���������������Y#�P���������E������E��������������)5;iU�#������������������������������������X��������������������������������g �i��������� ������� ���������������) ���G��������\������\���������������p��'���������������������������������]���������������������������������o�"ew����������������������������������o��Va�v�������3������3����������������c�\Ҁl��������������������������������r�����������������������������������U���������������������������_(�y7�C��������������������������������.r�<���������Z������Z��������������w ��>�x��������Z������Z��������������WS�t<��~�������������������������������o���w��������������������������������/�7,����������������������������������Aȇ��������� ������� ���������������� ��8T�������� ������� ��������������o�Hh����������� ������� ��������������/'����l�����������������������������o��X�A��������������������������������g�����&������������������������������o� Tm���������������������������������o����)������������������������������O ��A��������c�������c���������������ϊ�f�Ɵ����������������������������������ߨ�������������������������������>]?�p1�������O�������O�����������������zx���X������������������������������:�������������������������������g��쓔������������������������������" ?�K������������������������������`�ʇ��������� ������� �����������������5���V����������������������������:ѧ)��)����������������������������o����D�������� ������� ��������������W��B�!������������������������������������{��T�������������������������������� �D����������������������������#� ٠A����������������������������c'ф�������������������������������o��n��������������������������������_ ��ŷ���������� ������� ��������������W����Ĉn�������� ������� ���������������M��ЖHv�������� ������� ��������������Ǵϖ����������� ������ ���������������;؁����������2������2���������������u����@5������������������������������QT����Z��������������������������������8'/��P�������N�������N�����������������ﵡ�2�������,������,��������������2�$�������������������������������3�h��/v�����������������������������w:����#���������������������������/E&�.�P�������������������������������?�����m�����������������������������cC̊F�R&������������������������������W��y�BK��������������������������������\i"�Z��������7������7��������������S�O��j�����������������������������,"\���p�����������������������������S�~ ��T������� ������ ����������������ԋ�Z����������������������������� �A���%�����������������������������3��&� ��������������������������������������u�������t������t��������������3>��v�������������������������������I���������o������o���������������<8p���F�������8������8��������������ڇ ��ؑ������������������������������J�䥡�kO����������������������������� 9%`]����������'������'���������������sX��������� ������ ��������������l��r��x������� ������ ��������������R���\�������������������������������p �[��������,������,��������������z�R��e������������������������������j ?�q�h������������������������������zx�}ׅh�������(�������(����������������Cy��h��������p�������p���������������ܮT���n��������������������������������O��V�{�������4�������4������������������b[��|�����������������������������������ݗ6��������/�������/������������������qĹ�������� ������ ��������������D)��V4�������������������������������4p,?�������������������������������}Ѽx��������� ������ ����������������(02��,�������?������?��������������T���~�8K�������=������=���������������k�'@���pythonf��������������������������|���B�ppablet�D������D��������������z�ͽ:��&olrefac�d�������d���������������� ��7&rconfig�<������<���������������!�l��̯somedat�C�������C��������������������ihttpre�� ������� ��������������ʀ��`Klanched�� ������� ��������������ʚ���_=umedium�!������!���������������ReUq��*dlights�x������x��������������Vx�Z�jlulight�.�������.������������������k��I�gvehicl�Y�������Y����������������aj_�&app�����������������������������1���>�����������������������������������fT������������������������������q��l�<��������� ������ ���������������� �^���������������������������������)������}��������2������2�����������������Kw��)����������������������������������} ȐP������������������������������y�Y+g�E��������������������������������� ��!Ǩ���������������������������������YTߵ�Q�����������������������������������{c��,�������� ������ ���������������Ȇ{�����������������������������������Z�M-��o���������5������5�����������������L��!�������������������������������5�~�4(��������S������S���������������z�[e�����������r������r���������������> �����������~������~����������������;2�׮������������������������������� -�:��������@�������@��������������� �+ �U�������������������������������zL��S�6��������������������������������؄�Y�0���������~������~��������������Z�MZ�� ���������������������������������V�ѐ���������� ������� ���������������ʊ,�^��������������������������������*uҟJ�����������������������������������4����������Y�������Y������������������Gn�����������>�������>�����������������XՉ� ���������s�������s���������������ߥQK%��c��������X�������X����������������X�ߎ���������-�������-����������������ʭ�����������������������������������)�Տ���������������������������������-�򄣛@��������X������X����������������P������������� ������ ��������������זr��N���������������������������������Gr8��b7��������c�������c�����������������tZ�����������?������?��������������" <��u��������������������������������_��N0�W���������z�������z����������������6��ƺd������������������������������G������o�������� ������ ���������������a�<��2&��������;������;����������������^��ܡ�����������������������������������Nj�.��������R�������R���������������7�e �N��������D ������D ���������������,> j��F��������I�������I���������������/J�%E�SU��������������������������������Ϫ�S���������������������������������2��ۨ���������Q�������Q��������������������Y�������������������������������!��$Z�@j����������������������������y�A�������������������������������Y �ۤ��x�������� ������ ��������������)�Php�����������C������C��������������!nT������������������������������������� mIg�v��������� ������ ��������������1b���M�������������������������������������0��������'������'���������������~p!�td��������E������E�������������� �� �.�������������������������������I�~̐@�������������������������������[�X��7(����������������������������qB�"5�K6��������;������;���������������a9j�Ȣ���������T������T��������������p �"�����������������������������������\Ǧ�����������������������������������j���3;�������������������������������ix�?P��������������������������������̰�'�H4�������������������������������� *�����j��������9�������9����������������U��(�H���������/�������/����������������u�^���������Y�������Y����������������d3�� ���������������������������������L~:�����������������������������������k��������]�������]���������������T�.������������������������������������D�gGN������������������������������������T�'�ї��������������������������������a�9F����������2������2���������������R�^� ��������� ������� ���������������ٳ�--�(���������������������������������"=Ɨ��������������������������������T� ��Δ��������������������������������鎚�p��������{������{��������������)q����i����������������������������������ɡ�������������������������������2��8z�������" ������" ��������������!������H��7�Y ������Y ��������������y�Ի��l_���9������������������������I�w�������R���Q������Q��������������IU�Kr�������P��J������J����������������7��R������������������������������ �����} d��7�������������������������y3��8�I��p������\������\����������������rr�e��V���������������������������1���{���������' ������' ���������������E�&v�[���������[������[���������������Ϛ{�9���������-������-��������������� = �܅��������R������R��������������)��9��wY��������m������m�����������������D�D��������B������B���������������ן"���U�������������������������������db��i�����k������������������������`ǯ��Y�����H�������������������������|/�>(������������������������������I��;K�5��������������������������������vbS�P+��������������������������������ٽPf���#������������������������������� ��������'����z ������z ���������������FA��\������o�������o������������������������������������������������������#��5�����������i������i��������������J�/���O������1 ������1 ��������������"�t���Ti������3 ������3 ������������������y���������������������������—�=i�b������j����������������������������� s�������F������F���������������m͘�� ������Y������������������������[X�2*����������������������������*[�g딗������������������������������$ ,\���M��7�7 ������7 ���������������9�$d������9��� ������ ���������������T�0��������L��������������������������i{Ŵ�KO�����I�������������������������?��Ւ�������������������������������;5����f�7�������������������������zF��3�S�������< ������< ��������������� �q��=������������������������������Q����d���������0�������0����������������*��bX�������������������������������3�q�����������S������S���������������k_hG�}o�����������������������������zX�|���U��������V������V��������������bT�����'�����K�������K���������������:)�;��}��P��7��������������������������cۙ��������C ������C �������������� ��݆s������S��E ������E ��������������J2J8��|��������F ������F ����������������Fq��%������������������������������*7����q'�����������������������������������&�V���������H ������H �����������������M��������������������������������:+-�;��b�����������������������������e�nl����������I ������I ��������������2�q����������T�������T����������������z���+��������K ������K ���������������BZn�N��������L ������L ��������������"͔������������F�������F����������������{�n��*���������������������������������vʖ��������������������������������U���"�����������������������������]��D������������������������������Bn#��@���������N ������N ����������������ϲ����������j������j��������������j+g%���-������������������������������BM'�2������������������������������� ?�i ����������h������h��������������r|L��]�������������������������������"�x�U�������������������������������������hv���������������������������������.^��ݜ&�������������������������������{/��� K����������������������������b�1-�����������U ������U ��������������rh*]#�E��������*������*��������������*Ua��� ��������� ������ ��������������r��������������(������(���������������}�{�̷d��������n�������n����������������I��5אָ��������]������]��������������ڨ�)��:��������� ������� ��������������ځ����ў���������������������������������J��C�0���������8������8��������������2�x�{�����������������������������������).3��K�����������������������������������V?��������� ������� ����������������x�2�����������������������������������������������������������������������9��I��������� ������� �������������� O!���I���������)�������)���������������W9��W��-��������� ������� ��������������g�o��xC��������F������F��������������w��fl䪶��������|�������|����������������0ƭJB�������������������������������A�:����������������������������������P�����������*������*������������������E��g�����������������������������K�r��� ������������������������������߾I��Q��������W������W����������������Z���Y�������������������������������������������������������������������� �.��������8������8�������������������~�������������������������������˜�E������������[������[���������������`9^e�,�������������������������������� �t��}��������� ������� ��������������Қ�Q�����������=�������=�����������������:;�/�������������������������������Z�{<�������������������������������Q�Eߦ�qw�������� ������ ����������������o�� ��������� ������ ���������������nyV�����������h�������h���������������QK�ͻ���������� ������ ���������������L:P��du�����������������������������σ�AѺb��������Q�������Q���������������B ��[�-��������������������������������w)�Ң����������7������7��������������dh��g��������������������������������� �Ǿ���������I������I��������������o.�T������������������������������������w�B������������������������������������`����������������������������������9=��e ������������������������������������l��:�������������������������������`=���%���������7������7�������������� ��=ش��������������������������������{ �Σ�I������������������������������QL�te�)���������'������'���������������;_������������$ ������$ ���������������ٷ@X�K���������������������������������B����%���������������������������������ua�U���������,������,����������������H��O���������5������5��������������)Ϭ۲�9���������{������{����������������T�ݹ��������/ ������/ ��������������j��t��C��������������������������������B@V���z��������������������������������*mi>꺅V������������������������������2���~�5��������������������������������ua�����������9 ������9 ���������������z����G���������: ������: ���������������(Q��W��������������������������������������������= ������= ����������������7 ����������������������������������� �k��ήR��������> ������> ��������������rV�������������������������������������<�����������@�������@���������������Z�1)��H��������5������5��������������B�v�n���������� ������ �������������� �&�6��������E������E���������������CX�B��������^������^��������������zb�#y�>L������������������������������Z�X��܏s��������J ������J ��������������B����^K������������������������������r�]af�U��������O������O��������������r6q�7\��������~������~����������������� ��������P ������P ����������������z�T�����������T ������T �����������������B���������� ������� ������������������l�����������*������*��������������F��_���������������������������������2������������������������������������3���L����������������������������������3V����c��������� ������� ����������������!��_��������� ������ ���������������O���b��������������������������������c�Jö^��������� ������� ����������������_�g�������������������������������7C���º*��������I�������I������������������y�y�������������������������������ZF�K�U����������������������������[NA�"�d����������������������������������4CPȀ�!��������������������������������YE��k����������������������������������XnUһB��������P������P��������������� �U��*?����������������������������������i�؃�������������������������������9��E���������������������������������l����P=����������������������������������y$��ݶ��������������������������������2�/"��������������������������������������J!�p#������������������������������ṗA��������*������*���������������FaqšJ��������c�������c���������������y|zYk�Lf��������������������������������% �������������������������������������Qv�流���������������������������������@p��͸�������������������������������j-�`�����������y ������y ���������������\���]�������������������������������J@m����������[������[����������������º������������p������p��������������_.���*���������������������������������|@�������������������������������QgAU�����������^������^����������������-+���������������������������������l4�������������������������������������ݺ�������������������������������Y`�!��T*������������������������������:�/��k�����������������������������������1"������������������������������Z�vN�؂������������������������������o�^鐶�������������������������������z�fX��¦��������A ������A ��������������j�v�g��]�������������������������������c�f���������G ������G ��������������*#����|X��������D������D��������������*-�6U�"!��������M ������M ��������������rV�ɞ��y����������������������������������E��v$��������\������\�����������������ޅ��������������������������������j'�֧t��������������������������������f�[��'������������������������������G���.ܹ|���������������������������������$�m �����������P������P���������������55l�ö�������������������������������E(#z������������ ������� ��������������� y`�����������f������f����������������wJ4�8�������������������������������7 Ы�X�����������������������������������҉�Fc������������������������������{��T��3"������������������������������[�.簪I�����������������������������������A�7�2�������������������������������:{���is���������������������������������{������������������������������������(.��v��������� ������� ����������������F���������������������������������^���)�������������������������������x����5������������������������������ l�[ �0������������������������������������������������T������T���������������В�$�ZJ�������������������������������Ķ�'��������R ������R �����������������e�a��������V ������V ��������������J�R1������������������������������������$��,��:��������6������6��������������b����\�������������������������������YE/�����������������������������������;����������� ������ ����������������_�.����������g�������g���������������� ��/���������������������������������h����������������������������������2�ɻh����������� ������� ����������������ҩ9���[��������.�������.����������������F���N���������������������������������|'I8����������% ������% ����������������Z)��������������������������������bQ��ܗ��������������������������������v~�,��������g������g���������������-mm/� ����������������������������������o�������������`�������`���������������������(��������������������������������6ӕ��������������������������������U��E���������F������F��������������*q���9��������>�������>�����������������*����������������������������������f���$(������������������������������ZW(���������������������������������&�R�S��������E������E���������������R�--�Z�������������������������������r�g㦣�����������������������������*C"h�����������6 ������6 ����������������!K��;,����������������������������������8���������S������S��������������*�Fu�x�������������������������������Bn�y���+��������? ������? ����������������Eʇ'������������������������������ZZ|��%���������r ������r ��������������2M$*��T��������^ ������^ ���������������+�Y��������������������������������Ҷ�2+�Ok��������_ ������_ ���������������=X��gz��������` ������` ����������������:�寠���������� ������� ��������������J:�F��+�������������������������������)��6���u��������I������I���������������۵,ĩ����������H������H��������������Y�wL�C ��������X������X��������������A�u"�.�����������������������������������D��������/�������/���������������a�i�����������9�������9���������������9=�c��������������������������������):������������������������������������)�m��~K��������>�������>���������������Ao�&��������� ������ ��������������Yu�Ϫ� J������������������������������y�Ee�bK��������z�������z���������������YþCY�$`��������>������>����������������G8�� ���������������������������������J���W����������������������������)�<��tN��������� ������� ����������������.�(k��������������������������������ð��e�������������������������������ܚ=�����������H������H��������������z�T�`�����������w������w��������������b6�۞�������������������������������J�7�w��������:������:��������������j�4�+�C�������������������������������b��,���/��������7������7��������������z���G���������W������W��������������2~|���v��������������������������������I��Ը�'������������������������������zd{i��z��������q������q���������������� h���������������������������������ҝx�g����������X�������X�����������������[�ԇ)�����������������������������ݶo�� ��������������������������������r��w��$b��������h������h��������������b�y�}�#���������E�������E���������������"��_�W(��������������������������������zv��ꈧ ������������������������������j�$"�뽆����������������������������Kh�(�?w������������������������������ Tk���b�����������������������������3H�������������i ������i ������������+�`���3������������������������������54W��(��������������������������#�ضÚ������������������������������;�Q�臲���������R�������R��������������ix�������������������������������+S�H3�t��������� ������� ������������w� ��q��������l ������l ������������Wk�+�w�������� ������ ������������G��%��F��������;������;������������O?�o����������������������������(������������F������F������������?�G������������N������N������������7����� ���������m ������m ���������������m�����������������������������g��Hk��h��������6������6��������������v����"��������u ������u ������������WRj�����������p ������p �������������˚��������������������������������l�U�ں7��������l������l������������oؼ/.�b���������Z������Z�������������E����@��������5�������5��������������uJ��v������������������������������'���� ��������� ������ ������������w)�[�А�����������������������������w ����4S��������%�������%�������������7�2������������ ������ �������������Qg8��^��������7������7��������������{'�3��������9�������9�������������"}0Q� ���������������������������A�i�f���������7������7������������o3����f����������������������������g����֫��������w ������w �������������r�V�n���������x ������x ��������������}|�����������!�������!�������������Oj�3Q��������O������O������������O�U�M�����������| ������| ��������������C~5�������������������������������'@8 ������������$������$������������s���C�������������������������������v��4f��������t������t����������������q����������?������?������������'V�&Ɏ0��������������������������������R']��h������������������������������G����!���������� ������� ��������������ߣ��������������������������������z͊?�����������,������,�������������Wn�e����������)�������)��������������\�ű�x���������~ ������~ ������������7�-2��}��������� ������� ������������O0�Z�lb��������?������?������������!�*��������������������������������\|�� ���������� ������� �������������W=�l����������������������������G�������������� ������� ��������������Δ%כ�������� ������ ������������j2���/�������������������������������W��R^� ���������P������P������������_M�jr�r�������������������������������r�j���������V������V������������wP��S�t����������������������������?_n�������������������������������wk�Z��q�����������������������������7��Ñ�ٸ��������� ������� �������������J�Ɩ����������� ������� ������������G|6��j��������w������w�������������ڻ��n���������]�������]����������������Bĕ����������� ������� ��������������}L�w2��������/�������/�������������' :�6`��������� ������� ������������o%��ʤ�t�����������������������������S#��������������������������������O"���ښ,��������� ������� �������������*nm� ���������T������T��������������:u����������� ������� ������������o�t�k��������������������������������bG�.� ���������a������a������������O���(�*$������������������������������H�Q������������������������������C����]�����������������������������q�c߳�$�����������������������������3q�s����������� ������� �������������5]����������q�������q��������������*�>���I�������������������������������9��G����������������������������������\d���������������������������'������������� ������� ���������������t�������������$������$��������������g B��������������������������������PIX���6����������������������������������������������������������������/���k8��������� ������� ������������Ȕ�WȺ�5������������������������������d�� ���������;������;�������������������l������������������������������������z����������������������������P�g�_G��������y������y��������������u����������������������������������4mE�����������K������K�������������Q�V�� ���������v������v����������������������������S������S��������������3ϫb������������������������������_v�{�`���������,������,�����������������R��������������������������������)F��IB�������������������������������������������������������������Ż�ю����������v������v�������������t��2�0���������� ������� �������������qyP������������'������'������������g�_�}�Zu������������������������������W���%����������F�������F�������������ߓd5�5������������������������������i=������������!������!�������������w x�ܞ���������*������*������������ ���z��������������������������������Y��������������������������������� �x�;��������� ������ ��������������>k1�@�������������������������������7�Q�������������������������������Dȯ��|\����������������������������o�AN�_��������������������������������G�#ߐ���������=������=������������/h��E_����������������������������_%���$���������x������x��������������8���x����������������������������'-$f�����������C�������C��������������C��P�����������b������b�������������'m�������������������������������;築�ۥ��������2������2�������������ʬ"M�20��������S������S�������������ݦ���X ��������� ������� �������������Y(q��������������������������������4��붫������������������������������! ��%����������������������������T���q���������������������������&�Q�����������(�������(�������������TڔQ����������p������p������������d�g�̂��������������������������������쫳�~����������������������������������e@�"�������������������������������,0�ӻK���������r������r�������������s�6�j�����������������������������,��b���h�������� ������� ��������������]��,�ͨ��������V�������V�������������� ��� ���������{������{������������D2� �����������������������������L�i�G��a��������W������W������������ty3���`���������&�������&�������������Ϭe:�������������������������������~�!����������<������<������������R�����"��������* ������* ��������������<�z����������������������������������i��i�������������������������� +����Ѭ����������������������������%����(��������0������0���������������n���5�������� ������� �������������r ��=�<��������������������������������]�%Մk ��������������������������������9U�{���������������������������b������������#������#������������p ��E��������� ������� ���������������Cv�VK��������_������_������������0Ś���T�����������������������������HYW�ܶ=����������������������������D� ���������_������_������������������+�����������������������������]\����������� ������ ��������������<*�GJ�������������������������������7��?�ث����������������������������@ⅆO�E�������������������������������8Ny^��E+����������������������������P����x�������������������������������/@�e���������W�������W��������������=%�r��/��������c�������c�������������x/ޮ.�������������������������������p����/������������������������������8��P�E���������B������B������������{45$�g���������������������������E�ǧ�z������������������������������h���.�� ��������P������P������������X@���C`��������p������p���������������q��O������������������������������(��3����������/�������/�������������(�i@\����������u������u�������������k.��L���������$������$�������������+��.��������+������+������������X��ǭ�t��������%������%������������H��S�5��������H������H������������h�e�׹l����������������������������xP�I7�����������d������d������������kj$g����������������������������(���� �����������������������������p�$>��U��������,������,������������ȗ'�ˏ�������������������������������`td}��9��������� ������� �������������q���'������������������������������c?a�����������������������������������7����������������������������x�H�4�����������&������&������������ؓ���.5����������������������������P��6�d��������x������x������ ������{R:�]����������������������� �������$��͑���������� ������� ������ �������v������������{������{������ �������=!ۯ������������������������� ������ 7"����������s������s������ ������ܼ�~��~������������������������ ����������)ȧ��������C������C������ ��������AY޵6���������������������� ������l�Ϙ=�����������6������6������ �������#g.s�6)��������'������'������ ������T g��<��������������������� ���������=I����������%������%������ ��������=2<�W��������5������5������ ������D(��������������� ������� ������ ������d}]�ڈ����������T�������T������� ��������߭���������������������� ������ �\�k���������������������� ������ ]�Y9���������n�������n������� �������I;}�՞������������������������ ��������rV�Խ��������N������N������ ����������Ձa��������������������� �������P����9���������-������-������ ��������a���Y���������I������I���������������Y䋣�%�������������������������������P�A�wn��������(�������(���������������j�\C��/��������-������-��������������*�rk~����������������������������������9�K>���������������������������������)�(j�/�����������������������������������[M�ƨ1���������������������������������������������=������=��������������Q0�f�g����������������������������������la��������������������������������������3�������������������������������R���R�������������������������������������菁���������>�������>����������������[W��c���������������������������������V��4���������.�������.�������������ہ�1��z���������Y�������Y�������������K�0�#C��������g ������g ������������K�'l�=�����������������������������h����]��������X������X��������������d������������j ������j ������������7<��DZ����������������������������o�+ﭖ�K��������7������7��������������E�D��2����������������������������ߝ뿧�[����������������������������oO���hz��������� ������� ������������w'�O`�\B����������������������������'�/9�l��������`������`�������������� �1�>m����������������������������o^�5����������v ������v �������������q��d��i��������y ������y �������������� ��\��������z ������z �������������E�ɂ�[��������Z������Z������������ ��ɽ����������� ������� ������������gnQ� ����������������������������R��N�H���������Y������Y������������������������������������������������۳���������0������0������������oD4�C�����������������������������gي]��é������������������������������o�����s���������� ������� �������������`���&��������� ������� ������������G\_η�'��������� ������� ������������_��A�����������^������^���������������ߝ������������������������������eT�F���������� ������� �������������TE�S�������������������������������؂�{����������������������������������pR��fz��������� ������� ������������Pv>����H��������� ������� ��������������͞ �6����������������������������Su�A�.�������������������������������h8�qi���������������������������������) �� i���������������������������������.�2������������������������������̾wԂ��������������������������������-�-���?��������@������@��������������ǔR�G���������o�������o��������������h���|�������� ������ ������������WXˬ�����������1�������1������������������Iu������������������������������h(��1��������������������������������q�i�������������������������������De�� �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������e�K����������G��| �������!��R���"��b$��:'���/��3���5���;�� ?���A��iE��J��CP���Y���e���l���o���t���|������2���s���������������m�����8���T���<���3���9����������������������_�������@�������n����&��P�����������|���q�������S ��4���������I�g��$��&�;-�}/�=5��=��B�F��J��U� [�m_�ec�}d�$o�Vs��x��|�H�����������a���������Ӳ����a��������������y�����e�����@��\��x������������z���J���F�"��#�))�:+�w.�S:��D�WK��O��T��\��_�d�:h�|j�s��t��}������&��ʉ����������<�������u��ɱ� �� ������� ��I��r���/�����������������������������$�� ����b�����B�n��!��$��)��,�Y;�b>��E��F�J��P��U��X��]��k�ap��r��y� }������[��ۑ�ȗ����š�`��$�� ���Q��v�� �����*�������������������������@��������0��9V����C��jɃI�b,�D0���s�]Rdz>WV��J��"e�}O�6��aف�&ҩI'�N!�6 b̔�U�ڊ+ �D��C��ց? .w�x��`� ˣ����v���43fc���a��!Ƶ;F�x���f��8C"�7ر)�o���f��2; b:&�}>��4ΖډH�Ȇ�0�MP�h{���W@���2j�y��ɴL���X���Pܫ�Id���_��uPu�)�d�'=7��� �(�p�-�g|��c�J�6�`��4~�+�IO���;�#:���P��`mM*Tp��<��� Mx4W0��P�4o�sl���u���B+]/Y�RA �~!K&T��x7��s�T�k�}G� v$d�� ��K'd-k�O���q"�%�C4Q࿲j� ��P�"�.�6S�Qy�ӟ^3���A;B~S�q�x��q�{H���J�e(be����\���]��| ��:� ,���4]�B�q��R�U�+$ �Bbz���r!)����|Z�P�� �B24�F������2���s�YW �Bܒz+�Nt��P��Վ�l�I;m6&��!E��M�0��| �$��:"1�� �����P1�b��3��l�B��ħ���9fj�I8V����m`� �s�Ngu|�W��@9��F[��l �AG��|�W%��WIc%/Ā�`�^h�M*,�����)�0�/сd�y�\�K�/�$��s7sZ� ���ʚeM*>�k�AC eo�쑀3 �h���!�,�  ��,�<s>[INST] Install python 2.6 in CentOS I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end up. Can I now just make, make install ? Or is there more? [/INST] You could also use the EPEL-repository, and then do sudo yum install python26 to install python 2.6 </s><s>[INST] Accessing mp3 Meta-Data with Python What is the best way to retrieve mp3 metadata in python? I've seen a couple frameworks out there, but I'm unsure as to which would be the best to use.... Any ideas? [/INST] I used eyeD3 the other day with a lot of success. I found that it could add artwork to the ID3 tag which the other modules I looked at couldn't. You'll have to download the tar and execute python setup.py install from the source folder. Relevant examples from the website are below. Reading the contents of an mp3 file containing either v1 or v2 tag info: import eyeD3 tag = eyeD3.Tag() tag.link("/some/file.mp3") print tag.getArtist() print tag.getAlbum() print tag.getTitle() Read an mp3 file (track length, bitrate, etc.) and access it's tag: if eyeD3.isMp3File(f): audioFile = eyeD3.Mp3AudioFile(f) tag = audioFile.getTag() Specific tag versions can be selected: tag.link("/some/file.mp3", eyeD3.ID3_V2) tag.link("/some/file.mp3", eyeD3.ID3_V1) tag.link("/some/file.mp3", eyeD3.ID3_ANY_VERSION) # The default. Or you can iterate over the raw frames: tag = eyeD3.Tag() tag.link("/some/file.mp3") for frame in tag.frames: print frame Once a tag is linked to a file it can be modified and saved: tag.setArtist(u"Cro-Mags") tag.setAlbum(u"Age of Quarrel") tag.update() If the tag linked in was v2 and you'd like to save it as v1: tag.update(eyeD3.ID3_V1_1) Read in a tag and remove it from the file: tag.link("/some/file.mp3") tag.remove() tag.update() Add a new tag: tag = eyeD3.Tag() tag.link('/some/file.mp3') # no tag in this file, link returned False tag.header.setVersion(eyeD3.ID3_V2_3) tag.setArtist('Fugazi') tag.update() </s><s>[INST] Python nested classes scope I'm trying to understand scope in nested classes in python. Here is my example code : class OuterClass: outer_var = 1 class InnerClass: inner_var = outer_var The creation of class does not complete and I get the error : <type 'exceptions.NameError'>: name 'outer_var' is not defined trying inner_var = Outerclass.outer_var doesnt work I get : <type 'exceptions.NameError'>: name 'OuterClass' is not defined I am trying to access the static outer_var from InnerClass. Is there a way to do this? [/INST] class Outer(object): outer_var = 1 class Inner(object): @property def inner_var(self): return Outer.outer_var This isn't quite the same as similar things work in other languages, and uses global lookup instead of scoping the access to outer_var. (If you change what object the name Outer is bound to, then this code will use that object the next time it is executed.) If you instead want all Inner objects to have a reference to an Outer because outer_var is really an instance attribute: class Outer(object): def __init__(self): self.outer_var = 1 def get_inner(self): return self.Inner(self) # "self.Inner" is because Inner is a class attribute of this class # "Outer.Inner" would also work, or move Inner to global scope # and then just use "Inner" class Inner(object): def __init__(self, outer): self.outer = outer @property def inner_var(self): return self.outer.outer_var Note that nesting classes is somewhat uncommon in Python, and doesn't automatically imply any sort of special relationship between the classes. You're better off not nesting. (You can still set a class attribute on Outer to Inner, if you want.) </s><s>[INST] __getattr__ on a module How can implement the equivalent of a __getattr__ on a class, on a module? Example When calling a function that does not exist in a module's statically defined attributes, I wish to create an instance of a class in that module, and invoke the method on it with the same name as failed in the attribute lookup on the module. class A(object): def salutation(self, accusative): print "hello", accusative # note this function is intentionally on the module, and not the class above def __getattr__(mod, name): return getattr(A(), name) if __name__ == "__main__": # i hope here to have my __getattr__ function above invoked, since # salutation does not exist in the current namespace salutation("world") Which gives: matt@stanley:~/Desktop$ python getattrmod.py Traceback (most recent call last): File "getattrmod.py", line 9, in <module> salutation("world") NameError: name 'salutation' is not defined [/INST] There are two basic problems you are running into here: __xxx__ methods are only looked up on the class TypeError: can't set attributes of built-in/extension type 'module' (1) means any solution would have to also keep track of which module was being examined, otherwise every module would then have the instance-substitution behavior; and (2) means that (1) isn't even possible... at least not directly. Fortunately, sys.modules is not picky about what goes there so a wrapper will work, but only for module access (i.e. import somemodule; somemodule.salutation('world'); for same-module access you pretty much have to yank the methods from the substitution class and add them to globals() eiher with a custom method on the class (I like using .export()) or with a generic function (such as those already listed as answers). One thing to keep in mind: if the wrapper is creating a new instance each time, and the globals solution is not, you end up with subtly different behavior. Oh, and you don't get to use both at the same time -- it's one or the other. Update From Guido van Rossum: There is actually a hack that is occasionally used and recommended: a module can define a class with the desired functionality, and then at the end, replace itself in sys.modules with an instance of that class (or with the class, if you insist, but that's generally less useful). E.g.: # module foo.py import sys class Foo: def funct1(self, <args>): <code> def funct2(self, <args>): <code> sys.modules[__name__] = Foo() This works because the import machinery is actively enabling this hack, and as its final step pulls the actual module out of sys.modules, after loading it. (This is no accident. The hack was proposed long ago and we decided we liked enough to support it in the import machinery.) So the established way to accomplish what you want is to create a single class in your module, and as the last act of the module replace sys.modules[__name__] with an instance of your class -- and now you can play with __getattr__/__setattr__/__getattribute__ as needed. </s><s>[INST] How to properly determine current script directory in Python? I would like to see what is best way to determine current script directory in python? I discovered that two to the many ways of calling python code, it is hard to find a good solution. Here are some problems: __file__ is not defined if the script is executed with exec, execfile __module__ is defined only in modules Use cases: ./myfile.py python myfile.py ./somedir/myfile.py python somedir/myfile.py execfile('myfile.py') (from another script, that can be located in another directory and that can have another current directory. I know that there is no perfect solution, because in some cases but I'm looking for the best approach that solved most of the cases. The most used approach is os.path.dirname(os.path.abspath(__file__)) but this really doesn't work if you execute the script from another one with exec(). Warning Any solution that uses current directory will fail, this can be different based on the way the script is called or it can be changed inside the running script. [/INST] os.path.dirname(os.path.abspath(__file__)) is indeed the best you're going to get. It's unusual to be executing a script with exec/execfile; normally you should be using the module infrastructure to load scripts. If you must use these methods, I suggest setting __file__ in the globals you pass to the script so it can read that filename. There's no other way to get the filename in execed code: as you note, the CWD may be in a completely different place. </s><s>[INST] nonlocal keyword in Python 2.x I'm trying to implement a closure in Python 2.6 and I need to access a nonlocal variable but it seems like this keyword is not available in python 2.x. How should one access nonlocal variables in closures in these versions of python? [/INST] Python can read nonlocal variables in 2.x, just not change them. This is annoying, but you can work around it. Just declare a dictionary, and store your variables as elements therein. To use the example from Wikipedia: def outer(): d = {'y' : 0} def inner(): d['y'] += 1 return d['y'] return inner f = outer() print(f(), f(), f()) #prints 1 2 3 </s><s>[INST] Why does multiprocessing use only a single core after I import numpy? I am not sure whether this counts more as an OS issue, but I thought I would ask here in case anyone has some insight from the Python end of things. I've been trying to parallelise a CPU-heavy for loop using joblib, but I find that instead of each worker process being assigned to a different core, I end up with all of them being assigned to the same core and no performance gain. Here's a very trivial example... from joblib import Parallel,delayed import numpy as np def testfunc(data): # some very boneheaded CPU work for nn in xrange(1000): for ii in data[0,:]: for jj in data[1,:]: ii*jj def run(niter=10): data = (np.random.randn(2,100) for ii in xrange(niter)) pool = Parallel(n_jobs=-1,verbose=1,pre_dispatch='all') results = pool(delayed(testfunc)(dd) for dd in data) if __name__ == '__main__': run() ...and here's what I see in htop while this script is running: I'm running Ubuntu 12.10 (3.5.0-26) on a laptop with 4 cores. Clearly joblib.Parallel is spawning separate processes for the different workers, but is there any way that I can make these processes execute on different cores? [/INST] After some more googling I found the answer here. It turns out that certain Python modules (numpy, scipy, tables, pandas, skimage...) mess with core affinity on import. As far as I can tell, this problem seems to be specifically caused by them linking against multithreaded OpenBLAS libraries. A workaround is to reset the task affinity using os.system("taskset -p 0xff %d" % os.getpid()) With this line pasted in after the module imports, my example now runs on all cores: My experience so far has been that this doesn't seem to have any negative effect on numpy's performance, although this is probably machine- and task-specific . Update: There are also two ways to disable the CPU affinity-resetting behaviour of OpenBLAS itself. At run-time you can use the environment variable OPENBLAS_MAIN_FREE (or GOTOBLAS_MAIN_FREE), for example OPENBLAS_MAIN_FREE=1 python myscript.py Or alternatively, if you're compiling OpenBLAS from source you can permanently disable it at build-time by editing the Makefile.rule to contain the line NO_AFFINITY=1 </s><s>[INST] mongodb: insert if not exists Every day, I receive a stock of documents (an update). What I want to do is insert each item that does not already exist. I also want to keep track of the first time I inserted them, and the last time I saw them in an update. I don't want to have duplicate documents. I don't want to remove a document which has previously been saved, but is not in my update. 95% (estimated) of the records are unmodified from day to day. I am using the Python driver (pymongo). What I currently do is (pseudo-code): for each document in update: existing_document = collection.find_one(document) if not existing_document: document['insertion_date'] = now else: document = existing_document document['last_update_date'] = now my_collection.save(document) My problem is that it is very slow (40 mins for less than 100 000 records, and I have millions of them in the update). I am pretty sure there is something builtin for doing this, but the document for update() is mmmhhh.... a bit terse.... (http://www.mongodb.org/display/DOCS/Updating ) Can someone advise how to do it faster? [/INST] Sounds like you want to do an "upsert". MongoDB has built-in support for this. Pass an extra parameter to your update() call: {upsert:true}. For example: key = {'key':'value'} data = {'key2':'value2', 'key3':'value3'}; coll.update(key, data, {upsert:true}); This replaces your if-find-else-update block entirely. It will insert if the key doesn't exist and will update if it does. Before: {"key":"value", "key2":"Ohai."} After: {"key":"value", "key2":"value2", "key3":"value3"} You can also specify what data you want to write: data = {"$set":{"key2":"value2"}} Now your selected document will update the value of "key2" only and leave everything else untouched. </s><s>[INST] In-place type conversion of a NumPy array Given a NumPy array of int32, how do I convert it to float32 in place? So basically, I would like to do a = a.astype(numpy.float32) without copying the array. It is big. The reason for doing this is that I have two algorithms for the computation of a. One of them returns an array of int32, the other returns an array of float32 (and this is inherent to the two different algorithms). All further computations assume that a is an array of float32. Currently I do the conversion in a C function called via ctypes. Is there a way to do this in Python? [/INST] a = a.astype(numpy.float32, copy=False) numpy astype has a copy flag. Why shouldn't we use it ? </s><s>[INST] How to add an extra column to an numpy array Lets say I have an numpy array a: a = np.array([[1,2,3],[2,3,4]]) And I would like to add a column of zeros to get array b: b = np.array([[1,2,3,0],[2,3,4,0]]) How can I do this easily in numpy? [/INST] np.r_[ ... ] and np.c_[ ... ] are useful alternatives to vstack and hstack, with square brackets [] instead of round (). A couple of examples: : import numpy as np : N = 3 : A = np.eye(N) : np.c_[ A, np.ones(N) ] # add a column array([[ 1., 0., 0., 1.], [ 0., 1., 0., 1.], [ 0., 0., 1., 1.]]) : np.c_[ np.ones(N), A, np.ones(N) ] # or two array([[ 1., 1., 0., 0., 1.], [ 1., 0., 1., 0., 1.], [ 1., 0., 0., 1., 1.]]) : np.r_[ A, [A[1]] ] # add a row array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.], [ 0., 1., 0.]]) : # not np.r_[ A, A[1] ] : np.r_[ A[0], 1, 2, 3, A[1] ] # mix vecs and scalars array([ 1., 0., 0., 1., 2., 3., 0., 1., 0.]) : np.r_[ A[0], [1, 2, 3], A[1] ] # lists array([ 1., 0., 0., 1., 2., 3., 0., 1., 0.]) : np.r_[ A[0], (1, 2, 3), A[1] ] # tuples array([ 1., 0., 0., 1., 2., 3., 0., 1., 0.]) : np.r_[ A[0], 1:4, A[1] ] # same, 1:4 == arange(1,4) == 1,2,3 array([ 1., 0., 0., 1., 2., 3., 0., 1., 0.]) (The reason for square brackets [] instead of round () is that Python expands e.g. 1:4 in square -- the wonders of overloading.) </s><s>[INST] How to take column-slices of dataframe in pandas I load a some machine learning data from a csv file. The first 2 columns are observations and the remaining columns are features. Currently, I do the following : data = pandas.read_csv('mydata.csv') which gives something like: data = pandas.DataFrame(np.random.rand(10,5), columns = list('abcde')) I'd like to slice this dataframe in two dataframes: one containing the columns a and b and one containing the columns c, d and e. It is not possible to write something like observations = data[:'c'] features = data['c':] I'm not sure what the best method is. Do I need a panel? By the way, I find dataframe indexing pretty inconsistent: data['a'] is permitted, but data[0] is not. On the other side, data['a':] is not permitted but data[0:] is. Is there a practical reason for this? This is really confusing if columns are indexed by Int, given that data[0] != data[0:1] [/INST] The DataFrame.ix index is what you want to be accessing. It's a little confusing (I agree that Pandas indexing is perplexing at times!), but the following seems to do what you want: >>> df = DataFrame(np.random.rand(4,5), columns = list('abcde')) >>> df.ix[:,'b':] b c d e 0 0.418762 0.042369 0.869203 0.972314 1 0.991058 0.510228 0.594784 0.534366 2 0.407472 0.259811 0.396664 0.894202 3 0.726168 0.139531 0.324932 0.906575 where .ix[row slice, column slice] is what is being interpreted. More on Pandas indexing here: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-advanced </s><s>[INST] How do I build a numpy array from a generator? How can I build a numpy array out of a generator object? Let me illustrate the problem: >>> import numpy >>> def gimme(): ... for x in xrange(10): ... yield x ... >>> gimme() <generator object at 0x28a1758> >>> list(gimme()) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> numpy.array(xrange(10)) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> numpy.array(gimme()) array(<generator object at 0x28a1758>, dtype=object) >>> numpy.array(list(gimme())) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) In this instance, gimme() is the generator whose output I'd like to turn into an array. However, the array constructor does not iterate over the generator, it simply stores the generator itself. The behaviour I desire is that from numpy.array(list(gimme())), but I don't want to pay the memory overhead of having the intermediate list and the final array in memory at the same time. Is there a more space-efficient way? [/INST] One google behind this stackoverflow result, I found that there is a numpy.fromiter(data, dtype, count). The default count=-1 takes all elements from the iterable. It requires a dtype to be set explicitly. In my case, this worked: numpy.fromiter(something.generate(from_this_input), float) </s><s>[INST] How can I iterate over files in a given directory? I need to iterate through all .asm files of a given directory and do some actions on them. How can this be done in a efficient way? [/INST] for filename in os.listdir(directory): if filename.endswith(".asm") or filename.endswith(".py"): # print(os.path.join(directory, filename)) continue else: continue </s><s>[INST] How are booleans formatted in Strings in Python? I see I can't do: "%b %b" % (True, False) in Python. I guessed %b for b(oolean). Is there something like this? [/INST] >>> print "%r, %r" % (True, False) True, False This is not specific to boolean values - %r calls the __repr__ method on the argument. %s (for str) should also work. </s>��������>��<s>[INST] remove None value from a list without removing the 0 value This was my source I started with. My List L= [0, 23, 234, 89, None, 0, 35, 9] When I run this : L = filter(None, L) I get this results [23, 234, 89, 35, 9] But this is not what I need, what I really need is : [0, 23, 234, 89, 0, 35, 9] Because I'm calculating percentile of the data and the 0 make a lot of difference. How to remove the None value from a list without removing 0 value? EDIT: Changed list to L to avoid shadowing the built in list function. Read the comment below. [/INST] >>> L = [0, 23, 234, 89, None, 0, 35, 9] >>> [x for x in L if x is not None] [0, 23, 234, 89, 0, 35, 9] Just for fun, here's how you can adapt filter to do this without using a lambda, (I wouldn't recommend this code - it's just for scientific purposes) >>> from operator import is_not >>> from functools import partial >>> L = [0, 23, 234, 89, None, 0, 35, 9] >>> filter(partial(is_not, None), L) [0, 23, 234, 89, 0, 35, 9] </s><s>[INST] Display image as grayscale using matplotlib I'm trying to display a grayscale image using matplotlib.pyplot.imshow(). My problem is that the grayscale image is displayed as a colormap. I need the grayscale because I want to draw on top of the image with color. I read in the image and convert to grayscale using PIL's Image.open().convert("L") image = Image.open(file).convert("L") Then I convert the image to a matrix so that I can easily do some image processing using matrix = scipy.misc.fromimage(image, 0) However, when I do figure() matplotlib.pyplot.imshow(matrix) show() it displays the image using a colormap (i.e. it's not grayscale). What am I doing wrong here? I suspect it's something stupid. Thanks for the help! [/INST] import numpy as np import matplotlib.pyplot as plt from PIL import Image fname = 'image.png' image = Image.open(fname).convert("L") arr = np.asarray(image) plt.imshow(arr, cmap='Greys_r') plt.show() </s><s>[INST] Counterintuitive behaviour of int() in python It's clearly stated in the docs that int(number) is a flooring type conversion: int(1.23) 1 and int(string) returns an int if and only if the string is an integer literal. int('1.23') ValueError int('1') 1 Is there any special reason for that? I find it counterintuitive that the function floors in one case, but not the other. [/INST] There is no special reason. Python is simply applying its general principle of not performing implicit conversions, which are well-known causes of problems, particularly for newcomers, in languages such as Perl and Javascript. int(some_string) is an explicit request to convert a string to integer format; the rules for this conversion specify that the string must contain a valid integer literal representation. int(float) is an explicit request to convert a float to an integer; the rules for this conversion specify that the float's fractional portion will be truncated. In order for int("3.1459") to return 3 the interpreter would have to implicitly convert the string to a float. Since Python doesn't support implicit conversions, it chooses to raise an exception instead. </s><s>[INST] How to send email via Django? In my settings.py, I have the following: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # Host for sending e-mail. EMAIL_HOST = 'localhost' # Port for sending e-mail. EMAIL_PORT = 1025 # Optional SMTP authentication information for EMAIL_HOST. EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' EMAIL_USE_TLS = False My email code: from django.core.mail import EmailMessage email = EmailMessage('Hello', 'World', to=['user@gmail.com']) email.send() Of course, if I setup a debugging server via python -m smtpd -n -c DebuggingServer localhost:1025, I can see the email in my terminal. However, how do I actually send the email not to the debugging server but to user@gmail.com? After reading your answers, let me get something straight: Can't you use localhost(simple ubuntu pc) to send e-mails? I thought in django 1.3 send_mail() is somewhat deprecated and EmailMessage.send() is used instead? [/INST] I use Gmail as my SMTP server for Django. Much easier than dealing with postfix or whatever other server. I'm not in the business of managing email servers. In settings.py: EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'me@gmail.com' EMAIL_HOST_PASSWORD = 'password' NOTE: In 2016 Gmail is not allowing this anymore. However, there are a lot of really good services in play now. I recommend something like Sendgrid where you can use pretty much the same configuration as above, except that you'll use Sendgrid's SMTP credentials instead. </s><s>[INST] Reduce left and right margins in matplotlib plot I'm struggling to deal with my plot margins in matplotlib. I've used the code below to produce my chart: plt.imshow(g) c = plt.colorbar() c.set_label("Number of Slabs") plt.savefig("OutputToUse.png") However, I get an output figure with lots of white space on either side of the plot. I've searched google and read the matplotlib documentation, but I can't seem to find how to reduce this. [/INST] One way to automatically do this is the bbox_inches='tight' kwarg to plt.savefig. E.g. import matplotlib.pyplot as plt import numpy as np data = np.arange(3000).reshape((100,30)) plt.imshow(data) plt.savefig('test.png', bbox_inches='tight') Another way is to use fig.tight_layout() import matplotlib.pyplot as plt import numpy as np xs = np.linspace(0, 1, 20); ys = np.sin(xs) fig = plt.figure() axes = fig.add_subplot(1,1,1) axes.plot(xs, ys) # This should be called after all axes have been added fig.tight_layout() fig.savefig('test.png') </s><s>[INST] Python check for valid email address? Is there a good way to check a form input using regex to make sure it is a proper style email address? Been searching since last night and everybody that has answered peoples questions regarding this topic also seems to have problems with it if it is a subdomained email address. [/INST] There is no point. Even if you can verify that the email address is syntactically valid, you'll still need to check that it was not mistyped, and that it actually goes to the person you think it does. The only way to do that is to send them an email and have them click a link to verify. Therefore, a most basic check (e.g. that they didn't accidentally entered their street address) is usually enough. Something like: it has exactly one @ sign, and at least one . in the part after the @: [^@]+@[^@]+\.[^@]+ You'd probably also want to disallow whitespace -- there are probably valid email addresses with whitespace in them, but I've never seen one, so the odds of this being a user error are on your side. If you want the full check, have a look at this question. Update: Here's how you could use any such regex: import re if not re.match(r"... regex here ...", email): # whatever Note the r in front of the string; this way, you won't need to escape things twice. If you have a large number of regexes to check, it might be faster to compile the regex first: import re EMAIL_REGEX = re.compile(r"... regex here ...") if not EMAIL_REGEX.match(email): # whatever </s><s>[INST] Is there a difference between `continue` and `pass` in a for loop in python? Is there any significant difference between between the two python keywords continue and pass like in the examples for element in some_list: if not element: pass and for element in some_list: if not element: continue I should be aware of? [/INST] Yes, they do completely different things. pass simply does nothing, while continue goes on with the next loop iteration. In your example, the difference would become apparent if you added another statement after the if: After executing pass, this further statement would be executed. After continue, it wouldn't. >>> a = [0, 1, 2] >>> for element in a: ... if not element: ... pass ... print element ... 0 1 2 >>> for element in a: ... if not element: ... continue ... print element ... 1 2 </s><s>[INST] Saving an Object (Data persistence in Python) I've created an object like this: company1.name = 'banana' company1.value = 40 I would like to save this object. How can I do that? [/INST] You could use the pickle module in the standard library. Here's an elementary application of it to your example: import pickle class Company(object): def __init__(self, name, value): self.name = name self.value = value with open('company_data.pkl', 'wb') as output: company1 = Company('banana', 40) pickle.dump(company1, output, pickle.HIGHEST_PROTOCOL) company2 = Company('spam', 42) pickle.dump(company2, output, pickle.HIGHEST_PROTOCOL) del company1 del company2 with open('company_data.pkl', 'rb') as input: company1 = pickle.load(input) print(company1.name) # -> banana print(company1.value) # -> 40 company2 = pickle.load(input) print(company2.name) # -> spam print(company2.value) # -> 42 You could also use a simple utility like the following which opens a file and writes a single object to it: def save_object(obj, filename): with open(filename, 'wb') as output: pickle.dump(obj, output, pickle.HIGHEST_PROTOCOL) # sample usage save_object(company1, 'company1.pkl') Update: Since this is such a popular answer, I'd like touch on a few slightly advanced usage topics. First, it's almost always preferable to actually use the cPickle module rather than pickle because the former is written in C and is much faster. There are some subtle differences between them, but in most situations they're equivalent and the C version will provide greatly superior performance. Switching to it couldn't be easier, just change the import statement to this: import cPickle as pickle (Note: In Python 3, cPickle was renamed _pickle, but doing this is no longer necessary because the pickle module now does it automatically — see question What difference between pickle and _pickle in python 3?). Secondly, instead of writing pickle.HIGHEST_PROTOCOL in every call (assuming that's what you want, and you usually do), you can instead just use the literal -1. So, instead of writing: pickle.dump(obj, output, pickle.HIGHEST_PROTOCOL) You can just write: pickle.dump(obj, output, -1) Which is quite a bit shorter. An even better way where you only have specify the protocol once is to create a Pickler object and use it to do multiple pickle operations: pickler = pickle.Pickler(output, -1) pickler.dump(obj1) pickler.dump(obj2) etc... </s><s>[INST] How to switch position of two items in a Python list? I haven’t been able to find a good solution for this problem on the net (probably because switch, position, list and Python are all such overloaded words). It’s rather simple – I have this list: ['title', 'email', 'password2', 'password1', 'first_name', 'last_name', 'next', 'newsletter'] I’d like to switch position of 'password2' and 'password1' – not knowing their exact position, only that they’re right next to one another and password2 is first. I’ve accomplished this with some rather long-winded list-subscripting, but I wondered its possible to come up with something a bit more elegant? [/INST] i = ['title', 'email', 'password2', 'password1', 'first_name', 'last_name', 'next', 'newsletter'] a, b = i.index('password2'), i.index('password1') i[b], i[a] = i[a], i[b] </s><s>[INST] Length of generator output Python provides a nice method for getting length of an eager iterable, len(x) that is. But I couldn't find anything similar for lazy iterables represented by generator comprehensions and functions. Of course, it is not hard to write something like: def iterlen(x): n = 0 try: while True: next(x) n += 1 except StopIteration: pass return n But I can't get rid of a feeling that I'm reimplementing a bicycle. (While I was typing the function, a thought struck my mind: maybe there really is no such function, because it "destroys" its argument. Not an issue for my case, though). P.S.: concerning the first answers - yes, something like len(list(x)) would work too, but that drastically increases the usage of memory. P.P.S.: re-checked... Disregard the P.S., seems I made a mistake while trying that, it works fine. Sorry for the trouble. [/INST] The easiest way is probably just sum(1 for _ in gen) where gen is your generator. </s><s>[INST] Django import error - no module named django.conf.urls.defaults I am trying to run statsd/graphite which uses django 1.6. While accessing graphite URL, I get django module error File "/opt/graphite/webapp/graphite/urls.py", line 15, in from django.conf.urls.defaults import * ImportError: No module named defaults However, I do not find defaults django package inside /Library/Python/2.7/site-packages/django/conf/urls/ Please help fixing this issue. [/INST] django.conf.urls.defaults has been removed in Django 1.6. If the problem was in your own code, you would fix it by changing the import to from django.conf.urls import patterns, url, include However, in your case the problem is in a third party app, graphite. The issue has been fixed in graphite's master branch and version 0.9.14+. </s><s>[INST] Parse config files, environment, and command-line arguments, to get a single collection of options Python's standard library has modules for configuration file parsing (configparser), environment variable reading (os.environ), and command-line argument parsing (argparse). I want to write a program that does all those, and also: Has a cascade of option values: default option values, overridden by config file options, overridden by environment variables, overridden by command-line options. Allows one or more configuration file locations specified on the command line with e.g. --config-file foo.conf, and reads that (either instead of, or additional to, the usual configuration file). This must still obey the above cascade. Allows option definitions in a single place to determine the parsing behaviour for configuration files and the command line. Unifies the parsed options into a single collection of option values for the rest of the program to access without caring where they came from. Everything I need is apparently in the Python standard library, but they don't work together smoothly. How can I achieve this with minimum deviation from the Python standard library? [/INST] The argparse module makes this not nuts, as long as you're happy with a config file that looks like command line. (I think this is an advantage, because users will only have to learn one syntax.) Setting fromfile_prefix_chars to, for example, @, makes it so that, my_prog --foo=bar is equivalent to my_prog @baz.conf if @baz.conf is, --foo bar You can even have your code look for foo.conf automatically by modifying argv if os.path.exists('foo.conf'): argv = ['@foo.conf'] + argv args = argparser.parse_args(argv) The format of these configuration files is modifiable by making a subclass of ArgumentParser and adding a convert_arg_line_to_args method. </s><s>[INST] How to use a dot "." to access members of dictionary? How do I make Python dictionary members accessible via a dot "."? For example, instead of writing mydict['val'], I'd like to write mydict.val. Also I'd like to access nested dicts this way. For example, mydict.mydict2.val would refer to mydict = { 'mydict2': { 'val': ... } }. Thanks, Boda Cydo. [/INST] Derive from dict and and implement __getattr__ and __setattr__. Or you can use Bunch which is very similar. I don't think it's possible to monkeypatch built-in dict class. </s><s>[INST] How to integrate pep8.py in Eclipse? A little background: PEP 8 is the Style Guide for Python Code. It contains the conventions all python programmers should follow. pep8.py is a (very useful) script that checks the code formating of a given python script, according to PEP 8. Eclipse is a great IDE. With the Pydev extension, it that can be used to develop Python I run pep8.py manually when I'm scripting, but with bigger projects I prefer to use Eclipse. It would be really useful to integrate pep8.py in Eclipse/Pydev, so it can be run automatically in all the files in the project, and point to the lines containing the warnings. Maybe there is an obvious way to do it, but I haven't found it yet. Question is: How to integrate pep8.py in Eclipse? [/INST] As of PyDev 2.3.0, pep8 is integrated in PyDev by default, even shipping with a default version of it. Open Window > Preferences It must be enabled in PyDev > Editor > Code Analysis > pep8.py Errors/Warnings should be shown as markers (as other things in the regular code analysis). In the event a file is not analyzed, see https://stackoverflow.com/a/31001619/832230. </s><s>[INST] Python function overloading I know that Python does not support method overloading, but I've run into a problem that I can't seem to solve in a nice Pythonic way. I am making a game where a character needs to shoot a variety of bullets, but how do I write different functions for creating these bullets? For example suppose I have a function that creates a bullet travelling from point A to B with a given speed. I would write a function like this: def add_bullet(sprite, start, headto, speed): ... Code ... But I want to write other functions for creating bullets like: def add_bullet(sprite, start, direction, speed): def add_bullet(sprite, start, headto, spead, acceleration): def add_bullet(sprite, script): # For bullets that are controlled by a script def add_bullet(sprite, curve, speed): # for bullets with curved paths ... And so on ... And so on with many variations. Is there a better way to do it without using so many keyword arguments cause its getting kinda ugly fast. Renaming each function is pretty bad too because you get either add_bullet1, add_bullet2, or add_bullet_with_really_long_name. To address some answers: No I can't create a Bullet class hierarchy because thats too slow. The actual code for managing bullets is in C and my functions are wrappers around C API. I know about the keyword arguments but checking for all sorts of combinations of parameters is getting annoying, but default arguments help allot like acceleration=0 [/INST] Python does support "method overloading" as you present it. In fact, what you just describe is trivial to implement in Python, in so many different ways, but I would go with: class Character(object): # your character __init__ and other methods go here def add_bullet(self, sprite=default, start=default, direction=default, speed=default, accel=default, curve=default): # do stuff with your arguments In the above code, default is a plausible default value for those arguments, or None. You can then call the method with only the arguments you are interested in, and Python will use the default values. You could also do something like this: class Character(object): # your character __init__ and other methods go here def add_bullet(self, **kwargs): # here you can unpack kwargs as (key, values) and # do stuff with them, and use some global dictionary # to provide default values and ensure that ``key`` # is a valid argument... # do stuff with your arguments Another alternative is to directly hook the desired function directly to the class or instance: def some_implementation(self, arg1, arg2, arg3): # implementation my_class.add_bullet = some_implementation_of_add_bullet Yet another way is to use an abstract factory pattern: class Character(object): def __init__(self, bfactory, *args, **kwargs): self.bfactory = bfactory def add_bullet(self): sprite = self.bfactory.sprite() speed = self.bfactory.speed() # do stuff with your sprite and speed class pretty_and_fast_factory(object): def sprite(self): return pretty_sprite def speed(self): return 10000000000.0 my_character = Character(pretty_and_fast_factory(), a1, a2, kw1=v1, kw2=v2) my_character.add_bullet() # uses pretty_and_fast_factory # now, if you have another factory called "ugly_and_slow_factory" # you can change it at runtime in python by issuing my_character.bfactory = ugly_and_slow_factory() # In the last example you can see abstract factory and "method # overloading" (as you call it) in action </s><s>[INST] Python Progress Bar How do I use a progress bar when my script is doing some task that is likely to take time? For example, a function which takes some time to complete and returns True when done. How can I display a progress bar during the time the function is being executed? Note that I need this to be in real time, so I can't figure out what to do about it. Do I need a thread for this? I have no idea. Right now I am not printing anything while the function is being executed, however a progress bar would be nice. Also I am more interested in how this can be done from a code point of view. [/INST] There are specific libraries (like this one here) but maybe something very simple would do: import time import sys toolbar_width = 40 # setup toolbar sys.stdout.write("[%s]" % (" " * toolbar_width)) sys.stdout.flush() sys.stdout.write("\b" * (toolbar_width+1)) # return to start of line, after '[' for i in xrange(toolbar_width): time.sleep(0.1) # do real work here # update the bar sys.stdout.write("-") sys.stdout.flush() sys.stdout.write("\n") Note: this progressbar is a fork of progressbar which hasn't been maintained in years. </s><s>[INST] Python: How to make a cross-module variable? The __debug__ variable is handy in part because it affects every module. If I want to create another variable that works the same way, how would I do it? The variable (let's be original and call it 'foo') doesn't have to be truly global, in the sense that if I change foo in one module, it is updated in others. I'd be fine if I could set foo before importing other modules and then they would see the same value for it. [/INST] If you need a global cross-module variable maybe just simple global module-level variable will suffice. a.py: var = 1 b.py: import a print a.var import c print a.var c.py: import a a.var = 2 Test: $ python b.py # -> 1 2 Real-world example: Django's global_settings.py (though in Django apps settings are used by importing the object django.conf.settings). </s><s>[INST] Python: Bind an Unbound Method? In Python, is there a way to bind an unbound method without calling it? I am writing a wxPython program, and for a certain class I decided it'd be nice to group the data of all of my buttons together as a class-level list of tuples, like so: class MyWidget(wx.Window): buttons = [("OK", OnOK), ("Cancel", OnCancel)] # ... def Setup(self): for text, handler in MyWidget.buttons: # This following line is the problem line. b = wx.Button(parent, label=text).Bind(wx.EVT_BUTTON, handler) The problem is, since all of the values of handler are unbound methods, my program explodes in a spectacular blaze and I weep. I was looking around online for a solution to what seems like should be a relatively straightforward, solvable problem. Unfortunately I couldn't find anything. Right now, I'm using functools.partial to work around this, but does anyone know if there's a clean-feeling, healthy, Pythonic way to bind an unbound method to an instance and continue passing it around without calling it? [/INST] All functions are also descriptors, so you can bind them by calling their __get__ method: bound_handler = handler.__get__(self, MyWidget) Here's R. Hettinger's excellent guide to descriptors. </s><s>[INST] Django 1.7 - makemigrations not detecting changes As the title says, I can't seem to get migrations working. The app was originally under 1.6, so I understand that migrations won't be there initially, and indeed if I run python manage.py migrate I get: Operations to perform: Synchronize unmigrated apps: myapp Apply all migrations: admin, contenttypes, auth, sessions Synchronizing apps without migrations: Creating tables... Installing custom SQL... Installing indexes... Running migrations: No migrations to apply. If I make a change to any models in myapp, it still says unmigrated, as expected. But if I run python manage.py makemigrations myapp I get: No changes detected in app 'myapp' Doesn't seem to matter what or how I run the command, it's never detecting the app as having changes, nor is it adding any migration files to the app. Is there any way to force an app onto migrations and essentially say "This is my base to work with" or anything? Or am I missing something? My database is a PostgreSQL one if that helps at all. [/INST] If you're changing over from an existing app you made in django 1.6, then you need to do one pre-step (as I found out) listed in the documentation: python manage.py makemigrations your_app_label The documentation does not make it obvious that you need to add the app label to the command, as the first thing it tells you to do is python manage.py makemigrations which will fail. The initial migration is done when you create your app in version 1.7, but if you came from 1.6 it wouldn't have been carried out. See the 'Adding migration to apps' in the documentation for more details. </s><s>[INST] Django equivalent for count and group by I have a model that looks like this: class Category(models.Model): name = models.CharField(max_length=60) class Item(models.Model): name = models.CharField(max_length=60) category = models.ForeignKey(Category) I want select count (just the count) of items for each category, so in SQL it would be as simple as this: select category_id, count(id) from item group by category_id Is there an equivalent of doing this "the Django way"? Or is plain SQL the only option? I am familiar with the count( ) method in Django, however I don't see how group by would fit there. [/INST] Here, as I just discovered, is how to do this with the Django 1.1 aggregation API: from django.db.models import Count theanswer = Item.objects.values('category').annotate(Count('category')) </s><s>[INST] Python: How do I get a reference to a module inside the module itself? How can I get a reference to a module from within that module? Also, how can I get a reference to the package containing that module? [/INST] import sys current_module = sys.modules[__name__] </s><s>[INST] How can I get the version defined in setup.py (setuptools) in my package? How could I get the version defined in setup.py from my package (for --version, or other purposes)? [/INST] Interrogate version string of already-installed distribution To retrieve the version from inside your package at runtime (what your question appears to actually be asking), you can use: import pkg_resources # part of setuptools version = pkg_resources.require("MyProject")[0].version Store version string for use during install If you want to go the other way 'round (which appears to be what other answer authors here appear to have thought you were asking), put the version string in a separate file and read that file's contents in setup.py. You could make a version.py in your package with a __version__ line, then read it from setup.py using execfile('mypackage/version.py'), so that it sets __version__ in the setup.py namespace. If you want a much simpler way that will work with all Python versions and even non-Python languages that may need access to the version string: Store the version string as the sole contents of a plain text file, named e.g. VERSION, and read that file during setup.py. version_file = open(os.path.join(mypackage_root_dir, 'VERSION')) version = version_file.read().strip() The same VERSION file will then work exactly as well in any other program, even non-Python ones, and you only need to change the version string in one place for all programs. Warning about race condition during install By the way, DO NOT import your package from your setup.py as suggested in another answer here: it will seem to work for you (because you already have your package's dependencies installed), but it will wreak havoc upon new users of your package, as they will not be able to install your package without manually installing the dependencies first. </s><s>[INST] Call a python function from jinja2 I am using jinja2, and I want to call a python function as a helper, using a similar syntax as if I were calling a macro. jinja2 seems intent on preventing me from making a function call, and insists I repeat myself by copying the function into a template as a macro. Is there any straightforward way to do this? And, is there any way to import a whole set of python functions and have them accessible from jinja2, without going through a whole lot of rigamarole (such as writing an extension)? [/INST] For those using Flask, put this in your __init__.py: def clever_function(): return u'HELLO' app.jinja_env.globals.update(clever_function=clever_function) and in your template call it with {{ clever_function() }} </s><s>[INST] Why is "if not someobj:" better than "if someobj == None:" in Python? I've seen several examples of code like this: if not someobj: #do something But I'm wondering why not doing: if someobj == None: #do something Is there any difference? Does one have an advantage over the other? [/INST] In the first test, Python try to convert the object to a bool value if it is not already one. Roughly, we are asking the object : are you meaningful or not ? This is done using the following algorithm : If the object has a __nonzero__ special method (as do numeric built-ins, int and float), it calls this method. It must either return a bool value which is then directly used, or an int value that is considered False if equal to zero. Otherwise, if the object has a __len__ special method (as do container built-ins, list, dict, set, tuple, ...), it calls this method, considering a container False if it is empty (length is zero). Otherwise, the object is considered True unless it is None in which case, it is considered False. In the second test, the object is compared for equality to None. Here, we are asking the object, "Are you equal to this other value?" This is done using the following algorithm : If the object has a __eq__ method, it is called, and the return value is then converted to a boolvalue and used to determine the outcome of the if. Otherwise, if the object has a __cmp__ method, it is called. This function must return an int indicating the order of the two object (-1 if self < other, 0 if self == other, +1 if self > other). Otherwise, the object are compared for identity (ie. they are reference to the same object, as can be tested by the is operator). There is another test possible using the is operator. We would be asking the object, "Are you this particular object?" Generally, I would recommend to use the first test with non-numerical values, to use the test for equality when you want to compare objects of the same nature (two strings, two numbers, ...) and to check for identity only when using sentinel values (None meaning not initialized for a member field for exemple, or when using the getattr or the __getitem__ methods). To summarize, we have : >>> class A(object): ... def __repr__(self): ... return 'A()' ... def __nonzero__(self): ... return False >>> class B(object): ... def __repr__(self): ... return 'B()' ... def __len__(self): ... return 0 >>> class C(object): ... def __repr__(self): ... return 'C()' ... def __cmp__(self, other): ... return 0 >>> class D(object): ... def __repr__(self): ... return 'D()' ... def __eq__(self, other): ... return True >>> for obj in ['', (), [], {}, 0, 0., A(), B(), C(), D(), None]: ... print '%4s: bool(obj) -> %5s, obj == None -> %5s, obj is None -> %5s' % \ ... (repr(obj), bool(obj), obj == None, obj is None) '': bool(obj) -> False, obj == None -> False, obj is None -> False (): bool(obj) -> False, obj == None -> False, obj is None -> False []: bool(obj) -> False, obj == None -> False, obj is None -> False {}: bool(obj) -> False, obj == None -> False, obj is None -> False 0: bool(obj) -> False, obj == None -> False, obj is None -> False 0.0: bool(obj) -> False, obj == None -> False, obj is None -> False A(): bool(obj) -> False, obj == None -> False, obj is None -> False B(): bool(obj) -> False, obj == None -> False, obj is None -> False C(): bool(obj) -> True, obj == None -> True, obj is None -> False D(): bool(obj) -> True, obj == None -> True, obj is None -> False None: bool(obj) -> False, obj == None -> True, obj is None -> True </s><s>[INST] How do I write output in same place on the console? I am new to python and am writing some scripts to automate downloading files from FTP servers, etc. I want to show the progress of the download, but I want it to stay in the same position, such as: output: Downloading File FooFile.txt [47%] I'm trying to avoid something like this: Downloading File FooFile.txt [47%] Downloading File FooFile.txt [48%] Downloading File FooFile.txt [49%] How should I go about doing this? Duplicate: http://stackoverflow.com/questions/465348/how-can-i-print-over-the-current-line-in-a-command-line-application/465360#465360 [/INST] You can also use the carriage return: sys.stdout.write("Download progress: %d%% \r" % (progress) ) sys.stdout.flush() </s><s>[INST] Is generator.next() visible in python 3.0? I have a generator that generates a series, for example: def triangleNums(): '''generate series of triangle numbers''' tn = 0 counter = 1 while(True): tn = tn + counter yield tn counter = counter + 1 in python 2.6 I am able to make the following calls: g = triangleNums() # get the generator g.next() # get next val however in 3.0 if I execute the same two lines of code I'm getting the following error: AttributeError: 'generator' object has no attribute 'next' but, the loop iterator syntax does work in 3.0 for n in triangleNums(): if not exitCond: doSomething... I've not been able to find anything yet that explains this difference in behavior for 3.0. [/INST] Correct, g.next() has been renamed to g.__next__(). The reason for this is to have consistence. Special methods like __init__() and __del__ all have double underscores (or "dunder" as it is getting popular to call them now), and .next() is one of the few exceptions to that rule. Python 3.0 fixes that. [*] But instead of calling g.__next__(), as Paolo says, use next(g). [*] There are more special attributes who has gotten this fix, like function attributes. No longer func_name, it's now __name__, etc. </s><s>[INST] Remove xticks in a matplot lib plot? I have a semilogx plot and I would like to remove the xticks. I tried : plt.gca().set_xticks([]) plt.xticks([]) ax.set_xticks([]) The grid disappear (ok), but small ticks (at the place of the main ticks) remain. How to remove them ? [/INST] The tick_params method is very useful for stuff like this. This code turns off major and minor ticks and removes the labels from the x-axis. from matplotlib import pyplot as plt plt.plot(range(10)) plt.tick_params( axis='x', # changes apply to the x-axis which='both', # both major and minor ticks are affected bottom='off', # ticks along the bottom edge are off top='off', # ticks along the top edge are off labelbottom='off') # labels along the bottom edge are off plt.show() plt.savefig('plot') plt.clf() </s><s>[INST] pandas + dataframe - select by partial string I have a DataFrame with 4 columns of which 2 contain string values. I was wondering if there was a way to select rows based on a partial string match against a particular column? In other words, a function or lambda function that would do something like re.search(pattern, cell_in_question) returning a boolean. I am familiar with the syntax of df[df['A'] == "hello world"] but can't seem to find a way to do the same with a partial string match say 'hello'. Would someone be able to point me in the right direction? [/INST] Based on github issue #620, it looks like you'll soon be able to do the following: df[df['A'].str.contains("hello")] Update: vectorized string methods (i.e., Series.str) are available in pandas 0.8.1 and up. </s><s>[INST] Converting XML to JSON using Python? I've seen a fair share of ungainly XML->JSON code on the web, and having interacted with Stack's users for a bit, I'm convinced that this crowd can help more than the first few pages of Google results can. So, we're parsing a weather feed, and we need to populate weather widgets on a multitude of web sites. We're looking now into Python-based solutions. This public weather.com RSS feed is a good example of what we'd be parsing (our actual weather.com feed contains additional information because of a partnership w/them). In a nutshell, how should we convert XML to JSON using Python? [/INST] xmltodict (full disclosure: I wrote it) can help you convert your XML to a dict+list+string structure, following this "standard". It is Expat-based, so it's very fast and doesn't need to load the whole XML tree in memory. Once you have that data structure, you can serialize it to JSON: import xmltodict, json o = xmltodict.parse('<e> <a>text</a> <a>text</a> </e>') json.dumps(o) # '{"e": {"a": ["text", "text"]}}' </s><s>[INST] Python: Checking if a 'Dictionary' is empty doesn't seem to work I am trying to check if a dictionary is empty but it doesn't behave properly. It just skips it and displays ONLINE without anything except of display the message. Any ideas why ? def isEmpty(self, dictionary): for element in dictionary: if element: return True return False def onMessage(self, socket, message): if self.isEmpty(self.users) == False: socket.send("Nobody is online, please use REGISTER command" \ " in order to register into the server") else: socket.send("ONLINE " + ' ' .join(self.users.keys())) [/INST] Empty dictionaries evaluate to False in Python: >>> dct = {} >>> bool(dct) False >>> not dct True >>> Thus, your isEmpty function is unnecessary. All you need to do is: def onMessage(self, socket, message): if not self.users: socket.send("Nobody is online, please use REGISTER command" \ " in order to register into the server") else: socket.send("ONLINE " + ' ' .join(self.users.keys())) </s><s>[INST] Does "\d" in regex mean a digit? I found that in 123, \d matches 1 and 3 but not 2. I was wondering if \d matches a digit satisfying what kind of requirement? I am talking about Python style regex. Regular expression plugin in Gedit is using Python style regex. I created a text file with its content being 123 Only 1 and 3 are matched by the regex \d; 2 is not. Generally for a sequence of digit numbers without other characters in between, only the odd order digits are matches, and the even order digits are not. For example in 12345, the matches are 1, 3 and 5. [/INST] [0-9] isn't equivalent to \d. [0-9] matches only 0123456789 characters, while \d matches [0-9] and other digit characters, for example Eastern Arabic numerals ٠١٢٣٤٥٦٧٨٩ </s><s>[INST] Is there something like RStudio for Python? In RStudio, you can run parts of code in the code editing window, and the results appear in the console. You can also do cool stuff like selecting whether you want everything up to the cursor to run, or everything after the cursor, or just the part that you selected, and so on. And there are hot keys for all that stuff. It's like a step above the interactive shell in Python -- there you can use readline to go back to previous individual lines, but it doesn't have any "concept" of what a function is, a section of code, etc. Is there a tool like that for Python? Or, do you have some sort of similar workaround that you use, say, in vim? [/INST] IPython Notebooks are awesome. Here's another, newer browser-based tool I've recently discovered: Rodeo. My impression is that it seems to better support an RStudio-like workflow. </s><s>[INST] Programmatically generate video or animated GIF in Python? I have a series of images that I want to create a video from. Ideally I could specify a frame duration for each frame but a fixed frame rate would be fine too. I'm doing this in wxPython, so I can render to a wxDC or I can save the images to files, like PNG. Is there a Python library that will allow me to create either a video (AVI, MPG, etc) or an animated GIF from these frames? Edit: I've already tried PIL and it doesn't seem to work. Can someone correct me with this conclusion or suggest another toolkit? This link seems to backup my conclusion regarding PIL: http://www.somethinkodd.com/oddthinking/2005/12/06/python-imaging-library-pil-and-animated-gifs/ [/INST] As of June 2009 the originally cited blog post has a method to create animated GIFs in the comments. Download the script images2gif.py (formerly images2gif.py, update courtesy of @geographika). Then, to reverse the frames in a gif, for instance: #!/usr/bin/env python from PIL import Image, ImageSequence import sys, os filename = sys.argv[1] im = Image.open(filename) original_duration = im.info['duration'] frames = [frame.copy() for frame in ImageSequence.Iterator(im)] frames.reverse() from images2gif import writeGif writeGif("reverse_" + os.path.basename(filename), frames, duration=original_duration/1000.0, dither=0) </s>��������.��<s>[INST] What is the best way to compare floats for almost-equality in Python? It's well known that comparing floats for equality is a little fiddly due to rounding and precision issues. For example: http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm What is the recommended way to deal with this in Python? Surely there is a standard library function for this somewhere? [/INST] Python 3.5 adds the math.isclose and cmath.isclose functions as described in PEP 485. If you're using an earlier version of Python, the equivalent function is given in the documentation. def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) </s><s>[INST] JSON serialization of Google App Engine models I've been searching for quite a while with no success. My project isn't using Django, is there a simple way to serialize App Engine models (google.appengine.ext.db.Model) into JSON or do I need to write my own serializer? Model: class Photo(db.Model): filename = db.StringProperty() title = db.StringProperty() description = db.StringProperty(multiline=True) date_taken = db.DateTimeProperty() date_uploaded = db.DateTimeProperty(auto_now_add=True) album = db.ReferenceProperty(Album, collection_name='photo') [/INST] A simple recursive function can be used to convert an entity (and any referents) to a nested dictionary that can be passed to simplejson: import datetime import time SIMPLE_TYPES = (int, long, float, bool, dict, basestring, list) def to_dict(model): output = {} for key, prop in model.properties().iteritems(): value = getattr(model, key) if value is None or isinstance(value, SIMPLE_TYPES): output[key] = value elif isinstance(value, datetime.date): # Convert date/datetime to MILLISECONDS-since-epoch (JS "new Date()"). ms = time.mktime(value.utctimetuple()) * 1000 ms += getattr(value, 'microseconds', 0) / 1000 output[key] = int(ms) elif isinstance(value, db.GeoPt): output[key] = {'lat': value.lat, 'lon': value.lon} elif isinstance(value, db.Model): output[key] = to_dict(value) else: raise ValueError('cannot encode ' + repr(prop)) return output </s><s>[INST] How do I disable a Pylint warning? I'm trying to disable warning C0321 ("more than one statement on a single line" -- I often put if statements with short single-line results on the same line), in Pylint 0.21.1 (if it matters: astng 0.20.1, common 0.50.3, Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)). I've tried adding disable=C0321 in the Pylint configuration file, but Pylint insists on reporting it anyway. Variations on that line (like disable=0321 or disable=C321) are flagged as errors, so Pylint does recognize the option properly, it's just ignoring it. Is this a Pylint bug, or am I doing something wrong? Is there any way around this? I'd really like to get rid of some of this noise. [/INST] I had this problem using Eclipse and solved it as follows: in the pylint folder (e.g. C:\Python26\Lib\site-packages\pylint), hold shift, right-click and choose to open the windows command in that folder. Type: lint.py --generate-rcfile > standard.rc This creates the 'standard.rc' configuration file. Open it in notepad and under '[MESSAGES CONTROL]', uncomment 'disable=' and add the message ID's you want to disable, e.g.: disable=W0511, C0321 Save the file, and in Eclipse->window->preferences->PyDev->pylint, in the arguments box, type: --rcfile=C:\Python26\Lib\site-packages\pylint\standard.rc Now it should work ... You can also add a comment at the top of your code that will be interpreted by pylint: # pylint: disable=C0321 link to all pylint message codes Adding e.g. --disable-ids=C0321 in the arguments box does not work. All available pylint messages are stored in the dictionary '_messages', an attribute of an instance of the pylint.utils.MessagesHandlerMixIn class. When running pylint with the argument --disable-ids=... (at least without a config file), this dictionary is initially empty, raising a KeyError exception within pylint (pylint.utils.MessagesHandlerMixIn.check_message_id(). In Eclipse, you can see this error-message in the Pylint Console (windows - show view - Console, select Pylint console from the console options besides the console icon.) </s><s>[INST] What would a "frozen dict" be? A frozen set is a frozenset. A frozen list could be a tuple. What would a frozen dict be? An immutable, hashable dict. I guess it could be something like collections.namedtuple, but that is more like a frozen-keys dict (a half-frozen dict). Isn't it? A "frozendict" should be a frozen dictionary, it should have keys, values, get, etc., and support in, for, etc. [/INST] Python doesn't have a builtin frozendict type. It turns out this wouldn't be useful too often (though it would still probably be useful more often than frozenset is). The most common reason to want such a type is when memoizing function calls for functions with unknown arguments. The most common solution to store a hashable equivalent of a dict (where the values are hashable) is something like tuple(sorted(kwargs.iteritems())). This depends on the sorting not being a bit insane. Python cannot positively promise sorting will result in something reasonable here. (But it can't promise much else, so don't sweat it too much.) You could easily enough make some sort of wrapper that works much like a dict. It might look something like import collections class FrozenDict(collections.Mapping): """Don't forget the docstrings!!""" def __init__(self, *args, **kwargs): self._d = dict(*args, **kwargs) self._hash = None def __iter__(self): return iter(self._d) def __len__(self): return len(self._d) def __getitem__(self, key): return self._d[key] def __hash__(self): # It would have been simpler and maybe more obvious to # use hash(tuple(sorted(self._d.iteritems()))) from this discussion # so far, but this solution is O(n). I don't know what kind of # n we are going to run into, but sometimes it's hard to resist the # urge to optimize when it will gain improved algorithmic performance. if self._hash is None: self._hash = 0 for pair in self.iteritems(): self._hash ^= hash(pair) return self._hash It should work great: >>> x = FrozenDict(a=1, b=2) >>> y = FrozenDict(a=1, b=2) >>> x is y False >>> x == y True >>> x == {'a': 1, 'b': 2} True >>> d = {x: 'foo'} >>> d[y] 'foo' </s><s>[INST] How to import a Python class that is in a directory above? I want to inherit from a class in a file that lies in a directory above the current one. Is it possible to relatively import that file? [/INST] Inside a package hierarchy, use two dots, as the import statement doc says: When specifying what module to import you do not have to specify the absolute name of the module. When a module or package is contained within another package it is possible to make a relative import within the same top package without having to mention the package name. By using leading dots in the specified module or package after from you can specify how high to traverse up the current package hierarchy without specifying exact names. One leading dot means the current package where the module making the import exists. Two dots means up one package level. Three dots is up two levels, etc. So if you execute from . import mod from a module in the pkg package then you will end up importing pkg.mod. If you execute from ..subpkg2 import mod from within pkg.subpkg1 you will import pkg.subpkg2.mod. The specification for relative imports is contained within PEP 328. PEP 328 deals with absolute/relative imports. </s><s>[INST] What is the recommended way to use Vim folding for Python code I am interested in enabling code folding in Vim for Python code. I have noticed multiple ways to do so. Does anyone have a preferred way to do Python code folding in Vim? I.e, Do you have a particular Vim plugin that you use and like? Do you use manual folding or do you place markers in comments? Any other recommended ways to do code folding for Python in Vim? [/INST] Personally I can't convince myself to litter my code with the markers. I've become pretty used to (and efficient) at using indent-folding. Together with my mapping of space bar (see below) to open/close folds and the zR and zM commands, I'm right at home. Perfect for Python! nnoremap <space> za vnoremap <space> zf </s><s>[INST] How to convert an int to a hex string? I want to take an integer (that will be <= 255), to a hex string representation e.g.: I want to pass in 65 and get out '\x41', or 255 and get '\xff'. I've tried doing this with the struct.pack('c',65), but that chokes on anything above 9 since it wants to take in a single character string. [/INST] You are looking for the chr function. You seem to be mixing decimal representations of integers and hex representations of integers, so it's not entirely clear what you need. Based on the description you gave, I think one of these snippets shows what you want. >>> chr(0x65) == '\x65' True >>> hex(65) '0x41' >>> chr(65) == '\x41' True Note that this is quite different from a string containing an integer as hex. If that is what you want, use the hex builtin. </s><s>[INST] django syncdb and an updated model I have recently updated my model, added a BooleanField to it however when I do python manage.py syncdb, it doesn't add the new field to the database for the model. How can I fix this ? [/INST] From Django 1.7 onwards Django has built in support for migrations - take a look at the documentation. For Django 1.6 and earlier Django doesn't support migrations out of the box. There is a pluggable app for Django that does exactly that though, and it works great. It's called South. </s><s>[INST] What does x[x < 2] = 0 mean in Python? I came across some code with a line similar to x[x<2]=0 Playing around with variations, I am still stuck on what this syntax does. Examples: >>> x = [1,2,3,4,5] >>> x[x<2] 1 >>> x[x<3] 1 >>> x[x>2] 2 >>> x[x<2]=0 >>> x [0, 2, 3, 4, 5] [/INST] This only makes sense with NumPy arrays. The behavior with lists is useless, and specific to Python 2 (not Python 3). You may want to double-check if the original object was indeed a NumPy array (see further below) and not a list. But in your code here, x is a simple list. Since x < 2 is False i.e 0, therefore x[x<2] is x[0] x[0] gets changed. Conversely, x[x>2] is x[True] or x[1] So, x[1] gets changed. Why does this happen? The rules for comparison are: When you order two strings or two numeric types the ordering is done in the expected way (lexicographic ordering for string, numeric ordering for integers). When you order a numeric and a non-numeric type, the numeric type comes first. When you order two incompatible types where neither is numeric, they are ordered by the alphabetical order of their typenames: So, we have the following order numeric < list < string < tuple See the accepted answer for How does Python compare string and int?. If x is a NumPy array, then the syntax makes more sense because of boolean array indexing. In that case, x < 2 isn't a boolean at all; it's an array of booleans representing whether each element of x was less than 2. x[x < 2] = 0 then selects the elements of x that were less than 2 and sets those cells to 0. See Indexing. >>> x = np.array([1., -1., -2., 3]) >>> x < 0 array([False, True, True, False], dtype=bool) >>> x[x < 0] += 20 # All elements < 0 get increased by 20 >>> x array([ 1., 19., 18., 3.]) # Only elements < 0 are affected </s><s>[INST] logger configuration to log to file and print to stdout I'm using Python's logging module to log some debug strings to a file which works pretty well. Now in addition, I'd like to use this module to also print the strings out to stdout. How do I do this? In order to log my strings to a file I use following code: import logging import logging.handlers logger = logging.getLogger("") logger.setLevel(logging.DEBUG) handler = logging.handlers.RotatingFileHandler( LOGFILE, maxBytes=(1048576*5), backupCount=7 ) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") handler.setFormatter(formatter) logger.addHandler(handler) and then call a logger function like logger.debug("I am written to the file") Thank you for some help here! [/INST] Just get a handle to the root logger and add the StreamHandler. The StreamHandler writes to stderr. Not sure if you really need stdout over stderr, but this is what I use when I setup the Python logger and I also add the FileHandler as well. Then all my logs go to both places (which is what it sounds like you want). import logging logging.getLogger().addHandler(logging.StreamHandler()) You could also add a Formatter to it so all your log lines have a common header. ie: import logging logFormatter = logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s") rootLogger = logging.getLogger() fileHandler = logging.FileHandler("{0}/{1}.log".format(logPath, fileName)) fileHandler.setFormatter(logFormatter) rootLogger.addHandler(fileHandler) consoleHandler = logging.StreamHandler() consoleHandler.setFormatter(logFormatter) rootLogger.addHandler(consoleHandler) Prints to the format of: 2012-12-05 16:58:26,618 [MainThread ] [INFO ] my message </s><s>[INST] How to "test" NoneType in python? I have a method that sometimes returns a NoneType value. So how can I question a variable that is a NoneType? I need to use if method, for example if not new: new = '#' I know that is the wrong way and I hope you understand what I meant. [/INST] So how can I question a variable that is a NoneType? Use is operator, like this if variable is None: Why this works? Since None is the sole singleton object of NoneType in Python, we can use is operator to check if a variable has None in it or not. Quoting from is docs, The operators is and is not test for object identity: x is y is true if and only if x and y are the same object. x is not y yields the inverse truth value. Since there can be only one instance of None, is would be the preferred way to check None. Hear it from the horse's mouth Quoting Python's Coding Style Guidelines - PEP-008 (jointly defined by Guido himself), Comparisons to singletons like None should always be done with is or is not, never the equality operators. </s>��������%��<s>[INST] Format numbers in django templates I'm trying to format numbers. Examples: 1 => 1 12 => 12 123 => 123 1234 => 1,234 12345 => 12,345 It strikes as a fairly common thing to do but I can't figure out which filter I'm supposed to use. Edit: If you've a generic Python way to do this, I'm happy adding a formatted field in my model. [/INST] Django's contributed humanize application does this: {% load humanize %} {{ my_num|intcomma }} Be sure to add 'django.contrib.humanize' to your INSTALLED_APPS list in the settings.py file. </s><s>[INST] Is it possible to make abstract classes in python? How can I make a class or method abstract in Python? I tried redefining __new__() like so: class F: def __new__(cls): raise Exception("Unable to create an instance of abstract class %s" %cls) but now if I create a class G that inherits from F like so: class G(F): pass then I can't instantiate G either, since it calls its super class's __new__ method. Is there a better way to define an abstract class? [/INST] Use the abc module to create abstract classes. Use the abstractmethod decorator to declare a method abstract, and declare a class abstract using one of three ways, depending upon your Python version. In Python 3.4 and above, you can inherit from ABC. In earlier versions of Python, you need to specify your class's metaclass as ABCMeta. Specifying the metaclass has different syntax in Python 3 and Python 2. The three possibilities are shown below: # Python 3.4+ from abc import ABC, abstractmethod class Abstract(ABC): @abstractmethod def foo(self): pass # Python 3.0+ from abc import ABCMeta, abstractmethod class Abstract(metaclass=ABCMeta): @abstractmethod def foo(self): pass # Python 2 from abc import ABCMeta, abstractmethod class Abstract: __metaclass__ = ABCMeta @abstractmethod def foo(self): pass Whichever way you use, you won't be able to instantiate an abstract class that has abstract methods, but will be able to instantiate a subclass that provides concrete definitions of those methods: >>> Abstract() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Can't instantiate abstract class Abstract with abstract methods foo >>> class StillAbstract(Abstract): ... pass ... >>> StillAbstract() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Can't instantiate abstract class StillAbstract with abstract methods foo >>> class Concrete(Abstract): ... def foo(self): ... print('Hello, World') ... >>> Concrete() <__main__.Concrete object at 0x7fc935d28898> </s><s>[INST] django order_by query set, ascending and descending How can I order by descending my query set in django by date? Reserved.objects.all().filter(client=client_id).order_by('check_in') I just want to filter from descending all the Reserved by check_in date. [/INST] Reserved.objects.filter(client=client_id).order_by('-check_in') Notice the - before check_in. Django Documentation </s><s>[INST] Step-by-step debugging with IPython From what I have read, there are two ways to debug code in Python: With a traditional debugger such as pdb or ipdb. This supports commands such as c for continue, n for step-over, s for step-into etc.), but you don't have direct access to an IPython shell which can be extremely useful for object inspection. Using IPython by embedding an IPython shell in your code. You can do from ipython import embed, and then use embed() in your code. When your program/script hits an embed() statement, you are dropped into an IPython shell. This allows the full inspection of objects and testing of Python code using all the IPython goodies. However, when using embed() you can't step-by-step through the code anymore with handy keyboard shortcuts. Is there any way to combine the best of both worlds? I.e. Be able to step-by-step through your code with handy pdb/ipdb keyboard shortcuts. At any such step (e.g. on a given statement), have access to a full-fledged IPython shell. IPython debugging as in MATLAB: An example of this type of "enhanced debugging" can be found in MATLAB, where the user always has full access to the MATLAB engine/shell, and she can still step-by-step through her code, define conditional breakpoints, etc. From what I have discussed with other users, this is the debugging feature that people miss the most when moving from MATLAB to IPython. IPython debugging in Emacs and other editors: I don't want to make the question too specific, but I work mostly in Emacs, so I wonder if there is any way to bring this functionality into it. Ideally, Emacs (or the editor) would allow the programmer to set breakpoints anywhere on the code and communicate with the interpreter or debugger to have it stop in the location of your choice, and bring to a full IPython interpreter on that location. [/INST] What about ipdb.set_trace() ? In your code : import ipdb; ipdb.set_trace() This allows for full inspection of your code, and you have access to commands such as c (continue), n (execute next line) and so on. See the ipdb repo and a list of commands. IPython is now called Jupyter. </s><s>[INST] Executing Python multi-line statements in the one-line command-line I'm using Python with -c to execute a one-liner loop, i.e.: $ python -c "for r in range(10): print 'rob'" This works fine. However, if I import a module before the for loop, I get a syntax error: $ python -c "import sys; for r in range(10): print 'rob'" File "<string>", line 1 import sys; for r in range(10): print 'rob' ^ SyntaxError: invalid syntax Any idea how this can be fixed? [/INST] you could do echo -e "import sys\nfor r in range(10): print 'rob'" | python or w/out pipes: python -c "exec(\"import sys\\nfor r in range(10): print 'rob'\")" or (echo "import sys" ; echo "for r in range(10): print 'rob'") | python or @SilentGhost's answer / @Crast's answer </s><s>[INST] Convert string to Python class object? Given a string as user input to a python function, I'd like to get a class object out of it if there's a class with that name in the currently defined namespace. Essentially, I want the implementation for a function which will produce this kind of result: class Foo: pass str_to_class("Foo") ==> <class __main__.Foo at 0x69ba0> Is this possible? [/INST] This could work: import sys def str_to_class(str): return getattr(sys.modules[__name__], str) </s><s>[INST] Why should we NOT use sys.setdefaultencoding("utf-8") in a py script? I have seen few py scripts which use this at the top of the script. In what cases one should use it? import sys reload(sys) sys.setdefaultencoding("utf-8") [/INST] As per the documentation: This allows you to switch from the default ASCII to other encodings such as UTF-8, which the Python runtime will use whenever it has to decode a string buffer to unicode. This function is only available at Python start-up time, when Python scans the environment. It has to be called in a system-wide module, sitecustomize.py, After this module has been evaluated, the setdefaultencoding() function is removed from the sys module. The only way to actually use it is with a reload hack that brings the attribute back. Also, the use of sys.setdefaultencoding() has always been discouraged, and it has become a no-op in py3k. The encoding of py3k is hard-wired to "utf-8" and changing it raises an error. I suggest some pointers for reading: http://blog.ianbicking.org/illusive-setdefaultencoding.html http://nedbatchelder.com/blog/200401/printing_unicode_from_python.html http://www.diveintopython3.net/strings.html#one-ring-to-rule-them-all http://boodebr.org/main/python/all-about-python-and-unicode http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python </s><s>[INST] What's the best way to grab/parse command line arguments passed to a Python script? What's the easiest, tersest, and most flexible method or library for parsing Python command line arguments? [/INST] This answer suggests optparse which is appropriate for older Python versions. For Python 2.7 and above, argparse replaces optparse. See this answer for more information. As other people pointed out, you are better off going with optparse over getopt. getopt is pretty much a one-to-one mapping of the standard getopt(3) C library functions, and not very easy to use. optparse, while being a bit more verbose, is much better structured and simpler to extend later on. Here's a typical line to add an option to your parser: parser.add_option('-q', '--query', action="store", dest="query", help="query string", default="spam") It pretty much speaks for itself; at processing time, it will accept -q or --query as options, store the argument in an attribute called query and has a default value if you don't specify it. It is also self-documenting in that you declare the help argument (which will be used when run with -h/--help) right there with the option. Usually you parse your arguments with: options, args = parser.parse_args() This will, by default, parse the standard arguments passed to the script (sys.argv[1:]) options.query will then be set to the value you passed to the script. You create a parser simply by doing parser = optparse.OptionParser() These are all the basics you need. Here's a complete Python script that shows this: import optparse parser = optparse.OptionParser() parser.add_option('-q', '--query', action="store", dest="query", help="query string", default="spam") options, args = parser.parse_args() print 'Query string:', options.query 5 lines of python that show you the basics. Save it in sample.py, and run it once with python sample.py and once with python sample.py --query myquery Beyond that, you will find that optparse is very easy to extend. In one of my projects, I created a Command class which allows you to nest subcommands in a command tree easily. It uses optparse heavily to chain commands together. It's not something I can easily explain in a few lines, but feel free to browse around in my repository for the main class, as well as a class that uses it and the option parser </s><s>[INST] Does Python optimize tail recursion? I have the following piece of code which fails with the following error: RuntimeError: maximum recursion depth exceeded I attempted to rewrite this to allow for tail recursion optimization (TCO). I believe that this code should have been successful if a TCO had taken place. def trisum(n, csum): if n == 0: return csum else: return trisum(n - 1, csum + n) print(trisum(1000, 0)) Should I conclude that Python does not do any type of TCO, or do I just need to define it differently? [/INST] No, and it never will since Guido prefers to be able to have proper tracebacks http://neopythonic.blogspot.com.au/2009/04/tail-recursion-elimination.html http://neopythonic.blogspot.com.au/2009/04/final-words-on-tail-calls.html You can manually eliminate the recursion with a transformation like this >>> def trisum(n, csum): ... while True: # change recursion to a while loop ... if n == 0: ... return csum ... n, csum = n - 1, csum + n # update parameters instead of tail recursion >>> trisum(1000,0) 500500 </s><s>[INST] Python: Determine if running inside virtualenv Is it possible to determine if the current script is running inside a virtualenv environment? [/INST] AFAIK the most reliable way to check for this (and the way that is used internally in virtualenv and in pip) is to check for the existence of sys.real_prefix: import sys if hasattr(sys, 'real_prefix'): #... Inside a virtualenv, sys.prefix points to the virtualenv directory, and sys.real_prefix points to the "real" prefix of the system Python (often /usr or /usr/local or some such). Outside a virtualenv, sys.real_prefix should not exist. Using the VIRTUAL_ENV environment variable is not reliable. It is set by the virtualenv activate shell script, but a virtualenv can be used without activation by directly running an executable from the virtualenv's bin/ (or Scripts) directory, in which case $VIRTUAL_ENV will not be set. </s><s>[INST] What is the preferred syntax for initializing a dict: curly brace literals {} or the dict() function? I'm putting in some effort to learn Python, and I am paying close attention to common coding standards. This may seem like a pointlessly nit-picky question, but I am trying to focus on best-practices as I learn, so I don't have to unlearn any 'bad' habits. I see two common methods for initializing a dict: a = { 'a': 'value', 'another': 'value', } b = dict( a='value', another='value', ) Which is considered to be "more pythonic"? Which do you use? Why? [/INST] Curly braces. Passing keyword arguments into dict(), though it works beautifully in a lot of scenarios, can only initialize a map if the keys are valid Python identifiers. In other words it cannot do: a = {'import': 'trade', 1: 7.8} </s><s>[INST] Python: Difference between class and instance attributes Is there any meaningful distinction between: class A(object): foo = 5 # some default value vs. class B(object): def __init__(self, foo=5): self.foo = foo If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different? [/INST] Beyond performance considerations, there is a significant semantic difference. In the class attribute case, there is just one object referred to. In the instance-attribute-set-at-instantiation, there can be multiple objects referred to. For instance >>> class A: foo = [] >>> a, b = A(), A() >>> a.foo.append(5) >>> b.foo [5] >>> class A: ... def __init__(self): self.foo = [] >>> a, b = A(), A() >>> a.foo.append(5) >>> b.foo [] </s><s>[INST] How to setup setuptools for python 2.6 on Windows? Is there any way to install setuptools for python 2.6 in Windows without having an .exe installer? There isn't one built at the moment, and the maintainer of setuptools has stated that it's probable be a while before he'll get to it. Does anyone know of a way to install it anyway? [/INST] First Option - Online Installation (i.e. remaining connected to the Internet during the entire installation process): Download setuptools-0.6c9.tar.gz Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder Go the folder (refer step 2) and run ez_setup.py from the corresponding dos (command) prompt Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory Second Option: Download setuptools-0.6c9.tar.gz Download setuptools-0.6c9-py2.6.egg to a folder(directory) outside your Windows Python installation folder Use 7-zip to extract ez_setup.py in the same folder as setuptools-0.6c9-py2.6.egg Go to the corresponding dos prompt and run python ez_setup.py setuptools-0.6c9-py2.6.egg from the command prompt Ensure that your PATH includes the appropriate C:\Python2X\Scripts directory Third Option (assuming that you have Visual Studio 2005 or MinGW on your machine) Download setuptools-0.6c9.tar.gz Use 7-zip to extract it to a folder(directory) outside your Windows Python installation folder Go the folder (refer step 2) and run python setup.py install from the corresponding dos (command) prompt Please provide feedback. </s><s>[INST] How to convert JSON data into a Python object I want to use Python to convert JSON data into a Python Object. I receive JSON data objects from the Facebook API, which I want to store in my Database. My current View in Django ( python ) ( request.POST contains the JSON )-> response = request.POST user = FbApiUser(user_id = response['id']) user.name = response['name'] user.username = response['username'] user.save() This works fine, but how do I handle complex JSON data objects? Wouldn't it be much better if I could somehow convert this JSON object into a python object for easy use? [/INST] You can do it in one line, using namedtuple and object_hook: import json from collections import namedtuple data = '{"name": "John Smith", "hometown": {"name": "New York", "id": 123}}' # Parse JSON into an object with attributes corresponding to dict keys. x = json.loads(data, object_hook=lambda d: namedtuple('X', d.keys())(*d.values())) print x.name, x.hometown.name, x.hometown.id or, to reuse this easily: def _json_object_hook(d): return namedtuple('X', d.keys())(*d.values()) def json2obj(data): return json.loads(data, object_hook=_json_object_hook) x = json2obj(data) If you want it to handle keys that aren't good attribute names, check out namedtuple's rename parameter. </s><s>[INST] Inheritance and Overriding __init__ in python I was reading 'Dive Into Python' and in the chapter on classes it gives this example: class FileInfo(UserDict): "store file metadata" def __init__(self, filename=None): UserDict.__init__(self) self["name"] = filename The author then says that if you want to override the __init__ method, you must explicitly call the parent __init__ with the correct parameters. What if that FileInfo class had more than one ancestor class? Do I have to explicitly call all of the ancestor classes' __init__ methods? Also, do I have to do this to any other method I want to override? [/INST] The book is a bit dated with respect to subclass-superclass calling. It's also a little dated with respect to subclass built-in classes. It looks like this nowadays. class FileInfo(dict): """store file metadata""" def __init__(self, filename=None): super( FileInfo, self ).__init__() self["name"] = filename Note the following. We can directly subclass built-in classes, like dict, list, tuple, etc. The super function handles tracking down this class's superclasses and calling functions in them appropriately. </s><s>[INST] Revert the `--no-site-packages` option with virtualenv I have created a virtualenv using the --no-site-packages option and installed lots of libraries. Now I would like to revert the --no-site-packages option and use also the global packages. Can I do that without recreating the virtualenv? More precisely: I wonder what exactly happens when creating a virtualenv using the --no-site-packages option as opposed to not using that option. If I know what happens then I can figure out how to undo it. [/INST] Try removing (or renaming) the file no-global-site-packages.txt in your Lib folder under your virtual environment. Where venv is the name of your virtual environment, and python3.4 corresponds to whichever version of python involved, for example: $ rm venv/lib/python3.4/no-global-site-packages.txt And if you change your mind and want to put it back: $ touch venv/lib/python3.4/no-global-site-packages.txt </s><s>[INST] How to create a custom string representation for a class object? Consider this class: class foo(object): pass The default string representation looks something like this: >>> str(foo) "<class '__main__.foo'>" How can I make this display a custom string? [/INST] Implement __str__() or __repr__() in the class's metaclass. class MC(type): def __repr__(self): return 'Wahaha!' class C(object): __metaclass__ = MC print C Use __str__ if you mean a readable stringification, use __repr__ for unambiguous representations. </s><s>[INST] How to know/change current directory in Python shell? I am using Python 3.2 on Windows 7. When I open the Python shell, how can I know what the current directory is and how can I change it to another directory where my modules are? [/INST] You can use the os module. >>> import os >>> os.getcwd() '/home/user' >>> os.chdir("/tmp/") >>> os.getcwd() '/tmp' But if it's about finding other modules: You can set an environment variable called PYTHONPATH, under Linux would be like export PYTHONPATH=/path/to/my/library:$PYTHONPATH Then, the interpreter searches also at this place for imported modules. I guess the name would be the same under Windows, but don't know how to change. edit Under Windows: set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib (taken from http://docs.python.org/using/windows.html) edit 2 ... and even better: use virtualenv and virtualenv_wrapper, this will allow you to create a development environment where you can add module paths as you like (add2virtualenv) without polluting your installation or "normal" working environment. http://virtualenvwrapper.readthedocs.org/en/latest/command_ref.html </s><s>[INST] Print a string as hex bytes? I have this string: Hello world !! and I want to print it using Python as 48:65:6c:6c:6f:20:77:6f:72:6c:64:20:21:21. hex() works only for integers. How can it be done? [/INST] Your can transform your string to a int generator, apply hex formatting for each element and intercalate with separator: >>> s = "Hello world !!" >>> ":".join("{:02x}".format(ord(c)) for c in s) '48:65:6c:6c:6f:20:77:6f:72:6c:64:20:21:21 </s><s>[INST] Immutable vs Mutable types I'm confused on what an immutable type is. I know the float object is considered to be immutable, with this type of example from my book: class RoundFloat(float): def __new__(cls, val): return float.__new__(cls, round(val, 2)) Is this considered to be immutable because of the class structure / hierarchy?, meaning float is at the top of the class and is its own method call. Similar to this type of example (even though my book says dict is mutable): class SortedKeyDict(dict): def __new__(cls, val): return dict.__new__(cls, val.clear()) Whereas something mutable has methods inside the class, with this type of example: class SortedKeyDict_a(dict): def example(self): return self.keys() Also, for the last class(SortedKeyDict_a), if I pass this type of set to it: d = (('zheng-cai', 67), ('hui-jun', 68),('xin-yi', 2)) without calling the example method, it returns a dictionary. The SortedKeyDict with __new__ flags it as an error. I tried passing integers to the RoundFloat class with __new__ and it flagged no errors. [/INST] What? Floats are immutable? But can't I do x = 5.0 x += 7.0 print x # 12.0 Doesn't that "mut" x? Well you agree strings are immutable right? But you can do the same thing. s = 'foo' s += 'bar' print s # foobar The value of the variable changes, but it changes by changing what the variable refers to. A mutable type can change that way, and it can also change "in place". Here is the difference. x = something # immutable type print x func(x) print x # prints the same thing x = something # mutable type print x func(x) print x # might print something different x = something # immutable type y = x print x # some statement that operates on y print x # prints the same thing x = something # mutable type y = x print x # some statement that operates on y print x # might print something different Concrete examples x = 'foo' y = x print x # foo y += 'bar' print x # foo x = [1, 2, 3] y = x print x # [1, 2, 3] y += [3, 2, 1] print x # [1, 2, 3, 3, 2, 1] def func(val): val += 'bar' x = 'foo' print x # foo func(x) print x # foo def func(val): val += [3, 2, 1] x = [1, 2, 3] print x # [1, 2, 3] func(x) print x # [1, 2, 3, 3, 2, 1] </s><s>[INST] Rename an environment with virtualenvwrapper I have an environment called doors and I would like to rename it to django for the virtualenvwrapper. I've noticed that if I just rename the folder ~/.virtualenvs/doors to django, I can now call workon django, but the environment still says (doors)hobbes3@hobbes3. [/INST] You can use: cpvirtualenv oldenv newenv rmvirtualenv oldenv So in your case: cpvirtualenv doors django rmvirtualenv doors </s><s>[INST] Python Nose Import Error I can't seem to get the nose testing framework to recognize modules beneath my test script in the file structure. I've set up the simplest example that demonstrates the problem. I'll explain it below. Here's the the package file structure: ./__init__.py ./foo.py ./tests ./__init__.py ./test_foo.py foo.py contains: def dumb_true(): return True tests/test_foo.py contains: import foo def test_foo(): assert foo.dumb_true() Both init.py files are empty If I run nosetests -vv in the main directory (where foo.py is), I get: Failure: ImportError (No module named foo) ... ERROR ====================================================================== ERROR: Failure: ImportError (No module named foo) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python/site-packages/nose-0.11.1-py2.6.egg/nose/loader.py", line 379, in loadTestsFromName addr.filename, addr.module) File "/usr/lib/python/site-packages/nose-0.11.1-py2.6.egg/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/lib/python/site-packages/nose-0.11.1-py2.6.egg/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/user/nose_testing/tests/test_foo.py", line 1, in <module> import foo ImportError: No module named foo ---------------------------------------------------------------------- Ran 1 test in 0.002s FAILED (errors=1) I get the same error when I run from inside the tests/ directory. According to the documentation and an example I found, nose is supposed to add all parent packages to the path as well as the directory from which it is called, but this doesn't seem to be happening in my case. I'm running Ubuntu 8.04 with Python 2.6.2. I've built and installed nose manually (not with setup_tools) if that matters. [/INST] You've got an __init__.py in your top level directory. That makes it a package. If you remove it, your nosetests should work. If you don't remove it, you'll have to change your import to import dir.foo, where dir is the name of your directory. </s><s>[INST] How to initialize a dict with keys from a list and empty value in Python? I'd like to get from this: keys = [1,2,3] to this: {1: None, 2: None, 3: None} Is there a pythonic way of doing it? This is an ugly way to do it: >>> keys = [1,2,3] >>> dict([(1,2)]) {1: 2} >>> dict(zip(keys, [None]*len(keys))) {1: None, 2: None, 3: None} [/INST] dict.fromkeys([1, 2, 3, 4]) This is actually a classmethod, so it works for dict-subclasses (like collections.defaultdict) as well. The optional second argument specifies the value to use for the keys (defaults to None.) </s><s>[INST] Element-wise Addition of 2 Lists in Python? I have now: list1=[1, 2, 3] list2=[4, 5, 6] I wish to have: [1, 2, 3] + + + [4, 5, 6] || [5, 7, 9] Simply an element-wise addition of two lists. I can surely iterate the two lists, but I don't want do that. What is the most Pythonic way of doing so? [/INST] Use map with operator.add: >>> from operator import add >>> map(add, list1, list2) [5, 7, 9] or zip with a list comprehension: >>> [sum(x) for x in zip(list1, list2)] [5, 7, 9] Timing comparisons: >>> list2 = [4, 5, 6]*10**5 >>> list1 = [1, 2, 3]*10**5 >>> %timeit from operator import add;map(add, list1, list2) 10 loops, best of 3: 44.6 ms per loop >>> %timeit from itertools import izip; [a + b for a, b in izip(list1, list2)] 10 loops, best of 3: 71 ms per loop >>> %timeit [a + b for a, b in zip(list1, list2)] 10 loops, best of 3: 112 ms per loop >>> %timeit from itertools import izip;[sum(x) for x in izip(list1, list2)] 1 loops, best of 3: 139 ms per loop >>> %timeit [sum(x) for x in zip(list1, list2)] 1 loops, best of 3: 177 ms per loop </s><s>[INST] Django Admin - Disable the 'Add' action for a specific model I have a django site with lots of models and forms. I have many custom forms and formsets and inlineformsets and custom validation and custom querysets. Hence the add model action depends on forms that need other things, and the 'add model' in the django admin throughs a 500 from a custom queryset. Is there anyway to disable the 'Add $MODEL' functionality for a certain models? I want /admin/appname/modelname/add/ to give a 404 (or suitable 'go away' error message), I don't want the 'Add $MODELNAME' button to be on /admin/appname/modelname view. Django admin provides a way to disable admin actions (http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#disabling-actions) however the only action for this model is 'delete_selected'. i.e. the admin actions only act on existing models. Is there some django-esque way to do this? [/INST] It is easy, just overload has_add_permission method in your Admin class like so: class MyAdmin(admin.ModelAdmin): def has_add_permission(self, request): return False </s><s>[INST] pythonic way to do something N times without an index variable? Every day I love python more and more. Today, I was writing some code like: for i in xrange(N): do_something() I had to do something N times. But each time didn't depend on the value of i (index variable). I realized that I was creating a variable I never used (i), and I thought "There surely is a more pythonic way of doing this without the need for that useless index variable." So... the question is: do you know how to do this simple task in a more (pythonic) beautiful way? [/INST] A slightly faster approach than looping on xrange(N) is: import itertools for _ in itertools.repeat(None, N): do_something() </s><s>[INST] Django: multiple models in one template using forms I'm building a support ticket tracking app and have a few models I'd like to create from one page. Tickets belong to a Customer via a ForeignKey. Notes belong to Tickets via a ForeignKey as well. I'd like to have the option of selecting a Customer (that's a whole separate project) OR creating a new Customer, then creating a Ticket and finally creating a Note assigned to the new ticket. Since I'm fairly new to Django, I tend to work iteratively, trying out new features each time. I've played with ModelForms but I want to hide some of the fields and do some complex validation. It seems like the level of control I'm looking for either requires formsets or doing everything by hand, complete with a tedious, hand-coded template page, which I'm trying to avoid. Is there some lovely feature I'm missing? Does someone have a good reference or example for using formsets? I spent a whole weekend on the API docs for them and I'm still clueless. Is it a design issue if I break down and hand-code everything? [/INST] I just was in about the same situation a day ago, and here are my 2 cents: 1) I found arguably the shortest and most concise demonstration of multiple model entry in single form here: http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ . In a nutshell: Make a form for each model, submit them both to template in a single <form>, using prefix keyarg and have the view handle validation. If there is dependency, just make sure you save the "parent" model before dependant, and use parent's ID for foreign key before commiting save of "child" model. The link has the demo. 2) Maybe formsets can be beaten into doing this, but as far as I delved in, formsets are primarily for entering multiples of the same model, which may be optionally tied to another model/models by foreign keys. However, there seem to be no default option for entering more than one model's data and that's not what formset seems to be meant for. </s><s>[INST] Why can't Python's raw string literals end with a single backslash? Technically, any odd number of backslashes, as described in the docs. >>> r'\' File "<stdin>", line 1 r'\' ^ SyntaxError: EOL while scanning string literal >>> r'\\' '\\\\' >>> r'\\\' File "<stdin>", line 1 r'\\\' ^ SyntaxError: EOL while scanning string literal It seems like the parser could just treat backslashes in raw strings as regular characters (isn't that what raw strings are all about?), but I'm probably missing something obvious. TIA! [/INST] The reason is explained in the part of that section which I highlighted in bold: String quotes can be escaped with a backslash, but the backslash remains in the string; for example, r"\"" is a valid string literal consisting of two characters: a backslash and a double quote; r"\" is not a valid string literal (even a raw string cannot end in an odd number of backslashes). Specifically, a raw string cannot end in a single backslash (since the backslash would escape the following quote character). Note also that a single backslash followed by a newline is interpreted as those two characters as part of the string, not as a line continuation. So raw strings are not 100% raw, there is still some rudimentary backslash-processing. </s><s>[INST] Fast way to copy dictionary in Python I have a Python program that works with dictionaries a lot. I have to make copies of dictionaries thousands of times. I need a copy of both the keys and the associated contents. The copy will be edited and must not be linked to the original (e.g. changes in the copy must not affect the original.) Keys are Strings, Values are Integers (0/1). I currently use a simple way: newDict = oldDict.copy() Profiling my Code shows that the copy operation takes most of the time. Are there faster alternatives to the dict.copy() method? What would be fastest? [/INST] Looking at the C source for the Python dict operations, you can see that they do a pretty naive (but efficient) copy. It essentially boils down to a call to PyDict_Merge: PyDict_Merge(PyObject *a, PyObject *b, int override) This does the quick checks for things like if they're the same object and if they've got objects in them. After that it does a generous one-time resize/alloc to the target dict and then copies the elements one by one. I don't see you getting much faster than the built-in copy(). </s><s>[INST] Actual meaning of 'shell=True' in subprocess I am calling different processes with the subprocess module. However, I have a question. In the following codes: callProcess = subprocess.Popen(['ls', '-l'], shell=True) and callProcess = subprocess.Popen(['ls', '-l']) # without shell Both work. After reading the docs, I came to know that shell=True means executing the code through the shell. So that means in absence, the process is directly started. So what should I prefer for my case - I need to run a process and get its output. What benefit do I have from calling it from within the shell or outside of it. [/INST] The benefit of not calling via the shell is that you are not invoking a 'mystery program.' On POSIX, the environment variable SHELL controls which binary is invoked as the "shell." On Windows, there is no bourne shell descendent, only cmd.exe. So invoking the shell invokes a program of the user's choosing and is platform-dependent. Generally speaking, avoid invocations via the shell. Invoking via the shell does allow you to expand environment variables and file globs according to the shell's usual mechanism. On POSIX systems, the shell expands file globs to a list of files. On Windows, a file glob (e.g., "*.*") is not expanded by the shell, anyway (but environment variables on a command line are expanded by cmd.exe). If you think you want environment variable expansions and file globs, research the ILS attacks of 1992-ish on network services which performed subprogram invocations via the shell. Examples include the various sendmail backdoors involving ILS. In summary, use shell=False. </s><s>[INST] What are "first class" objects? When are objects or something else said to be "first class" in a given programming language, and why? In what do they differ from languages where they are not? EDIT. When one says "everything is an object" (like in Python), does he indeed mean that "everything is first-class"? [/INST] In short, it means there are no restrictions on the object's use. It's the same as any other object. A first class object is an entity that can be dynamically created, destroyed, passed to a function, returned as a value, and have all the rights as other variables in the programming language have. Depending on the language, this can imply: being expressible as an anonymous literal value being storable in variables being storable in data structures having an intrinsic identity (independent of any given name) being comparable for equality with other entities being passable as a parameter to a procedure/function being returnable as the result of a procedure/function being constructible at runtime being printable being readable being transmissible among distributed processes being storable outside running processes Source. In C++ functions themselves are not first class objects, however: You can override the '()' operator making it possible to have an object function, which is first class. Function pointers are first class. boost bind, lambda and function do offer first class functions In C++, classes are not first class objects but instances of those classes are. In Python both the classes and the objects are first class objects. (See this answer for more details about classes as objects). Here is an example of Javascript first class functions: // f: function that takes a number and returns a number // deltaX: small positive number // returns a function that is an approximate derivative of f function makeDerivative( f, deltaX ) { var deriv = function(x) { return ( f(x + deltaX) - f(x) )/ deltaX; } return deriv; } var cos = makeDerivative( Math.sin, 0.000001); // cos(0) ~> 1 // cos(pi/2) ~> 0 Source. Entities that are not first class objects are referred to as second-class objects. Functions in C++ are second class because they can't be dynamically created. Regarding the edit: EDIT. When one says "everything is an object" (like in Python), does he indeed mean that "everything is first-class"? The term object can be used loosely and doesn't imply being first class. And it would probably make more sense to call the whole concept 'first class entities'. But in Python they do aim to make everything first class. I believe the intent of the person who made your statement meant first class. </s><s>[INST] Returning the product of a list Is there a more concise, efficient or simply pythonic way to do the following? def product(list): p = 1 for i in list: p *= i return p EDIT: I actually find that this is marginally faster than using operator.mul: from operator import mul # from functools import reduce # python3 compatibility def with_lambda(list): reduce(lambda x, y: x * y, list) def without_lambda(list): reduce(mul, list) def forloop(list): r = 1 for x in list: r *= x return r import timeit a = range(50) b = range(1,50)#no zero t = timeit.Timer("with_lambda(a)", "from __main__ import with_lambda,a") print("with lambda:", t.timeit()) t = timeit.Timer("without_lambda(a)", "from __main__ import without_lambda,a") print("without lambda:", t.timeit()) t = timeit.Timer("forloop(a)", "from __main__ import forloop,a") print("for loop:", t.timeit()) t = timeit.Timer("with_lambda(b)", "from __main__ import with_lambda,b") print("with lambda (no 0):", t.timeit()) t = timeit.Timer("without_lambda(b)", "from __main__ import without_lambda,b") print("without lambda (no 0):", t.timeit()) t = timeit.Timer("forloop(b)", "from __main__ import forloop,b") print("for loop (no 0):", t.timeit()) gives me ('with lambda:', 17.755449056625366) ('without lambda:', 8.2084708213806152) ('for loop:', 7.4836349487304688) ('with lambda (no 0):', 22.570688009262085) ('without lambda (no 0):', 12.472226858139038) ('for loop (no 0):', 11.04065990447998) [/INST] Without using lambda: from operator import mul reduce(mul, list, 1) it is better and faster. With python 2.7.5 from operator import mul import numpy as np import numexpr as ne # from functools import reduce # python3 compatibility a = range(1, 101) %timeit reduce(lambda x, y: x * y, a) # (1) %timeit reduce(mul, a) # (2) %timeit np.prod(a) # (3) %timeit ne.evaluate("prod(a)") # (4) In the following configuration: a = range(1, 101) # A a = np.array(a) # B a = np.arange(1, 1e4, dtype=int) #C a = np.arange(1, 1e5, dtype=float) #D Results with python 2.7.5 | 1 | 2 | 3 | 4 | -------+-----------+-----------+-----------+-----------+ A 20.8 µs 13.3 µs 22.6 µs 39.6 µs B 106 µs 95.3 µs 5.92 µs 26.1 µs C 4.34 ms 3.51 ms 16.7 µs 38.9 µs D 46.6 ms 38.5 ms 180 µs 216 µs Result: np.prod is the fastest one, if you use np.array as data structure (18x for small array, 250x for large array) with python 3.3.2: | 1 | 2 | 3 | 4 | -------+-----------+-----------+-----------+-----------+ A 23.6 µs 12.3 µs 68.6 µs 84.9 µs B 133 µs 107 µs 7.42 µs 27.5 µs C 4.79 ms 3.74 ms 18.6 µs 40.9 µs D 48.4 ms 36.8 ms 187 µs 214 µs Is python 3 slower? </s><s>[INST] Using multiple arguments for string formatting in Python (e.g., '%s ... %s') I have a string that looks like '%s in %s' and I want to know how to seperate the arguments so that they are two different %s. My mind coming from Java came up with this: '%s in %s' % unicode(self.author), unicode(self.publication) But this doesn't work so how does it look in Python? [/INST] Mark Cidade's answer is right - you need to supply a tuple. However from Python 2.6 onwards you can use format instead of %: '{0} in {1}'.format(unicode(self.author,'utf-8'), unicode(self.publication,'utf-8')) Usage of % for formatting strings is no longer encouraged. This method of string formatting is the new standard in Python 3.0, and should be preferred to the % formatting described in String Formatting Operations in new code. </s><s>[INST] How do I get the "id" after INSERT into MySQL database with Python? I execute an INSERT INTO statement cursor.execute("INSERT INTO mytable(height) VALUES(%s)",(height)) and I want to get the primary key. My table has 2 columns: id primary, auto increment height this is the other column. How do I get the "id", after I just inserted this? [/INST] Use cursor.lastrowid to get the last row ID inserted on the cursor object, or connection.insert_id() to get the ID from the last insert on that connection. </s><s>[INST] python: Change the scripts working directory to the script's own directory I run a python shell from crontab every minute: * * * * * /home/udi/foo/bar.py /home/udi/foo has some necessary subdirectories, like /home/udi/foo/log and /home/udi/foo/config, which /home/udi/foo/bar.py refers to. The problem is that crontab runs the script from a different working directory, so trying to open ./log/bar.log fails. Is there a nice way to tell the script to change the working directory to the script's own directory? I would fancy a solution that would work for any script location, rather than explicitly telling the script where it is. EDIT: os.chdir(os.path.dirname(sys.argv[0])) Was the most compact elegant solution. Thanks for your answers and explanations! [/INST] This will change your current working directory to so that opening relative paths will work: import os os.chdir("/home/udi/foo") However, you asked how to change into whatever directory your Python script is located, even if you don't know what directory that will be when you're writing your script. To do this, you can use the os.path functions: import os abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) This takes the filename of your script, converts it to an absolute path, then extracts the directory of that path, then changes into that directory. </s><s>[INST] How to compare type of an object in Python? Basically I want to do this: obj = 'str' type ( obj ) == string I tried: type ( obj ) == type ( string ) and it didn't work. Also, what about the other types? For example, I couldn't replicate NoneType. [/INST] isinstance() In your case, isinstance("this is a string", str) will return True. You may also want to read this: http://www.canonical.org/~kragen/isinstance/ </s><s>[INST] Reading specific lines only (Python) I'm using a for loop to read a file, but I only want to read specific lines, say line #26 and #30. Is there any built-in feature to achieve this? Thanks [/INST] If the file to read is big, and you don't want to read the whole file in memory at once: fp = open("file") for i, line in enumerate(fp): if i == 25: # 26th line elif i == 29: # 30th line elif i > 29: break fp.close() Note that i == n-1 for the nth line. In Python 2.6 or later: with open("file") as fp: for i, line in enumerate(fp): if i == 25: # 26th line elif i == 29: # 30th line elif i > 29: break </s><s>[INST] How do I change the string representation of a Python class? In Java, I can override the toString() method of my class. Then Java's print function prints the string representation of the object defined by its toString(). Is there a Python equivalent to Java's toString()? For example, I have a PlayCard class. I have an instance c of PlayCard. Now: >>> print(c) <__main__.Card object at 0x01FD5D30> But what I want is something like: >>> print(c) A♣ How do I customize the string representation of my class instances? I'm using Python 3.x [/INST] The closest equivalent to Java's toString is to implement __str__ for your class. Put this in your class definition: def __str__(self): return "foo" You may also want to implement __repr__ to aid in debugging. See here for more information: Special Method Names - Basic Customization </s><s>[INST] How do I use Django templates without the rest of Django? I want to use the Django template engine in my (Python) code, but I'm not building a Django-based web site. How do I use it without having a settings.py file (and others) and having to set the DJANGO_SETTINGS_MODULE environment variable? If I run the following code: >>> import django.template >>> from django.template import Template, Context >>> t = Template('My name is {{ my_name }}.') I get: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. [/INST] The solution is simple. It's actually well documented, but not too easy to find. (I had to dig around -- it didn't come up when I tried a few different Google searches.) The following code works: >>> from django.template import Template, Context >>> from django.conf import settings >>> settings.configure() >>> t = Template('My name is {{ my_name }}.') >>> c = Context({'my_name': 'Daryl Spitzer'}) >>> t.render(c) u'My name is Daryl Spitzer.' See the Django documentation (linked above) for a description of some of the settings you may want to define (as keyword arguments to configure). </s><s>[INST] CSV in Python adding an extra carriage return In Python 2.7 running on Windows XP pro: import csv outfile = file('test.csv', 'w') writer = csv.writer(outfile, delimiter=',', quoting=csv.QUOTE_MINIMAL) writer.writerow(['hi','dude']) writer.writerow(['hi2','dude2']) outfile.close() It generates a file, test.csv, with an extra \r at each row, like so: test.csv hi,dude\r\r\nhi2,dude2\r\r\n instead of the expected: hi,dude\r\nhi2,dude2\r\n Why is this happening, or is this actually the desired behavior? [/INST] On Windows, always open your files in binary mode ("rb" or "wb") before passing them to csv.reader or csv.writer. CSV is really a binary format, with "\r\n" separating records. If that separator is written in text mode, the Python runtime replaces the "\n" with "\r\n" hence the "\r\r\n" that you observed in your file. See this previous answer. </s><s>[INST] Python list subtraction operation I want to do something similar to this: >>> x = [1,2,3,4,5,6,7,8,9,0] >>> x [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] >>> y = [1,3,5,7,9] >>> y [1, 3, 5, 7, 9] >>> y - x # (should return [2,4,6,8,0]) But this is not supported by python lists What is the best way of doing it? [/INST] Use a list comprehension: [item for item in x if item not in y] If you want to use the - infix syntax, you can just do: class MyList(list): def __init__(self, *args): super(MyList, self).__init__(args) def __sub__(self, other): return self.__class__(*[item for item in self if item not in other]) you can then use it like: x = MyList(1, 2, 3, 4) y = MyList(2, 5, 2) z = x - y But if you don't absolutely need list properties (for example, ordering), just use sets as the other answers recommend. </s><s>[INST] Formatting "yesterday's" date in python I need to find "yesterday's" date in this format MMDDYY in Python. So for instance, today's date would be represented like this: 111009 I can easily do this for today but I have trouble doing it automatically for "yesterday". [/INST] >>> from datetime import date, timedelta >>> yesterday = date.today() - timedelta(1) >>> print yesterday.strftime('%m%d%y') '110909' </s><s>[INST] Queue.Queue vs. collections.deque I need a queue which multiple threads can put stuff into, and multiple threads may read from. Python has at least two queue classes, Queue.Queue and collections.deque, with the former seemingly using the latter internally. Both claim to be thread-safe in the documentation. However, the Queue docs also state: collections.deque is an alternative implementation of unbounded queues with fast atomic append() and popleft() operations that do not require locking. Which I guess I don't quite unterstand: Does this mean deque isn't fully thread-safe after all? If it is, I may not fully understand the difference between the two classes. I can see that Queue adds blocking functionality. On the other hand, it loses some deque features like support for the in-operator. Accessing the internal deque object directly, is x in Queue().deque thread-safe? Also, why does Queue employ a mutex for it's operations when deque is thread-safe already? [/INST] Queue.Queue and collections.deque serve different purposes. Queue.Queue is intended for allowing different threads to communicate using queued messages/data, whereas collections.deque is simply intended as a datastructure. That's why Queue.Queue has methods like put_nowait(), get_nowait(), and join(), whereas collections.deque doesn't. Queue.Queue isn't intended to be used as a collection, which is why it lacks the likes of the in operator. It boils down to this: if you have multiple threads and you want them to be able to communicate without the need for locks, you're looking for Queue.Queue; if you just want a queue or a double-ended queue as a datastructure, use collections.deque. Finally, accessing and manipulating the internal deque of a Queue.Queue is playing with fire - you really don't want to be doing that. </s><s>[INST] How to retry after exception in python? I have a loop starting with for i in range(0, 100). Normally it runs correctly, but sometimes it fails due to network conditions. Currently I have it set so that on failure, it will continue in the except clause (continue on to the next number for i). Is it possible for me to reassign the same number to i and run through the failed iteration of the loop again? [/INST] Do a while True inside your for loop, put your try code inside, and break from that while loop only when your code succeeds. for i in range(0,100): while True: try: # do stuff except SomeSpecificException: continue break </s><s>[INST] Convert a Python list with strings all to lowercase or uppercase I have a python list variable that contains strings. Is there a python function that can convert all the strings in one pass to lowercase and vice versa, uppercase? [/INST] It can be done with list comprehensions >>> [x.lower() for x in ["A","B","C"]] ['a', 'b', 'c'] >>> [x.upper() for x in ["a","b","c"]] ['A', 'B', 'C'] or with map function >>> map(lambda x:x.lower(),["A","B","C"]) ['a', 'b', 'c'] >>> map(lambda x:x.upper(),["a","b","c"]) ['A', 'B', 'C'] </s><s>[INST] Invert colormap in matplotlib I would like to know how to simply reverse the color order of a given colormap in order to use it with plot_surface. [/INST] The standard colormaps also all have reversed versions. They have the same names with _r tacked on to the end. (Documentation here.) </s><s>[INST] Render HTML to PDF in Django site For my django powered site, I am looking for an easy solution to convert dynamic html pages to pdf. Pages include HTML and charts from Google visualization API (which is javascript based, yet including those graphs is a must). [/INST] Try the solution from Reportlab. Download it and install it as usual with python setup.py install You will also need to install the following modules: xhtml2pdf, html5lib, pypdf with easy_install. Here is an usage example: First define this function: import cStringIO as StringIO from xhtml2pdf import pisa from django.template.loader import get_template from django.template import Context from django.http import HttpResponse from cgi import escape def render_to_pdf(template_src, context_dict): template = get_template(template_src) context = Context(context_dict) html = template.render(context) result = StringIO.StringIO() pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("ISO-8859-1")), result) if not pdf.err: return HttpResponse(result.getvalue(), content_type='application/pdf') return HttpResponse('We had some errors<pre>%s</pre>' % escape(html)) Then you can use it like this: def myview(request): #Retrieve data or whatever you need return render_to_pdf( 'mytemplate.html', { 'pagesize':'A4', 'mylist': results, } ) The template: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="description" content="AI快站提供HuggingFace模型高速下载服务,超过万个AI模型、数据集,下载速度10MB/s+,支持aria2、huggingface-cli等各种下载工具,永久免费。" /> <meta name="keywords" content="HuggingFace镜像,HuggingFace加速,AI模型下载,大模型下载加速,huggingface.co镜像,人工智能模型,AI快站,ai 快站,ai快站, huggingface高速下载站,Hugging Face加速,ai模型下载,huggingface国内加速,ai模型下载站" /> <meta charset="utf-8"> <title>My Title
{% for item in mylist %} RENDER MY CONTENT {% endfor %}
{%block page_foot%} Page {%endblock%}
Hope it helps.
[INST] Python, compute list difference In Python, what is the best way to compute the difference between two lists? example A = [1,2,3,4] B = [2,5] A - B = [1,3,4] B - A = [5] [/INST] >>> set([1,2,3,4]) - set([2,5]) set([1, 3, 4]) >>> set([2,5]) - set([1,2,3,4]) set([5]) [INST] How to get last items of a list in Python? I need the last 9 numbers of a list and I'm sure there is a way to do it with slicing, but I can't seem to get it. I can get the first 9 like this: num_list[0:9] Any help would be great. [/INST] You can use negative integers with the slicing operator for that. Here's an example using the python CLI interpreter: >>> a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] >>> a [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] >>> a[-9:] [4, 5, 6, 7, 8, 9, 10, 11, 12] the important line is a[-9:] [INST] Multiple levels of 'collection.defaultdict' in Python Thanks to some great folks on SO, I discovered the possibilities offered by collections.defaultdict, notably in readability and speed. I have put them to use with success. Now I would like to implement three levels of dictionaries, the two top ones being defaultdict and the lowest one being int. I don't find the appropriate way to do this. Here is my attempt: from collections import defaultdict d = defaultdict(defaultdict) a = [("key1", {"a1":22, "a2":33}), ("key2", {"a1":32, "a2":55}), ("key3", {"a1":43, "a2":44})] for i in a: d[i[0]] = i[1] Now this works, but the following, which is the desired behavior, doesn't: d["key4"]["a1"] + 1 I suspect that I should have declared somewhere that the second level defaultdict is of type int, but I didn't find where or how to do so. The reason I am using defaultdict in the first place is to avoid having to initialize the dictionary for each new key. Any more elegant suggestion? Thanks pythoneers! [/INST] Use: d = defaultdict(lambda: defaultdict(int)) This will create a new defaultdict(int) whenever a new key is accessed in d. [INST] How do you get PyPy, Django and PostgreSQL to work together? What fork, or combination of packages should one to use to make PyPy, Django and PostgreSQL play nice together? I know that PyPy and Django play nice together, but I am less certain about PyPy and PostgreSQL. I do see that Alex Gaynor has made a fork of PyPy called pypy-postgresql. I also know that some people are using psycopg2-ctypes. Is there a difference between these forks? Or should we use the stable 1.9 PyPy and use psycopg2-ctypes? Using the ctypes options could hurt performance, see the comment below. Also, has anyone experienced any pitfalls with using PyPy with pyscopg2? It seems easy enough to fall back on CPython if something isn't working right, but mostly I'm looking for things a programmer can do ahead of time to prepare. I looked around, it doesn't seem that psycopg2 works natively with PyPy. Although, psycopg2-ctypes does seem to be working for some people, there was a discussion on pypy-dev. I work on Windows, and I don't think psycopg2-ctypes is ready for Windows yet, sadly. [/INST] psycopg2cffi (Updated 2015) psycopg2cffi is yet another psycopg2-compatible replacement and should provide the best PostgreSQL performance with PyPy. Add this to your settings.py to remain compatible with both: try: import psycopg2 except ImportError: # Fall back to psycopg2cffi from psycopg2cffi import compat compat.register() psycopg2-ctypes (2012) I also know that some people are using psycopg2-ctypes. This is the easiest way; to stay compatible with both, just add this code in your Django settings.py: try: import psycopg2 except ImportError: # Fall back to psycopg2-ctypes from psycopg2ct import compat compat.register() I tested this a few releases ago; sadly in my experience, psycopg2-ctypes negates the small performance gains afforded by PyPy. But YMMV, it depends on how JIT-friendly your code is in general and what fraction of time you actually spend running Python code. And maybe PyPy has just improved since then. and I don't think psycopg2-ctypes is ready for Windows yet I haven't tried this, but ctypes is platform-independent. AFAICT you just have to make sure that the libpq.dll library is loadable (located in a directory in your PATH environment variable or local directory) and it should work on Windows just like in Linux. pypy-postgresql I do see that Alex Gaynor has made a fork of PyPy called pypy-postgresql. I don't think this is a good choice in the long term. The branch hasn't been updated for more than a year and my attempts to build it have failed. And it seems wrong to hard-code a PostgreSQL driver in the interpreter anyway. I believe there are no binaries out there of pypy-postgresql either, so if you want to use it, you'd need to build the whole PyPy branch yourself. Not for the faint of heart: it takes tens of minutes and a machine with at least 4 GB of memory. (Official instructions: http://pypy.org/download.html#building-from-source) To build, you first need the source. If you have Mercurial installed, you can simply hg clone https://bitbucket.org/alex_gaynor/pypy-postgresql. If not, you can download the automagic "tip" zip file: https://bitbucket.org/alex_gaynor/pypy-postgresql/get/tip.zip Open a command line, go into the decompressed directory, and then inside pypy/translator/goal If you have PyPy installed, it's recommended to use that for building: pypy translate.py -Ojit Otherwise: python translate.py -Ojit Sadly this is where my knowledge ends. I get the error "BytecodeCorruption: unimplemented opcode, ofs=234, code=203, name=BUILD_LIST_FROM_ARG" [INST] Why list doesn't have safe "get" method like dictionary? >>> d = {'a':'b'} >>> d['a'] 'b' >>> d['c'] KeyError: 'c' >>> d.get('c', 'fail') 'fail' >>> l = [1] >>> l[10] IndexError: list index out of range [/INST] Ultimately it probably doesn't have a safe .get method because a dict is an associative collection (values are associated with names) where it is inefficient to check if a key is present (and return its value) without throwing an exception, while it is super trivial to avoid exceptions accessing list elements (as the len method is very fast). The .get method allows you to query the value associated with a name, not directly access the 37th item in the dictionary (which would be more like what you're asking of your list). Of course, you can easily implement this yourself: def safe_list_get (l, idx, default): try: return l[idx] except IndexError: return default You could even monkeypatch it onto the __builtins__.list constructor in __main__, but that would be a less pervasive change since most code doesn't use it. If you just wanted to use this with lists created by your own code you could simply subclass list and add the get method. [INST] Does SQLAlchemy have an equivalent of Django's get_or_create? I want to get an object from the database if it already exists (based on provided parameters) or create it if it does not. Django's get_or_create (or source) does this. Is there an equivalent shortcut in SQLAlchemy? I'm currently writing it out explicitly like this: def get_or_create_instrument(session, serial_number): instrument = session.query(Instrument).filter_by(serial_number=serial_number).first() if instrument: return instrument else: instrument = Instrument(serial_number) session.add(instrument) return instrument [/INST] Following the solution of @WoLpH, this is the code that worked for me (simple version): def get_or_create(session, model, **kwargs): instance = session.query(model).filter_by(**kwargs).first() if instance: return instance else: instance = model(**kwargs) session.add(instance) session.commit() return instance With this, I'm able to get_or_create any object of my model. Suppose my model object is : class Country(Base): __tablename__ = 'countries' id = Column(Integer, primary_key=True) name = Column(String, unique=True) To get or create my object I write : myCountry = get_or_create(session, Country, name=countryName) [INST] Difference between a -= b and a = a - b in Python I have recently applied this solution for averaging every N rows of matrix. Although the solution works in general I had problems when applied to a 7x1 array. I have noticed that the problem is when using the -= operator. To make a small example: import numpy as np a = np.array([1,2,3]) b = np.copy(a) a[1:] -= a[:-1] b[1:] = b[1:] - b[:-1] print a print b which outputs: [1 1 2] [1 1 1] So, in the case of an array a -= b produces a different result than a = a - b. I thought until now that these two ways are exactly the same. What is the difference? How come the method I am mentioning for summing every N rows in a matrix is working e.g. for a 7x4 matrix but not for a 7x1 array? [/INST] Mutating arrays while they're being used in computations can lead to unexpected results! In the example in the question, subtraction with -= modifies the second element of a and then immediately uses that modified second element in the operation on the third element of a. Here is what happens with a[1:] -= a[:-1] step by step: a is the array with the data [1, 2, 3]. We have two views onto this data: a[1:] is [2, 3], and a[:-1] is [1, 2]. The inplace subtraction -= begins. The first element of a[:-1], 1, is subtracted from the first element of a[1:]. This has modified a to be [1, 1, 3]. Now we have that a[1:] is a view of the data [1, 3], and a[:-1] is a view of the data [1, 1] (the second element of array a has been changed). a[:-1] is now [1, 1] and NumPy must now subtract its second element which is 1 (not 2 anymore!) from the second element of a[1:]. This makes a[1:] a view of the values [1, 2]. a is now an array with the values [1, 1, 2]. b[1:] = b[1:] - b[:-1] does not have this problem because b[1:] - b[:-1] creates a new array first and then assigns the values in this array to b[1:]. It does not modify b itself during the subtraction, so the views b[1:] and b[:-1] do not change. The general advice is to avoid modifying one view inplace with another if they overlap. This includes the operators -=, *=, etc. and using the out parameter in universal functions (like np.subtract and np.multiply) to write back to one of the arrays. [INST] Why do 3 backslashes equal 4 in a Python string? Could you tell me why '?\\\?'=='?\\\\?' gives True? That drives me crazy and I can't find a reasonable answer... >>> list('?\\\?') ['?', '\\', '\\', '?'] >>> list('?\\\\?') ['?', '\\', '\\', '?'] [/INST] Basically, because python is slightly lenient in backslash processing. Quoting from https://docs.python.org/2.0/ref/strings.html : Unlike Standard C, all unrecognized escape sequences are left in the string unchanged, i.e., the backslash is left in the string. (Emphasis in the original) Therefore, in python, it isn't that three backslashes are equal to four, it's that when you follow backslash with a character like ?, the two together come through as two characters, because \? is not a recognized escape sequence. [INST] str performance in python While profiling a piece of python code (python 2.6 up to 3.2), I discovered that the str method to convert an object (in my case an integer) to a string is almost an order of magnitude slower than using string formatting. Here is the benchmark >>> from timeit import Timer >>> Timer('str(100000)').timeit() 0.3145311339386332 >>> Timer('"%s"%100000').timeit() 0.03803517023435887 Does anyone know why this is the case? Am I missing something? [/INST] '%s' % 100000 is evaluated by the compiler and is equivalent to a constant at run-time. >>> import dis >>> dis.dis(lambda: str(100000)) 8 0 LOAD_GLOBAL 0 (str) 3 LOAD_CONST 1 (100000) 6 CALL_FUNCTION 1 9 RETURN_VALUE >>> dis.dis(lambda: '%s' % 100000) 9 0 LOAD_CONST 3 ('100000') 3 RETURN_VALUE % with a run-time expression is not (significantly) faster than str: >>> Timer('str(x)', 'x=100').timeit() 0.25641703605651855 >>> Timer('"%s" % x', 'x=100').timeit() 0.2169809341430664 Do note that str is still slightly slower, as @DietrichEpp said, this is because str involves lookup and function call operations, while % compiles to a single immediate bytecode: >>> dis.dis(lambda x: str(x)) 9 0 LOAD_GLOBAL 0 (str) 3 LOAD_FAST 0 (x) 6 CALL_FUNCTION 1 9 RETURN_VALUE >>> dis.dis(lambda x: '%s' % x) 10 0 LOAD_CONST 1 ('%s') 3 LOAD_FAST 0 (x) 6 BINARY_MODULO 7 RETURN_VALUE Of course the above is true for the system I tested on (CPython 2.7); other implementations may differ. [INST] "Inner exception" (with traceback) in Python? My background is in C# and I've just recently started programming in Python. When an exception is thrown I typically want to wrap it in another exception that adds more information, while still showing the full stack trace. It's quite easy in C#, but how do I do it in Python? Eg. in C# I would do something like this: try { ProcessFile(filePath); } catch (Exception ex) { throw new ApplicationException("Failed to process file " + filePath, ex); } In Python I can do something similar: try: ProcessFile(filePath) except Exception as e: raise Exception('Failed to process file ' + filePath, e) ...but this loses the traceback of the inner exception! Edit: I'd like to see both exception messages and both stack traces and correlate the two. That is, I want to see in the output that exception X occurred here and then exception Y there - same as I would in C#. Is this possible in Python 2.6? Looks like the best I can do so far (based on Glenn Maynard's answer) is: try: ProcessFile(filePath) except Exception as e: raise Exception('Failed to process file' + filePath, e), None, sys.exc_info()[2] This includes both the messages and both the tracebacks, but it doesn't show which exception occurred where in the traceback. [/INST] In python 3 you can do the following: try: raise MyExceptionToBeWrapped("I have twisted my ankle") except MyExceptionToBeWrapped as e: raise MyWrapperException("I'm not in a good shape") from e This will produce something like this: Traceback (most recent call last): ... MyExceptionToBeWrapped: ("I have twisted my ankle") The above exception was the direct cause of the following exception: Traceback (most recent call last): ... MyWrapperException: ("I'm not in a good shape") [INST] Python print on same line I want to run a script, which basicly shows things like: Installing XXX... [DONE] Now, at the moment, I use print to print the whole line AFTER the function has succeeded. However, I now want it to print "Installing xxx..." first, and AFTER the function has run, to add the "DONE" tag; but on the same line. Any ideas? [/INST] You can use the print statement to do this without importing sys. def install_xxx(): print("Installing XXX... "), install_xxx() print "[DONE]" The comma on the end of the print line prevents print from issuing a new line (you should note that there will be an extra space at the end of the output). The Python 3 Solution Since the above does not work in Python 3, you can do this instead (again, without importing sys): def install_xxx(): print("Installing XXX... ", end="") install_xxx() print("[DONE]") The print function accepts an end parameter which defaults to "\n". Setting it to an empty string prevents it from issuing a new line at the end of the line. [INST] How do I call setattr() on the current module? What do I pass as the first parameter "object" to the function setattr(object, name, value), to set variables on the current module? For example: setattr(object, "SOME_CONSTANT", 42); giving the same effect as: SOME_CONSTANT = 42 within the module containing these lines (with the correct object). I'm generate several values at the module level dynamically, and as I can't define __getattr__ at the module level, this is my fallback. [/INST] import sys thismodule = sys.modules[__name__] setattr(thismodule, name, value) or, without using setattr (which breaks the letter of the question but satisfies the same practical purposes;-): globals()[name] = value Note: at module scope, the latter is equivalent to: vars()[name] = value which is a bit more concise, but doesn't work from within a function (vars() gives the variables of the scope it's called at: the module's variables when called at global scope, and then it's OK to use it R/W, but the function's variables when called in a function, and then it must be treated as R/O -- the Python online docs can be a bit confusing about this specific distinction). [INST] How to include external Python code to use in other files? If you have a collection of methods in a file, is there a way to include those files in another file, but call them without any prefix (i.e. file prefix)? So if I have: [Math.py] def Calculate ( num ) How do I call it like this: [Tool.py] using Math.py for i in range ( 5 ) : Calculate ( i ) [/INST] You will need to import the other file as a module like this: import Math If you don't want to prefix your Calculate function with the module name then do this: from Math import Calculate If you want to import all members of a module then do this: from Math import * Edit: Here is a good chapter from Dive Into Python that goes a bit more in depth on this topic. [INST] Convert string date to timestamp in Python How to convert a string in the format "%d/%m/%Y" to timestamp? "01/12/2011" -> 1322697600 [/INST] >>> import time >>> import datetime >>> s = "01/12/2011" >>> time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple()) 1322697600.0 [INST] Python style - line continuation with strings? In trying to obey the python style rules, I've set my editors to a max of 79 cols. In the PEP, it recommends using python's implied continuation within brackets, parentheses and braces. However, when dealing with strings when I hit the col limit, it gets a little weird. For instance, trying to use a multiline mystr = """Why, hello there wonderful stackoverflow people!""" Will return "Why, hello there\nwonderful stackoverflow people!" This works: mystr = "Why, hello there \ wonderful stackoverflow people!" Since it returns this: "Why, hello there wonderful stackoverflow people!" But, when the statement is indented a few blocks in, this looks weird: do stuff: and more stuff: and even some more stuff: mystr = "Why, hello there \ wonderful stackoverflow people!" If you try and indent the second line: do stuff: and more stuff: and even some more stuff: mystr = "Why, hello there \ wonderful stackoverflow people!" Your string ends up as: "Why, hello there wonderful stackoverflow people!" The only way I've found to get around this is: do stuff: and more stuff: and even some more stuff: mystr = "Why, hello there" \ "wonderful stackoverflow people!" Which I like better, but is also somewhat uneasy on the eyes, as it looks like there is a string just sitting in the middle of nowhere. This will produce the proper: "Why, hello there wonderful stackoverflow people!" So, my question is - what are some people's recommendations on how to do this and is there something I'm missing in the style guide that does show how I should be doing this? Thanks. [/INST] Since adjacent string literals are automatically joint into a single string, you can just use the implied line continuation inside parentheses as recommended by PEP 8: print("Why, hello there wonderful " "stackoverflow people!") [INST] Pip install Matplotlib error with virtualenv I am trying to install matplotlib in a new virtualenv. When I do: pip install matplotlib or pip install http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz I get this error: building 'matplotlib._png' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC - DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/numpy/core/include -I. -I/usr/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o src/_png.cpp:10:20: fatal error: png.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 Anyone have an idea what is going on? Any help much appreciated. [/INST] Building Matplotlib requires libpng (and freetype, as well) which isn't a python library, so pip doesn't handle installing it (or freetype). You'll need to install something along the lines of libpng-devel and freetype-devel (or whatever the equivalent is for your OS). See the building requirements/instructions for matplotlib. [INST] Remove all special characters, punctuation and spaces from string I need to remove all special characters, punctuation and spaces from a string so that I only have letters and numbers. [/INST] This can be done without regex: >>> string = "Special $#! characters spaces 888323" >>> ''.join(e for e in string if e.isalnum()) 'Specialcharactersspaces888323' You can use str.isalnum: S.isalnum() -> bool Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise. If you insist on using regex, other solutions will do fine. However note that if it can be done without using a regular expression, that's the best way to go about it. [INST] String formatting named parameters? I know it's a really simple question, but I have no idea how to google it. how can I do print '%s' % (my_url) So that my_url is used twice? I assume I have to "name" the %s and then use a dict in the params, but I'm not sure of the proper syntax? just FYI, I'm aware I can just use my_url twice in the params, but that's not the point :) [/INST] print '%(url)s' % {'url': my_url} [INST] Sum of all values in a Python dict I'm new to Python. Let's say I have a dictionary in which the keys map to integers like: d = {'key1':1,'key2':14,'key3':47} Is there a syntactically minimalistic way to return the sum of the values in d--i.e. 62 in this case. Thanks [/INST] As you'd expect: sum(d.values()) In Python<3, you may want to use itervalues instead (which does not build a temporary list). [INST] Download file from web in Python 3 I am creating a program that will download a .jar (java) file from a web server, by reading the URL that is specified in the .jad file of the same game/application. I'm using Python 3.2.1 I've managed to extract the URL of the JAR file from the JAD file (every JAD file contains the URL to the JAR file), but as you may imagine, the extracted value is type() string. Here's the relevant function: def downloadFile(URL=None): import httplib2 h = httplib2.Http(".cache") resp, content = h.request(URL, "GET") return content downloadFile(URL_from_file) However I always get an error saying that the type in the function above has to be bytes, and not string. I've tried using the URL.encode('utf-8'), and also bytes(URL,encoding='utf-8'), but I'd always get the same or similar error. So basically my question is how to download a file from a server when the URL is stored in a string type? [/INST] If you want to obtain the contents of a web page into a variable, just read the response of urllib.request.urlopen: import urllib.request ... url = 'http://example.com/' response = urllib.request.urlopen(url) data = response.read() # a `bytes` object text = data.decode('utf-8') # a `str`; this step can't be used if data is binary The easiest way to download and save a file is to use the urllib.request.urlretrieve function: import urllib.request ... # Download the file from `url` and save it locally under `file_name`: urllib.request.urlretrieve(url, file_name) import urllib.request ... # Download the file from `url`, save it in a temporary directory and get the # path to it (e.g. '/tmp/tmpb48zma.txt') in the `file_name` variable: file_name, headers = urllib.request.urlretrieve(url) But keep in mind that urlretrieve is considered legacy and might become deprecated (not sure why, though). So the most correct way to do this would be to use the urllib.request.urlopen function to return a file-like object that represents an HTTP response and copy it to a real file using shutil.copyfileobj. import urllib.request import shutil ... # Download the file from `url` and save it locally under `file_name`: with urllib.request.urlopen(url) as response, open(file_name, 'wb') as out_file: shutil.copyfileobj(response, out_file) If this seems too complicated, you may want to go simpler and store the whole download in a bytes object and then write it to a file. But this works well only for small files. import urllib.request ... # Download the file from `url` and save it locally under `file_name`: with urllib.request.urlopen(url) as response, open(file_name, 'wb') as out_file: data = response.read() # a `bytes` object out_file.write(data) It is possible to extract .gz (and maybe other formats) compressed data on the fly, but such an operation probably requires the HTTP server to support random access to the file. import urllib.request import gzip ... # Read the first 64 bytes of the file inside the .gz archive located at `url` url = 'http://example.com/something.gz' with urllib.request.urlopen(url) as response: with gzip.GzipFile(fileobj=response) as uncompressed: file_header = uncompressed.read(64) # a `bytes` object # Or do anything shown above using `uncompressed` instead of `response`. [INST] Repeat string to certain length What is an efficient way to repeat a string to a certain length? Eg: repeat('abc', 7) -> 'abcabca' Here is my current code: def repeat(string, length): cur, old = 1, string while len(string) < length: string += old[cur-1] cur = (cur+1)%len(old) return string Is there a better (more pythonic) way to do this? Maybe using list comprehension? [/INST] Repeating a string a fixed number of times is a built-in operation: 'abc' * 7 So, just calculate the number of repeats you need to reach the length you want, and put that on the RHS. You'll then need to trim it to the right length. (It appears that this is what the other answer does, but a little bit more explanation seemed useful.) [INST] How do I profile memory usage in Python? I've recently become interested in algorithms and have begun exploring them by writing a naive implementation and then optimizing it in various ways. I'm already familiar with the standard Python module for profiling runtime (for most things I've found the timeit magic function in IPython to be sufficient), but I'm also interested in memory usage so I can explore those tradeoffs as well (e.g. the cost of caching a table of previously computed values versus recomputing them as needed). Is there a module that will profile the memory usage of a given function for me? [/INST] This one has been answered already here: Python memory profiler Basically you do something like that (cited from Guppy-PE): >>> from guppy import hpy; h=hpy() >>> h.heap() Partition of a set of 48477 objects. Total size = 3265516 bytes. Index Count % Size % Cumulative % Kind (class / dict of class) 0 25773 53 1612820 49 1612820 49 str 1 11699 24 483960 15 2096780 64 tuple 2 174 0 241584 7 2338364 72 dict of module 3 3478 7 222592 7 2560956 78 types.CodeType 4 3296 7 184576 6 2745532 84 function 5 401 1 175112 5 2920644 89 dict of class 6 108 0 81888 3 3002532 92 dict (no owner) 7 114 0 79632 2 3082164 94 dict of type 8 117 0 51336 2 3133500 96 type 9 667 1 24012 1 3157512 97 __builtin__.wrapper_descriptor <76 more rows. Type e.g. '_.more' to view.> >>> h.iso(1,[],{}) Partition of a set of 3 objects. Total size = 176 bytes. Index Count % Size % Cumulative % Kind (class / dict of class) 0 1 33 136 77 136 77 dict (no owner) 1 1 33 28 16 164 93 list 2 1 33 12 7 176 100 int >>> x=[] >>> h.iso(x).sp 0: h.Root.i0_modules['__main__'].__dict__['x'] >>> [INST] Running webdriver chrome with Selenium I ran into a problem while working with Selenium. For my project, I have to use Chrome. However, I can't connect to that browser after launching it with Selenium. For some reason, Selenium can't find Chrome by itself. This is what happens when I try to launch Chrome without including a path: Traceback (most recent call last): File "./obp_pb_get_csv.py", line 73, in browser = webdriver.Chrome() # Get local session of chrome File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__ self.service.start() File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 58, in start and read up at http://code.google.com/p/selenium/wiki/ChromeDriver") selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path. Please download from http://code.google.com/p/selenium/downloads/list and read up at http://code.google.com/p/selenium/wiki/ChromeDriver' To solve this problem, I then included the Chromium path in the code that launches Chrome. However, the interpreter fails to find a socket to connect to: Traceback (most recent call last): File "./obp_pb_get_csv.py", line 73, in browser = webdriver.Chrome('/usr/bin/chromium') # Get local session of chrome File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__ self.service.start() File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 64, in start raise WebDriverException("Can not connect to the ChromeDriver") selenium.common.exceptions.WebDriverException: Message: 'Can not connect to the ChromeDriver' I also tried solving the problem by launching chrome with: chromium --remote-shell-port=9222 However, this did not work either. PS. Here's some information about my system: www-client: chromium 15.0.874.121 dev-lang: python 2.7.2-r3 Selenium 2.11.1 OS: GNU/Linux Gentoo Kernel 3.1.0-gentoo-r1 [/INST] You need to make sure the standalone ChromeDriver binary (which is different than the Chrome browser binary) is either in your path or available in the webdriver.chrome.driver environment variable. see http://code.google.com/p/selenium/wiki/ChromeDriver for full information on how wire things up. Edit: Right, seems to be a bug in the Python bindings wrt reading the chromedriver binary from the path or the environment variable. Seems if chromedriver is not in your path you have to pass it in as an argument to the constructor. import os from selenium import webdriver chromedriver = "/Users/adam/Downloads/chromedriver" os.environ["webdriver.chrome.driver"] = chromedriver driver = webdriver.Chrome(chromedriver) driver.get("http://stackoverflow.com") driver.quit() [INST] python homebrew by default I try to switch to Homebrew (after using fink and macport) on Mac OS X 10.6.2. I have installed python 2.7 with brew install python The problem is that, contrary to Macport, it seems that there is no python_select utility, and my default mac python is always default which python give me /usr/bin/python and /usr/bin/python is not a symlink How can I do to make python brew flavour to be my default python ? [/INST] As you are using Homebrew the following command gives a better picture: brew doctor Output: ==> /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. This is an issue if you eg. brew installed Python. Consider editing your .bashrc to put: /usr/local/bin ahead of /usr/bin in your $PATH. [INST] What is a global interpreter lock (GIL)? What is a global interpreter lock and why is that an issue? A lot noise has been made around removing the GIL from Python, and I'd like to understand why that is so important. I have never written a compiler nor an interpreter myself, so don't be frugal with details, I'll probably need them to understand. [/INST] Python's GIL is intended to serialize access to interpreter internals from different threads. On multi-core systems, it means that multiple threads can't effectively make use of multiple cores. (If the GIL didn't lead to this problem, most people wouldn't care about the GIL - it's only being raised as an issue because of the increasing prevalence of multi-core systems.) If you want to understand it in detail, you can view this video or look at this set of slides. It might be too much information, but then you did ask for details :-) Note that Python's GIL is only really an issue for CPython, the reference implementation. Jython and IronPython don't have a GIL. As a Python developer, you don't generally come across the GIL unless you're writing a C extension. C extension writers need to release the GIL when their extensions do blocking I/O, so that other threads in the Python process get a chance to run. Update: Updated link to video to point to Youtube, as the earlier blip.tv link had rotted. [INST] Python JSON serialize a Decimal object I have a Decimal('3.9') as part of an object, and wish to encode this to a JSON string which should look like {'x': 3.9}. I don't care about precision on the client side, so a float is fine. Is there a good way to serialize this? JSONDecoder doesn't accept Decimal objects, and converting to a float beforehand yields {'x': 3.8999999999999999} which is wrong, and will be a big waste of bandwidth. [/INST] Simplejson 2.1 and higher has native support for Decimal type: >>> json.dumps(Decimal('3.9'), use_decimal=True) '3.9' Note that use_decimal is True by default: def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', default=None, use_decimal=True, namedtuple_as_object=True, tuple_as_array=True, bigint_as_string=False, sort_keys=False, item_sort_key=None, for_json=False, ignore_nan=False, **kw): So: >>> json.dumps(Decimal('3.9')) '3.9' Hopefully, this feature will be included in standard library. [INST] Moving matplotlib legend outside of the axis makes it cutoff by the figure box I'm familiar with the following questions: Matplotlib savefig with a legend outside the plot How to put the legend out of the plot It seems that the answers in these questions have the luxury of being able to fiddle with the exact shrinking of the axis so that the legend fits. Shrinking the axes, however, is not an ideal solution because it makes the data smaller making it actually more difficult to interpret; particularly when its complex and there are lots of things going on ... hence needing a large legend The example of a complex legend in the documentation demonstrates the need for this because the legend in their plot actually completely obscures multiple data points. http://matplotlib.sourceforge.net/users/legend_guide.html#legend-of-complex-plots What I would like to be able to do is dynamically expand the size of the figure box to accommodate the expanding figure legend. import matplotlib.pyplot as plt import numpy as np x = np.arange(-2*np.pi, 2*np.pi, 0.1) fig = plt.figure(1) ax = fig.add_subplot(111) ax.plot(x, np.sin(x), label='Sine') ax.plot(x, np.cos(x), label='Cosine') ax.plot(x, np.arctan(x), label='Inverse tan') lgd = ax.legend(loc=9, bbox_to_anchor=(0.5,0)) ax.grid('on') Notice how the final label 'Inverse tan' is actually outside the figure box (and looks badly cutoff - not publication quality!) Finally, I've been told that this is normal behaviour in R and LaTeX, so I'm a little confused why this is so difficult in python... Is there a historical reason? Is Matlab equally poor on this matter? I have the (only slightly) longer version of this code on pastebin http://pastebin.com/grVjc007 [/INST] Sorry EMS, but I actually just got another response from the matplotlib mailling list (Thanks goes out to Benjamin Root). The code I am looking for is adjusting the savefig call to: fig.savefig('samplefigure', bbox_extra_artists=(lgd,), bbox_inches='tight') #Note that the bbox_extra_artists must be an iterable This is apparently similar to calling tight_layout, but instead you allow savefig to consider extra artists in the calculation. This did in fact resize the figure box as desired. import matplotlib.pyplot as plt import numpy as np x = np.arange(-2*np.pi, 2*np.pi, 0.1) fig = plt.figure(1) ax = fig.add_subplot(111) ax.plot(x, np.sin(x), label='Sine') ax.plot(x, np.cos(x), label='Cosine') ax.plot(x, np.arctan(x), label='Inverse tan') handles, labels = ax.get_legend_handles_labels() lgd = ax.legend(handles, labels, loc='upper center', bbox_to_anchor=(0.5,-0.1)) ax.grid('on') fig.savefig('samplefigure', bbox_extra_artists=(lgd,), bbox_inches='tight') This produces: [INST] Get last answer In many symbolic math systems, such as Matlab or Mathematica, you can use a variable like Ans or % to retrieve the last computed value. Is there a similar facility in the Python shell? [/INST] Underscore. >>> 5+5 10 >>> _ 10 >>> _ + 5 15 >>> _ 15 [INST] Difference between del, remove and pop on lists >>> a=[1,2,3] >>> a.remove(2) >>> a [1, 3] >>> a=[1,2,3] >>> del a[1] >>> a [1, 3] >>> a= [1,2,3] >>> a.pop(1) 2 >>> a [1, 3] >>> Is there any difference between the above three methods to remove an element from a list? [/INST] Yes, remove removes the first matching value, not a specific index: >>> a = [0, 2, 2, 3] >>> a.remove(2) >>> a [0, 2, 3] del removes a specific index: >>> a = [3, 2, 2, 1] >>> del a[1] [3, 2, 1] and pop returns the removed element: >>> a = [4, 3, 5] >>> a.pop(1) 3 >>> a [4, 5] Their error modes are different too: >>> a = [4, 5, 6] >>> a.remove(7) Traceback (most recent call last): File "", line 1, in ValueError: list.remove(x): x not in list >>> del a[7] Traceback (most recent call last): File "", line 1, in IndexError: list assignment index out of range >>> a.pop(7) Traceback (most recent call last): File "", line 1, in IndexError: pop index out of range [INST] How to limit the maximum value of a numeric field in a Django model? Django has various numeric fields available for use in models, e.g. DecimalField and PositiveIntegerField. Although the former can be restricted to the number of decimal places stored and the overall number of characters stored, is there any way to restrict it to storing only numbers within a certain range, e.g. 0.0-5.0 ? Failing that, is there any way to restrict a PositiveIntegerField to only store, for instance, numbers up to 50? Update: now that Bug 6845 has been closed, this StackOverflow question may be moot. - sampablokuper [/INST] You can use Django's built-in validators— from django.db.models import IntegerField, Model from django.core.validators import MaxValueValidator, MinValueValidator class CoolModelBro(Model): limited_integer_field = IntegerField( default=1, validators=[ MaxValueValidator(100), MinValueValidator(1) ] ) Edit: Although these only work when you're using the model in a ModelForm, not if you're using the model "on its own", sigh. [INST] socket.shutdown vs socket.close I recently saw a bit of code that looked like this (with sock being a socket object of course): sock.shutdown(socket.SHUT_RDWR) sock.close() What exactly is the purpose of calling shutdown on the socket and then closing it? If it makes a difference, this socket is being used for non-blocking IO. [/INST] Calling close and shutdown have two different effects on the underlying socket. The first thing to point out is that the socket is a resource in the underlying OS and multiple processes can have a handle for the same underlying socket. When you call close it decrements the handle count by one and if the handle count has reached zero then the socket and associated connection goes through the normal close procedure (effectively sending a FIN / EOF to the peer) and the socket is deallocated. The thing to pay attention to here is that if the handle count does not reach zero because another process still has a handle to the socket then the connection is not closed and the socket is not deallocated. On the other hand calling shutdown for reading and writing closes the underlying connection and sends a FIN / EOF to the peer regardless of how many processes have handles to the socket. However, it does not deallocate the socket and you still need to call close afterward. [INST] Django DB Settings 'Improperly Configured' Error Django (1.5) is workin' fine for me, but when I fire up the Python interpreter (Python 3) to check some things, I get the weirdest error when I try importing - from django.contrib.auth.models import User - Traceback (most recent call last): File "/usr/local/lib/python3.2/dist-packages/django/conf/__init__.py", line 36, in _setup settings_module = os.environ[ENVIRONMENT_VARIABLE] File "/usr/lib/python3.2/os.py", line 450, in __getitem__ value = self._data[self.encodekey(key)] KeyError: b'DJANGO_SETTINGS_MODULE' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.2/dist-packages/django/contrib/auth/models.py", line 8, in from django.db import models File "/usr/local/lib/python3.2/dist-packages/django/db/__init__.py", line 11, in if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES: File "/usr/local/lib/python3.2/dist-packages/django/conf/__init__.py", line 52, in __getattr__ self._setup(name) File "/usr/local/lib/python3.2/dist-packages/django/conf/__init__.py", line 45, in _setup % (desc, ENVIRONMENT_VARIABLE)) django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. How could it be improperly configured, when it works fine outside the Python interpreter? In my Django settings, the DATABASES settings are: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'django_db', # Or path to database file if using sqlite3. # The following settings are not used with sqlite3: 'USER': 'zamphatta', 'PASSWORD': 'mypassword91', 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. 'PORT': '', # Set to empty string for default. } } ...how is this improperly configured? [/INST] You can't just fire up python and check things, django doesn't know what project you want to work on. You have to do one of these things: Use python manage.py shell Use django-admin.py shell --settings=mysite.settings (or whatever settings module you use) Set DJANGO_SETTINGS_MODULE environment variable in your OS to mysite.settings (This is removed in django 1.6) Use setup_environ in the python interpreter: from django.core.management import setup_environ from mysite import settings setup_environ(settings) Naturally, the first way is the easiest. [INST] How can I return two values from a function in Python? I would like to return two values from a function in two separate variables. For example: def select_choice(): loop = 1 row = 0 while loop == 1: print('''Choose from the following options?: 1. Row 1 2. Row 2 3. Row 3''') row = int(input("Which row would you like to move the card from?: ")) if row == 1: i = 2 card = list_a[-1] elif row == 2: i = 1 card = list_b[-1] elif row == 3: i = 0 card = list_c[-1] return i return card And I want to be able to use these values separately. When I tried to use return i, card, it returns a tuple and this is not what I want. [/INST] Return a tuple/list (or any other sequence, e.g. dict) and unpack it after the call: def select_choice(): ... return i, card # or [i, card] my_i, my_card = select_choice() In the line return i, card i, card means creating a tuple. You can also put in parenthesis like return (i, card), but the tuple is created by the comma, so parens are not mandatory, but you can use them to make your code more readable. [INST] Matrix Transpose in Python I am trying to create a matrix transpose function for python but I can't seem to make it work. Say I have theArray = [['a','b','c'],['d','e','f'],['g','h','i']] and I want my function to come up with newArray = [['a','d','g'],['b','e','h'],['c', 'f', 'i']] So in other words, if I were to print this 2D array as columns and rows I would like the rows to turn into columns and columns into rows. I made this so far but it doesn't work def matrixTranspose(anArray): transposed = [None]*len(anArray[0]) for t in range(len(anArray)): for tt in range(len(anArray[t])): transposed[t] = [None]*len(anArray) transposed[t][tt] = anArray[tt][t] print transposed [/INST] >>> theArray = [['a','b','c'],['d','e','f'],['g','h','i']] >>> zip(*theArray) [('a', 'd', 'g'), ('b', 'e', 'h'), ('c', 'f', 'i')] [INST] Why doesn't django's model.save() call full_clean()? I'm just curious if anyone knows if there's good reason why django's orm doesn't call 'full_clean' on a model unless it is being saved as part of a model form. Note that full_clean() will not be called automatically when you call your model’s save() method. You’ll need to call it manually when you want to run one-step model validation for your own manually created models. django's full clean doc (NOTE: quote updated for Django 1.6... previous django docs had a caveat about ModelForms as well.) Are there good reasons why people wouldn't want this behavior? I'd think if you took the time to add validation to a model, you'd want that validation run every time the model is saved. I know how to get everything to work properly, I'm just looking for an explanation. [/INST] AFAIK, this is because of backwards compatibility. There are also problems with ModelForms with excluded fields, models with default values, pre_save() signals, etc. Sources you might be intrested in: http://code.djangoproject.com/ticket/13100 http://groups.google.com/group/django-developers/browse_frm/thread/b888734b05878f87 [INST] Find unique rows in numpy.array I need to find unique rows in a numpy.array. For example: >>> a # I have array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [0, 1, 1, 1, 0, 0], [1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 0]]) >>> new_a # I want to get to array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 0]]) I know that i can create a set and loop over the array, but I am looking for an efficient pure numpy solution. I believe that there is a way to set data type to void and then I could just use numpy.unique, but I couldn't figure out how to make it work. [/INST] Another option to the use of structured arrays is using a view of a void type that joins the whole row into a single item: a = np.array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0], [0, 1, 1, 1, 0, 0], [1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 0]]) b = np.ascontiguousarray(a).view(np.dtype((np.void, a.dtype.itemsize * a.shape[1]))) _, idx = np.unique(b, return_index=True) unique_a = a[idx] >>> unique_a array([[0, 1, 1, 1, 0, 0], [1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 0]]) EDIT Added np.ascontiguousarray following @seberg's recommendation. This will slow the method down if the array is not already contiguous. EDIT The above can be slightly sped up, perhaps at the cost of clarity, by doing: unique_a = np.unique(b).view(a.dtype).reshape(-1, a.shape[1]) Also, at least on my system, performance wise it is on par, or even better, than the lexsort method: a = np.random.randint(2, size=(10000, 6)) %timeit np.unique(a.view(np.dtype((np.void, a.dtype.itemsize*a.shape[1])))).view(a.dtype).reshape(-1, a.shape[1]) 100 loops, best of 3: 3.17 ms per loop %timeit ind = np.lexsort(a.T); a[np.concatenate(([True],np.any(a[ind[1:]]!=a[ind[:-1]],axis=1)))] 100 loops, best of 3: 5.93 ms per loop a = np.random.randint(2, size=(10000, 100)) %timeit np.unique(a.view(np.dtype((np.void, a.dtype.itemsize*a.shape[1])))).view(a.dtype).reshape(-1, a.shape[1]) 10 loops, best of 3: 29.9 ms per loop %timeit ind = np.lexsort(a.T); a[np.concatenate(([True],np.any(a[ind[1:]]!=a[ind[:-1]],axis=1)))] 10 loops, best of 3: 116 ms per loop [INST] Python __call__ special method practical example I know that __call__ method in a class is triggered when the instance of a class is called. However, I have no idea when I can use this special method, because one can simply create a new method and perform the same operation done in __call__ method and instead of calling the instance, you can call the method. I would really appreciate it if someone gives me a practical usage of this special method. [/INST] This example uses memoization, basically storing values in a table (dictionary in this case) so you can look them up later instead of recalculating them. Here we use a simple class with a __call__ method to calculate factorials (through a callable object) instead of a factorial function that contains a static variable (as that's not possible in Python). class Factorial: def __init__(self): self.cache = {} def __call__(self, n): if n not in self.cache: if n == 0: self.cache[n] = 1 else: self.cache[n] = n * self.__call__(n-1) return self.cache[n] fact = Factorial() Now you have a fact object which is callable, just like every other function. For example for i in xrange(10): print("{}! = {}".format(i, fact(i))) # output 0! = 1 1! = 1 2! = 2 3! = 6 4! = 24 5! = 120 6! = 720 7! = 5040 8! = 40320 9! = 362880 And it is also stateful. [INST] NameError: name 'self' is not defined Why such structure class A: def __init__(self, a): self.a = a def p(self, b=self.a): print b gives an error NameError: name 'self' is not defined? [/INST] Default argument values are evaluated at function define-time, but self is an argument only available at function call time. Thus arguments in the argument list cannot refer each other. It's a common pattern to default an argument to None and add a test for that in code: def p(self, b=None): if b is None: b = self.a print b [INST] How to apply a function to two columns of Pandas dataframe Suppose I have a df which has columns of 'ID', 'col_1', 'col_2'. And I define a function : f = lambda x, y : my_function_expression. Now I want to apply the f to df's two columns 'col_1', 'col_2' to element-wise calculate a new column 'col_3' , somewhat like : df['col_3'] = df[['col_1','col_2']].apply(f) # Pandas gives : TypeError: ('() takes exactly 2 arguments (1 given)' How to do ? ** Add detail sample as below *** import pandas as pd df = pd.DataFrame({'ID':['1','2','3'], 'col_1': [0,2,3], 'col_2':[1,4,5]}) mylist = ['a','b','c','d','e','f'] def get_sublist(sta,end): return mylist[sta:end+1] #df['col_3'] = df[['col_1','col_2']].apply(get_sublist,axis=1) # expect above to output df as below ID col_1 col_2 col_3 0 1 0 1 ['a', 'b'] 1 2 2 4 ['c', 'd', 'e'] 2 3 3 5 ['d', 'e', 'f'] [/INST] Here's an example using apply on the dataframe, which I am calling with axis = 1. Note the difference is that instead of trying to pass two values to the function f, rewrite the function to accept a pandas Series object, and then index the Series to get the values needed. In [49]: df Out[49]: 0 1 0 1.000000 0.000000 1 -0.494375 0.570994 2 1.000000 0.000000 3 1.876360 -0.229738 4 1.000000 0.000000 In [50]: def f(x): ....: return x[0] + x[1] ....: In [51]: df.apply(f, axis=1) #passes a Series object, row-wise Out[51]: 0 1.000000 1 0.076619 2 1.000000 3 1.646622 4 1.000000 Depending on your use case, it is sometimes helpful to create a pandas group object, and then use apply on the group. [INST] How to call a shell script from python code? how to call a shell script from python code? [/INST] The subprocess module will help you out. Here is a decent tutorial. Blatantly trivial example: >>> import subprocess >>> subprocess.call(['./test.sh']) # Thanks @Jim Dennis for suggesting the [] 0 >>> Where test.sh is a simple shell script and 0 is its return value for this run. [INST] while (1) Vs. for while(True) -- Why is there a difference? Intrigued by this question about infinite loops in perl: http://stackoverflow.com/questions/885908/while-1-vs-for-is-there-a-speed-difference, I decided to run a similar comparison in python. I expected that the compiler would generate the same byte code for while(True): pass and while(1): pass, but this is actually not the case in python2.7. The following script: import dis def while_one(): while 1: pass def while_true(): while True: pass print("while 1") print("----------------------------") dis.dis(while_one) print("while True") print("----------------------------") dis.dis(while_true) produces the following results: while 1 ---------------------------- 4 0 SETUP_LOOP 3 (to 6) 5 >> 3 JUMP_ABSOLUTE 3 >> 6 LOAD_CONST 0 (None) 9 RETURN_VALUE while True ---------------------------- 8 0 SETUP_LOOP 12 (to 15) >> 3 LOAD_GLOBAL 0 (True) 6 JUMP_IF_FALSE 4 (to 13) 9 POP_TOP 9 10 JUMP_ABSOLUTE 3 >> 13 POP_TOP 14 POP_BLOCK >> 15 LOAD_CONST 0 (None) 18 RETURN_VALUE Using while True is noticeably more complicated. Why is this? In other contexts, python acts as though True equals 1: >>> True == 1 True >>> True + True 2 Why does while distinguish the two? I noticed that python3 does evaluate the statements using identical operations: while 1 ---------------------------- 4 0 SETUP_LOOP 3 (to 6) 5 >> 3 JUMP_ABSOLUTE 3 >> 6 LOAD_CONST 0 (None) 9 RETURN_VALUE while True ---------------------------- 8 0 SETUP_LOOP 3 (to 6) 9 >> 3 JUMP_ABSOLUTE 3 >> 6 LOAD_CONST 0 (None) 9 RETURN_VALUE Is there a change in python3 to the way booleans are evaluated? [/INST] In Python 2.x, True is not a keyword, but just a built-in global constant that is defined to 1 in the bool type. Therefore the interpreter still has to load the contents of True. In other words, True is reassignable: Python 2.7 (r27:82508, Jul 3 2010, 21:12:11) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> True = 4 >>> True 4 In Python 3.x it truly becomes a keyword and a real constant: Python 3.1.2 (r312:79147, Jul 19 2010, 21:03:37) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> True = 4 File "", line 1 SyntaxError: assignment to keyword thus the interpreter can replace the while True: loop with an infinite loop. [INST] Why aren't Python's superclass __init__ methods automatically invoked? Why did the Python designers decide that subclasses' __init__() methods don't automatically call the __init__() methods of their superclasses, as in some other languages? Is the Pythonic and recommended idiom really like the following? class Superclass(object): def __init__(self): print 'Do something' class Subclass(Superclass): def __init__(self): super(Subclass, self).__init__() print 'Do something else' [/INST] The crucial distinction between Python's __init__ and those other languages constructors is that __init__ is not a constructor: it's an initializer (the actual constructor (if any, but, see later;-) is __new__ and works completely differently again). While constructing all superclasses (and, no doubt, doing so "before" you continue constructing downwards) is obviously part of saying you're constructing a subclass's instance, that is clearly not the case for initializing, since there are many use cases in which superclasses' initialization needs to be skipped, altered, controlled -- happening, if at all, "in the middle" of the subclass initialization, and so forth. Basically, super-class delegation of the initializer is not automatic in Python for exactly the same reasons such delegation is also not automatic for any other methods -- and note that those "other languages" don't do automatic super-class delegation for any other method either... just for the constructor (and if applicable, destructor), which, as I mentioned, is not what Python's __init__ is. (Behavior of __new__ is also quite peculiar, though really not directly related to your question, since __new__ is such a peculiar constructor that it doesn't actually necessarily need to construct anything -- could perfectly well return an existing instance, or even a non-instance... clearly Python offers you a lot more control of the mechanics than the "other languages" you have in mind, which also includes having no automatic delegation in __new__ itself!-). [INST] What is python used for? Okay, so I am fairly new at programming (knowing only html, CSS, and JavaScript) and I just started diving into python. What I want to know is, what is it used for and what is it designed for? [/INST] Python is a dynamic, strongly typed, object oriented, multipurpose programming language, designed to be quick (to learn, to use, and to understand), and to enforce a clean and uniform syntax. Python is dynamically typed: it means that you don't declare a type (e.g. 'integer') for a variable name, and then assign something of that type (and only that type). Instead, you have variable names, and you bind them to entities whose type stays with the entity itself. a = 5 makes the variable name a to refer to the integer 5. Later, a = "hello" makes the variable name a to refer to a string containing "hello". Static typed languages would have you declare int a and then a = 5, but assigning a = "hello" would have been a compile time error. On one hand, this makes everything more unpredictable (you don't know what a refers to). On the other hand, it makes very easy to achieve some results a static typed languages makes very difficult. Python is strongly typed. It means that if a = "5" (the string whose value is '5') will remain a string, and never coerced to a number if the context requires so. Every type conversion in python must be done explicitly. This is different from, for example, Perl or Javascript, where you have weak typing, and can write things like "hello" + 5 to get "hello5". Python is object oriented, with class-based inheritance. Everything is an object (including classes, functions, modules, etc), in the sense that they can be passed around as arguments, have methods and attributes, and so on. Python is multipurpose: it is not specialised to a specific target of users (like R for statistics, or PHP for web programming). It is extended through modules and libraries, that hook very easily into the C programming language. Python enforces correct indentation of the code by making the indentation part of the syntax. There are no control braces in Python. Blocks of code are identified by the level of indentation. Although a big turn off for many programmers not used to this, it is precious as it gives a very uniform style and results in code that is visually pleasant to read. The code is compiled into byte code and then executed in a virtual machine. This means that precompiled code is portable between platforms. Python can be used for any programming task, from GUI programming to web programming with everything else in between. It's quite efficient, as much of its activity is done at the C level. Python is just a layer on top of C. There are libraries for everything you can think of: game programming and openGL, GUI interfaces, web frameworks, semantic web, scientific computing... [INST] Is a Python dictionary an example of a hash table? One of the basic data structures in Python is the dictionary, which allows one to record "keys" for looking up "values" of any type. Is this implemented internally as a hash table? If not, what is it? [/INST] Yes, it is a hash mapping or hash table. You can read a description of python's dict implementation, as written by Tim Peters, here. That's why you can't use something 'not hashable' as a dict key, like a list: >>> a = {} >>> b = ['some', 'list'] >>> hash(b) Traceback (most recent call last): File "", line 1, in TypeError: list objects are unhashable >>> a[b] = 'some' Traceback (most recent call last): File "", line 1, in TypeError: list objects are unhashable You can read more about hash tables or check how it has been implemented in python and why it is implemented that way. [INST] In Python, what is the difference between ".append()" and "+= []"? What is the difference between: some_list1 = [] some_list1.append("something") and some_list2 = [] some_list2 += ["something"] [/INST] For your case the only difference is performance: append is twice as fast. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import timeit >>> timeit.Timer('s.append("something")', 's = []').timeit() 0.20177424499999999 >>> timeit.Timer('s += ["something"]', 's = []').timeit() 0.41192320500000079 Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import timeit >>> timeit.Timer('s.append("something")', 's = []').timeit() 0.23079359499999999 >>> timeit.Timer('s += ["something"]', 's = []').timeit() 0.44208112500000141 In general case append will add one item to the list, while += will copy all elements of right-hand-side list into the left-hand-side list. Update: perf analysis Comparing bytecodes we can assume that append version wastes cycles in LOAD_ATTR + CALL_FUNCTION, and += version -- in BUILD_LIST. Apparently BUILD_LIST outweighs LOAD_ATTR + CALL_FUNCTION. >>> import dis >>> dis.dis(compile("s = []; s.append('spam')", '', 'exec')) 1 0 BUILD_LIST 0 3 STORE_NAME 0 (s) 6 LOAD_NAME 0 (s) 9 LOAD_ATTR 1 (append) 12 LOAD_CONST 0 ('spam') 15 CALL_FUNCTION 1 18 POP_TOP 19 LOAD_CONST 1 (None) 22 RETURN_VALUE >>> dis.dis(compile("s = []; s += ['spam']", '', 'exec')) 1 0 BUILD_LIST 0 3 STORE_NAME 0 (s) 6 LOAD_NAME 0 (s) 9 LOAD_CONST 0 ('spam') 12 BUILD_LIST 1 15 INPLACE_ADD 16 STORE_NAME 0 (s) 19 LOAD_CONST 1 (None) 22 RETURN_VALUE We can improve performance even more by removing LOAD_ATTR overhead: >>> timeit.Timer('a("something")', 's = []; a = s.append').timeit() 0.15924410999923566 �[INST] Emacs bulk indent for Python Working with Python in Emacs if I want to add a try/except to a block of code, I often find that I am having to indent the whole block, line by line. In Emacs, how do you indent the whole block at once. I am not an experienced Emacs user, but just find it is the best tool for working through ssh. I am using Emacs on the command line(Ubuntu), not as a gui, if that makes any difference. [/INST] If you are programming Python using Emacs, then you should probably be using python-mode. With python-mode, after marking the block of code, C-c > or C-c C-l shifts the region 4 spaces to the right C-c < or C-c C-r shifts the region 4 spaces to the left If you need to shift code by two levels of indention, or some arbitary amount you can prefix the command with an argument: C-u 8 C-c > shifts the region 8 spaces to the right C-u 8 C-c < shifts the region 8 spaces to the left Another alternative is to use M-x indent-rigidly which is bound to C-x TAB: C-u 8 C-x TAB shifts the region 8 spaces to the right C-u -8 C-x TAB shifts the region 8 spaces to the left Also useful are the rectangle commands that operate on rectangles of text instead of lines of text. For example, after marking a rectangular region, C-x r o inserts blank space to fill the rectangular region (effectively shifting code to the right) C-x r k kills the rectangular region (effectively shifting code to the left) C-x r t prompts for a string to replace the rectangle with. Entering C-u 8 will then enter 8 spaces. PS. With Ubuntu, to make python-mode the default mode for all .py files, simply install the python-mode package. &[INST] Creating an empty list in Python What is the best way to create a new empty list in Python? l = [] or l = list() I am asking this because of two reasons: Technical reasons, as to which is faster. (creating a class causes overhead?) Code readability - which one is the standard convention. [/INST] Here is how you can test which piece of code is faster: % python -mtimeit "l=[]" 10000000 loops, best of 3: 0.0711 usec per loop % python -mtimeit "l=list()" 1000000 loops, best of 3: 0.297 usec per loop However, in practice, this initialization is most likely an extremely small part of your program, so worrying about this is probably wrong-headed. Readability is very subjective. I prefer [], but some very knowledgable people, like Alex Martelli, prefer list() because it is pronounceable. [INST] Installing Python packages from local file system folder with pip Is it possible to install packages using pip from the local filesystem? I have run python setup.py sdist for my package, which has created the appropriate tar.gz file. This file is stored on my system at /srv/pkg/mypackage/mypackage-0.1.0.tar.gz. Now in a virtual environment I would like to install packages either coming from pypi or from the specific local location /srv/pkg. Is this possible? PS I know that I can specify pip install /srv/pkg/mypackage/mypackage-0.1.0.tar.gz. That will work, but I am talking about using the /srv/pkg location as another place for pip to search if I typed pip install mypackage. [/INST] What about:: pip install --help ... -e, --editable Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url. eg, pip install -e /srv/pkg where /srv/pkg is the top-level directory where 'setup.py' can be found. [INST] Reverse Y-Axis in PyPlot I have a scatter plot graph with a bunch of random x, y coordinates. Currently the Y-Axis starts at 0 and goes up to the max value. I would like the Y-Axis to start at the max value and go up to 0. points = [(10,5), (5,11), (24,13), (7,8)] x_arr = [] y_arr = [] for x,y in points: x_arr.append(x) y_arr.append(y) plt.scatter(x_arr,y_arr) [/INST] There is a new API that makes this even simpler. plt.gca().invert_xaxis() and/or plt.gca().invert_yaxis() [INST] finding and replacing elements in a list (python) I have to search through a list and replace all occurrences of one element with another. So far my attempts in code are getting me nowhere, what is the best way to do this? For example, suppose my list has the following integers >>> a = [1,2,3,4,5,1,2,3,4,5,1] and I need to replace all occurrences of the number 1 with the value 10 so the output I need is >>> a = [10, 2, 3, 4, 5, 10, 2, 3, 4, 5, 10] Thus my goal is to replace all instances of the number 1 with the number 10. [/INST] Try using a list comprehension and the ternary operator. >>> a=[1,2,3,1,3,2,1,1] >>> [4 if x==1 else x for x in a] [4, 2, 3, 4, 3, 2, 4, 4] [INST] Using Pylint with Django I would very much like to integrate pylint into the build process for my python projects, but I have run into one show-stopper: One of the error types that I find extremely useful--:E1101: *%s %r has no %r member*--constantly reports errors when using common django fields, for example: E1101:125:get_user_tags: Class 'Tag' has no 'objects' member which is caused by this code: def get_user_tags(username): """ Gets all the tags that username has used. Returns a query set. """ return Tag.objects.filter( ## This line triggers the error. tagownership__users__username__exact=username).distinct() # Here is the Tag class, models.Model is provided by Django: class Tag(models.Model): """ Model for user-defined strings that help categorize Events on on a per-user basis. """ name = models.CharField(max_length=500, null=False, unique=True) def __unicode__(self): return self.name How can I tune Pylint to properly take fields such as objects into account? (I've also looked into the Django source, and I have been unable to find the implementation of objects, so I suspect it is not "just" a class field. On the other hand, I'm fairly new to python, so I may very well have overlooked something.) Edit: The only way I've found to tell pylint to not warn about these warnings is by blocking all errors of the type (E1101) which is not an acceptable solution, since that is (in my opinion) an extremely useful error. If there is another way, without augmenting the pylint source, please point me to specifics :) See here for a summary of the problems I've had with pychecker and pyflakes -- they've proven to be far to unstable for general use. (In pychecker's case, the crashes originated in the pychecker code -- not source it was loading/invoking.) [/INST] I use the following: pylint --generated-members=objects [INST] How do I create a namespace package in Python? In Python, a namespace package allows you to spread Python code among several projects. This is useful when you want to release related libraries as separate downloads. For example, with the directories Package-1 and Package-2 in PYTHONPATH, Package-1/namespace/__init__.py Package-1/namespace/module1/__init__.py Package-2/namespace/__init__.py Package-2/namespace/module2/__init__.py the end-user can import namespace.module1 and import namespace.module2. What's the best way to define a namespace package so more than one Python product can define modules in that namespace? [/INST] There's a standard module, called pkgutil, with which you can 'append' modules to a given namespace. With the directory structure you've provided: Package-1/namespace/__init__.py Package-1/namespace/module1/__init__.py Package-2/namespace/__init__.py Package-2/namespace/module2/__init__.py You should put those two lines in both Package-1/namespace/__init__.py and Package-2/namespace/__init__.py (*): from pkgutil import extend_path __path__ = extend_path(__path__, __name__) (* since -unless you state a dependency between them- you don't know which of them will be recognized first - see PEP 420 for more information) As the documentation says: This will add to the package's __path__ all subdirectories of directories on sys.path named after the package. From now on, you should be able to distribute those two packages independently. �[INST] In Python, if I return inside a "with" block, will the file still close? Consider the following: with open(path, mode) as f: return [line for line in f if condition] Will the file be closed properly, or does using return somehow bypass the context manager? [/INST] Yes, it acts like the finally block after a try block, i.e. it always executes (unless the python process terminates in an unusual way of course). It is also mentioned in one of the examples of PEP-343 which is the specification for the with statement: with locked(myLock): # Code here executes with myLock held. The lock is # guaranteed to be released when the block is left (even # if via return or by an uncaught exception). Something worth mentioning is however, that you cannot easily catch exceptions thrown by the open() call without putting the whole with block inside a try..except block which is usually not what one wants. [INST] Printing Lists as Tabular Data I am quite new to Python and I am now struggling with formatting my data nicely for printed output. I have one list that is used for two headings, and a matrix that should be the contents of the table. Like so: teams_list = ["Man Utd", "Man City", "T Hotspur"] data = np.array([[1, 2, 1], [0, 1, 0], [2, 4, 2]]) Note that the heading names are not necessarily the same lengths. The data entries are all integers, though. Now, I want to represent this in a table format, something like this: Man Utd Man City T Hotspur Man Utd 1 0 0 Man City 1 1 0 T Hotspur 0 1 2 I have a hunch that there must be a data structure for this, but I cannot find it. I have tried using a dictionary and formatting the printing, I have tried for-loops with indentation and I have tried printing as strings. I am sure there must be a very simple way to do this, but I am probably missing it due to lack of experience. [/INST] There are some light and useful python packages for this purpose: 1. tabulate: https://pypi.python.org/pypi/tabulate >>> from tabulate import tabulate >>> print tabulate([['Alice', 24], ['Bob', 19]], headers=['Name', 'Age']) Name Age ------ ----- Alice 24 Bob 19 tabulate has many options to specify headers and table format. >>> print tabulate([['Alice', 24], ['Bob', 19]], headers=['Name', 'Age'], tablefmt='orgtbl') | Name | Age | |--------+-------| | Alice | 24 | | Bob | 19 | 2. PrettyTable: https://pypi.python.org/pypi/PrettyTable >>> from prettytable import PrettyTable >>> t = PrettyTable(['Name', 'Age']) >>> t.add_row(['Alice', 24]) >>> t.add_row(['Bob', 19]) >>> print t +-------+-----+ | Name | Age | +-------+-----+ | Alice | 24 | | Bob | 19 | +-------+-----+ PrettyTable has options to read data from csv, html, sql database. Also you are able to select subset of data, sort table and change table styles. 3. texttable: https://pypi.python.org/pypi/texttable >>> from texttable import Texttable >>> t = Texttable() >>> t.add_rows([['Name', 'Age'], ['Alice', 24], ['Bob', 19]]) >>> print t.draw() +-------+-----+ | Name | Age | +=======+=====+ | Alice | 24 | +-------+-----+ | Bob | 19 | +-------+-----+ with texttable you can control horisontal/verical align, border style and data types. Other options: terminaltables Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows. asciitable Asciitable can read and write a wide range of ASCII table formats via built-in Extension Reader Classes. [INST] How to call a function from another file in Python? I've seen this topic here covered numerous times, but none of the answers I've seen seem to work for me, so I'll try to be as specific to my problem as possible. Set_up: I have a .py file for each function I need to use in a program. In this program, I need to call the function from the external files. I've tried: from file.py import function(a,b) but I get the error: ImportError: No module named 'file.py'; file is not a package [/INST] No need to add file.py while importing. Just write from file import function, and then call the function using function(a, b). The reason why this may not work, is because file is one of Python's core modules, so I suggest you change the name of your file. Note, that if you're trying to import functions from a.py to a file called b.py, you will need to make sure that a.py and b.py are in the same directories. [INST] Getting the exception value in Python If I have that code: try: some_method() except Exception,e: How can I get this Exception value (string representation I mean)? Thanks [/INST] use str try: some_method() except Exception as e: s = str(e) Also, most exception classes will have an args attribute. Often, args[0] will be an error message. It should be noted that just using str will return an empty string if there's no error message whereas using repr as pyfunc recommends will at least display the class of the exception. My take is that if you're printing it out, it's for an end user that doesn't care what the class is and just wants an error message. It really depends on the class of exception that you are dealing with and how it is instantiated. Did you have something in particular in mind? [INST] Accessing object memory address When you call the object.__repr__() method in python you get something like this back: <__main__.Test object at 0x2aba1c0cf890>, is there any way to get a hold of the memory address if you overload __repr__(), other then calling super(Class, obj).__repr__() and regexing it out? [/INST] The Python manual has this to say about id(): Return the ``identity'' of an object. This is an integer (or long integer) which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value. (Implementation note: this is the address of the object.) So in CPython, this will be the address of the object. No such guarantee for any other Python interpreter, though. Note that if you're writing a C extension, you have full access to the internals of the Python interpreter, including access to the addresses of objects directly. [INST] How can I make setuptools install a package that's not on PyPI? I've just started working with setuptools and virtualenv. My package requires the latest python-gearman that is only available from GitHub. The python-gearman version that's on PyPI is an old one. The Github source is setuptools-compatible, i.e. has setup.py, etc. Is there a way to make setuptools download and install the new version instead of looking for it on PyPI and installing the old one? FYI, the new python-gearman is http://github.com/mtai/python-gearman [/INST] The key is to tell easy_install where the package can be downloaded. In this particular case, it can be found at the url http://github.com/mtai/python-gearman/tarball/master. However, that link by itself won't work, because easy_install can't tell just by looking at the URL what it's going to get. By changing it to http://github.com/mtai/python-gearman/tarball/master#egg=gearman-2.0.0beta instead, easy_install will be able to identify the package name and its version. The final step is to add the URL to your package's dependency_links, e.g.: setup( ... dependency_links = ['http://github.com/mtai/python-gearman/tarball/master#egg=gearman-2.0.0beta'] ) Now, when YOUR package is being installed, easy_install will discover that there is a "gearman 2.0.0beta" available for download from that URL, and happily pick it over the one on PyPI, if you specify "gearman>=2.0.0beta" in your dependencies.. (Normally, the way this sort of thing is done is to include a link on one's PyPI page to the downloadable source; in this case, if the author of the gearman package had included a link like the above, you'd be already set. Typically, people mark the development version with 'myproject-dev' and then people use a requirement of 'myproject>=somever,==dev', so that if there isn't a package of somever or higher, easy_install will try to check out or download the release.) [INST] Why is max slower than sort in Python? I've found that max is slower than the sort function in Python 2 and 3. Python 2 $ python -m timeit -s 'import random;a=range(10000);random.shuffle(a)' 'a.sort();a[-1]' 1000 loops, best of 3: 239 usec per loop $ python -m timeit -s 'import random;a=range(10000);random.shuffle(a)' 'max(a)' 1000 loops, best of 3: 342 usec per loop Python 3 $ python3 -m timeit -s 'import random;a=list(range(10000));random.shuffle(a)' 'a.sort();a[-1]' 1000 loops, best of 3: 252 usec per loop $ python3 -m timeit -s 'import random;a=list(range(10000));random.shuffle(a)' 'max(a)' 1000 loops, best of 3: 371 usec per loop Why is max (O(n)) slower than the sort function (O(nlogn))? [/INST] You have to be very careful when using the timeit module in Python. python -m timeit -s 'import random;a=range(10000);random.shuffle(a)' 'a.sort();a[-1]' Here the initialisation code runs once to produce a randomised array a. Then the rest of the code is run several times. The first time it sorts the array, but every other time you are calling the sort method on an already sorted array. Only the fastest time is returned, so you are actually timing how long it takes Python to sort an already sorted array. Part of Python's sort algorithm is to detect when the array is already partly or completely sorted. When completely sorted it simply has to scan once through the array to detect this and then it stops. If instead you tried: python -m timeit -s 'import random;a=range(100000);random.shuffle(a)' 'sorted(a)[-1]' then the sort happens on every timing loop and you can see that the time for sorting an array is indeed much longer than to just find the maximum value. Edit: @skyking's answer explains the part I left unexplained: a.sort() knows it is working on a list so can directly access the elements. max(a) works on any arbitrary iterable so has to use generic iteration. [INST] How do I install Python packages on Windows? I'm having a hard time setting up python packages. EasyInstall from SetupTools is supposed to help that, but they don't have an executable for Python 2.6. For instance to install Mechanize, I'm just supposed to put the Mechanize folder in C:\Python24\Lib\site-packages according to INSTALL.txt, but runnning the tests does not work. Can someone help shed some light on this? Thanks! [/INST] The accepted answer is outdated. So first, pip is preferred over easy_install, (Why use pip over easy_install?). Then follow these steps to install pip on Windows, it's quite easy. Install setuptools: curl https://bootstrap.pypa.io/ez_setup.py | python Install pip: curl https://bootstrap.pypa.io/get-pip.py | python Optionally, you can add the path to your environment so that you can use pip anywhere. It's somewhere like C:\Python33\Scripts. [INST] How can I disable logging while running unit tests in Python Django? I am using a simple unit test based test runner to test my Django application. My application itself is configured to use a basic logger in settings.py using: logging.basicConfig(level=logging.DEBUG) And in my application code using: logger = logging.getLogger(__name__) logger.setLevel(getattr(settings, 'LOG_LEVEL', logging.DEBUG)) However, when running unittests, I'd like to disable logging so that it doesn't clutter my test result output. Is there a simple way to turn off logging in a global way, so that the application specific loggers aren't writing stuff out to the console when I run tests? [/INST] logging.disable(logging.CRITICAL) will disable all logging calls with levels less severe than or equal to CRITICAL. Logging can be re-enabled with logging.disable(logging.NOTSET) [INST] Python - how to refer to relative paths of resources when working with code repository We are working with a code repository which is deployed both to windows and linux, sometimes on different directories. How should one of the modules inside the project refer to one of the non-python resources in the project (CSV file, etc.)? If we do something like thefile=open('test.csv') or thefile=open('../somedirectory/test.csv') It will work only when the script is run from one specific directory, or a subset of the directories. What I would like to do is something like: path=getBasePathOfProject()+'/somedirectory/test.csv' thefile=open(path) Is this the right way? Is it possible? Thanks [/INST] Try to use a filename relative to the current files path. Example for './my_file': fn = os.path.join(os.path.dirname(__file__), 'my_file') [INST] How do I convert a string to a double in Python? I would like to know how to convert a string containing digits to a double. [/INST] >>> x = "2342.34" >>> float(x) 2342.3400000000001 There you go. Use float (which is almost always a C double). [INST] Python string.replace regular expression I have a parameter file of the form parameter-name parameter-value where the parameters may be in any order but there is only one parameter per line. I want to replace one parameter's parameter-value with a new value. I am using a line replace function posted previously (Search and replace a line in a file in Python) to replace the line which uses python's string.replace(pattern, subst). The regular expression that I'm using works for instance in vim but doesn't appear to work in string.replace. Here is the regular expression that I'm using: line.replace("^.*interfaceOpDataFile.*$/i", "interfaceOpDataFile %s" % (fileIn)) where interfaceOpDataFile is the parameter name that I'm replacing (/i for case insensitive) and the new parameter value is the contents of the fileIn variable. Is there a way to get python to recognize this regular expression or else is there another way to accomplish this task? Thanks in advance. [/INST] str.replace() does not recognize regular expressions, to perform a substitution using regular expressions use re.sub(). For example: import re line = re.sub(r"(?i)^.*interfaceOpDataFile.*$", "interfaceOpDataFile %s" % fileIn, line) If you are doing this in a loop it would be better to compile the regular expression first: import re regex = re.compile(r"^.*interfaceOpDataFile.*$", re.IGNORECASE) for line in some_file: line = regex.sub("interfaceOpDataFile %s" % fileIn, line) # do something with the updated line [INST] Convert datetime object to a String of date only in Python I see a lot on converting a datetime string to an datetime object in Python, but I want to go the other way. I've got datetime.datetime(2012, 2, 23, 0, 0) and I would like to convert it to string like '2/23/2012'. [/INST] You can use strftime to help you format your date. E.g., t = datetime.datetime(2012, 2, 23, 0, 0) t.strftime('%m/%d/%Y') will yield: '02/23/2012' More information about formatting see here [INST] Why is there no tuple comprehension in Python? As we all know, there's list comprehension, like [i for i in [1, 2, 3, 4]] and there is dictionary comprehension, like {i:j for i, j in {1: 'a', 2: 'b'}.items()} but (i for i in (1, 2, 3)) will end up in a generator, not a tuple comprehension. Why is that? My guess is that a tuple is immutable, but this does not seem to be the answer. [/INST] You can use a generator expression: tuple(i for i in (1, 2, 3)) but parenthesis were already taken for.. generator expressions. [INST] Python truncate a long string How does one truncate a string to 75 characters in Python? This is how it is done in JavaScript: var data="saddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddsaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddsadddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" var info = (data.length > 75) ? data.substring[0,75] + '..' : data; [/INST] info = (data[:75] + '..') if len(data) > 75 else data [INST] Python Class Decorator In Python 2.5, is there a way to create a decorator that decorates a class? Specifically, I want to use a decorator to add a member to a class and change the constructor to take a value for that member. Looking for something like the following (which has a syntax error on 'class Foo:': def getId(self): return self.__id class addID(original_class): def __init__(self, id, *args, **kws): self.__id = id self.getId = getId original_class.__init__(self, *args, **kws) @addID class Foo: def __init__(self, value1): self.value1 = value1 if __name__ == '__main__': foo1 = Foo(5,1) print foo1.value1, foo1.getId() foo2 = Foo(15,2) print foo2.value1, foo2.getId() Thanks, Rob Edit: Rereading this question, I guess what I'm really after is a way to do something like a C# interface in Python. I need to switch my paradigm I suppose. [/INST] Apart from the question whether class decorators are the right solution to your problem: in Python 2.6 and higher, there are class decorators with the @-syntax, so you can write: @addID class Foo: pass in older versions, you can do it another way: class Foo: pass Foo = addID(Foo) Note however that this works the same as for function decorators, and that the decorator should return the new (or modified original) class, which is not what you're doing in the example. The addID decorator would look like this: def addID(original_class): orig_init = original_class.__init__ # make copy of original __init__, so we can call it without recursion def __init__(self, id, *args, **kws): self.__id = id self.getId = getId orig_init(self, *args, **kws) # call the original __init__ original_class.__init__ = __init__ # set the class' __init__ to the new one return original_class You could then use the appropriate syntax for your python version as described above. But I agree with others that inheritance is better suited if you want to override __init__. [INST] Python's most efficient way to choose longest string in list? I have a list of variable length and am trying to find a way to test if the list item currently being evaluated is the longest string contained in the list. And I am using Python 2.6.1 For example: mylist = ['123','123456','1234'] for each in mylist: if condition1: do_something() elif ___________________: #else if each is the longest string contained in mylist: do_something_else() I'm brand new to python and I'm sure I'm just having a brain fart. Surely there's a simple list comprehension that's short and elegant that I'm overlooking? Thanks! [/INST] From the Python documentation itself, you can use max: >>> mylist = ['123','123456','1234'] >>> print max(mylist, key=len) 123456 [INST] Why does Python pep-8 strongly recommend spaces over tabs for indentation? I see on Stack Overflow and PEP 8 that the recommendation is to use spaces only for indentation in Python programs. I can understand the need for consistent indentation and I have felt that pain. Is there an underlying reason for spaces to be preferred? I would have thought that tabs were far easier to work with. [/INST] The answer was given right there in the PEP [ed: this passage has been edited out in 2013]. I quote: The most popular way of indenting Python is with spaces only. What other underlying reason do you need? To put it less bluntly: Consider also the scope of the PEP as stated in the very first paragraph: This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. The intention is to make all code that goes in the official python distribution consistently formatted (I hope we can agree that this is universally a Good Thing™). Since the decision between spaces and tabs for an individual programmer is a) really a matter of taste and b) easily dealt with by technical means (editors, conversion scripts, etc.), there is a clear way to end all discussion: chose one. Guido was the one to choose. He didn't even have to give a reason, but he still did by referring to empirical data. For all other purposes you can either take this PEP as a recommendation, or you can ignore it -- your choice, or your team's, or your team leaders. But if I may give you one advice: don't mix'em ;-) [ed: Mixing tabs and spaces is no longer an option.] [INST] Python: Attribute Error - 'NoneType' object has no attribute 'something' I keep getting an error that says AttributeError: 'NoneType' object has no attribute 'something' The code I have is too long to post here, but I was wondering if someone could give a gist of what general scenarios would be cause this 'AttributeError', and what 'NoneType' is supposed to mean? (Usually you would receive the name of some object where the code went wrong, but since it gives me 'NoneType' I'm not sure how it's possible to narrow down what's going on, other than line #) [/INST] NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None. That usually means that an assignment or function call up above failed or returned an unexpected result. [INST] How to sort a list of lists by a specific index of the inner list? I have a list of lists. For example, [ [0,1,'f'], [4,2,'t'], [9,4,'afsd'] ] If I wanted to sort the outer list by the string field of the inner lists, how would you do that in python? [/INST] This is a job for itemgetter >>> from operator import itemgetter >>> L=[[0, 1, 'f'], [4, 2, 't'], [9, 4, 'afsd']] >>> sorted(L, key=itemgetter(2)) [[9, 4, 'afsd'], [0, 1, 'f'], [4, 2, 't']] It is also possible to use a lambda function here, however the lambda function is slower in this simple case [INST] Getting rid of \n when using .readlines() I have a .txt file with values in it. The values are listed like so: Value1 Value2 Value3 Value4 My goal is to put the values in a list. When I do so, the list looks like this: ['Value1\n', 'Value2\n',.....] The \n is not needed. Here is my code. t = open('filename.txt', 'r+w') contents = t.readline() alist = [] for i in contents: alist.append(i) [/INST] This should do what you want (file contents in a list, by line, without \n) with open(filename) as f: mylist = f.read().splitlines() [INST] How to properly use unit-testing's assertRaises() with NoneType objects? I did a simple test case: def setUp(self): self.testListNone = None def testListSlicing(self): self.assertRaises(TypeError, self.testListNone[:1]) and I am expecting test to pass, but I am getting exception: Traceback (most recent call last): self.assertRaises(TypeError, self.testListNone[:1]) TypeError: 'NoneType' object is unsubscriptable I thought that assertRaises will pass since TypeError exception will be raised? [/INST] If you are using python2.7 or above you can use the ability of assertRaises to be use as a context manager and do: with self.assertRaises(TypeError): self.testListNone[:1] If you are using python2.6 another way beside the one given until now is to use unittest2 which is a back port of unittest new feature to python2.6, and you can make it work using the code above. N.B: I'm a big fan of the new feature (SkipTest, test discovery ...) of unittest so I intend to use unittest2 as much as I can. I advise to do the same because there is a lot more than what unittest come with in python2.6 <. [INST] How to input a regex in string.replace in python? I need some help on declaring a regex. My inputs are like the following: this is a paragraph with<[1> in between and then there are cases ... where the<[99> number ranges from 1-100. and there are many other lines in the txt files with<[3> such tags The required output is: this is a paragraph with in between and then there are cases ... where the number ranges from 1-100. and there are many other lines in the txt files with such tags I've tried this: #!/usr/bin/python import os, sys, re, glob for infile in glob.glob(os.path.join(os.getcwd(), '*.txt')): for line in reader: line2 = line.replace('<[1> ', '') line = line2.replace(' ', '') line2 = line.replace('<[1>', '') line = line2.replace('', '') print line I've also tried this (but it seems like I'm using the wrong regex syntax): line2 = line.replace('<[*> ', '') line = line2.replace(' ', '') line2 = line.replace('<[*>', '') line = line2.replace('', '') I dont want to hard-code the replace from 1 to 99 . . . [/INST] This tested snippet should do it: import re line = re.sub(r"", "", line) Edit: Here's a commented version explaining how it works: line = re.sub(r""" (?x) # Use free-spacing mode. < # Match a literal '<' /? # Optionally match a '/' \[ # Match a literal '[' \d+ # Match one or more digits > # Match a literal '>' """, "", line) Regexes are fun! But I would strongly recommend spending an hour or two studying the basics. For starters, you need to learn which characters are special: "metacharacters" which need to be escaped (i.e. with a backslash placed in front - and the rules are different inside and outside character classes.) There is an excellent online tutorial at: www.regular-expressions.info. The time you spend there will pay for itself many times over. Happy regexing! [INST] Unresolved reference issue in PyCharm I have a directory structure ├── simulate.py ├── src │   ├── networkAlgorithm.py │   ├── ... And I can access the network module with sys.path.insert(). import sys import os.path sys.path.insert(0, "./src") from networkAlgorithm import * However, pycharm complains that it cannot access the module. How can I teach pycham to resolve the reference? [/INST] Manually adding it as you have done is indeed one way of doing this, but there is a simpler method, and that is by simply telling pycharm that you want to add the src folder as a source root, and then adding the sources root to your python path. This way, you don't have to hard code things into your interpreter's settings: Add src as a source content root:                             Then make sure to add add sources to your PYTHONPATH: Now imports will be resolved:                       This way, you can add whatever you want as a source root, and things will simply work. If you unmarked it as a source root however, you will get an error:                                   [INST] How can I analyze Python code to identify problematic areas? I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed. Specifically, I'd like to call out routines with a high cyclomatic complexity, identify repetition, and perhaps run some lint-like static analysis to spot suspicious (and thus likely erroneous) constructs. How might I go about constructing such a report? [/INST] For measuring cyclomatic complexity, there's a nice tool available at traceback.org. The page also gives a good overview of how to interpret the results. +1 for pylint. It is great at verifying adherence to coding standards (be it PEP8 or your own organization's variant), which can in the end help to reduce cyclomatic complexity. [INST] Combining node.js and Python Node.js is a perfect match for our web project, but there are few computational tasks for which we would prefer Python. We also already have a Python code for them. We are highly concerned about speed, what is the most elegant way how to call a Python "worker" from node.js in an asynchronous non-blocking way? [/INST] This sounds like a scenario where zeroMQ would be a good fit. It's a messaging framework that's similar to using TCP or Unix sockets, but it's much more robust (http://zguide.zeromq.org/py:all) There's a library that uses zeroMQ to provide a RPC framework that works pretty well. It's called zeroRPC (http://zerorpc.dotcloud.com/). Here's the hello world. Python "Hello x" server: import zerorpc class HelloRPC(object): '''pass the method a name, it replies "Hello name!"''' def hello(self, name): return "Hello, {0}!".format(name) def main(): s = zerorpc.Server(HelloRPC()) s.bind("tcp://*:4242") s.run() if __name__ == "__main__" : main() And the node.js client: var zerorpc = require("zerorpc"); var client = new zerorpc.Client(); client.connect("tcp://127.0.0.1:4242"); //calls the method on the python object client.invoke("hello", "World", function(error, reply, streaming) { if(error){ console.log("ERROR: ", error); } console.log(reply); }); Or vice-versa, node.js server: var zerorpc = require("zerorpc"); var server = new zerorpc.Server({ hello: function(name, reply) { reply(null, "Hello, " + name, false); } }); server.bind("tcp://0.0.0.0:4242"); And the python client import zerorpc, sys c = zerorpc.Client() c.connect("tcp://127.0.0.1:4242") name = sys.argv[1] if len(sys.argv) > 1 else "dude" print c.hello(name) [INST] How do I perform HTML decoding/encoding using Python/Django? I have a string that is html encoded: <img class="size-medium wp-image-113" style="margin-left: 15px;" title="su1" src="http://blah.org/wp-content/uploads/2008/10/su1-300x194.jpg" alt="" width="300" height="194" /> I want to change that to: I want this to register as HTML so that it is rendered as an image by the browser instead of being displayed as text. I've found how to do this in C# but not in in Python. Can someone help me out? Thanks. Edit: Someone asked why my strings are stored like that. It's because I am using a web-scraping tool that "scans" a web-page and gets certain content from it. The tool (BeautifulSoup) returns the string in that format. Related Convert XML/HTML Entities into Unicode String in Python [/INST] Given the Django use case, there are two answers to this. Here is its django.utils.html.escape function, for reference: def escape(html): """Returns the given HTML with ampersands, quotes and carets encoded.""" return mark_safe(force_unicode(html).replace('&', '&').replace('<', '&l t;').replace('>', '>').replace('"', '"').replace("'", ''')) To reverse this, the Cheetah function described in Jake's answer should work, but is missing the single-quote. This version includes an updated tuple, with the order of replacement reversed to avoid symmetric problems: def html_decode(s): """ Returns the ASCII decoded version of the given HTML string. This does NOT remove normal HTML tags like

. """ htmlCodes = ( ("'", '''), ('"', '"'), ('>', '>'), ('<', '<'), ('&', '&') ) for code in htmlCodes: s = s.replace(code[1], code[0]) return s unescaped = html_decode(my_string) This, however, is not a general solution; it is only appropriate for strings encoded with django.utils.html.escape. More generally, it is a good idea to stick with the standard library: # Python 2.x: import HTMLParser html_parser = HTMLParser.HTMLParser() unescaped = html_parser.unescape(my_string) # Python 3.x: import html.parser html_parser = html.parser.HTMLParser() unescaped = html_parser.unescape(my_string) As a suggestion: it may make more sense to store the HTML unescaped in your database. It'd be worth looking into getting unescaped results back from BeautifulSoup if possible, and avoiding this process altogether. With Django, escaping only occurs during template rendering; so to prevent escaping you just tell the templating engine not to escape your string. To do that, use one of these options in your template: {{ context_var|safe }} {% autoescape off %} {{ context_var }} {% endautoescape %} [INST] Any gotchas using unicode_literals in Python 2.6? We've already gotten our code base running under Python 2.6. In order to prepare for Python 3.0, we've started adding: from __future__ import unicode_literals into our .py files (as we modify them). I'm wondering if anyone else has been doing this and has run into any non-obvious gotchas (perhaps after spending a lot of time debugging). [/INST] The main source of problems I've had working with unicode strings is when you mix utf-8 encoded strings with unicode ones. For example, consider the following scripts. two.py # encoding: utf-8 name = 'helló wörld from two' one.py # encoding: utf-8 from __future__ import unicode_literals import two name = 'helló wörld from one' print name + two.name The output of running python one.py is: Traceback (most recent call last): File "one.py", line 5, in print name + two.name UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128) In this example, two.name is an utf-8 encoded string (not unicode) since it did not import unicode_literals, and one.name is an unicode string. When you mix both, python tries to decode the encoded string (assuming it's ascii) and convert it to unicode and fails. It would work if you did print name + two.name.decode('utf-8'). The same thing can happen if you encode a string and try to mix them later. For example, this works: # encoding: utf-8 html = 'helló wörld' if isinstance(html, unicode): html = html.encode('utf-8') print 'DEBUG: %s' % html Output: DEBUG: helló wörld But after adding the import unicode_literals it does NOT: # encoding: utf-8 from __future__ import unicode_literals html = 'helló wörld' if isinstance(html, unicode): html = html.encode('utf-8') print 'DEBUG: %s' % html Output: Traceback (most recent call last): File "test.py", line 6, in print 'DEBUG: %s' % html UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128) It fails because 'DEBUG: %s' is an unicode string and therefore python tries to decode html. A couple of ways to fix the print are either doing print str('DEBUG: %s') % html or print 'DEBUG: %s' % html.decode('utf-8'). I hope this helps you understand the potential gotchas when using unicode strings. [INST] Convert sqlalchemy row object to python dict Is there a simple way to iterate over column name and value pairs? My version of sqlalchemy is 0.5.6 Here is the sample code where I tried using dict(row), but it throws exception , TypeError: 'User' object is not iterable import sqlalchemy from sqlalchemy import * from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker print "sqlalchemy version:",sqlalchemy.__version__ engine = create_engine('sqlite:///:memory:', echo=False) metadata = MetaData() users_table = Table('users', metadata, Column('id', Integer, primary_key=True), Column('name', String), ) metadata.create_all(engine) class User(declarative_base()): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(String) def __init__(self, name): self.name = name Session = sessionmaker(bind=engine) session = Session() user1 = User("anurag") session.add(user1) session.commit() # uncommenting next line throws exception 'TypeError: 'User' object is not iterable' #print dict(user1) # this one also throws 'TypeError: 'User' object is not iterable' for u in session.query(User).all(): print dict(u) Running this code on my system outputs: sqlalchemy version: 0.5.6 Traceback (most recent call last): File "untitled-1.py", line 37, in print dict(u) TypeError: 'User' object is not iterable [/INST] You may access the internal __dict__ of a SQLAlchemy object, like the following:: for u in session.query(User).all(): print u.__dict__ [INST] Make virtualenv inherit specific packages from your global site-packages I'm looking for a way to make a virtualenv which will contain just some libraries (which i chose) of the base python installation. To be more concrete, I'm trying to import my matplotlib to virtualenv during the creation of virtualenv. It can't be installed efficiently with pip or easy_install since it misses some fortran compiler libs. The way i did it till now was to manually copy from /usr/lib/python2.7/dist-packages/ to virtualenv_name/lib/python2.7/dist-packages/ however this prevents the manully imported links to be registerd by yolk (which prints all currently available libs in virtualenv). So, is there a way to do a selective variant of the virtualenv --system-site-packages [/INST] Create the environment with virtualenv --system-site-packages . Then, activate the virtualenv and when you install things use pip install --ignore-installed or pip install -I . That way pip will install what you've requested locally even though a system-wide version exists. Your python interpreter will look first in the virtualenv's package directory, so those packages should shadow the global ones. [INST] How can I get dictionary key as variable directly in Python (not by searching from value)? Sorry for this basic question but my searches on this are not turning up anything other than how to get a dictionary's key based on its value which I would prefer not to use as I simply want the text/name of the key and am worried that searching by value may end up returning 2 or more keys if the dictionary has a lot of entries... what I am trying to do is this: mydictionary={'keyname':'somevalue'} for current in mydictionary: result = mydictionary.(some_function_to_get_key_name)[current] print result "keyname" The reason for this is that I am printing these out to a document and I want to use the key name and the value in doing this I have seen the method below but this seems to just return the key's value get(key[, default]) [/INST] You should iterate over keys with: for key in mydictionary: print "key: %s , value: %s" % (key, mydictionary[key]) [INST] Sqlalchemy in clause I'm trying to do this query in sqlalchemy SELECT id, name FROM user WHERE id in (123,456) I would like to bind the list [123,456] at execution time. [/INST] How about session.query(MyUserClass).filter(MyUserClass.id.in_((123,456))).all() ? edit: Without the ORM, it would be session.execute( select( [MyUserTable.c.id, MyUserTable.c.name], MyUserTable.c.id.in_((123, 456)) ) ).fetchall() select() takes two parameters, the first one is a list of fields to retrieve, the second one is the where condition. You can access all fields on a table object via the c (or columns) property. [INST] Python: How to get the caller's method name in the called method? Python: How to get the caller's method name in the called method? Assume I have 2 methods: def method1(self): ... a = A.method2() def method2(self): ... If I don't want to do any change for method1, how to get the name of the caller (in this example, the name is method1) in method2? [/INST] inspect.getframeinfo and other related functions in inspect can help: >>> import inspect >>> def f1(): f2() ... >>> def f2(): ... curframe = inspect.currentframe() ... calframe = inspect.getouterframes(curframe, 2) ... print 'caller name:', calframe[1][3] ... >>> f1() caller name: f1 >>> this introspection is intended to help debugging and development; it's not advisable to rely on it for production-functionality purposes. [INST] Understanding the map function map(function, iterable, ...) Apply function to every item of iterable and return a list of the results. If additional iterable arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel. If one iterable is shorter than another it is assumed to be extended with None items. If function is None, the identity function is assumed; if there are multiple arguments, map() returns a list consisting of tuples containing the corresponding items from all iterables (a kind of transpose operation). The iterable arguments may be a sequence or any iterable object; the result is always a list. What role does this play in making a Cartesian product? content = map(tuple, array) What effect does putting a tuple anywhere in there have? I also noticed that without the map function the output is abc and with it, it's a, b, c. I want to fully understand this function. The reference definitions is also hard to understand. Too much fancy fluff. [/INST] map isn't particularly pythonic. I would recommend using list comprehensions instead: map(f, iterable) is basically equivalent to: [f(x) for x in iterable] map on its own can't do a Cartesian product, because the length of its output list is always the same as its input list. You can trivially do a Cartesian product with a list comprehension though: [(a, b) for a in iterable_a for b in iterable_b] The syntax is a little confusing -- that's basically equivalent to: result = [] for a in iterable_a: for b in iterable_b: result.append((a, b)) [INST] What's the Python function like sum() but for multiplication? product()? Python's sum() function returns the sum of numbers in an iterable. sum([3,4,5]) == 3 + 4 + 5 == 12 I'm looking for the function that returns the product instead. somelib.somefunc([3,4,5]) == 3 * 4 * 5 == 60 I'm pretty sure such a function exists, but I can't find it. [/INST] Actually, Guido vetoed the idea: http://bugs.python.org/issue1093 But, as noted in that issue, you can make one pretty easily: from functools import reduce # Valid in Python 2.6+, required in Python 3 import operator reduce(operator.mul, (3, 4, 5), 1) [INST] On localhost, how to pick a free port number? I try to play with inter process communication and since I could not figure out how to use named pipes under Windows I thought I'll use network sockets. Everything happens locally, server is able to launch slaves in a separate process and listens on some port and the slaves do their work and submit the result to the master. How do I figure out which port is available? I assume I cannot listen on port 80 or 21? I'm using python, if that cuts the choices down.... Thanks! [/INST] Do not bind to a specific port, or bind to port 0, e.g. sock.bind(('', 0)). The OS will then pick an available port for you. You can get the port that was chosen using sock.getsockname()[1], and pass it on to the slaves so that they can connect back. [INST] Understanding the difference between __getattr__ and __getattribute__ I am trying to understand the difference between __getattr__ and __getattribute__, however, I am failing at it. Stack Overflow question Difference between getattr vs getattribute says, __getattribute__ is invoked before looking at the actual attributes on the object, and so can be tricky to implement correctly. You can end up in infinite recursions very easily. I have absolutely no idea what that means. Then it goes on to say: You almost certainly want __getattr__. Why? I read that if __getattribute__ fails, __getattr__ is called. So why are there two different methods doing the same thing? If my code implements the new style classes, what should I use? I am looking for some code examples to clear this question. I have Googled to best of my ability, but the answers that I found don't discuss the problem thoroughly. If there is any documentation, I am ready to read that. [/INST] Some basics first: With objects, you need to deal with its attributes. Ordinarily we do instance.attribute Sometimes we need more control (when we do not know the name of the attribute in advance) instance.attribute would become getattr(instance, attribute_name) Using this model, we can get the attribute by supplying the attribute_name. This works when we give a name as a string and you need to look up the instance attribute referenced by that name. Use of __getattr__ You can also tell a class how to deal with attributes which it doesn't explicitly manage and do that via __getattr__ method. Python will call this method whenever you request an attribute that hasn't already been defined. So you can define what to do with it. A classic usecase: class A(dict): def __getattr__(self, name): return self[name] a = A() # Now a.somekey will give a['somekey'] Caveats and use of __getattribute__ If you need to catch every attribute regardless whether it exists or not, use __getattribute__ instead. Difference __getattr__ only gets called for attributes that don't actually exist. If you set the attribute directly, referencing that attribute will retrieve it without calling __getattr__. __getattribute__ is called all the times. [INST] StringIO in python3 I am using python 3.2.1 and I can't import the StringIO module. I use io.StringIO and it works but i can't use it with numpy's genfromtxt like this: x="1 3\n 4.5 8" numpy.genfromtxt(io.StringIO(x)) I get the following error: TypeError: Can't convert 'bytes' object to str implicitly and when i write import StringIO it says there is no such module. [/INST] From What’s New In Python 3.0: The StringIO and cStringIO modules are gone. Instead, import the io module and use io.StringIO or io.BytesIO for text and data respectively. Example, compatible with both Python2 and Python3: try: from StringIO import StringIO except ImportError: from io import StringIO [INST] clear terminal in python Does any standard "comes with batteries" method exist to clear the terminal screen from a python script, or do I have to go curses (the libraries, not the words) ? [/INST] A simple and cross-platform solution would be to use either the cls command on Windows, or clear on Unix systems. Used with os.system, this makes a nice one-liner: import os os.system('cls' if os.name == 'nt' else 'clear') [INST] How can I format a decimal to always show 2 decimal places? I want to display: 49 as 49.00 and: 54.9 as 54.90 Regardless of the length of the decimal or whether there are are any decimal places, I would like to display a Decimal with 2 decimal places, and I'd like to do it in an efficient way. The purpose is to display money values. eg, 4898489.00 [/INST] You should use the new format specifications to define how your value should be represented: >>> from math import pi # pi ~ 3.141592653589793 >>> '{0:.2f}'.format(pi) '3.14' The documentation can be a bit obtuse at times, so I recommend the following, easier readable references: the Python String Format Cookbook: shows examples of the new-style .format() string formatting pyformat.info: compares the old-style % string formatting with the new-style .format() string formatting [INST] What is the difference between isinstance('aaa', basestring) and isinstance('aaa', str)? a='aaaa' print isinstance(a, basestring)#true print isinstance(a, str)#true [/INST] In Python versions prior to 3.0 there are two kinds of strings "plain strings" and "unicode strings". Plain strings (str) cannot represent characters outside of the Latin alphabet (ignoring details of code pages for simplicity). Unicode strings (unicode) can represent characters from any alphabet including some fictional ones like Klingon. So why have two kinds of strings, would it not be better to just have Unicode since that would cover all the cases? Well it is better to have only Unicode but Python was created before Unicode was the preferred method for representing strings. It takes time to transition the string type in a language with many users, in Python 3.0 it is finally the case that all strings are Unicode. The inheritance hierarchy of Python strings pre-3.0 is: object | | basestring / \ / \ str unicode 'basestring' introduced in Python 2.3 can be thought of as a step in the direction of string unification as it can be used to check whether an object is an instance of str or unicode >>> string1 = "I am a plain string" >>> string2 = u"I am a unicode string" >>> isinstance(string1, str) True >>> isinstance(string2, str) False >>> isinstance(string1, unicode) False >>> isinstance(string2, unicode) True >>> isinstance(string1, basestring) True >>> isinstance(string2, basestring) True [INST] Is there a difference between using a dict literal and a dict constructor? Using PyCharm, I noticed it offers to convert a dict literal: d = { 'one': '1', 'two': '2', } into a dict constructor: d = dict(one='1', two='2') Do these different approaches differ in some significant way? (While writing this question I noticed that using dict() it seems impossible to specify a numeric key .. d = {1: 'one', 2: 'two'} is possible, but, obviously, dict(1='one' ...) is not. Anything else?) [/INST] I think you have pointed out the most obvious difference. Apart from that, the first doesn't need to lookup dict which should make it a tiny bit faster the second looks up dict in locals() and then globals() and the finds the builtin, so you can switch the behaviour by defining a local called dict for example although I can't think of anywhere this would be a good idea apart from maybe when debugging [INST] What's the u prefix in a python string Like in: u'Hello' My guess is that it indicates "unicode", is it correct? If so, since when is it available? [/INST] The u in u'Some String' means that your string is a unicode string. Q: I'm in a terrible, awful hurry and I landed here from google. I'm trying to write this data to a file and I'm getting an error and I need the dead simplest, probably flawed, solution this second. A: You should really read Joel's Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) essay on character sets. Q: sry no time code pls A: Fine. try str('Some String') or 'Some String'.encode('ascii', 'ignore'). But you should really read some of the answers and discussion on Converting a Unicode string and this excellent, excellent, primer on character encoding. [INST] Have the same README both in Markdown and reStructuredText I have a project hosted on GitHub. For this I have written my README using the Markdown syntax in order to have it nicely formatted on GitHub. As my project is in Python I also plan to upload it to PyPi. The syntax used for READMEs on PyPi is reStructuredText. I would like to avoid having to handle two READMEs containing roughly the same content; so I searched for a markdown to RST (or the other way around) translator, but couldn't find any. The other solution I see is to perform a markdown/HTML and then a HTML/RST translation. I found some ressources for this here and here so I guess it should be possible. Would you have any idea that could fit better with what I want to do? [/INST] I would recommend Pandoc, the "swiss-army knife for converting files from one markup format into another" (check out the diagram of supported conversions at the bottom of the page, it is quite impressive). Pandoc allows markdown to reStructuredText translation directly. There is also an online editor here which lets you try it out, so you could simply use the online editor to convert your README files. [INST] Real world example about how to use property feature in python? I am interested in how to use @property in Python. I've read the python docs and the example there, in my opinion, is just a toy code: class C(object): def __init__(self): self._x = None @property def x(self): """I'm the 'x' property.""" return self._x @x.setter def x(self, value): self._x = value @x.deleter def x(self): del self._x I do not know what benefit(s) I can get from wrapping the _x filled with the property decorator. Why not just implement as: class C(object): def __init__(self): self.x = None I think, the property feature might be useful in some situations. But when? Could someone please give me some real-world examples? Thanks. [/INST] Other examples would be validation/filtering of the set attributes (forcing them to be in bounds or acceptable) and lazy evaluation of complex or rapidly changing terms. Complex calculation hidden behind an attribute: class PDB_Calculator(object): ... @property def protein_folding_angle(self): # number crunching, remote server calls, etc # all results in an angle set in 'some_angle' # It could also reference a cache, remote or otherwise, # that holds the latest value for this angle return some_angle >>> f = PDB_Calculator() >>> angle = f.protein_folding_angle >>> angle 44.33276 Validation: class Pedometer(object) ... @property def stride_length(self): return self._stride_length @stride_length.setter def stride_length(self, value): if value > 10: raise ValueError("This pedometer is based on the human stride - a stride length above 10m is not supported") else: self._stride_length = value [INST] sum a list of numbers in Python If I have a list of numbers such as [1,2,3,4,5...] and I want to calculate (1+2)/2 and for the second, (2+3)/2 and the third, (3+4)/2, and so on. How can I do that? I would like to sum the first number with the second and divide it by 2, then sum the second with the third and divide by 2, and so on. Also, how can I sum a list of numbers? a = [1,2,3,4,5,...] Is it: b = sum(a) print b to get one number? This doesn't work for me. Help me please. [/INST] Question 1: So you want (element 0 + element 1) / 2, (element 1 + element 2) / 2, ... etc. What we do is make two lists: one of every element except the first, and one of every element except the last. Then the averages we want are the averages of each pair taken from the two lists. We use zip to take pairs from two lists. Edit: I assume you want to see decimals in the result, even though your input values are integers. By default, Python does integer division: it discards the remainder. To divide things through all the way, we need to use floating-point numbers. Fortunately, dividing an int by a float will produce a float, so we just use 2.0 for our divisor instead of 2. Thus: averages = [(x + y) / 2.0 for (x, y) in zip(my_list[:-1], my_list[1:])] Question 2: That use of sum should work fine. The following works: a = range(10) # [0,1,2,3,4,5,6,7,8,9] b = sum(a) print b # prints 45 Also, you don't need to assign everything to a variable at every step along the way. print sum(a) works just fine. You will have to be more specific about exactly what you wrote and how it isn't working. ĺ�ޝ���v����Xkn�F��SL �q)J�S���<@@���@X�+jkr�هe9@O��(��:��v�H� `[�z8��73���=~1y:������RR �� �K8����KB�%7�e�^1\hC������U�+p>� �I� xH+n��@8��a%L�a�⦆gJ�:���`T�<��q��6+D�T�dk�.n�r�)T�"0[����N� dr- I3 -{e�b�2��@EԀ�%�Jra��X%�, �v �'*��� �06e#�HL�z�#+Z�qCM��/Uu�x������6���4:�q�܋Ϯ��:.�"��a��U��#�DU���y��R���!��E�3F��KjXC���װd�e�)^s��f�,K�hh�I� �hDU�G/�����B1�� XXІcQsf�/�)5<6���J���`�s��E ia�G�����F��054�8�JWT��̏�d �����65��-���B$�F5�t"�Zg�|�7_��\�b���Gm�I#=R�����W����Ń>�e�[x��_o�|�Ǘ�� ��`pt|� �tD U$ ���� �O ��� �A�5��fH|��ۙom�� ���x݇����)���;|�����o��9�N�ס>��e���L-i�ƣ9��}������7� �2R�� �Wn��{��Da�T�ovҡ�a��m�~��n(�����ҢcW�����8����������g��C�Y�)R >oQs�D����+�a�P|d�R,����k'TN���אW��+�ˆ4'1QH�Of}A��@Q�oPA��A��!�(j�F����!וּ$>�k�mU�0@��*OL0SX� a)�S��k���+�6���� ����:�I�Q�Bҭ� �Y�q��N�����#��\�X #l�bI���Q�9�ع-���C9=�P0n��� N܇yEͪ{���~�8{{�O�z>v�*P��&�چ�9O�XrU�fʲ�z��{�j p$�9�hڛ4/�p�%�m�=PI�����D ܓt����}����x��p3��!$G-:�+gJ<��<�=���S�� ����oDZ�J�j�v-���'G� �����6(>��` ���&�jY�\��C�����u���ji� �E�|ɲÌ"� �X�;��[�*m��7��{zA���*eC��*n7@PQ��\k�#0HN��!���ȗ������X]o��}篘�B@��J�$��4��mZ����ÊI[��w)�)��{f�i�-Ї$$5;�g���p�����>�F?o{���ɷ%�d����;�Zd\I�#ڕ��i�7�@�w�H�ÉEd�Ty�X�!��3��Zt�[��$T0�zZ/� ��j6.'�KM�7��k�]��̆)xb؁:� ���׺ �VL�_Qɑ[��2�·-� ��Q��ًšig�_��6��q[C���P��8lm��ƴQ���A*�>0�� 1Ƿ�C��ѓwK�~��Fk��ѯ_��|�*��8�=�U'�4��Ejߺ��x�J�X_�6D/>���9D�U%��B�(׶Sc��]4rvI��Q�k�6V*��[�H8p�����"��wT8W!��MI X_�!œ.ŗG�;���Th�}���7U�a�}�ߠbk�Vj�8�� ���w��S�*�� ��;S#�hVә����%A�ֺ�L�Ad�1��ْ�€�6�"�,8=\It�R���1�\a,rz�H� IW�A�$vu��_&�9*9�$}�T��e�8ifXD�B� ����o>"o7� � ���SOE��p��Q���"��e���X�U�b��Bu/V�]���'#�L6+-q]͓ �3K,3���V�s.3C(.��C����QeZ��`N��'�ؠ�d�lY�]p�pɊ��5曮X���ɯ~ǝ%��O�qI�FR�*4mk��r��6�w����8:{v�D= [�&�ȴu�D H�� Mgϓ���?�Nj�܈���A�)[�q�5rG�A�չ�68m���)�� ����P�D���H� �)���>+�/ z�.M�U���M4��rY�U1����M�6����\qi�t��pǹ�<�u����+�;�� d�$ �� ��[����2�.J)��@����+v�����0��־[U�9�w՚�kr�x�DC�'$Ot�5�џ#7<�@�/�'N}#�|�����/��(� �u�� jd�4̀��Deg �Fd����4}&] (p����ɋ�4�������Z���N8���i�7ˌ��:�� �{�s4���Xmk�H��_1�BZp�׻+���6m/ڂG)�YK+{iW�]�������J�Kri�lK�yy�gFy��>_���� �[ȍ>�P��L��P��^�`c��9�U�� \Af��̅K�d�t����/�H�+y���#��v^���᢮] p����� ��k��7�X%����z6���TH+2�����47���'����4]��L�`o�,K�$�y0?KC�B%�X����ֲ}�����Xi��Frvv�9�NNNN� <��'�@&4h�Q�eRS~=�t:� �$�I�wdy���t7��#���J}�!7�(�56M�$�"�ʤ�2m�*]zٕ� =0�'�������,%��2��>h����G�tD ��t}�L�R{������s�ˁ[�+߾ovcB!����t:��f̾y�fv��^Og��:5-9C�Z 'Ih2�r�hejt�A��Pi2YP��c����+%���o�k�9�����.EY2��6=�G2��+kKc��`gn�� ��0�DєZ��rke)�� ���1�̿ I�(�HHX2&6��l�KWw�A�}���Id��[:ƝC����Î��G�R�{W�4Ӽ��R[�ӈ���hMJ�M-ic���b=�>MSkh �i��/'�ѻ��߄8�����ڸ.�尤Z�)�-�jSR�RF��4]ykk&֭%Uw������9���σ��TdY<���ʀjDG+'k� |(o��5B�V�}x�ɥʀ(�QZ�r���+k(� �4 ��d��)�J�+�[�25�`�hκh��QS�\iQ��pd*�JQ�� ��05�!� j�'��0<�� ��WR7� ��z��I-��&l�Q&&��'A� g���ؿw��+�����!�\ͥ�5�Rh�T���q >|O�7��D�/'g���Uu������^���Z��G'��w�����b�h�e{�Ÿ\�i:���p�Gq����GgW�K7�6ca�[��;�~r{h�x �n�!:�?ks:�x�${1n��;k�`�m�e�ـ_�묫j����j!2?�*U|M�M��+I��&,لJ��&�قD rd;�V"}$���lȒђB�^������yiƼT�|Op�-_#|c���zna�C�w*�u\/�z�5���Dop�j4g�Ѩ�Ŧ@�;?�V|���-�ܝ�T}����לg�X��I�ߪ��P�v]�dI��O9�ě�g��p%�r����x�y���6�A���ӵ�\�Q�c��k�������gy�4U��O���W�O��2^�����Ս}��ow}�����A��o��mk��6 ����Xmo7��_1(Ы���bYN,� ܠM���{uѻ3��ZQZ»��Z���{��]��E��@���j����3C�_�_����#��v](��C�LЙ ֑.�B�x�A[C���6���dI�m�YS�T{E֨��KE��~c��S�e�LZ(Z+�� j a>��=YU� cC��~Vli�?H�Ǣ���;��X �Jy���{s!�}���zws��d!=���(�8��Fl@�\g9�J�hiOY.��6:�$�إg*�p@K�)�п~zsvzz> i��.�e;_2� xZ!"��ܖ���2k��J9m�ԓx/�=��<���x>'�d�-�G� ��{��P)C�����\95��K5\GC�1�F��D�koj����5m�������}�>���E�%���s�lP�FW�-�@K�$c�4�:ˇt�Գ%Ę�Gűp5V�(�&�1��T �|c��c?�,�6�Ȱ.P^� ֐�����, ���^ ��,�R�� | �A����5 �J�s��\N��A�G$�������� |���+��$~�^F�����c������h��G���@�{���.���EJ��H iX���ͫ��9�.I��D ����y�g��C/`�P�^~?��ا�d�)�5k�ؼ������?�>���!>~z�J_}��&��5���ʅ�RW΢�eb��̸|����.��A*1 �� ����I���eD��rQ�ϕY:��C��}���9��C���ѳ=�$�Pl�b�C��Skm ���qT�q�>O�4K��kYp�p푙G�lHG���+�w(~���j�K�͖~�>�hn�xUrf�6��Y���&r���-:Bb�v൸r�-�4�]�7� �$2�� n��(�%_�TWsBʀ_ZkT�L*���Xߍ. PQQ����L�'QMN�m�I�2A��4昦 W��ȯ���M�b|�6W����u�)�gZwJ�ڐn�Z���Q���g��B;��,3 <��"sU{:M>��I���>b?��>�j�� �hW:V5��x�w�ROU!MJ��8� p�� S����M� #�&%Α�*��� ����w�W�; �Q3���1�q�bjuC(M�<���G�5ܬq�(�F{�韡�܆���p�efН��_į�C�o ��T;JK��F�+2wy<�F��/�u���Ղ��#���k�n������n �;��K�\q?0mL��?G��+M�Ҏ�G��viC7w��.((�m�y�%h^rʨoהO���W�͜���0�H�am�pک�3��Џ�OVhf��s�p�d�_����^Ct{3?&͂d�r�>�iT1�$�}�ݎ�V�@�(h�H�ͺ����M>y���k��Y� �X�t��۴�����z!AT�Z�_q���T�f�c�����(l��xj�g�����rjE����@�� �zmN�f���)<��,��X�X��7��|;�;����� z�´��A�9x�Ҭ9�h�����c��]�\��;�q�~߭�J�"��R� ��� j(�n��|�R���6Hb)TDU�����u�߈ �Oz|�L[mZ|���A��^���O����ުx��fc��"���f4gETΫbE+gKZ�:�d�B� 0�� �K��EUŝ�q��Y��<-J`{W���;,;�Y��x��"��8�������ػ��{�a��xa��XF�9M{�zLB ���2����p��0��<�ž�[濤�n����Χ���3���w�Ok������^87��r�+1��� ���\��1:;{y�)J���驘�����t&�h:���'��T����d:��`���xI�Ӌ��B\�����Hz�?o0�6�l���͇�K�?�A���{P���h��cZ�(8OL;�Br��O9�[;��>p�%0dր?p�xq���#���>D��F���WMs���W �H������V%;���n��U�Jm��4g`�4�!���y��R�aOE�?^�~��1����??=��|�OfJb����.�����A��~o���y��!�&J�����Ϙ����n���d�M�m�i��]2G7�����~pf�i� C�����S���1��� f+�0E�ʽ��lMf�|�[03���=�܄����q+^v_��E0��z��9 =�96���;$y��n�u�f�K+�`��|����I��G��������y-LɌ�t[�� �.!��ۃ�� |&��'d4�mD��z;��SO�� �>�N�gɷ�eQ�]��C|��p@���T��Y=�Y�W ��QZg��d�o���Ջ����D�M�eU%��G�F�]ʚ��$���6���]����U>Z�Ҵ�7sM@.L{�RC�����]��F�$���u��d��qͲ��OFv�l��0'� �B*vn� �i���?�$ψ؉o��B�(�h��0 �B�Y�pPP��L#������8!�Rm�r��ܘG�@��w�Wq��|D���}B�>h���uޠ�O�v�-M\�9���G������[��;���RZ�� �.���1��U�4�m�M~d���3�[ו��AJ2a�!i�Rjoɟ�E�� ���Z'`}cQw7Pb�����U�_�F�ӀHlb�kS:������L e�L�� �i܂I 8�� [�z�0u�9ɓXp��@�!�c�3���l��Cp-(<��;@�nJ��ҭ��n��+��ӔbUR`6�<��������=:���i���y��fU�E�����S�!�^Q�'v���@��C��q�����ve:H��"�Xq���&�s�QN�y��[����?�X�ő`C�zK�2G�lt�C���kju�u�����x�*�P�0��5��>���M��<=Զ�`���=��B3 m�����T��� �"`�9~��>#ë��6:�y �\�����ۖ��p'�@�X�ż�"�@�^�8 ��?༽3��ok����b� �-��rE9�ZelL��Q� �S ��ݙ�(�F��UHg���J=~���Sg����|�J�crޏ�J)e�hy�K�k�Ŗ��ɵ�w,�c���M�g��w�-�YVh3C5��π5iu�O���BG����Zk,;C���B�����<��V����K�a)��T�llϤb��́����۔O��x���R� 4�������p!�Yݷ3��^�¿��Y��T�������t�¢�$��1ʴ�s� ��� �ع������“�mH҆Tw���돊;��)24x}�km�"7X>�R��� %����C�V�-���o���� ȷ'F��eN5�Q��'n��ϯ��R�&�x`�9<$��rPj��U]$�q�mh3�)PN�>��μ�仟:nH�{��TptY����,B:}�y>�HXV��m�c�l��0KW�U`�W�;$s�E�y��.��B 5_����A7o&-^I�t9��^7�tS��^�$.�A'�p��I���_?U�l�D��i��7Rt�G��q^^�U��H�9��1�>�f<�!~fT�/����|��i���1o&��u����?�BaG��G�� ������b_(��Y�_���@�8�F� !���Y�o$G��_Q B���c�o�l�hq��E��^V(�CMw�L��]MW��#qB�8����"q������ޫ��1���H���L����{�{��}��������NL��S����2�h���Ju����pF�u�Ĺ��B�����,��щ� M+�bU�NU�.d&&��Xa��[�=� S$J4�m���)���N�"%!���L����-Gu�Ż���������g'��ś��W/���{����t�ΎF/! OwƘBh'��Y��F��9�+�q�\��BX�+S(���L��f� ϐ{��.��B�K���𝺂�+��(��W W��I�8�2 �z�5DK�t5�ECOm�w�H������2�����ħ�>�8�l w�v�}['[ц���*S�'��HUe���dK*(���OKt Q�1"�y�8�PK����á�x)&������VV2��v�!��oeU��Y��9�*Q8ٿ��W���ܹ) �$�����Թ™D�V�(r �8S�D�+��Z;�#�m}~Bal-��郞�b������L|�(��HMcǧ�3�Lij��&�����7���r����AwK.K�HyON0y{zw��E���H���C�\*�]PQno�t������7�ÿ�Ŀ����g��o7�����������s���/n�������\�q��e�2 �x�YCy��Ȱ1iEҕU�%�ZMԵ�)+l)�$� F�]]��s�WP�Js|:������R�x��Sd� ��]<W�B�� �ue��(��s�v.��n|H}"1W.�PN��i�u<=� �?�@ڀ�U�|+UV�T�\�L��h�TD#wKv���� !C�m�RL^Ѵ�Dž������迾ڐ�0�=�$/Jd��(T ��b[����"�kEYPt�CL����s����/��-�3u�I��, L�(tF���q�f�R���fE�`�!{��j�w�%�f`g���v,��k4 �~���ʫ�%�+4>���Z5�t ��A�IDŽ�3�q�';�jԸF�'n�Wy/�T����Q����X��?�N^\<9x{&�Ń؆��5�(�-�5���?h��8�7dsz��Eh0����F�ԃ`��M�3Ul �������Y ��X'%������ � V4����|������C�F�v ���sb�S1���d� 4�`��5'�S[j�$�)�'_N��`0�Ŵ�؈<��c����ux=���Dj������6��h1�R�4��M�G+^���t@cA�*�s_��q���-}��W�(N�nWҭTf�&��jn��yw�nN)�Ħc0z����>H�#F�JE� �`?�j����qKK<��ن��;9�_��)#�6 #��A��R�Cd�opmPĊV�냱'� ��ܧ����e �����%�}RV���� ���E�$�p ���fo�ǃk�q�ܵ�B��BT9���/}IbX�F�C��R* �y�=�2��fd{%y‹r��iy�%R$��J.=Oi�#!�@&�����F1S�o�� f �?O͕X���º8]-Oޚ�ѧ���7���8�6_�K�>��g���X֯��ӣ#|��ψ�a%�������J�xE���f����`y�L�ª�,1�C��2��G�="X6�#Fȿ���s�RZxG�x���<� �,���8Ӷ�#�� ۺ�m�L ���D�~�*��i²%����f?��6�L�%S;ߏ{'<�(�"Ok,��az�w�pkMh��^佭aၴhLe�0'֠�{ ��1�k��V�)��N]j?;��K�p:�79;P�o�o�m$GS��V��g�_�MW��C� v8��C�/&-�� ��.x� �u�`3pK���c�?�Қ"8H��^�����N�dMV��,��m�:k��֗���$ �<0x���!N�I�^>��O����WK��i���z"э�a�< o$<�B�Jjq��ST� �m���W�e��|U\��9�7K�&�M$f�v�ޚ���bH�H���'8��b�聩δM�/���J��{��F��1�����t�u��:"�'t9]6�����(��,�>�#<�w���~2&�^U�l���K�l�c����5�@+m�v�z���)����~z2�� N��D�;�~�zx�_"�nDw�N�o�/ar��i��b�o⸦�?���x��y����P'��:>��ŇϞ�?{��ٳ�Ο~�O?�Jؼ�+���J��ϼ����"D%��|x�����k!��y�����Y�a�s�K��~�ԌDag�p@g>mךzJo\�/���Y��U�o��i�◗ ��I��/�ֹryx��K=�n��js���~B���-/-��T&��;��}k�H��Q���nC�$�^�B�� ��������%V� ���y��"���U`|�x�|�{��p�����&�B�`�TĘL��^ƒ��/�t6��'Uu@���b���B�+mjK��v����d ��#�Ρ}�_\%�0!p F���X]oܸ}�_��� f'�E w� mwm6�� #(85b,�*Iy<��=�^R�x��n["/�ǹ����������'���d�S��7��N���:��Z���u&Fu}٫�Ƥ�۪*��;(��bb�r��>����Z�V�iT�7-]�I/�r���J��oULcӬV���<��U'?�ڻˤt�F�u'u�d�d}�?|4��q��v�o�mԵ �7��le�l��1��FFj�iw��l��*�U��IEc�@�[?v5�ә�� :r��"wpI��6� �%>>j�^O�������`�d�RSح?"lD�Ͻwx�M�Q93����������R�7�����O��1&xi(M6]F~y���JE{�wv�Tx!{��ߨ�zNJ��D^EDf��T�7+u�\ w�Gσ�.Q4لZ$��}�>��B��O��#G걺'C 9W��h��3ي����t�Z��q�Ob�A��@�V�*��Guğ�U�IK�@�w�h�H�h���wo�B��Ϩ&�[[��p�Jv hS�؇�ln�'Y���P�bVF�z��Z�3��FZO텕� (�����lٛN��I�>�k��}P_�|����*T���Tͧ�Ϙ.�.���`��b��'M?��~�]�qL�,W��+�}��zM�K�gs�/��Z}4�'��( @��OT�=��y�I������N]�ܽJ��a�Z�x9 �E7Q ����Nh�O@�yO�U>�����vcR=HD���������z�6�S�"�G���=��]3r'���Ա4>�������)d�#:j'��q=vI�*�"d'�ة[4���@ܯ�>t�X�� 6��TG؈������|ċee՟ԋ���{�rI�>��,1���K� �u���M�d�E�]\{��������M���F�Ԅ�x0�kBhq�������c�&+�� ��P1�P1�����-W���� a���� 8��(�A�[uc��?����’�����c���Ԇ8�;��9�/�v������qx ���u'�d1���&u�;�|ح~t���Y‘ ��ȧG��"K`? > 7����.��lom"���Z;��?u�kI&�m+8���V�$� ���9(�=9�Ki���*�=�Ϟ`P'"=���d��[ԉ��Po�$�<���m!��$����q�G*���W�,�����i�z�B���l6�PC�`&\��`�r+ˎ��S]�SA8f�@�`oЊ�iRN�y4��QuDa���D\c9�,����+MGo��t��ܟ��E�"pz�� �#z���̱�&*�(55_�J�%a�|���1�8 !�S� ;�����43B� Ď{�b�'u$�-��<('��{���)�7�J4eT��E1�[g3A����{��Ray��o~��0�!�o��H�������Y�lannay(H�W��{Ƌ�iL���=���og��{�Vp%�*��H�L(P��{��)��K�ʂ� ��$]��]�meE���3���R�5�u����pt���}��h���U�&�Dz��F��C_:����$ z��5x��Μ��ԡ����f���ײjMa���(�['�g0�i������� �fO~�}�������ɓ#�ňz>O�̢y��[�Q &G��q���È��$J9a�7�dZ��^�S4,�'�_ ����� ̃��|���Ɂ�[�����h$���� କ{�`<�2}J:Ч���L�]��S7>��4];ϟz���g�\AZ=QH���������CH�.9�۰5��N߱��֬D�#% ��\��^�o����Fr8(F� ����Ymo�F��_�0�� ѩ�Ƹ� n�"�6�'=��"W���.�%-������%)K�hcQܝٝ�g�}��������ߪΫ�)ug����x��Z���7�޴�z���Ke]�tU�R�Z_+��j�Ο~y�cu���ZYW*�v��.���y�1�ƴX6��J����t�{�b[���1���0(^��o�j���nM� JU8j�Ң<;���dޚ���2(�/��n���t.Y�!���A����@0Ʃ�k�[� Z��VW�g}�nu�#��0!�>��N�Y��ѱOT �R�U4pڭ;�?Sw��J�ZA��p�F��2���n��=lݻ�v�*W��N�dz+1�#;A�+q���W����z�g ����ޕ�,6�5�^�M�m޳ �4���i�5<���!�&�O�F%C�,��U5wƔ�X�i��V��3ʸ{�zG�8��z�J����eeB�=��u����W3uq>_�.��4S�$<�_��z���s��g�_Ͽ|�eWN#�Jͧ{m�}�OB <`J9"�̓ :G ��;X<�0�� �v%��: |�C�~��4�5kmw��Z�"�е��1SEk�Y*�j��#QrV�����Z�o�A�KN����"W�6��$�yN�$���=sRyO��鳕 I:#눊�#JH� �oZ����u���=����������:W���()g�8�q��#��ڷ�L>�yUy��Ֆ��ܛ�7�LSk�:�o�<�����˷Ytm��#^'lxb�uNД}:�3'�rS��k�šl̯c�.� ,J2�-�|���_ '�!;��n�tP0DL�ql�P��R ��!��vE� ĩ���������:+��Fg ���E�;%sl(*��K�W��Y�X�7�@��7},�$e�>�Цtc@��Q��,r��Y P�J\rf�V�q/�pk��v�Sv�jfQ[`���:I9����b��kMS�ˆb �$�D����0��X��@�:��������Lu�j�'�+ޯl[�� �!3. ��)J� Z��سf̩44-uq�+��+�bx��yR��^��("䜋ׯި��:�EG4�"� ��*:XD\��*�:��)�8��'턱�Hǝ,'����zU�Y�֠V��Y:����F�O��l"b���,�F( T����v� [���K��MR��t�U_U;�s�� ���J�r�֭�di�H���E��L\���Գ\��ةuO�/�2b��F�H��R���/�2ʶ�#�`��JK�Z܁� C= Iޓ�َ@�p��6�q���,�+&^Rm����3�{"�%ʱDb�(�k��ßV��đ3�XWT=�m�V�')$�|bvB~� �т�1�F7�i�w(�� �����%+��V�ؕ���an�Dl�����2�z�35G&����9�Kn�`ь�{�jd]@�l�߾%������]���91"���S۫,N�^�t7;*�����p��:*c�iq�kA0��3�� 70��UӼԝ��Ճ��oE��%�������K�#�W -�1t�ۈ�Ab��NJe��%�,6����DK鋞��ɳ=�R|M �GwDw ��)}C~�GL���=��$*�eo�n��e���͐��}��8Ey�.NCi�h��O���A�'� �8Ec���4W�?f��c��q�J�!�cA#�L�(O(�� �z��Z 3Kiwȃ��PXd���G��lM�WH�;��ty.gM�6>-�K$��` �M+x��"�MqH�<5Otl�Gf���ɸB�<��1�'?���̱o��݊�ɘȹ' �'�ϱ"G �Yt��y�lF�����b[_�_3��|�xddѷDV�z:HbD�T]R��'�0Z���H|�]N�7�a�����RFRw����Ǧ����'����1S�AF�޴�N�3햴d�D�#a:b�H���N5�����0Drg܄h����W��Ґ � h�%e� W%��+޶o*J�XRS'��@%�W4`��iͽ�6��9B`�q#Q�`i��Lʺ���]��t��Dk�脪c�gp@a��vK��h7�m���I�3����Z�z�����N�&9���5HyEC/>�;��s���oi�o��[L,}_Cw��ln�5QI�S5��Lנ�3�ڗ}e$�E$}��������ܘ�n�o<�9� &\l�ލ�[ya;"2�v���آ�4�]�K���{���;��?'�T��{FyRzhu<�L1���:�� ��߁Z>��6P��逫�Nsx��5�\N�9�5��'D���b�!c��3 *j��p�� “]����4&�#?���]&IR�G����Af�y�i���t��ԋ��^S�;\�¼�&�X~��2��յ�҉�������6��w��DZm�F����.o���džDr����m����7Vy�-�c�2 �8K[R�m}{'�Z3,�>����憏[ͱiV�a�m��'3V[�a3#��۱�3A��e� ����o"g�x2��Gj$����i�_���2`��L�~V�mH����g�/� ��30m ��?Ԓ�ا�xp?̢��L�R�۠ �r�òا�#GsD�R�A$�Н����e7;�%�v��xa�*��Ǜ𤎬J{��Ь h����hI\����%���x,�o1]���ư�a���@�D-;��5`1P��4]�=�71���;�c���$~N� (�Oӑ$H0<�]�9Փ4��M��t0:>����p*��q-+�J��8��N�Ԇ,{��6�<���a�'�'�̋�����?O'+�����!�{��o�/��8��2ΟŕϢ��a�I y#� �Ԉ���.a��noJEcJA��w��؛^I6$΀:àE��mA욣����Ck� =�Vkr2�����p.��&�����'}��{.��l$ ��`�CM���� �4H����&P�ƟW��t��= ����ߎ7 ����Xmo�F��_����4�^�BhrHΎ-����"0aE����\���"����%)YVn��Al�ܙ�y�ս���p�I�5��N�z)�L�_��-���.�B���,�V��B�)�V^x+f�̅+�&$`{��{�+� ��^�{-�k>J�okQ�?k]�B�� Y)1��2k�t�4j�$'z6S��,��ܨʉ��D��;�? �h7�+ �N��S��(�O�7�F��T���Y���Ps��kQؼP*�*�����7)�J4X�At��DZ��Y�&Z,%���Є�YC"�E��.Uw�{Y�*��q�[;� V��+�p��Iz�����%���E����B��zf7���$�u��b=Ѭ�@��q��r�j�A���%�E��1�V�"c/r�\ك �2���OErb������K"Y�-�}��%�ȠD������]�*�4��r��u%��N���jȐ����j0���ˆ�.���+&]e��o\?�ΡYM�T�~�B�,M��Q�ű�-��P2�KᬹS�ҭ�O�TJ�롘֠����Y�^���'��R=�,�jSs�i򛽣wҾ�p�Ep����X{[@C����q ��3F�* q5YlU �&M^C^8e���l��[ �H'���f���T�t�#�)�/c� E� �?l��s��U�vxL�&������Hcx�'�����9������$י�7��0d�@Ff��5Ʈnjlv C'p>���L~3���=9��IS����)�39 ��B#eq޺U��-)�su>��s�JO�8�N�!�����,I� �<�4�2��d6l9m���� =!�� ņYqJD���ǀ�?ѧJ*���*�]š����Z=�p�R"�ź��fi�a"�vI%G�A���m����x�7� %T.~t�M�ר��}��y�;4��$�d�z� �B�*�g(�E���\��n�N��0\�B��Z�� J�?�ھB�d �x�� � ��t�S��n� ��~�5Ȇ'~�K�y�C����A r<�U`~,� Ug�z]��]/����~?�&�G�m {�I���|2#���������$ԗLq�IeLU,Eh��uv���������2T��9�_�&ȩ���$�?�����B� �� D�����7�&iaC�$�Qn�u�z �a� �.��•�-�R�|�!>l+B.%;�����G�@�)Ct=���~fM�o�᷄�F����A�������T߹�}�J;�1�c�1�$��BsY,/���$-&����%uͪ�l��:vr\����Х\�:s�g�%�yl#���q�3��6�W+{A�T�[�?dU��H|lVG�m�]x�b���喩�n�I�ƛ�"8|��C�ȡ-� �l�Ly�A��A�*�Jluۄ��\^��y#�?9�ן���3�h�A(�g�0ː`D�m9�sK�oHxF�O]�ۺ�Q$.�†�֐c$w�b����0������z�A�p�^ zh�P��i���-*A����0��Rm�}�b�����J�Z��Ec��,.��x&�,&�Up�0����*�y S ?���9�5z��>�II���_V��ξ�Fh��_�� ���F4�&�<�l�N�����/ۥ#�����'��&�A�@7�o���`$x(�؈J�)=f3@CȮ���2X��m�Fm:�@M�oo�՗���h.ܼ|0H ��v�=o��i��  �6�#J��䅜��;�=�}+d�A��>s�ߟ���h�~�V���G�v�b׭���#��W�����F����W[o�6~�80�FΗ4m�"E��!�Ph�=�]@I���=����c'n��\,K:�� _�����>|�J���Z9M�|m������5�m���)�j��`ݎ�R*mT�x� �K����z�����˵ KIt=�'P����v =�y�U+M�T7��^��lU:=�1�HaT�>�^KqMK��trz��H߭���'��{���+�~%W_�O�g���d���/����/l�O�L���u5l�j�}��ή�ym4���q�v�0zE�G�8�@���vUh7���.�L�r��Է��r&'R|��R�uu %�fDS��p>O�#*�3���XΏ���ܺ}������^��#|���h�]�X��TTY��~m��oDP��R�ݱHR��Ũ C�[otZe���pmkݭr�m*��h%\����Ҍ�����b��# i���ڱ��4L_ ��s�!�Cj�eG�ת�U Pw%��S8b�ի5LX :CdD�� �6r����Ճ�1���0���$2>x�C� 8�y$P�.�) V5��#H�1(�/��R|R��o���2�Q�����If_��g�..���З/�� ��#V�[=�%�O�[�S��bׁ��B�Iy[�� �����-�B���c46�̊���Lnd�Bt��o�����K� \���]u�aGlE�k�r�ؑס]k������m���Ze�V�.���-����0Z{���lc٢�q����_2�2���A�z�aًz>�w߆4"�c��ڦ�8�@Ti�X��X��5�� ��v�\�"��!��P !�x:������K�[�k�}��n" őgj4��a�pNg<Р��[훳��+5�/�B��!�KԆgT�cÊ�|n���w��,��~�p�V`�[}о9���s�C�QF�� ��# z ʓ/�3n�oT�ܝr�j��3&U�#��+ �[���M�e�6�E��F�F�h��ش�,D�d�� �on��t*��#qCت�4�*�����p�5g��3�1C1̳��B7�a��@ă<���0�� �:�n� �f[`6�+�Cy/Gܔ�u7t�Qyu$00,I�<�`���=?�5)!��+�4����N��������[O�և��{עʇ(7q<�ħ#'Y=W�b8�T��言�y��+ ���s��>غJ��<����b�*�KW�dye���Xb��g��@��i�BeÙ׈��6 z8Q��-�j�rq�*팻��Ԃ��Ƅ��HZ��4Lrl�:������>�����������m�;�Ȥ���" L+�9�c�'?v�j!x�4�mK9ԩ��r�� �m���QCS��ޚ�_�m����U��:����A�-x��� ?J,�kVy)̣26� � �X�S��79&�ڧ��C��{ȴr�ϧ*~3�����9�y�f�ZL�U��U�)�n���ΊUa"��ʩH+_ֆ���,թ������nN;�W�8��.n�ݑ&A��^��#�pe�NźrzT����U�4X�B�C�c�^��%�Cն����`JU��/.��q�Q����d�u!� �JU�T|I'fUf�TX����K��-�!ģ�O#~:#�kc�{Cd.&�)�q�Iu��O5�Q��0�*��wv ��4��k_.��i ������qcJ Y��Us�y�]��Ƨ��.0]�R�[�x�����J���A=~��ݑ^���1���� ����Ym��6��_� ��{w�2�K[Bn�ꊢ\[3#֖�$��T*���[~���#\B�a�c�=��~���������׳wlf��0@�s^~�ۥ��c��J�5/F[}~ :PG��V�J���;r 2"1+$�.��d;�J1���H¸g '���g7d]�8�������k��j��x�>�w��m{W'�6�G��UIg'��#f�v�:���t��'^ﺡ�(��[��ݯ�=Y�� ����=?��8����wӪizt��A]]؋�–ʚ�����c�Zʗ��e1�kNb�8������]Q�O�᱐�́��f�Ot|���ۓw�v���S_&�<�:�_� �]^��<��!Y�C�1�9�����= �w��"O/0 KcD��W8�" S��(As�ɒ(ӵ�x����—(t��o1O^ �3Q�,ٍ(Z2-i��t �r�؟���+���;�Yf�B]'��'���:�&V:q�%B��&�����ė,���f ��S0����K�1U���bc8!��b*;Hj�x�@�oO���(� ��9B��>$�i ��4��!]��R���+@���}�C5@ !�.\��l�ṐM�a � m��W ���I�x�O�h��#�B{ql����+���~(���RN�C|C!,6�ޛzk �/��4����x�=r������6-�>G��^��4�N�6��B=@}��to��<����̯t:7����Ɇ �4�P�M�!~��D�.I6�Q ��F�\,���;���? �W�������q�򎀽M�U�0r[��DN��B@{C��f�Beu*�Ρ����BYW@4-�WpV/z](�����R�����#z���péĎɇ��K:}� f����8���� .`�|oh�9���R���X��N�oX��K�F� ,Ci�P@9���� �;bQV��>�}��F����蠜�ѯ�xx��*U�aOk����+]9���z<q��O���d�J�'Xȧ\�=b�����Í��`��5�xw܁�n`(�S�ٔ*����P�o�NK�J oj]�X`!�B�{}ߏ�����8p̆w7]��i�E ��F���2VoR|hp �����,� �Ա9��ʟ��ۀ?�ԁt��F����A����׊���-j��=���K��ƽ���s���`S��^"�xX ����~��q�]��~�`��`��iL�K�f����' �;��WXBM �k@ Px&ֽ�R���G�dYi�����/AN��g��ᆓ4r�� y�[A�3�jR;ٳ�k�X�������}��� %���O 2���ZmC�F�>�b�b�`��$�:����8 �������U�t���q��of�z� J°ڝ��yfvv�������C��F��ă7w�c[f$�)>\�#;�c1���cB��� C�s��ˇ��-q�9�C۱l�'LW��/����)�����ٮ�3��viٷ΃p�HD���=-�7露��EbF$o� �Ҵ��3m7�Dԗ��9�7�V?�n9���[|Y��e>�u8�ř��aH#���nDj^]_�S)-͉�v�XӞ��Y�c:2�2�8h��#��]���23 HAd��u P��ҁg lK���]�e��ӟ����/ĕ�m�{Q�G��h�F��-�n� z��ۡ_�G���%B+�����鋰� |��?Z|q���;���Y��X�����-�PkU |�ǚ�O�G.U�TTu_W��wS����3���������!���ֱۑbE �a�����Nr3d�IGF�Qc���� TQX�j�P��������x���eL>���Z����v�ZƲ��6�Y�֖F� ����4�JZ�K���}���T����Y՞$q���ۧ��|�CAc�y���#C��,A`BD,�H1-�GL݅�Oʄ�P%���*>0[��z��JDL��ZS!0+���F>6��r�R��f���#���i�5�?1�$J��D�uH�l�Rݡ�4��(? cpk* C�h�62n�bF�])�@Y�g��r��!�(JVE(آ�C� �t\-���ر�NRX&a�I O��%�1f=��� � VJ'K����RE!��̜�4 i��rDf ������9(����\K�d���Jp�J��ȴ�|h����<��PQ�eshMy�Q�ڲ�`&��{�<� ��i;��HR��0��V l��e�q����:t�x���{a���n�����O�o�_nB_�\�`�7�kǿ�W J�$��E����$�-Dr��%����X��.�&B}�<o��~��߽02����~lҘ�Cn������ٛ�g[=K�Z�Ff����4��@@��T3oj. ����j�W���J��n���� ��s�8�f�� �7�(9��������w� 4�\Z��xc(������Z��Q�$�L?6�=k����-�� ݣ�����9�V��[�V���ѱ��5p�7d :0����1�`�/�ye�:������^�+<�[߰h����0ak#�٬������'.@��g��s���It�{�ň�����Md���)ܮ1�P:R�hM�RbS��#��#T[�MH$`H��D\Hx|S���OK��3f���U�,m5�� ��7����;����6�됝3.��^�Z�pY�!?zu���SJH�&+G*�� ��;��-I�诲���݆�m��!Y]'�!�gMEX�bc y�$��������IJ���3�s��u I � ��K7T��������th/��Չc���6[�՗�&��� ��:����ka&�wKd�2 ��zAA��z��2b��3�I+�S��Q (�����Q�Nq��[۱��gx�����|�@�B�<>�Ń��|wd>���`W��3<�O���P-o���ir>n�zw�XTM:��p���fd{�vMq�|=��0����� ��舚~�D��ˁ�Ê*�z��k_v�.J�iɮ��5����D?�#��|�A�b߁� nYS;��݊�S��$c��#A�T9ݤ@gu\1�C'Y1S|���c�9]�Sz��U����9��1�Ţ ����2{�a5>�/�!鑚��NB������� �*��GD 1G&�C)�u��^ Au� ܭ�$�t���[vώ�oe�Bt�i�" �|�z��;}3�v����IA�U�|����qZQ�u<���Е�V� ��C�t|��a�`��9�u2/ F�A� ÑX��W����Ӿ�%�,l�"�E��# +\�����V��&l��ah��y+�)y>?B�������)4�F� ������K��Z�����D���!۳�9X�����G �*\*M��o�Q��,�'���O����<�K� �^Us"�8�d���د��{әꐚNo.E���N��%�����U��F��7>���eͰ�*�P���0 ��& �P�(���9yFޤ8 ��C��&�I��<��3�o��Lm�V��>{�6���1>���I<]�Cz D��LB���\$�9��$U�٩��'`�A�4�N�`�O�ԟ�����_SsLjF��k��3.�� ,<���0aB���D��r�Ԡ9���ŇO!.q^�i���F�S-��L_�������<����c�rg���,ékK�B������I�ϒ���Z�����̕�!"&~�3����a�q��}�>���#�t�7 �a��҆Q�kS����iG�yD%�.��~e��^-��e�S�逩��c���?n ��L#�C�wLGL�g x��?+з��e��k�?�����L�2}��f��n�'��Lfz���%�1��-�o�~`� �_����oL�@�2&�N� �l�����w��1�g���L_0}9[�������`��M��S!Ӄ�����������&�*S�� ���mf��gn���i��G�_��L ����?t;ѐ%)!��5� ���E���;�m��.9�9�$�&Ӆny\̀v�TvL?�*J&�����n�����=6� �G"�yx$�_�4ͯ�ˌ��.����� ��� 2s ����Xmo��~�b��%�(�J�B0m ͋�ڎ+A��5�wKr��[v�N󡿽�3�'�$*�"��ݾ���<���=/~�x���_�۪B7����N-� N�]�VKZ�U��d�S�8�z�\�{�p%,mv[�˱�4�-�╽6��Q+'B ]�m �]�EKWUnK�]����<�Ӛ����m� 3��JΓ�,(]��C��z���0��#Xx������6�˫H�?��)��r����|�r��0/���(�6����z>��Ո��eH�#�,G�hh��2Qm��(-��G��?���X:�i>�{�>=MJ��]����&�m�[����������Ӑ����j�.Ӌ��_���,]6�8�ksQ�`g�%���+��v�� �pMR&��b ,V]0� �"|W\A!1�0�l���c��"�1��\Tz �Xi�{�C��ߵkל��l��#d2R�z3��im�2��Q�� в��nOg��F ��-��`�?}�'�5���<����#��o<)���1�H3�i?�o�3 Eo���d�ܖ�in6�h��G�K|(\��Ȋ.���i�N� �A-m�_���,�S#A(0��@�r�2'B�4���\[�B��!���L ,��ڂ�/��Y� ����z��HB�\m��;߅��S�9'r�� X��`W�]�Jऴ+�u��١�@�������Z���ʹ+X��`M��p$}"d�%<���u����j y�5��4!�0��� �r ���8ܖ-������_]\�e��ܰ�:f��V�@�(\]��p�e?�"��x���U��Og�p�ӟ��^܋�5r�q�$� ]�|rl �$1���e���4�*w��5P�Eu�}蓤9��K$0g������]�Z �����X6�N����Jg ���˥��xk?$�)�ŃBN�TVe� �/��7o�Ǚv �%t�?���>a-Ro�ǼCX����F����� 1�8�%����5H�N���F:�u�D��\��J�I�c����]ߣ@��6���5U�~�&�E_2!z!����H��9k�[�Fm]3�j�n�a�E�3�.��ٚ��׆�N�D���m\�:�\�X:��� �/w�Iʨ�v�N#,[ ~u^�-���[E��*t0�X�Z!�bg {�o޻�MU����(8<�|1�HE�����՛N�g�'��|lک����F�9=�}w/hlMkfϞ0i��+�N6�N3�?�_]�[�.��}����7���V������wi �A/[�����c\�}pյ b��dd���9��v���V���1�Iwy�#ꌁ%� �-Ҽp�iYҶ���]�D{��#�L]bO8Z��%y��jX�$K 7��,���α�U�t���v6j{�E< mk��֦�ĺ����to$?2_{���1�q�-�^b�Zc%�;Ù��,��F]|�mq`J�1G�J,X�T�p�)��cǂ��:���C�>�����g�8 ����n����E6���k�;h �<�C�n-^�I���|R�dcT6�G�� �2��ɴ|6�L�en�هk�Lz�Z�.�,x{Z��GU�_bѿH�DJ���}♘�G[LL>0J� ��XK�Q�.�W��A����é�(�RwZ� F��QI� �V ;o��w��,�������Π�{���d-7��B�9��O�.�ݲ�J�+��� v�f�o*�'w�E�u����T#\YЌ��P���t]!K��㍂�z�R����{|���������+Y,WȪ��8���^'p�,�����{d����1�?;���<�*�PX�e-����G0Pq5Famڏ�n�_���ړ�oży<����_����'���z��������'q�����}������d4�q����6�4��� W�^�������SvW���+�A��&�=�[�#�/z'��~ C^w=�> ���5�s>�9���j?^����/��#aNH���벰�jAF�,(�l�/~G� ��DO������+�������-0i���Z���Wێ�F}�W�N��pd`w��q��7A&A�A�<A`�Ȣ��Mw7���ϩ�&)َ�H}��S�7�_�^�y��{��w���!����X)�K��ظ��������ɜ�ő{d�:/]7oι���·b��<ņ��۲���+ #� =��'z� ������Ĉ��f�*�0F��Y��#�����Lo�c��e/��[�}$6e����H���f`bZ ��h�����o��� [b�uG[“o�$� �� +MOc` �a�m�=!Ndz�3B�U�����3��#�@�Gg��J=��m[�Ҷ*su4<ߔ� �n���;�q�|CT������n�z�qA�^���^��Yqk�\��"��F-�Z�E�*��i�����t��/dw�h��Z��D�����8z��v�Y,�g� �q�/i�W����|i�ټU�H�mi� "�S�w̑��@b'�=p���Ƭ E�4%���c���!�б]�1ci&�rS/�~���?3|<e�VT��0pG���3TB�Lc���y��'ö��al" ��~��K�`��b|5�B���f��pq�~��� \/�;��#=���4�X��&fg*���̠��t�&�����;� ��vS�͋�^�?G��Z�$Ȟe@��$�o���|D���XsS������;2�.r����`�t� B��C�g�RP'����������EDHX��ij�K|EK�� �+�l[�&�G�����2���m�W $D7�����j�Q(��� � #"Z����e�L ��H�#���3���<�� ���� �y���,��_xn���%�"Y�#�&��4��?��֣,j��OB��[[�+��.H���K��ͅ��3�]��>;�.��o����3�R� ���([I����2�&�y��&�%�u#���?'�Lƌ������럺����R����4m^�)E9�P* bl�$�4�Pbҁb� ��o������0�5�P�D 6r��EA�O�U[&��?����VHn툶5 ;5]�EЖ��&�R�M�lb�u�af枧�A�Ո���'�yl��-� %x���=@" ���n пu��=t��Բ�w� F�}�bs2F��@�����C� �/Kl+Ŵ�(�L$ JMRh4\9e:�Tփ !.�Dx���l�(Ѕ�@��m��Q���&6(�}�ne1`����X�2f�9h�"r��8d[�L��W>S?��!�a�̧��f��C����y�}�o��é����A�<�������[m�2FγWcT��a�@�d��+�+.௽�^�+�U���d37�%u���j �V�(�x�n��I���F�tԨ0�_O�1��ʫ󈞱G�W[��nt�]��ߟ�O���]�5f�M� M��2&��1,�^�� RSAҥ�!,I ��J+C���d��4`P��p��;`P�4M�Ճ��Nzx�1ZE�_�� R� O �B�+��͏�S���<��]�X]�n�t��Q��o6Ż�lL� �� ��Q��Ѵ�7&�I� -����K�J#�3 *�� a/�.&%{R�4 2��5���vBGJ��n�xĨ�gГ�湯� Tt�Ƈ *� �08L♵��֙��yV>�,��>;z�p�l|�� �h�@�X��Qy �#�p�8�}�I�ցD���Ec)S2ߎU��R��G�sѠ�$���"rnd(չ� �8�l�QY3� {z��-S������)��@Y����{���b}#��� ���2R�G����Y��a^�x���{>q��L�ƿ�%����n�+fY��/�����J�6EA������"�uh��V�����"�m u�)xR�SS"�ߍ޼R�W-���"�yX��~\7���"��p��N�A���"� ���]K�  "���2d��_�#y�B{k*�bi�SS#�?pV�}���#�*mE�`R#����#yZgJ�(������#q��1�����#YQ�6R������$"�q?�oW���$r�l�s������$�a������55$R�n?3:j' �$BWn�D:�����%:�IG! ;�jj%�p+�8��O�**%_��n{|wc���%j���0v|7m�..%|F��[�<��kk%"��hu*����//%R��IK&��33&��a�V�i����&l�Eַ}���77&�B��)cn�����(�$������(|2��S^t�CC+�<�z�s�+�GG+�1�;a��]���+?w��Sd�Wg�+΁'#�q���+�u� [))���,,,EN���qg ��,5k�-�ue�����,��}�{y���BB,����G'�����,��l��7�{����,�s8�W���qq,�W�O@����,]:D��J�,��4��~,@�gg,}�W<%��%%,mklf!jV/�RR,e���zW[ W���,�킙H��a�tt-e��A�zE����-}4i�{ak��**+~z�S���//3�/r���XX�Һ���p�� ,�/��((+\�]3 �����-�-���""5�ɱ_v����xx�D�5�:v�@@�o�aK+�T)����J��&<j3���ԚF{9�G���L\8u�0Q����U2q��[�CC!3��� �����"��� {���RR"Q��n��!!#��k �B<����#h��E����CC#9��q>W�����#I�=}q����ww$�9������  $�}F F0Z3��%rg��)ɟ�%�"o ��$$%��*��� �--%R eeM:n!�44%�x��l7ig�__&�Af$�[.�55&�+"=u7��99& �j�:�(�8$�vA<�AA(|RI��<����+o$��@X���,e�b�QE���ww,5�zi*B�bb,��q,�j���xx,�e˘�Ig��SS,�C��_w4�ll,m�O20*������q�X#5r���38:�(��''�CW \���ӂE�Z�x�22ˁ��:/v�WW�.�׉_���ڌz�ppޘi�zU���!�u��� �ii%�Y�h<�I�((%��\L4�S�&�©pVL�{�::&4 t�Wm��@@(�t��+;T��zz,�uw��]������-�Gc�s�������<.nC��pp�K��4:J9�99Ӑ��L=����TA!7�VW�#A�V��I���#�Jw �y����``%�0!�� ��__(��H���NN+%�>������,���'Sd�R��oo,��Ee�ՠ��mm,����4h���BB��3��b �II!�B�g�pu����!�7�q,@()���"N�Q-;d�=�#� u_8�Q���%ڽ�K�b ���WWK C�|dͱ����"�g�n�Z������"@v�.,j����"�}�z����% 3JoUs/��hh%j��~�e��#�% �aH�� -���"РRZ4VMA�  $��[��f��K�CC,�v�^*vVU�ss3�ͳ<�js�uu-M�G��`y��||-�l�QPKd�����-���=vk�����-E��SG���ww-�h@X�r�K��}}-� +��C������- ��� ������-�kg1}~�0��-��1 R����-t%V�Q���---�*ՙ�e��'���-]hg=�>��;���.�K-k6�Y���.T�0�H������.L��>�����,,.DT���9n���II.dǨ>.�s�6�e�?�/P��5yϱI�))/`��/<�6q���/�X�[���{�/�,���c��/��x_X��� /� Z�^rL����/H���&z����/H8o,)2���/p�lE�W������/������7����/��_>aGK����/p��E, ��''/(� Zo9V���/��%_��/���/PZgo�U%�u���/�i�{BC'����/�����)R\����/0�/:�P�O��LL/�o�|�����/����+������/���Om�����/����2�f����/���u�����/hۆ��)�C ���0�ۑ�6����0�{�� ~Q�0��u�GS��e���0?^���7�{��XX0w���VG������0���u����0��k�Z�m��~~0�n5�9�����0���lO)���rr0?b��V#b����0׉���6e�����0?Vt��Ja���990����8�6����0�J�4A���TT07ɑjA2�����0�6�� v����0��e~NX�����0�h��o��dd1�k�+Ї�<<1ק��8 b�1��E��u�o���1u�|�/׹���1��0s��R���1e@�d�H.�1�|s�8]�1޽"Wh����1%�P�^^����1�d�xHy����1-V4�Y���  1��r0�\��^^1uZ�mQn�z���1�ፖ$(�l���1-��F_����1UM+{4<*�WW1]K����E���1Ŗ ��l��@@1M �!H�II1=S�M�<�.�{{1U���Z�U���1%� ��oxE���1�ߍ�-P/H���1�i=��-}f�,,1�l'osN�����1�]�*FJ����1MSƐ-c���1�TC�~"��1���ŋ��rr1Ͱ�8v]��  1媮^�d���1U�3mDj��==1�5�,m����1�::>=a����1-���Q^?��UU1��;�P���1]e ��e�S�TT1����-5l�!!1%��HY,�����1��m' 9*�ee1�O��n4x���2/@��3���$$2G���8I���2gIo�=��''2�R�w1yt��2�R�C���))2�7^�T���222/�Ϙ?d�D���2���Άr��??2oJ��%�d���2��X�X�����3�� ��Q�5�**3���2X�r�//3��\�:Ip�$$3���B�^����30�%oW T�333�15��\9L�%%3/��8�����3g����\ŵ�7733ϧ�d�Y���3_~'�[��&&3��੘]0��4s:a]gu�RR4��:Sc~޸���4SߡP':�+���4 ����*���004�NGI3!�xx4{e��[@��TT4Ca[�@{����4 _�O)"d�ff4sU���O�� 4[� G�h����4��n��N���CC4;�����zz4cC��t%�4-��5nb�dd4;�9.�l;���439��@�n���4+�)7(V��VV4[��?������4�Le,P����4�9�W��A���4;sۗ/���KK4�qJ��V�qq43aC���-��45�_�����-�<`ST�����-��k-3�Z���-5���a:� ���-���/�G�����-]kj�V���-:�B�8V6�SS-�9���.����--.E+�����.��W([����.��} f�l���.T�F]^P<�/��m��p�?���/�3�ל���/�&$�}F��/��p��}g����/���y)@�F���/��C�R@' ���/����sk����/�S�rZ'�����/4 2y0�/���/P����:���0O��3;+,���0��(i`^ O���0�2� VA)��pp0?~F� ����07�T����1(!�srR�  1]����d���1�9tA^k�**1�oM�r�����1m���WsA���1�+U��5�BB1�S�`c_���1�8�q�H�����1,��3�����1m}#�6�����1�d��t FN���1ř>�y�j���1]"�u�7\��gg1M+C�K��� 1%��mA�����1���WTg�1���1�bf�1m���1�SQt�d���qq1͋�qh?����1uCG+o����1�g� >[�L�LL1U��a�Q]���1����m|�"���1��� �T���&&1�A7]�zS%���1=��>�kD���1��:�fEX}�##1M��y�[�����1�������{{1��SkV����1ť��cG�''1��x_��1e(��_�/���1����Sb��1}fqS�v���1m����B���1UJ[1[!���551�������2�-�`WB��>>2Wٺ(�QS���3'}HM1;�223�A� GЂ���3����x�����3OE��X̒�993u�"z.�M�003�z�c{�����4����9�j�==4Ӟ����6���4+̴�����4 'H(�\��DD4�3�{T!���4S �)�����4�^M�O���II4�p��8���''4�>�����OO4�h A!��33/p�.�CK��33-��>P0?���-���_8�99-��K:�_���&&.L�B��;<��??. ˒�L�V�uu.\��;�&"��"".�ThhH�0��Mk= �..0oȟ,A���CC1�_���tUK�1�3 ]�:�\�991���zY#�$���1��WeSxj�mm1��cQ�����1�#�g4�Y�]]1���� }����1�R3������1]�x��4�f�441�7�`mҪ�((1}�\|W(h���1�yu��&PI�1����1���1��* "��1�=rS04���1�/��_��,,1�܈�Zq���1}��H�RT����1U�#�q�O�112'��\�S����2?0k��s�6�**2w��n?��;�2���q�y�E���3�f��TH�$O���30e�hV$=w���37��ue7xE��4���|eL�V����4{� �������-�@��B�~��.����2�i��11.T���Y{m���.���&h,ER!�/����Dm �5���0g�u�9O1]���1%D���U�q���1ݨ��1Y�E{���1����jD|:����1m�>_�D�d����1�Cy������1��+��r������1�� Q;Fug����1�y�z;�����1��cU�t���1�iԋ �~%���1ň`��"M���2��*��&�5k�WW3�?p�$����4q���BJ��aa4$�4�}�����4+O���w���-��raE�Z�-սY�?e�3���-��#�;jq�=���.d�eƛd4Q���.\�e��fl�[�55.Lv�L�QS�e���.��^E ��o�  1���ڍp�#��15��P����CC1��bKyn�J����1�m:?�A��� 1�7� �ϯ��!!1]��w�N���1%�M��#���1M���>{�-���1�����1T�U���3�m�_6t._�@@4��*U(L�i�;;4s�Q��CB�s���4S�(�",���4+|��T����4�C�p0e�����4;|��o"!��MM4����#����4��v��Wie��4S�N�oK�����-e�tyy,H�����.$��NWU?���1%h��X��1�1UIvvq�;���1����� �'E���1�+FEq�Y���1��Ymz2 %m�  1]�@��J�<����1�5DW������1F)�>n���3gŬX����mm4+��gW�_��WW4��[���� �LL4�c8\�z�NN4S���H!���4c��F%7v+�**4�Kz��J�55���.�W��I�|?���.<�0��1�?I�jj1U� �Nު��1��_T�X_���MM1�+��e3<��661��>r�{ ���ee3� ������884{EWF������.�p��i �xx1��t�e-ʸ%�LL1����' �ZC�4���S�<�a�FF4#e�#��ik���4#ԯg��u���.��Xu�[�l�1���N_r ����1U��� x'���cc4���h���~~-��ͨ�NP�����/��ȉ]*a��QQ/H�{*����XX0����;G�\���3?V�Q�9��4Cx������4�B�N���)).l_�h�"�114KN5�{��BB4�.1� "���/�i'D�;��''2o���Ji�j���4S�D*+Y���AA4����}UQ��~~-Mml|�i3���1���!�!�+���15 ��U4��2��ͦ^h���-UA/oP�����- ��/o_:b���1��#��G�1����WUc�@@2����x��663�== 9���''4۽S��0 ����/��~m\W�=�;;4�߽/�r���FF1ݏ(n�p�� ���/�F�r�b���0�x%(G<�;���.��;�DS�[O�993�33�k�uc�''1e���e��w���4�[�����""1�#� s����4S����u\���  1�h ���1�:���7\M��.�ط��q`���1ՏѰ�9�  ���1eę]9v ,���4+[�2 Q+���43<��)�l5�GG4���VO(�I���4C ;�Fe��S�884{B� �hg�\\4C�P���{���4K���mf�&��]]4TR��-�?��tt5�A9O���__5�*wn;66=����5����W}�R����5��łZ�4��;;5�5��a[�!���5�2��2��EE5�Fy��&>�9���5EM�@,��C���5Md�I���M�775ͩ��b�=a�HH5��$�[5���7��$ ������72��vm �����7B/�eS������7z� va/i��7by"�A8�����7 ���&{���ww7*�/)?���7�\�a�s )�7B��Q=I�3�cc7��D%+=�\\7ڸG�� `HQ�7�A#|�I^i[�7��Y8yr�o�7���J��y�ee7��Ĥ�.����7��wD���''7�������7�������EE7�yT�wB�`����7�K]� �r����7��I��<(s��--7Z�~�C���**7�Q���;����8y����j�T#�qq8�1�М-�K���8�]G�^��_�ZZ8�]^��yIwi�]]8Y5�!T�v}�oo8q�7�{0�c����8y��2X���%%8!��xIE�d��WW81��0g������8�7��0 C����8 ��'�L|���CC81�M���-��PP8I&�< ,����81�Ćwo>� �8L�yq����8!��$�&\1�998iI��dr�Y�ll8y�w�`F0Zc���9��)R{��w�779k.?U_�*��9�*1x�����9�|��]fm-��nn9�"�[�(����9��jw5����9�d �Bf5i����93 ��Y�����9#�R��d ���9+h�\�`J�009��_� $�+���9�0��KI �S���9��ĈUpg�tt9�sg�A�{���9�C^�!����9�D6c�&����9� �f4��CC9�N���R����\\9[CN���/����9���3���yy9����������9��q2FV��zz9���!.d`7����9��R�d�{{9󙨂� դ���9c(d�LZ�9���9�%p7�6�C���9��9��M���9#~�<�CW���9��'[�ga���9k���>V����9��K�������:"j�1� �����:2��x������:��!fm�}��%%:�8���*�O����:�T���$%���,,:bo��iGB����:�K��z 8���:2�^�L7�@���:�%�R��P���: hYy$�z���:��mk�@���:��l @ ��gg:�/�'&=����:����Pd���:�S#�$����:��>R�_���:�����c���LL:��,k�D���ll:*$��dPd���:B�Me�8���:�K*9MGmF�cc:�m�7�I ��:::�n���4 ��<����![i���<w�3 Szu�((<��fxGݾ�SS<7p�qJh����<���G<2,�--<�L�O:p :���<��MJ ���<W7�U�X ���<7�D�jp����<We&8��VV<6wV�z����<�S J���xx<?� �=?n���<�Ε��!���==<�{%��bnI���<�w���kܢ���<^� .la����<:;9bGbT���<7���~�h�AA=м��x�����=Xʪ-K�����=X��s������=0tN<]_`���=@�~�c���99=h���.M����=xөRp�B���=�%"b�Ek:���=���� M��//=0���20[����=@gl��|M%���=��n� x �uu=� ���*�����=X�S)!_�����=x{��q ��=��C��R3j���=���t�?���=��S�L��> k��%�p���>�#vvl�w�ff>��W��/�����>�^\��h�����>$95�z).�CC>�s�F�"�i���>�ԩUtP��SS>����gr ���>|������-->,o��^6����>t�͘"q�S���>$׏�� ��44>L��H}M��bb>��eM����>�e�������>�op �pB�@�b��&����@RU��wέ�@�1��G/$L���@��B�0�@rŌ��9\����@ZV�Ϟ 8��((@c�@!1��@�s� �����@��6%�s]��99@�&��}v���@��]'�37����@�\�4�,W��--@:���e5�|�@:H�!j&����@�z�zNq��@�n��lŜ�QQ@�NbZ=����@�;�^���@�t�0�G���A>gd�0E����A4��D�(s����A|;)��1 Y�  A�����3���A|t:��yY(�00A<���(^��66A4����a�����B#;$d���BK�)��6m��PPB#�v�sn���!!B�2���`�n���BKdi<yFW�""B����Wf*Q���B���[�m�CCB���4CCl����B��Ƕ������B�<>=L��OOB���D�HM����B;wl�? ��&&B�� K9�"���B ����c����B�⟈WP���ssB�]��)Y��wwB�T.��7�%�77B[� ��N' ���B����,2���B Q� S@���B#�� �&� ���B��z�(A����E����V��==Er ��_)�b���E���:6 =���E��@��g2G���E���͍_�����E�4�י~���E*;u�Dh ���E���+����E��D,y�  E*-_��k޴���E�Zt�R*A���F� ���q��xxF8"���)�nnF�+ɼ  �F��y@���((Fh~MB�bC��BBF����V4����F�3E� 1����F؉:L�EP*�F� Jlm4� F0����t� �ttF� �C��QQF���:[��OOG�`��P�=���G�R���K}��))GXF��A*����G�<2��t��UUG�q6>le�22Gȱm�\����G�� �&` �vvG��/L�1�{���G�A��'z����GH��v���BBG�YB�h���G�Mb�M��^^G��۸1l�  H���LDv ����Huˉ�;S��H5�}�0 �ZZH=�E�|�����H������H�߼������H=e�gGC8�__H��e�u���AAH�m���*�DDH�x���X�����J�⻪�=�6�KKJ�ٲ9[MN��EEJ"�� ����QQJZ�s�.9f���Jj���tt��  J�]�V#Q�g�xxJrnp�����M�g�)�7E����M��b����M"����4��ccM*�y��[����M����%(h�M�2r+N����M����fj��77M��$c&�����M2��(�<.y�77M�׫�H]����M����s%L;�[[NQ"U��ilC�%%N^���g�����NI/�Z&˧�RRN��K��#c����N�C|�=���N�3Wq�<̈́���N�#�>]�����Nɤ��Q����N�����R����N)��V�;����4��hD���4Kn�t��cc5��3 ��a�5�#���j�Q��7���5 }���.&���5M�7m� �>���5�Wa������7�5U�z>#�997� �S1A-���7���>tj�K�7� ���(��U�558�̦��_�778Q���!p'�i���8�O�zl�=}���8qzO E�-����8!���|������9s�A��d<���pp9+[�E�i���uu9��c�c�S��ww9�g�� �o����:�h�2h ��;�99:��5M���O�:����eo�Y�77:��b�S��c���:r�Or�.*w�:R��[�e^s����:�ؼ�s35��<�'^:�c����44<'8�}'|��MM<w�TYwv���TT<��2�=����<Da��v����aa<G�"]�xƠ����=�o��N�y��={�0�}��+�PP=@ ��K�`5���= eZO���?���>� *�yH�I�pp>\?H�� X�q� @�ֆ��P�?��xx@�n7XAx�(��NN@�tp4'�q����@:xԏ�>I���EE@�jM�j�����@�^V�WM��A ����r�;����A�.� � �@����A,D��K�5����B }A�R��>>B�FN�fL���B|�dy�%���B�[�u-4d/�EEB�_�_qx�9�B �� n�vk���B�L�TJu���B�L��K�f����B���E h������E2ZǗ=p`�����EB,�c�z����DDEJ�D��}���ddF��S�e �F(?���h@��PPF`}�|�E/��IIF�m��Gr�)���F�9x<�oc�3���F�p�UD?.G�@@FX���#�Q���Fh���_P\�o�GhO��[o�5y�G���U1i��==G�R��q"f����G@����6�����G����L5����))H��BO! �����H�S55�9m�����H�B��r%�3����HU��v�9u��//H�����}��uuH ~�Se(5��H�u�34!�����H��l�yCv���H�I��b,#�U�XXH����A��_���H�g�U= W�s���H�n_LP1����JB�'� R{����J��r��^/����Jb�&n������M���f�n����Mz��b59������M�Q��l���M�52�C`���[[4��g�vB,m'���4;��Gi�81���5�\m�/mM�;���5��w^w|ˇE���5]����,�(O���5�+i!@GY�995� ��?v�Mc�!!5�+fC7�m�7z�����7w�7�J`�ii�����7�U9-4�_����81+��]�Q��  9�:�);�F��NN9�Z��� ����9;/���o/q���=x���j6*{���=����7B\�����>D��c(O�����>|����k�[��TT>��Ω�{�N����@e����@���EW���NN@�E�?�����@2 >]?Q�����@r���D"B��qqB��JH-� �RRBs�դW��JJB���� q���eeE�ۯ�!2��``G�EjjH\��77HE[��Xg/���J�x8V�X�.�J��M31���M�<Ԃc����M�5~�/ �����Mһr� 4l�PPM$'~K��FF5�����[S����72t�S�,K�hh8�{��a4E���8.a�9i8�//9۝K��.Qx�))9Æ2���II9[?�r�(�����9�:c ����:���[pt�A���:�<}(R�h���:�%ڌ�r���''<�`\cO����<o>{�^�����<�Y]�q�����@"����v��@�>��2��-���A,�L��,O�A���B���+PaU���B�ջ -c�_���B*?8LK)i�QQB��V�FF��}���Bs+��C~�����E�s� <���ccEB����-�I��F�uF�����F(�+a?����xxG����1 �����G�‘$8O ����G k�~�ec���YYJ*�"�'Ҋ�JJ9�ᐸ��KO�||9;di^�7�Y���:J�S�0����  =���D�J����@���wR����@"���2�q��ooA ��9�m��  B�6�*ca��ppE�ˋ�u������J�DE�0 6!���M��Z�'B?+���9�i�E�"]�<����5M޲q���=�,3�G\�P{���A����I������EZ�m��j����ddJ��� ����??43a�P�֐��7Zg\ -���!!9���j{qTI����:2�ӗ=�9�  =�β�%��/�,,B a د:$7C���B�M(�]ţW���8� �>�Ou� G�PH�0%�����G �%\l>)Z��G��ԝfû��A�ƴVt9X��hhEj��jUQp�����Ej��mD#������:"Z�'4 !j����<g�@Eb7�~~N�9��Gn#���NYH�;rrq����N��|-�cB�=�))N�=��4��Q���Na�:�(d�[���N9g���y$}e���N)C� �U��y�NIp} /z����""Nq 4a�[�����N)3��@ˑ����Na�ڦ`€����N�2@�/�*����Nq ��s h���N�獈�\����;;N D� 4<� ����O�xPV75b���OT�_G4]#���O�i���=�l-�  O٬zX��7���O�V�4fA�O���Pff7K�BBO$*eO�+�-U���O���2�,s���Oluf���[��QQO��;5[������O�����B������Ot�ğQ�]��aaO���ƑE~ �OD^u��J�U���O���x�l2�;�MMO,��'�FE�Oܰ�R;A�iw�O�^E�;����O,����11Z����OD��� � ����ODL�W�p�����Od�y�;���O��KkZ����O\��y���``O�Ւ�����O����|'�u �>>O���[�kE!���P3�lډv��]���P#��k�G�{���P�V䥻U7C����P,������DDPc"�ϐ������Q'Y��9�����QG� �L���Q�`�)�^^Q�?�=N���Q�e�8[\�bbQ׌ul�@]/���Qǻ��8i���00Q�C� �+�����Q���M���Q_v!�$3�Q'I�,�&A�BBQ�㫪 _��QQQY�P-a0��}}Q�9��EY���OOQg2��"A����Q��TP,�99Q�w��2M���Uܒ�y�#��ULjKX*��Ufµu�1���U 8���s�SSU$%]Cda�  U�S7�aw,�qqU 1 ST�����UL���C�� Ud�9m�U�� X�"+;'�XQ�|'@�C�X1 �b�T���Xy^���a��XU��:m"��88X9<@|sxDI���XaVñi�D�%%X�!y",^y����X�Y�N?X��X�p7�.)i7�X��( 't���Xɥ��o"�$���X��m�1��X!I�u/@����Xi1)�^LT ���X\,�\�����X15� f}y���Xa|�E�MPi�++XA�$��5�11X c7��oP=�,,Xqhv��A��mmY�6��\��RRY.�@,Bb���ppY��3Po/ ��NNYF�;�r���~~YNd�m�/��UUY� wF2+��Y����r��22Y�>8������Y�p��K��66YN�<�`"9��77Y����� b��,,YVT�P�K�b�99Y.�Ѝ�I�m���Y^���Y9�����Y֚�q�r��++Y�� J g�::Y~e��0����Y��،"^��>>YVF�?[A�YN��'�#T����Y.�c�C����YfӰX�/����Y�afZ����Y^a�,� ��CCY��\�����DDY�4��A�x�ppYF�}[La����Y�g������Y��T��U����Y�y+t�6����YFpMyj����Y��!�{���ggY.B���W���PPY�N��)i����Y�^fc�0F��IIY��LJ�g�����Y�%�$B���OOYދ�����))Y~_6,"uc����Y�a�T!V�����Z�#�QRlL�PPZ���o3��FFZg�-�S=��WWZL��~E ���Z����C���//Z��9� Z����Zy5�2���Z!'�1M#O���Z�|4�~H�QQZ� � 9u����Z.���/M��HHZ�L�9} J���Z�� �F5���Z��/�X����Z^-; et�8�Z�ʍ9Uwe�UUZƭf��)i�hhZ�<�P*+�^�\�[��eUE���\u)��mu����\u�"� d�#���\�A��0:��\��j�5 s�]�ٝ%�uX����]���d*����]#��&AQ�x�bb]K8iB�N��� ]+�y1��U�GG]Sַ\y���^.�߳W�-���^��{�js�*�FF^ �� 2�V�NN^�b�Z�l(��rr^2x� 1.�gg^6-��u{f���^V�o�I �����^�+nH+b�--^.v6y����^�JD8=��**^.��%�T�FF^�>�6r����^�����D����_!x�G�^�����_ً=<�:�����_� �e1ES���_q[�MG���ii_�X]&����_aa��u\!�_I7jl�A�����_) -�=M ���_y��� ���HH_��|1E'�_�����d����_q�) iE���_OUx�9�����_� +��!� �nn_�Lj�����_�t�1\SQ���_I�%�jp��  _�/�}\�c���_��zf'�����_�Y5OE�U�qq_IRhz�1_����bqp�\ :&����b��BI����bidS0m!r��PPbI �Ғ�HHb�T�]� ̈́���bq ��6k�C���b����S[��EEb���?2(����ba��J8 ���//c���/���99c�3�׌���uuc"\�)�A���wwc��Ds~Z�P���c2�^�<)�u���c���I�S�^���c:�brT�����c��RQ�����c}>a�0���22c"vo�ew.���c� ��J�i�bbh�n�}O�11h�(b=^����h�z�>2q(��hA� GY����h��G�F����hIȀ�La-.���h�r��t�����h)�@)%v����h�Z/�iF8�aah�i���"��hɍ>w{Ln����h�)/Qm���j*�dY����Ny�#��  N�C�O� W��O�Q�T:;�bH(�CCO,&=�x<�{���O��v� j$ ���OT�(H(�s=���O�; �8J �G���O�|�=|R|Q���O\���CC�o���O$j6i`I%w����O� ���U}���CCO$���&Zz��^^Ot�!�6,���O\�8�4Q�����O,�CL�P��00Oܜb��#�)��OT��P=_�++P��ɼ�/E���P�7`K�q%�-�77Pc�D�Z�!K�__P�/��u�`_���P���;������P�� ������Q�1��r�����Q����Ob+2����Q��hQ/3t��U,}�:����""U�0H�:ٙ;���U��BJ��E�$$U� ��U�c���X1��Q��w�&&X��;_�Q�$��((XYx�5�H���jjX�~|z����EEXpA?�*����@@X��(9�9����YV����6/���55Y���2�vU��//YFv���1����00Y֢�� 7����YN���7 ���Y�è�l���88Y6�&m^�!�Y c`�t/�?�??Y�"_�N��S���Y.�� v������Y���qHf��HHY�J��zK���Y�-vӇ;���LLY�r� ��V��]]YF���]����,,Z�N�i%������Z�0��Oa;�ZV&�m� ��%�XXZJ�1 �5M���\mJ���8|W�::\%�I�&U8a�[[\E�q��Z��u�22\u��:(������\ >��S������\�5��(VI���\E�֣���22]3'\B�F� ��'']3n�C@Y7(��]�/n3D����]}�~v�t��{{]�!�A\����] w `<+��cc]Ct�0����^�^�N.�G�^�*�|�O�[�WW^w)TZȆe�ee^ƒ�_�8��o�%%_����'�M��yy_9 �2L(T���@@_I6��0�A��ww_��&��L/i��99_��*Ua�����_qQ���b���qq_y#��Rn��#�33b���SMD�-���b�;����7�55bi�4M�;IgA���c:��xbB�s�VVc�A|� ��}���c:Z�p}� ����c*���L������c�#]�}5`���||cȒ�����,,c:F�^�>���h����9�3��h�w#�D0�����h��n�O"�����hy3M��t����AAN����S��Od�,f�2���Od��DK/Pp�ssO1��J�8'�Ot��E��1�``O � Q�;�O���DyI�O�99OL�10�k@Y�VVOL@�8/"����O܀`a9YZ����O<����Z��WWO�2`�KZCu����O�#�v-�4��''O��͔U-c���O�ch� ����O\e�7�o.�����P#Y����v��  P�Zv� ̻��  Pq���r���,,P3}o�..����P�@d��gj����PW�K�3�����P��М�Ds��aaU��XeT����O4�x�@(�����O��M��"ǩ����P����K ���U|(���%=&��LLX� @���Z�aa�e \9���bI�&}P$�)W�{{c�R �PM�Da���N��>�0+�u���N���LP0�;;O�L�( W,m��22OT�>3e ���O������Y�\�9�;�����\P��R7�G����]��%ަjd�>>_�Z�oWA��-�}}_�w��!�d7�b�yr��{͒K�hhN�*`N���  P�cl�� ������ZN�^�fѷ����b1>�=�������j����������Y�����K%t����Pc��� ^x�����X���< #��""Y��Rz��Z�"Rw)1'���hɵ)����;�xxh1(�jp,�O�Ol�o�P� c���YF�Fr�D���Z�DI$~Ii��RR\�b-�{�����_1�A�DmGS��ttc��F4f�j����OL��+�}������Y�Y �UU�����Znu{�iv!���AAb�D��#V�&��X���?Pk�����Z����o��``\ .���F�����PK���u&`��//P�(!O�+Hs�55_i_�Nu���hhb�$��]*��ffP��.gga ���Q�0N��h6��ll_i�U��`��]!N;|&�uuc"�ɟ� r��ZZY��։4#�\��W2�Q"g���j��H!�����j�ɹ`C+1�==j��8r�'���j+�#D^w�f f j�Q���X���55j�{i-9�U���jz�eK2 �����j"$�&RU�~�j��oQjى���j =+�x�B�XXjb�K�6`���99j�d 4/$ֿ���j�猪�VV5���j"��Mv>,����jB��A�|�1�44j"��(u2�����jB�S��9����j2� 3Eڰ���j*�/��ra5���jj�j��O��RRjBU�3�-}����j2���Jr���j�in�H���jjjg���&��ttj 9�O;����jv��<�����lm��w�EEle�j��(<���mA��L$ ��99mQx}�S� �mQ(�E�+���m�)�`�iBo���m|Ƀ�0�x�@@m�c`#|7��g g ma؜p� I���m�n��%+���..m�HGh/*���YYm9"�i�-�e���mQե��0`}�r�b�̳9F!�..r"���h�~���r�K�@�(���r����g����rAT�^��rT���C3��55r��X��B����r* �d� ����r����1q�� r�Mi%{ ���99rz� �Oi�W�r �5b�s��r����� �t���rB�k{6�Q���r��n3����rZ2��*�u���ue3���)$��u=���I�L���uҡ�I����u}ZosIU��22umD��Qw���u�;��������w�\\`�z���  w��!`R���wPS!F�|�}�--w���+�����wh����J�����w i�m}�<���w� f� �_���w�$�}TXu��AAwH��W4�;�PPw�ty�je�����wx�nA����w�}���n%���w �~$w2g���w�`7Xp�j���w`���G?�F�==wP憭�G����w�~������w��׍9i�**w�����D[u�DDw���� ����w@c)��-�z���w��c� 4 ��www(�Y�H���}}wh2���t��22w�πk!n����w`|�uU���wHn�v�<[��//w(g�`�v�Q�llw0s��!U5���w >>�1|����z��%w$�����zY:��/�����z�d[�`n����z�~Es�~��e�At�  ~v��=�G����~>�#Rq=�~�~n���� -��FF~6���91����~�FױI�dd~.E�Q^Y��GG�Ʒ\<�  ��c� ������5�VS �!!�Q0��k�������� $FD�ZZa5+��|C�����G˶�27��99�w�u�*�����I�Hh������ �,��B5?��7U��9$+�CCK@�C�>2��<�HX��22=`��@i������u{a�����>`�o� ��~� Jtk�::}Uv�T�����6!|d�X��-vj!�3�99ZUPD.(��R�,��LL����ڏY�g2� ����Y}% ���}}���2`<��%%��iBaf���??b�<Ûn���R��5J95�����kGO\N}����b���qRa��� ����|�����:H,�S�__\��R|�UU� �-�~ f�aa���iG��4ҌoPP��LEw4* n���x��m����U�x���CC8�2��5�O�pi#HU;�����P"�\�>�uu��CSq��>�N�������oI� �Y�88xBv9�!>���� �EWY��## oo��`��C��� �6�c0b��k��� ԥ���L���'�2&�dtR��'O1�oh�f��=='_ԓ:  �����'��/S������'������(('gh4G�����)���"������)W���#�|��XX)��(�#,F�����)�ݝR�YH: �WW)w�7�����j�<�M:�)�  j�� I}3���j*g=�E�EQ�j�* 0Z,����&&j2E� +\3��j�t-L��77j�)h�\ �P����j ��A�=�b����j�����oI���,,j�kR�r�����j���ē$P��l�f��@k�TTl}�H�ZUK���my ���$F_�m�T�7w����rR��u0�����r"ܒ��c���llrz�z�$�����r�_g�\������u�Q�Xo`�� �xxu�U/L�+�??w���"Ylk5���w0U����S���wpD�S/%Sg���z�N�N�"��z�y��n]�"����zav��l a��11zɓ3�+����bbz�h$�$���z�j�D�J�����zيa�� ?B��++{?we<�3�����{���l6���**{��{~o���ss~��=�1_�/�~�s~D �9���~.�8�8$T�M���~^%VV=�W�  ~�Eb��i�'k�~nN�t�ZTR����I�7mR_����a��O�`hN�� ���ɚ&"���� �@��c eU��223ɔË ����φ�0����K{�s� ���m�s �j�##�H��[E�)�55���[�3������5�\�Q�*�D3=n- e���r��yK|(cy�����=�>������|�ݪ+A1���))DL�� GN3��''�mº�$9���TT �1ZIdK�|���� �l�%������� '�`rD-�M��h h Ϥ�� d޴�'' _�kBL#Z�rr �tKg�;��00'��� y��#�//jڭk���C_���j"2^�xi�XXjʸ}B�?��s���jz� �m=y�}�jʣo��r���HHj���\������j��[� R������j���aQǵ����jb1�%�]������lm�Kk�#�'����lm{���d����m!�AH9`ȉ���my������KKr���=�.�TTrb�`��g�yyr*�O�.>7s�rR����-�3���r�rb�V9� ���rB�~2�j@ �==uU�P�]�?�u�hW(mL�����u�u �3P����w ���:�<�00w��bMr!H���w0jpU $�s���z)�K��Q�I���zaW�H,�x�  Q��8Vnc�  �ؔ-%H;A�22�)��I�Z��V��� �q��ZN�55 {�p|C �W��R�cI6-�00��8<^���__r��@n�����*�;�.��44:r AA0g��!!�Ŝ�#���� �#�W��AA w�N��.']�)))7���It/����~6" 8�$kG�,,j:�%OV+���j��}�+|���j:���v=�j�����f���j�zFf&�j���lM`_�� ����rj���N��  r��&Z��ffu]~�g�~�����u�^�vo0*��  wx��e�M-����w��o��>�����w��Ȏ)3U�VVz��J��A�eez�x~�sQ ���z!�"���##z�����s@O���z�����=,����{W�� b���~���*�]S���~��СO���AA�9 �xCb&�@@y8�t~x��� ���rj+u� ;&�Y) !���_OޅY��� f�I(z���||��RS5 �M�]]*�Ѣy�����L|���\����D.NeKg������l��J��`[���@�H�@+���4Xk�'��%"�a�����jb�L�K(V�55j2�L�yl3U���j��.J�M�����j��� $s����j:����I���ccu��O��ُ�u]V�@k�[�oowP�9�pM'��88w�'��[$��;;zA�Z�l�)�CCz�h��0?���z�:�8 ���� ���0@���3�1�?���}~�p8������3B@l���Ӌm�����`۷�6X�i�55Hh��1���QQ -:��i�2�&&)�a���K>��  j�Q���_�����j�Cy%^e�{�uuj",�=B �NNj�G� t,����jꥠ>xIR�IImɞB��N f�qqr��~N ��r��4�{�����rZH�BN ��PPuM�Tq����u]K�FB�����wx�ĘO$֘���w�/���9��za�&�&�z�� L����z��� ��mmz)���R�3�z����gm�����~��eC���  ~��v��}���00 YfW�;���!! #�:j�p�=$/Ȅu` ����\�I���tt$����-�?�\\j��U��'f����j�c��\���j�{:�Q�g�rjV��m���CCu�GA�e���ueEB�l/���w��Y�d��w���.�[ ��ccz_n�v/|���z�$� er��55z��Gtvs�v���{_;�u�:�8���~�󉩄;�33��FD����#*0�h���99%q�#"k�{{p�v�o��'we␧ >���j��u��3�Y���r 3(�q���MMr�ϯ,�F�r��BX���w@��y9`nJ�w-�����NN�if�n����������>��� �2sw�,� ���;3�T�����l�Mw��e ����r��Q�W�����ue�knr�n���w�0!C!��w�ĝ6=[B;���z�k�$e�x�44��YH�(v�����2��[��� �,s����!! �O�6�9Λ���r x��>����u�HyGwhd�]]w�l3�'Q�����z�2�V�&&)'�e������';��%%j�Wy'4>t��j�oJi�}�{�LLr����Be.�ggr�a����99~�b3��~@����9��l2O{����3;�-wit�EE�V�~�0�FFj2,�عr�%���jB(�| ϣ���j���?|)+l���w ��T|����w�5"�����DDzy!����/�ccz��+ �ESF�zz���up4��]]j2L���!|����uͳ�M�(H����zY�;6]u����2���H T���j��s�ek�{����p��iir�k��NZ ���w�1�N��"���zA��:$@8���z� u�j� �$$)'���+f��--m1z��CRĖ�WWj�lo~sS���j�{��n���kku��2�!8����u}��:F�33w�w�'/����zI�]l���ll ����Md����u A��������w�5T�l&7W�{{��C[AY���~�ר_�?����jʁ�D�=���u��X�(��``��� ����w0Zb���`���w�O�F�XW�j ×��nk���um���,�������.�iZ����w �”�?���u}�L���NNw ��Vg��u�酦�b�����z��`2NZy�55*z\�,4�l���jS���{�ffz!�´ Ls��lld���#�<� ��A�B�������8 �e���ʡEJa�����<��~plA����r�o�0Ls-����~,�{�@A�����a`��S����)��>�88O���)]ހ�A�1�uu)/G�EW���gg)O�M�(T�L���)���!*dI �*�F< M�c���*3�B\OA�4�*;�̠wQ=�99*K��j�>�CC*+1��KJ�z�*3��AD#/���*#}�3S?[v�64�� ����6ᇈI�|Y{� 6�+5��V�7�226�����h�VV6�КU�k�����6�= �B%N����6�_�O������6~�WcM���6����q `��6i~�=�i4���6��w?�`���6i/Uqtz�����6a�@p 44�?��8�ok����?� u�}y$�  ?P��O8p����?H`��MW.��C )ϲ!*QH�VVC-Ɍ�'�����C�\� ���SSC��/ay$�s�bbC�U�ʷY;��CezV��dۛ�Cś�+kn�88Cݒ)T���C�D���r���D{$�sK �-���DC,�R~AJ<���D���q����D+�zs��!�99D]��O���D���� ���Dթj�� ���D{G5Xl;�Q���IP�>Yvf�I0�� ;NG��K��0���KN��.d9�!�''K~�#z�/�&&K.t _�9�����K��:$����KN��O�Z����Ki��MUm����K�7���`}����K��NQj,��K��ϒIٙ���K�l'�B^h=���L����-���L�brv�:0���LZ��� �e�,,LJ^ܹH\ �""L�57H,���>>L�y�u24<�$$LZБ�I��77L���%<_1�%%L���� u����Lj�z\�LC[�R/+-P����R7@Ty ����R��+�'�����R��+ R<�55R��E:2&�Z�  R�R@^�r���R��'�Z7�����R�W���NM��R��3�Z>����R�!��S��R�")HAki�S�H:5 P��S�E�� ���S����g��TTS�`�2JS����S��-9�)�U�S��>��`�S�I��G���22S�C�]j>�'���S% }\ t��  S�5n~W���S�H\E�����S����q�5�IIS�n��$ ;����Se��(��eeT<���<@���T����8Z��##Tԍ��\*�  T�'e}6!n���T]rQz?���`��g��'� `&��p�[�B�`�V*$N1���`���x7����`��o�����`�K� ���`>}�Q:p���`>P(׆+�����`~YʧqV���`�L�aavU����`��|�N'�.�aԸ+RCNd�aD@�`���::a�*�\dS;���at,��F Z�atO�)�Y�aDfwB2�v�22atF�5'�����e���[���TTe6�GE�6�ssef �}q ���e�#;�8D�u���e&��t_OC)�~~e�ĴI�u�3�33e�* ��w��=�e^i,�B��G�DDf@��Pf:e���f�N+��(��o���f��G9%Q1y�OOf�%#��k�P����fX��Dw�B����f��E�Xg�k����fH����*l���f ���eR)��wwf�-���P��f�uM��c��))f8��c:�%-�g*��XV`s�A�g�Ej�i(}U�88g���J�as���g� .3@�i}���g���[�D�#����g���c�/��QQg2|��1�����i�j x� b��  i����#|����ih�i@-"*��[[i��0�%+:��  i���r�X,C����i�� � %+� �22ix���_d};���iH�#�)iXxO�PPi���*ƈc�kGP��V����k� rZ/ ���##k���"�mR���n��xv~�F�� nќbp ���''nyF�*����44n=�Y���?�55o���,� �S���o)���c��]�oKg���W� ��@@ocY34�g�����p��D��J(����pS�g#qk#����q�@ <�"��hhq>z�rK ���q&Dm��/��C�99q�47�w �W���q��H�P��u���q���O0���BBq���qN4����q�@���������t!𙫪oF�����t��Z"������t!��� ������t� �Q&j�T ���t�2�;v��  ti��KB^L�3�__t���&-��e�22v�[��5��o�v)� �wmy���v �� "����v!�I�p3���EEv!��`�a�f��RRv�(d�Nf�%��v����[��y5�'��G����y�/���3-���y�mFA��A���y�D��4z 8K�r r y5"���79�U�|� i�.Ja�i�CC| }�UlMF�s�FF|��UX\'}�|����+J��|���YUB���ff|A�-s V�����| ���RJ�����|�������EE|�aPh �����|A���I�d����|q�d��c�����}��;r� �}'��;G���}��>��U'�}���� u�1���}�k&&,m;�}}}������O�JJ}g��x�=JY���}OW3AjL�c���}���z�LeVm���}�X�bDw���}'�d�X �����}���}�Q�����T[�@�i���t t |P@(�������v� �����t�ip���ZZ����>Ni����/fCe$�yy��#�h�����įlvR����ԂNIA������'(@����;DǏ"2������n�L�x�����,^�B�RR��V�>x���O�~�<��,,�a}�K�P�kk��c[= ���pp�׮��\e���������~*�����<�T;��ff�wz�-C2K�VV�w�b�>rB��D��,lV���Y���e ������҈��w-�dd���0�$4���CC����nkq�w w ���韂q^��\>�,R.���RR� ���� �X�``��4KT!7��==��^#SSo����� �&h�f���[[� �PW ��tt� �A���2�vv���Z�2)U�TT��|��S2%�RR�ľ��Jt����ai���������"�F��VV�,)5^�g��__�t��+h��aa��z�!V��oGS#�]������7��[Z������vT�g������2xB^15��������jÁ�QQ�w���S!����OƁ�[s����w��BF��&&�D�Cg�����  IxRv�x x ����N-�� ��X�7�+p�����9���0�������Yr{(Z����3�I����2aO�;���Gʲ}`%�{{�G�E;U�������o� ����������O���cc���ތ q�@@���IlL��dd�w_�ٵv�v�ee�'7@��w1|�**�/�/��J��������K���~~�? .YUT�����>�|���%%����R�+���&&���a9/���gg�7���9�ss��0���qq����pp{ing out�,,�������rly and�XX�q��^�}r includ�cc�9H�"k94pita it�uu����1)?� sorts �99� ��H�$t here �99� 2 YG it edi����)�^�(tter ex�ww�q}�kHj� of tha�xx��;�+�0paragra�55����w�q�mt to li�NN�qxq>�db says���yx�Jgious pr�{{�=Gb���ed with����m!��F�ump to ��u��&H�bad mov� ��%^k~�ave ins������v�!k�ddly ta�||�u.�~vx��downloa�44�mmDT8�kage he�������O_�erences� *KY�b;V�elow st�*S�X�cK|^ou have���*ۗ�DRO'[n the m���?�z��a^� for py���?8�bj�7�}p extra�CEA�� p py cl�C��ˤ��4r your ���C����1it for �..C��M'*�have fi���DcQ W_|��mbolic �k k D�"��v&Udirecto�K�SU����ysql st���K��Ӭa~ange th�VVKf 4p�)�ql conf�44K^<�g. W mysql �!!L �S��G��rks if �%%L���fr&�ort mys�&&Rw�x� \lt you r�ssSEN׋}=��ch is s���S5V?�EX��ysqlcli�S�,�_ Ǹdylib y�n n S�2��Q6:0cup tho���S�V3�d��rom the�''T$�/A�&]Os error�--V'� +�4'aql pyth�55W�v6��|�_up here�00WK�-Y}1�X need t�[�fӲ�he erro�  [�� �8�4ralised�p p [�-LUZ�0m out t���[� V2�q�n bette���`�*�ur�essed b�22`N�I�m�[like th�LLa�]�- omkalues r�PPe��1kwhst how ���e���I�m��en dire� e,��]r:( some a�WWe���d!ne in a���e��A� `��in os l�q q e.�(�^��s path �55eNyZ��r�Gelse co�ssiȭ��<9��mme num�00i�C��#�� gimme ���i໊���_pe obje�%%i����>%��n this �YYi��9�w-�rhose ou�k����Q_�ay howe�66ne�sm6a i desi�oon��k(ݨ overhe�22n0�!5/�ame tim���o;��ZA��erflow �))q���:��[ter som���qv�����Xchine l�//ti���W�gmydata ���tq,@0��aframe �DDva�[bL,0�he colu�++y�BC� ��a c fea�qqy%���d��e way i�vv|���G�f�ing if �}�R20�N�nthat da�{{}����AgUi a litt�**}�Ԫ�ZQu7followi��8�� jtde df i�""��5ӚG��lumn sl�TWɱK�� pydata�OO�w���gK2�html in�TT�'Hq�1�add an ����'پ�`;�ts say �EE�? S��t�y and i�����S\��{-� c are ����7����m� hstack�xx��ЄN�(t7round a����'��ķ �n or tw�BB����-are the�]]�,T��&99ay give��4`�7%onvert �����V|KQ�� i woul�22�Ϲ�D�nSKtwo alg�PP���3f �one of �TT�w��G�@|� is inh�ff���^T�,�^thms al�ll�o�ޞ�}!r the m�z z ��S��Y �een tha�����(J��( specif�����d��5 to dis����/+�'^abehaviou�����N� hkݰr examp����I��-��ript py�FF�Ib�j/��ling op�zz���Pq�&mn pytho�00�}L\�� �eyword �>>n�����ft pytho���)���o��x just �99)��]�Sm�but you���*3���=4j elemen�22*S��iV~u�m wikip���6���Y=`�return ���6��;2k�f f pri�Cչ|%b O�ermine �C=�H ��n i wou�DK� ~o deter�||I�QJ�\(v�to find���Lj����isn���S�M�svgain�''S-�߲d#f�m���T���)�S���� [�����p�_����[M�i�W��oot���[�3�}1���``[�L2:0���33a���Z�Lv47��QQe��'�X[�ccf�:�r J������g����l��ppi�P]�?,��uival�cci� "�C:�2��n�O���(�p����o��8AH��� |�%�[�x�$�R���|a ��n�hvi�PP�o��eBD��poi� �?�0�%?�?�v v ��Tw��H�ac������bLo6|theu�99�Od��}5Mj�y y ��;4>�@�Pcharse�����+2 M hF�����QmP�RJ�������R�U3 ����e��كlitlin���i��J��d��form�v����hf� ���v!@�*�SJ}��7����v�#�ܽg�����_d�zxq~��FF��v7�d����9���|z�?spac�T$%��U�����`ne'�G&ac���k��H�c����� =�J=�tchu��������+ryClcodf���W�av^�U\�eleme���[M�\wRh�0����`� �)�2��66f \R v'B�activ�99i�漉 � hasn�==k @5Ba0������R�:y���ssC�!�Bu(S����y�(Nx�34���Av7����''gRA�9v�����!.�L%|�emoteho�����~�k��lici��fG"�q�onli�{ { �����M�Ntif�''�-}�o�����m�Ku su��OO�-ko+�n���mm�Sޯ�Z��e� �m�m��:�S�**�u�|\�'�} } �BF �Xsa��}2uQiT������� nP��  �M��$�O�stk�����w�Fv�d� ����5z�NL �S����� �3�unde�� (�7 �mo�11����C3�(decom��+�˦HR�������s�|��# ����[X�,�6���((�k�!jzQ�latin�rr��lj ׻�����c��sm�� �""� �6�q� bdfl�  ���%[�{�n���� ��8F|����� M�� �����C���1���oo��Yi��g!����}��1��s�QQ��\߾gJ���������l�������͸8�ep������D,x'������u�"����C����f�� wo������2g= � �nn��w� zuld�������}yM��v�ss�[����־����k�+,�2�uinsa�����F��\C�7 �����|+�le�}}�Sp�!K��nehal����~<~5�1���7���L��?�{kinda�44���an�rcpa����&8yN�k�5��7����m��p�pmyvenv�����kJ�cҘvd�OO�^�D��>��extent�77���s�\:v �����ˆ�f[�7������*tۛ������6N) U��yboard�99�n,l8�l F�����v�*��"���??���vXDE��r�Q��7�cc�f��9j������Z�\;)��n|n�,Ddff�����2��rޞ�����~p6j(v�on����r��9�(r ����Z �,Y<�}�==�r �B�Ob�����r�7x�� ��7������!�e�ami�}}�B!� �X���YB�7�qq��u� �\perm����"W�1E�M-����r�d�l`�Wskima����r"Y�W9#;��;;� f��SRSess����*a��;O�M�uu��׉�R{�mp�Q��7�@@��c�� �rwheel������4Vbl ������r�Fa!w�filea�__��jX>`p� �����Qӣ#����PP�1$�.f���||�� ��_ '�����*ϭo�G4�estr����b�?5��j����:J�w��t�44��#dR�est�""��gO�8�R����:��Z �=re�����P�D�o��fla����UU0Epog��������J�Mfree��������zco������5X)m}�bajo�ff���S � fie����Ԕ��"u�b��==�l+|%�:p�andymc��T���FYn�7��� � �T@���%�������/h�@O��inputna������V��oў����<��`�u�&onster�UU��ϟ�qz��plib��� ���P!��&&� >��@�Xdomain��D�]#r����� � �W����e� b-doubli�ii��e�Ndi�7gam������k�*�c����}��[�qtextfie�����J X�$Z���99���I��m����u�£�a:�nvolut����͝�u�PX������ˆ$:������u^��m���77��T�� E������P�wRO')�<�??�U��$O�$in�ll�� ����W����u>ئ= br�33��C*=?DK�������z�"X�)�__��&��7=�������K�ד ��distr�����`K��7z���%%��o{mQE��gre�����\D������b5��v����EE�����O��euclide�����v��s)�_���������hf}speec������e�U� ����U2�X��ifconf�������� ����__�UĂw�{T�assembl����E������oncat������q��statsmo����8�4��jY�rderedd�����$��(7������V35y!3�����Yr�{Gneatli�����z��[*�A������Ez�]t�echoic�77���8��$��yraprq�����(��z���OO�����x�Dich����H^�t �t������ۘ�Yb������}?�bs�����+_\,=�>�//��Z;�|.������V2c]<�da��������L,U������7�rak�����r�(��nmapF����p����a�stor�����`�DQt���>:�7�>>�����������ޔ,l YBdy to d����nD>&��ing dja�cc��|?�&�to my d������Ms withi�����(�ݏA�d this �������T *-n and c�  �8�²�E�� multiv�����!��o prese�  �M�� ۲ult if �  �X5*�� $Dest pos�  � __�fɌmy var � ��X�Vl[�l and d�LL�d5Is2�achment�����m�ZT�m for e���e�Z�Dchments�<<�M~G�HCC�nter yo����%-��+�dpass en������� �F\�he gmai��=�/yw2�imap gm�@@��/L�Z+�mail bo�����ˆڥbR�o get a�����n�'�X�ode com�$$��ҳ[FCVtems it����+�uG�r email����M7�;o;n*ilid rf�| | ����u�S��ders on���/Q�cb�e mail �����O^�]H�chments�@@�['�.e1�ype mul����E8�#��ail sub�II��֟Ҳ6`�rator s�� � �{}Z�z forget����;2k��v��tainers�z z �d�w�p=�part an� ���<�A�2isposit����[Ñ%g�void du�����LH�UO�s path �������n�8�� its al����c�w�df��fun by �����mR�W�~so some�''�s�+��!�(because�pp�[�҃�^&�m list ����{��Sj. m selec�[[���U%� error i�����`_��r �ring va�//�6 12Kr%tion pe�����K�^� �4library��֢Ys� �ded by �gg��O|f�k�� automa�XX��S���sϺe mpl r����Ƅb�modules�II�����&tŌmain cl�hh�N��[�y��st and ����v}�]�w݀that i �||���np�H��ib text�����x2�E�Ymatplot�\\�BRR� ̍ main c������B�� ��n and p����"��mZ+�create �99�:�8��:how wou����:Hi��":returns����b<���F��in pyth�����z����to conv���� ^" ��second �,,��+�e9d�4eds to ����Zr�u�n�on abou������[��}��racters�**�Ds�]�F�!oyance ����\��{:O?. had to�))����_�� rule f����eY:G\��abide t�qq�}پU\nding t������h3H��ally re������}�P��like to�hh�� �ƣ ��oring s����5�D�<1�� concat�����NL�R�� and i �FF��fs�52ދhat fol�����j��m��es and �������\�<>ts use ��}3[�l�sible t�����\��k��eally l����US�K��en upda����u:=�K�topic w�JJ�ݑ��4Jwcontinu���������E�orkflow��������=d this �����I;��\rme how ����E���! ks but �))���l ��t file ����"EO�[<��with th��[0Q'�9te a ce�NN���ҙ�|y�ack int������e�mO5� cell a�;;��B����ith the����x���t� for an�����2~ >b�cr write�yy�8y���� descri����@>��1L�ame e g��� �/J� from i�����q��hDM�ad edit���#��G,�ocument����5�� f`�aining �OO�=+ �7"�t conve�66��~���or re s�~ ~ �%��6C�m looki�����e>PA last m�22�{��D4Y8hat i a�����h rS��nputs i�����)%u@� l d cal�� � �n�SxxDcbms cu�  �d#�YC�cy q qu���*}��#0{quency ����r4B1�r end f�  �by»h��iness h��r�8o�t minut����*a�<�Q= includ�������\5�any num�����+z+�F�~n that ��<�>�vYzxing can�HH��*>l~un assum����5�w4�;e u stri����M�}�t�Tunpack �������IU ^ies bec�qq�}�Z�w�n a fun�����ވ��[��s how c����w��~;ange fu�dd�u�?�g? gs my l����m=�s.’ way to������E(0��ction r�11�u)$>)��unction�NN��K�~�j\� you ca����-��+�Tq�tatemen���������7�|hon how�����̷P�v�kh mocks�������~Xh open �����,`27mmt the w�]]�m1��A!�� which �  ��4%�O9ran exam�  ���T�}2 ck docu�ll���Gs���ith pat�����-��4�ec file����E�|wDz�handle �22����O��m with s�� � ���f��Q"qcolumn �������+׸ alloca����ʞ��m��ncols s����$�;k�R��opic ab�����r3��p+lear py������|n=�ected b�����`s>�R�een in �HH��ʥƉ5`�scroll �uu�}�y[�Pcrprint t������w��vPyction d�����n!��Ln neede����uB�E to for����չ��!A� is it ����M@+�d��ction i����uްkK�ing my ����M�>���lared p����e3eY�"x7ed myli�HH�͕;-:AY my cod����/7E؁ls with������l6�nfigs i����(r���&�5ze my c�����A��2� you do������̩� n�ssary t�EE����(6v>�ider th����#��� �Xition r�����S�N�J�� where ����ޖqzs��ution t����*����q��put def�� � �r7�1X��what yo��E���TN�y that f�""��5�X�ide a s�))�M��P4:H�pprecia�jj�e�١|<' the mo����������lot plo��E�D�wh9anning �ee�2����9� instead����`�v3Lsis does��������Zavefig ����$�#"�s arbit�ZZ�M䡩_+�ng over����2}֊ku\ rogramm��������w�� langua����� q�-��t decid�ll��(�LD<� as wel�����d� �2�Smentati����m�sP�E;�er for ���Sy;hr�sets ar����HӀ��aYd and h�����a��DLRin a dy���Q,`# based �����ZB� t based�����k�3aEUthe tab������"�<�&oo is h����m����(��e two k����5@�N[y- hash f����m����first l�ww��y�.LU^�hash va������3 =5ahus map����2�@�[�ehash ba������(�I2�t the s����� ��pn�� baz no�����-�kt�$structu����bp�k"tfor all�NN��/L��s�5could a����@���g|�t works�����3a��>�7ode whi� ��D�1�i}�ementat�::����!�'��te that�  �ెb�:A�is used�NN��s]:Mdders a ����XΎ8s-�sing ma����0��lu`�t the o�����Rb:�>,z for th�����K��r�� implem�����YFu� �aOo stuff�00�"}Z��� to som����R���F�ts in a�HH�:�8S��rs no is����� �OPjeature �������}�7Z and be�EE�zP���\:� from c�CC���%{�z.Jed a b ����@��0P��his isn�ss��<>p>G�csing ne����p����all be �����R���_the con����(���>�raise e� �؛�~�*Z-you can�� � �����Pc�b exits�����0�n-��mgr in �� � ��Oc#[S� exitst�$ $ �X��L�X��s for d�yy���g0$oVo updat�mm����į!Eofor dis�����2�L�kqYt requi���������`�ort i d�""��$��gvkve setu������4�p#[qeption ���K�{�� error ����H���w��ost rec�����B�+�0yds inst���Q�]C� in ini����cVTibrary �qq�˦>]* line i�cc�{E�+{�ls for �0 0 �Sr�L0 J�or pip �� � �K�Z�,s3bd for m�VV���=�D��o updat����<0�lute pip�����;�aS�x sudo �aa���6�F�t pytho�AA�sPf�-f��ame fil�<<��Q���nit py �� � ��6 +`8? a vali�����DA�cnxt it co�� � ���Y��i�Z your o�4 4 ���D�!�talled �5 5 �S�.]GZ�$ to ins������vg pygam����;��MB�n on yo�������n�T�� conver�MM�æ��NA=� can t �: : ��F�5x{Å true s������vnS with l����k�H�_L st tic����Kof�2rU�into co�55�s�J|�&G y axis�<<����[�tween t�������:/�pening ����zhЗoR�ar func�> > �B�����j it wou�����r��c�)he colo�tt�⊚��i-de the �mm�"���o�3two sid�ee�€����� to cre�uu�ʷ6[�sD�hacked �yy��=5 �Y��orbar p�99�j>,�w��ake it �  �rڿ@E{�yplot a�����E�L� te ein�E E ��S1'�# Gx y g l� ����C� x y te�66�����d15 g out �99��beiL range �����v��6>�� plt xt�SS�_P�Cr@e patch��ϭS��|��size pl��脁D� axis se���� se!�lt axhl�[[�����si�� plt ax�G G �_�Gq�ipse co�00��k�(L��off cba�* * ��;p�7��s and u�DD�'`x���axes fl�J J �I�u� vmin vm��gٷ_7Z��a task ����r��?�^n i def����x%$� fabric����'�I�;_�k on th��3�[�?o this ������ڙ|o*ite rpt����4i���ite fep�DD�{sė<��p err s����{�n�(WuPcy of o���5��(� ou type�QQ�+�"��z�Oot s pa���������mmand n�N N � ��C� �� echo n�22���&<@5Z�sta beh��S��F�gn ong suc�����h-��ypicall�55�{pN��eh�are man�''� lp�N(�Oc provi�--�xJ.�c�ng it d�S S ��D��V;'� condit��+�{g���orting ������X�"!�e a wit�����!� !�r a fab�11�ko�I�{��gs cont�nn�+v3#�2L� i get ����cw��-# json e�T T ��E��� ��in the �((��#e��[ 'on of u�����)ܪLi�Of nobod����3�f��$N�e sourc�$$� �/�f1�ad whic�VV�{�t�(f�zhecker �  �#k�}� s s i��s��q;y�xngs a b��s���$* now am�SS��{��R��account����c,�`��Pst way �\ \ �{t�vS3a. days a�EE�{|��>fJt timed�dd�à�x T�as seco����+���?$ting si�������G��ails is�44����y#zIest mos�**��j�eA+��t else �11����1v.�his hos�` ` ��%2�/r�r look �� � �&�+�*wRnow you�))��%�ף[��oth if �55��Oˋ��nd if s����v���cX�more ef�hh���,gw�Jdo eule�����8o�Id�ble to ����n��m�y��or look�����Q4h �isiated �oo��T`��O�� n look�77�Fq�v�t�& the da�g g �V���<�w associ�i i �v���� to kee�33��n�J@?�e quite�99���Ꭱdon your�k k ��#ZiFV��thwhile�����j��eN�search �,,�����be slow�����q���o��ects wh�ii��3‹(_�ing for����6J�|�!e�tion an�ZZ�>� �*_�tion in�q q ��K]�-�tats ht�� � ��4BR@<&e scipy�� � �>rɴdPA�d the p�t t ��Љ�g��wo data������PBj�8e norma�DD��R�(=" �ation c�}}��e3�EM�elation����vB�Eeationsh�]]�Z�4%��at as x���$�[�H�*creases���z�x�("�produci������^/5Gorrelat�����Gi�87�e compu�����.�g�q gues are�AA��GHt#the sam���=O,u�glosp h�����dj�� eclips�y y ��;Ɓ~f�on thou�������+�=�wlenty i�55� ��\M is loc���xa_]a֎hon tut��shLKpA��my exam�@@�S��I�')�n my py�} } ��s���Haeiveinto��#'���[J�n i wan�66��Y��e�esolved�����qˇ �dded in���������Airector�qq�tH��3��ything �zz�JV��T.�nd the ����������'e a pro��r�K��]uctory s��Z/O��M��ch i ha�����l&�Xe$%le py i�,,�2#5,�F�m deskt����b�n�zap-n py ev�� � ����`d��find ju�� � �R��,u4'cisely �� � �Z�"�nA�l trick�dd�HN7�n�orrectl�ee�pj��^E\�odule n����0�}�u��me prob�zz��6��Bx ft s ver���U���}^equires�����dB��"r� pane c�����Z{ �add sou�NN���҆�.T�n init ����"$S��H�ur proj�""�޻9�Khort mod������y�U s inst����:N��Ca��ction t�# # ��NǏQ?e�ds thus����0��b�Rhm as a�������9�a�� is an ����@�u+C�e all t�))�x/�^p�a recur�� � ����R>��ge and �+ + ��;౜��ver it �UU���XW�ing sto�/ / ��wa�my�� append�ii�[�7Uc��ring i �,,���~�o_�etpermu�����0}�i�don t c�����sE�mutatio�� � ��$�f` Vstorage�����vI7]F �prefix �� � ��‹Koxtations�  �s�=2��ork the�KK�+�t�Y��enerato����K�K���>it with�77���� �en stri��� ��$�ring i ���F�� �utation����Bۢq�%�Mn matpl����� T��4�e a hea����b5C���ta the ��b�P�n��mport n�pp�����+F�'labels ����k�5�:plotlib��7�YX<�found a�QQ��&ˊ}I�Jt figur���)o�Oohe colu�����'C�j � top le����W�5Jfn�� axes s�H H �O��� �� all fa�VV��'�,*]this is��o���g@i�mentati�88�?4�(�&M� update������&^=ܘon my a�  �����r�� and ea��+��aD�koverfl�P P ��&�Dv��b impor�����rY�m�b inlin�� � �S$��LŒ index ����sI0B�rm nba ������K�T�this wa�<<����P�E?scmap pl�aa�#!�Kd9cf fig �U U �[��O�4,�e ax se�HH�; ���:�;cks at �DD��h��@�)icks np�55��I�G�e ax se����3�z�P�ike dis����k9A�(4�,en wiki�����A�S�`als mad����S� `#*qpercent����C�OR� ��attempt�**�;T�M~��inters ������$�`��int per�����r�6�t�ive reb�^ ^ ���)Ί# {ls bloc�  �ۺP��8��could h�CC��� xte label�����,�|�!�ls mino�]]� �?~�vk�he tick�LL����tpt major�����c�g�V܉ned a l�__�&�*\� �eone wi�����zY#�\om date�����$��A��beginni���M�rYU9Pr thing�������v%5�atetime�II���HچǛdefault�����+�Oĉedelta �22��X�(sF�>ort dat�� � �C �؋F~tetime �~ ~ �Sбs�J year fr�oo�D�|�'ror mus�  ��a��date re�oo���7�ather r��� 25�6� statem�!!�{E�JK �ace mon������;F*�your qu�44�B�0q�c��umber o����2���4Ays per �OO�J�5� D�def num�HH�R���_O��one end�??�jo쌣)��egin da��B��~g��d retur��������Y5N of new����p� ��\ll uncl������}�E)�cal dif�����n{��efore y��������*)�where w������{���plains ����*#j�YXy'sponsib�A A �rO��j�ised in �  � vc�X�Ce the i�D D �R�7�D0�Kte this�""�"K�q"=fs usefu��������NoT+mple is�00�K�d�+��tion is������uSring me�� � �{+> \�� kwds s�qq��34�q��self fi�<<���OQ�cnew whi����]�=Sinstanc�����ԏ�N+hy is t�X X �C 9y�r�7s are i����ޔ�we coul����k��2v� method������^0p{��s with �``�Sv_QE22�cepts a�b b � n�C�pe thus�ee�c^�m;wmodifie�f f �N���wc�type as����nX���9xed afte�� � ���A�*ag�st x x �����M���q��y y y i����b�UO�Oods req�77��BQ��+S'then re����6T��L the en��&�@�j�#ad simp�YY��� V�'��tribute�x x ��q��eom� method���^�}�|Hutable �  �{z�)Ne to mak�����!� Qz��in new ����N���R��ice tho�����k!�j ��call th��������2̦to use �i i �e2�$6��w docum�  ��w�1�?-|mpt to ����"�h��japlete i�  �:(���;�� about ����Ӊ�GK?��ome sim�; ; ��a4�;�zr not f������ԥ1�?oot fol��79R{�!y(er at t����=0�~y he curr�K K ��()��� a sing����C����=Q�on jump�vv���:�2R0to list�n n �nfY�[Hthon mo������o�mpymacs �&&��!Z�q7 oad pym�hh��'f��ŕ ropema����>Љ�wu,import ������XL�Q�Lharacte�!!����,�*��n defin�����B�؉g the r�����k]6�r proje�����;�eYulass na�GG���F�/�Presides����Ӝ�9Kv6 own co����c�jd�oearch i����z�RFEy#|ss etc �����!Z�ible co�**��u�i �� s natu����z�}����te list����`WK�iew opti�z z �+r~tA�v to org�����ǕLpA want t����3!�'g��our pyt����s�8�[��thon pa�� � � �P��X��site pa�55�Cظ� �Monfig p�����%�ܻM?on imag�� � �����x��pip but�������q6� error ��kt�L$�d inclu�``��T����rated e�����_0@a�� didn t����9/c�"�le edit��:8��Co��of free�����J�D�6U his sav����j��C�}��the sym�& & �g�R{��s work �NN��`�~;\� databa�,,�P$Y"�6p�apps th����2R���(�qthe tut�? ? �ڜ��^=�uge py s����O���pration �55���F�N�� now i ��cY9YWy� le whic��k���8��asked o�  ��M���ers bro�33���&��rf wall������i�2 1�ut when�jj�cQ�tdB�nch of �&&�Z�����ts my ap�::���s�3 цadmin d�ww��W;�;҆ conten����S�^� ��ango co�''�#z@��su�es sout�bb��r1k�y� imezone�* * �#٩E�_Ps debug����ʁD�K{�s use m�]]�o�l�h<�� cool n����'���5[Ho i do �77��$cbB+�%e app w�������H�`itial m����*v��9�Nalerror�>>�P6�u�B�s sorry����"��JB� to wor��}�� �ove my �EE�"u�^a'Tlly ins����k����/�� migrat�  �XP=��)�Uto know�gg�(2Z��*fke was ����;b��~G�(outh to�����8�jw5d your ���ל�4D�_igrate ������m�^K � that d����ӈ��4��ur erro�DD����@K,V py mig�! ! ��σ�o,h� initia������)�e�Xate wal�dd�c��|W�� to the����S��g�(�will kn�� � �3h�]�z�Blready ����o�+_�� ase add������r[cW?bles to�oo�k�-~(Q?�tion ap��������0=�then ru�GG�:b���<Ʀs to th���f��u� oject a����SA+��_Y%d apps ���o�-8|Gur init�FF��櫞�q�Spps run��������%�� do any�TT�c>��B!#odels i�����D5U�you are�� � ��b�c�# �ect and�ff�h�!�E�s metho�����g��?s metho������r�lally me�ww��D�fj�Zs inst �^^���.Xkngo mod�__����_N�Nodel cl�����sLbaR that s����Y�3�h_$�t i wan�nn����|GJ��st you �� � �A�3F\�unsaved�EE���6 , to inv�ll�Y�:�Vm'depth h��*]Ic�-��hopping�� ���U�xar id s���5'M �Zpp foo ��JJ�_��ar id f�ll������9��es sele����:����N�pp foo b�vv�J�\�z`ts to t�� ƥ�A1�>ave foo�� � �B�^w��assing �� � �B���D,� select�99�JT5�t39app bar��b���yoKwhere a�MM�jF�2�1(rs bar �� � �*P,�{E#ars foo�� � �����%x-ts bar ����b���.Bwar unfo�DD�����\+2Fonal se�� � �� �+}),_me from������Eޔ� bar id����m��|�id bar �==�� ��is foo i����(ϝ+H�oo foo �CC�@ �=�a�o app f�QQ����;;`�r id fr���� m"�#+�s foo i�SS�`��S1Z�= app fo�  ���0x��pp foo �����T32�into ap��` �m�L�qalues s��(s�0Cm1� app fo����X�rT�`:o app f��8�i�љ to a d�� � ���7;�ri� what i�MM�@sf�$��f a is ����8�;�v �o somet�LL�ϲ) sn t ma����{�'$��y i thi�99���f�} be wit�� � �`�B�jo�ange le����(��x�R�Eill pro�}}��S+�$� althou�00�h�5B5�1is alre�WW�`v���U�peed izi������ �� and us�� � �0׮�# b�eck if �� � �s7��I�� is emp�������@�e�1 newlin�uu�xg�q1L|�pace re������ZM>Jnspace c��������R Ŏse comb�������- handlin�{{���ښ/��you cou�� � ����/A~strip a�� � ����=@rays fo�� � �x��~3{�ays for����8 �EH�numpy a�11��Y3)'�true dt�==�pY�S�,+�arrays ����`���5�9alues o������:�aupp s �QQ�X�mqQ� ve a st��E��as��er one �JJ��bڞwr return������J%\� the al�UU����e@4Sape and�QQ��zt��%�pproach���P)ۮq��n the s��e;�Qwm_�d one i������@�Tout a a�����Pw[,�=afe use�77�� WW�6q�ame ele�TT�}�=��(+ values�00�5�W].zݔpe elem����}^���f��s inst �TT�BB]~%�to crea��rݧ3Lf�ython i��: �7%i�o be ch��B���C�3ython y����*t�AF ��for so ����*�I�,�ve set ���]f�no�to use ����Z�@Z_�ion is �VV�Z4]I�\�in of py�ff���t�2 Y�els her�,,��Ȱ��lf you a������Y�T�Uadded i�����*�? �s anaco����vӉ�ig�Aook ker����Ρ| on as e����^�L9�p`� conda �����Re���r a res�����<�~�-kernels����]�]$Ge new e�� � �|*ݽbJther in�� � �&0�PU�of anac�cc�^�P:@otanually�� � �� ���re the �  �~����U�stall u�X X ���d��;�ent con�;;�RydmZ�! ipytho������'4?�ook in ����~�>��7t�}.4Qation o�� ��-�H�� know y���#~��{W� python�� � �ب�N�;�~ authen�� � �h�&�h� give m� ��I��=4lement �����/m��on with����8!?Re�� succee�??�XOW��|mkparamet����8s�R���ow i po�ee�0̛�9 Planatio����0�Y��[,H it to ����|oݟ{gJcom tad����<�M�r�ecret i����$�=�IĽh hmac �@@��SÄjA��ord h h�� � ���]�P�� time t��k'ԵP��nged in����KR���c it com���q,���t and c�__������X�er by c����A�M�t_!b decod�����z��0 authen�  ���l��Q �er each�))�9���> type o�HH���2e)�rver yo����q袍o* es of i�����Q($�Otee tha�VV���===p(between�������-#E� not le�bb�b�ތ;y��s no va�ee�R�&��W�ee it so���� ��R��s you h�KK�b�lB�:Gce corre����b{��AT�h gener�{{�*f�[���y given�SS�BLQ��b�time ba�� � ��m���p�9values ���|w��F� of gue� � c�γj�Yven wor�||�`�~a7��ated by�SS�`���<��hars s ����(a�d8�tent got����@�hl�y ain p��@���-�z unboun�##�� ��p�bo inst�� � ��{��9-�yg inste�� � ���1�q�O^6W.total s�����D�a�q�%de sub �x x ���S��m�w getsiz��������<�h isfil�&&��n�/�es the �FF����EZ�1 using �����P���Hat st s���,?�7#_lso be �JJ�� 2"� �(s avail�BB�F����1�s walk �ii��M�~a�1in pyth�((��[.\p� curren�����&o9pz�s in th����b�+Pmes dir�::����c�S�Ske this�� � �KQ�M�} inst a�VV��*J�M Ives you�''���$�Il#�hich gi�  �ie����jed in t�� � ��T��mԢys modu������CW��ng a gu����9�F�V e xml d����j5�e to gra�MM��W �;x� me from�  �85u�gM:qagname �� � ����/@�d the n�� � ��� � Hnlement �� � �� �o9xіto prin�����%�%�Y�Phould j�� � �����q��e keybo�� � �p���;�R multip�77����zAE3�example��h�+g_�Kexit de�||�聬�%^slowly �����h_��rupt th�dd��?��� փ exit p����H���$@raised �ll�8�o�+�mply ha�����np�l�.ill it �9 9 �(3�^ ��ress c ��������&ӊeading �  �,�+M�c��g lock �{{��̧t�m�$ done t���Y�Jil��it neve��0YX�WP�happens�  ������:�� result����KCA�Qarange g����YmYUK� s mean�� � � �dEY,Mthon an�����N2gq� exit u���� r(6V[�not os ��������Adft it is�""��ُuMTe very ����"�AlM}basic u�� � ����u�e2format �� � ����EA is repl����¥���ring af�� � �Zγ��M�Jonly ha�� � ��5��'=I�tional �11�)k�� �gs can �  ��:[��Gystateme����"�m� �two sub���.yE��tween t�dd�H?Q��D�q curren���� �C�.Z$gplit st����H3��?->�ic what�ff�h�Kλ5-a model�{{��r�� 7��e inc f�CC��rjw�*�cbelow f�����R��\w� labele�� � �8"Zt�;a coupl������dWtrgets b�� � �h�i����es acco��=I�PZ��p and t����U ���,��ithin o�HH���{�:u�ve you �aa��B�^|* to app�``�r���b��t corp �CC�:R�·Bejueb e�oo�Jy��kQ�assifie�ii���h0{�3at you �����F�p�]�chnique����ǪP\��nal ran�tt�v`Wz�_� based �� � ���A� *Ot looks�����j:�T�e word ��� q55rds to ���ð^C]Ġs their���� ~�� �good li�~~��gU�~ �Ue sampl�� � �q[Y�CgP�ght abo�����n��{Щhe cold�� � �h2��Bl�Bdelete �  ��S$�>�st but �  ���u_�% pinst if��������XbH the hi� �0�o��^\4oirable �  �$�, f provi�  �x���5�� wanted����qR��H�� platfo������\�p�pe extre����(f�w&�on on s�����pe��� me tha�bb�R��aŸfor you���� No��q�< for yo����A`@FTSely los�22��]��x>�ode tha�� � ���8�>�scalabi�@@��3�\vvG that s�  �L� �;p.�ite poo���4�"V�rlly end�77���+�n�( design���VQ�4��arder t�--��گ<�o solve�� � � E�\,`^ll be a�����ڔ��=%�that sc�� � ����G��l for y�����XM}��t gae s���ø�l>��ur prob������=|t�� offers�� � ���iq1�ike cap����b^��^+�7 but wi�����W� �far eas�����[U�being d�55��:��)v�o djang����R8&Ia�� becomi���+ʩ��s or vp����\/"�>�T�*�?@M�ms ther����E�caused �����P(�Ppuhese ar�EE�|�>>'��ter sam�  �\~��^čmaximum�  �4��::E�ey d ei����$)f&r�ranked ������H�wk�� just a����T����v s and it���� a�Bvt could����<��`E|Sg in ma�]]�d�Ư�f�i ve ru�**���D�r findi�##�� H��e�defined����׳�yNG�� data a������im(DF charac�  �[�?F�^#8�1de prov�����6���k�y compu�>>��BLw, charac��pK�ȃ5�arough t�##� �}��!� a byte���&�E<��e encod�9 9 ���s��rnallow y�����ˋ���rs the ��������V�2present����P���`QSation e����3 a�V�ds a la���ӥ�T�nbe repr�oo���w�p�:acters ����܋���em this�JJ�/0IK�{��etimes �55��;� v ��ining c�UU�?���l_c unicod�����b�Z�>��ts a th�  �w�H�u+� third �22��)si�X�Ance of �������KŁween by����o�4 �^eh is cl�����=� ��ints no�����Y��i[�e code �����3�j�% python����9j�a�� should�����c��"1g of a ����_S�:�A any re�F F �OD�t/P �nce wit���5��� string���"nQ�"��en len �����n��L�de poin����_=���u�ns print�������|8al circ�//�L�>�M,�rs beca�C C �O�<�2&Ԏral for��gH�^&es type��?��?ckey poi�E E ���, �~�and mos����O�@p�{�tible a�������� d inform�  �'N�cX��ng pyth����_��a�]�8orrespo��?���U`|Vout com�))��_��vbHer deco�CC��4Q�1�A termin�G G �_�e��|�= not co������� .�racters������� hat sui������P=Fka�e solut������,8� displa����g�jX) nuring t����ߙ@�6ters or�ww��~�-,S� ogram t�,,�GK�4;^ 2nt envi�����J�cS�rminal �� � �G�3��*jk to st����?���4t��racters�>>��l�� ainput e�����LZ^f��is and �;;��òQh�Uthon c ������ʢgN�&ys stdo�77�?Q\XdA�onment ��~��p�out enc����y׾�bϥa termi�����B��ect you������]��n�Cnce you����_LpG{X�tp wiki����G�[�#�treamwr������6 �u�� stdout�))������ULErredenc����N��.u�rint un����o�('��ft to r�cc��1jZQ�� class ����7 M(�ogtnceptua�qq�/�t#�P�|the att�\ \ �7�ߝ;unwith un�����|��(|� replac�GG�gk%�X,�O this s�QQ��e��[��hon wit����G`��+� regula�����Sk�rWL regula�����v^��b � method�xx�g����y=un just ����D)a�r and i�_ _ �����+#�torials���q{v�h�� i want�PP�JV8�b�Uong thi�a a ���sYD:nswer i�aa�7�G�&%Fbase nu������G�~y�changed����_bߜY4$ approp�>>��}��g��mal not�**��-Y�K 41tself w�11��Y��e � humans�������Js inst ��_z��O� en addi�RR�7�VD�'Uwide an���3��CgR+ chars �����bR�P a text���N>��[��textfie�@@�G���� ladmin ������B|�Kdes mod�BB���wӧB�trs siz�h h �_�b��'��a attrs�i i �7�f�urmodel�� � ��w��0l�V you sh�22��s�x|v�tinput �� � ��M]�w�dels s �k k ��qv,@�t index����v�,-. traceb�m m �����`/��ndexerr���������^�iange i �� � ��6��0O� t unde�����C��D�Jollowin�����E�S�+float i�t t �Z�^�VC� floati�hh���$1�Z �in exp ���� ��3.b�adix ro�ii�┻X�lt�max sys����r�è�wȒty infi�v v �z<�n�ity inf����b�h(s� availab�x x �Q�B��)��thon mo������<���3l a pac����y-�wKi script�//�9x���cx�istutil�z z ��Qtk@-��nstalle�##�a�g�\�� not ty��9�g�8x{�ll inst�>>� ��:��rst let����a�,�0��pitaliz����q����s�wut what�ee���RG 1�t only �����64F$ it bob�| | ��.���st capi�����w��8\~sue at �99�z�|�.bHror no ����R iOe[nok pro ����uO9Wthon do�))���[�G�running����b�|��pX�st file�����)�.� mysql ��wDnumtup pos�����Od� �Yarser i���I#g�w@r no mo�''������info tr�[[���]��=�# lf myf�!!��m@�+�3 python�� � ���� Tqimport ����4��7L_�~pip bui����\)�c�-��n repla�����;~^Hork of �� 2���u after �{{�Gbably w�66����Zp�� helps �% % ��Xv�:�d of dj�. . ��ռ�("�he foll�� ͦd &Dport us�vv��N �SY native�''�r��f Уe with �ii�J�-�3�yu can u��k���� would �;;�K��t�pG line s�<<�sD7��W�;then on�������`��>t you w����KP�ЗI<9look up�� � ��F <� package�##��%���o�be when �A A ���&�08�ction m�22�е4�� � by the����W�7� B� python�,,��ܽYH��approac��� �OS} as per�""�VV��"lue of ����$׸� n x de�@@��bx��e�bjects �H H �_B�YS}�rameter�99�Ol�4mS:�a names������)�z mutabl��_�[T_�ur exam��������n x the�����`�U�EOPand x f������b�x3q x appe�99��Xfp� x put �NN�Ǫ�x>�� the di�  ����G�Nr@ng a go�R R ��#���/ �ojects �>>���TKބjango s����&Gix}w�ptools �����VP�e gitig�W W ��!'�J��files p�X X �JJ0n�gs dist�II�r�lت�� info i������㲘Z� ip log �����킧x07 unit t�22�_�a+a= cache ����7���]NR�ations �qq��,���Ue ango st����ߦ�P�g�� this d�>>�'���!�*allows �������� +�tandard����� �.k�rscripts������_��%really �WW�W�rx3Git foun����0��?>� defini�FF���Ny>mOet requ��)� foo he�n n �_��g- � xml in�o o �򐈸�~� t respo������t,r�dl xml ��ҕ��gtext xm����*4�Al��d on th�ll�B���e-b3 object��´�q@.�Ghon mem����Z�u}4�ecorato�����}eCo�es stor�II�)���J�cdatabas��I|�b$F0te that��z]��H�sed for�hh�Z��Yw�he defi������ H&�ross va����ҵ�p�X�}operty ����ҷy�u#�Pulate t�������Q3�|lf a pr�  �wG� :�c existi�  � ���p�, intere�  ��"Jk�Y��fore py�11�U���� decora�  �<�pvL�nly to ����di�/�{�}an exam�88�܌�F�A�Oerty de��/v�� ��f attr ��_�� �Bng a re�����t��K\�he typi������L6j��ooks li�" " ���M�!n� for in����i�4j)2��related���u��!G�� for so�;;�*��Wa�Ku can e�PP���2�5�Q path t�����Z�zwW> files �������)G�t secti�TT��f�B�5on and ��ۆ8��_nt see h�7 7 �H̥�/S.Twhat do�: : �/��}/� run py����ײzX�Lڍple int������yp:� when a�;;�T�;3~�ch buff������uuDH�ns i ca�$$�����j4�but to ��'t�� '.letion ����o�aP���ion is �  ���i-.brt mode�CC��" �tumble ����[�X�ility o���4�"N�ein sqla��i'AY�D�� an or �����O��}�o do th����z5��uessbook�����()��5��ulger o�/ / �ų�)F�%thing l����r�L�=òk filte�::��WW~�x�so inst�tt�B/���d�mstien s���� y a;rs filt�**��� ��dressbo�[[���J7+� parent�  ��3�&��� preced�; ; � �X�your wh�� � �P���*��dr sess����r���x�Cessbook�__��X�7~astname�FF���?�N �inst th��o��\O3@�not def�f f �/k�d7�?te for �{{�_kQ&�{.W can i � �/�A!�`� int in�jj���h�ng it s����=/N(g built�� � ���w�p �t does ���������"t from �� � �/r�zt!� for wh�$ $ �����G�2ad i wa�RR��Z;�p� byte va�==�4w��/g�answer �bb��w+�=)��import �QQ�szt�`�{ bb tim����:�9�rting a�����k��{n��dule is�JJ����ITg timer �� � �t�awFJ#rting t�������!�|eve tha�����އ7 �d struc�����\�m!�we doing�PP�'��E FMod per ����o�6�Iƃobably �aa�ǒ��}���t easie������U��s in ja����S�;7�g��ial the������c��I�s name ����ЇQi�t and y���P�|obit of �99����� you ca�������<@{m� functi����ϔ�G�E �e retur������&é:�pample d����ۦ� [8� module�77�7�c �e from �K K �'a�_�!�from th���������L�� you cl�__�Z´��v�ackage ���� .�C:Cbaz m g�  �$��0�esses t�TT������2�s from ����wM��.W�ltipart�� � ��&қzext imp�s s �b�U�v� subjec����"�w�e�ple com��yS��~�imetext���s�wKdy smtp����o������g cc sp�  �*�&�Np@�this re����9��͘su�trying ������י�rfrom em�> > ���w�/ Emtplib ��?`>(8odebugle�KK���ś�K�� recipi����j��YW#or just���A��,�>of obje�TT�u���C� constr�# # �!�?@��ast ker�����ӫr�|H�print p�NN�� ��@��ython i�= = ��W۪K�e ftp cl���������04be redi�::���+��� stdout������A�A/looking������WI� buffer��Nj$��m�o impor����l��ILmblah bl������}� parsin�FF��o�� I$�hich i ��G����1^�g ontol�RR�oMc��G�Rp dbped�00�y&P��f@�en a gr�� � �໵���Gagainst������%��_{}��W��3gY���� Z E��g\�c�=,����W��*2�3�����s�f\��GG����O3�q q �_W]�Mj�h�  �r��u1�>>�?#�8bV�����\�Te�����Gm=~K����O-'�N:��� � ����#T����ef��T�����O �r�]������WI}�g! ��##��,N�>�W����w^�rZ�?����G����0����������[7Wd����G}�}?T��??��č��]�����[�M�&P��++��e^�.L�>�� � �Asb�\�[�22��]�l������Y)�|�TT��~�wLqL��A?;�|������)����[v���Y�.�P .�&&���p. c�� � ���ڊKiC�gg�l�p�_Y��xx���,� ���((�Dd�wl�RR�l�6ۙ3��SS��H��s�?�z z �<�Q�  ��������haP�����L�؞W��� � ���4�  �r�r���e�33�Z��� �p�� � � �V� �i�����8�"s�������o�f2LI��� � �b+1�W5�&�������6��� � �/y�@1���pp���[�f������f�!C�������ʑYA������@�j ��GG�J�� ��  �[�'4�-ns����[=G��@J��������͸l�����c�4֟E���uu��s�E�������N]��yy���p�:�v�ZZ� ���$��NN�;�y�Y���__����wp���,,���zJ.V&�;;�C��D9�A����J�}�nZ��}}�s0�RMJ������;��� ���WW�+3jbu+^���� �m�QG��� qIUGX����s ���(D ����k��7�4�8�����-�yu���� � ��&��e6" ����;���@R�)��32�7|NX��FF��GhM�L�!!�s�d^s�� ��-z#8�#�����hb$d`t�����c�=��F� ����{C��� �L������t�yV��� � ���$�8~�V�UU��?{m�b�����Fz_Q�d������j�9�����Y�r$�$����$4-)�ss��R�b�?d��<<���6y2H���ӋQ3�B�;�PP�ބH�|��YY��|�}JgB��--�~�;D�Zwz�ww��PPe43p�..�|�`M����^W��x{e�99��&5����jj�Nš��z/�����V�j��C �����Xb�1Mxe�cc����N~p��  ��?�� j��WW�F�$i"Y I�JJ�����5������6 -I�{�������"x�I����^� ��s;u�� � �f6 �^!M��DD���a 3 m3����n͹7�)X������K�O�r����.ì@VQ�>>��tH�^����������T%����������T�������f�Qcb������V^��hol�ZZ��U0o'`m�����^��+n{�**��>��T���99��<�:[��  ��)�p1 �����V}�50~P������i4�N�VV�6��ch���� � �V< �C�����~�Am�}"�����GV�_����������wy� ����G���������}��Q}`�� � ��Y �8������6�3^�h[������>3(�[������³�f������F�����>>�Pg�;G����0�<�H���dd���Usb��99�(��"�B�{����ur@����yy� )�`KL��XX�ȯ�?�=�������rBl�%ow�����q�SV������8���!d1�������>- 0��//�p��(c\�������_�s����������JLG��������|�6a�FF��11</�~�33�`#��+������8 �<����ug*�# in�((����7����RR��%u�J^`����|��=�-��{{� ߐ�ҏbiz�� �1G�#���dd�L_�wor�r�����h`�����$ �*�&�defa�**���\�~������Ԯ��O�re�� � �Dt��0�r�,,�d�K��(B�metap�vv�ԟ^���$� � [���0� isi�����O�^SKd�ff�Tg���(protot����$�4ߤ/� +�� � ��N��&#O�prin������TU2�`�SS�d�b� rYsort����T +ކV�$:����$�� �l��thing����L�UP4!��7�����0���out�{{���^��@$^������)ׄΌax�� ¾e>y1��� � �DR�E�z�bdiat����|-Qהc���<��� ,+present��,��?�R�����?��pl�( ( ���f6g��oo�4@��r��ernari�UU�����jv�������,�v�Y�trarili����<��I��p�xx�����t�ticl�BB�Lgxn�:�l��� � ��vRf�3�pystem����d�W��Gbl��tt�>Z]P[=��88�>h�)B��er�SS�n�,+ x������hopL"�&��kr�DD�nKA˄=��c��7�����d_, >��clev�� � �Ft��)9��������?Ʉhl�QQ�n�ϒN����V�����doco���� �zxs�������7��[�pas����B\ Xs� �NZ��8Vputfil������P��Wui ����#0��ustor����n���9I���[[�ɻ|F wfloor�� � �nJrN�08�>����rm�ކmedia�XX���=D�g4������\bDbc�ie����BU��h�V�� � �j,�� delet����z�\W \i�������G�r3tuit�� � �J���@G�����E�oTFreportl�  �z��o��*�������[n���tract�� � �^�$������S�s@storefi����z� �C>���PP���JW"9cam�  ��l����� � �z�]�Jt�solut����z��.�����������( 0m����ƒ�mj������K�T�Fdl�������c]z�����<�0t�Ks�rt������x_�T��JJ��Uv�|S3�rs�99���s:��BB�L�~ڈ n��JJ���/&�5�Dt�""�\w't~S��it�ZZ��@ĭO�i�XX��=� �f�������~|�[,�8in���������b�����L�LA�I����LsFh����ۯ>�o�ade��V#| uf��#�� � �M��=>s��v�%�(�H��B�7����n�e�$ Ncomb� ����{]�`����Vl��f8Iby����.�1X~t�I�  ����_��est�BB��7Z�$h��o�22�f%nY�\Q�cus����v��=K*��))��ҩ�*��abst��������0 �W�p��VV�~ʆR�vYforb����j�E$b��^u?{r�mar����.�2�s���ss�6��k�%offen����w�W�TVCp��7���������"��inja���{E�C8w��]]�/���^&cycl����'�[�%�g������$���ot�� �f3/ A� ����kXY��straigh���l�wv���**��(,C.Ԡk�``�}p�9v�������f:��V�2arenthe����%k�4����))�����K�xerror������Ě�d����Žm��Andigit�ff��ߣ��kIN����������*Ƭit����JHŦ�nCD������LqY}�endum���M��O �y�����c�u͘P��d��88��%�w��������7�Fuward�BB� i��yX�����L��`�������3fu)w b�$$�����i���KfH��� �� � ����q�tur�2����M�GPsu����+x�ŏo!Yventf���*y-/6, �HH���ȅ�ZE �� � �� ��g�unh�VV�fˡE"a��Q�;;��N��49�b������%ex%���������;�)resu�CC�F�FY%lwiden�����7<��)�������8��,B׫jus���(�%l{O�,�B�7����,E| Ev�denot�oo�TQ��do�x ��,h��[�arch�����f�nQU��B�7�VV�$ �r3*Dadminis�� � ��_c�l�g? �cc���-zVm}?focus�_ _ ��I��B!m���n��O)�rogress�� � �n+g��3Y�h �{{�>���L;�restar����J�|����&&��r(�galrm���a`�U + ����2Ux3UKgl����,�lج,�4��� � �Դ�2gULviou�//�L"�ZeY �� � �,\�2J3�Sropag�����SU�B#�\��;;�$:��4IVress���D^��-������G&��>~tr����7�� � ��9O~����faˍ�iXBlar�����!V4 S�<<�^ p�i�#her�����Hk�: �"�� �_�s=�`�������3�W/F�''��X�d��88��p�<<����>>���y[)7��� � ��@L�k�l�����D8ݮz�>ack����T�q��G�����l8AaV�*�||��Ek�k08�he�%%�3�!*{��v��~h��h���ss��KAqs`����)�2f~ phid����]-�>��� �� � �pa�Ov ru�  �HLI������ ��.�)@�sess�WW��}�Kj4� ����tw��p am��4�%�i@1�����Ԯ�u8�pragm��|{S�q �� �����{�Z�#�get�����~�YqNB\3��7�bb��aN��o�\io�pp�j��gLn �� � ��+�7�a 2pret�� � �J��P�E�?�))���ЬB=#'cp�� � ��feY�vD ������= ��astyp����,�~�y_r���22�t1N�Ak�ullback����w���+'��� ���eȊ� �unpred�ss��ă��" ������f�w~&lusu�� � ���"��xn� ����`�%�jƺbenjami�;;���-�o���FF���kgx��enium�����h�K�GG��D��K3)ypasswo���Vc�&���� � ������python�����ݎx}���������ɱogofil����-������ � �Y�ILg��ument�PP�:��}o2t5��+� �U32chmark�� � �6�Eph������VuX��|�f����(�3}{ڰ�����ЉY�>0�am������OG1� �� � ���ȉ�^I��7�22�֋��YNa����Z��F�������S�ԅ�H0�� � ����`���==�R����u�rt����+�����vG�� � ���$h������ �.g f��22�ޥJ�Tl��jun��������&��h �� � ��-G�� f������C��&��22�ԪX�/f�suff����f\x�`N@� �;;�V�:��2�py�@@���A8=�"�� � �� �UVs��httpb�����`�-v��� ��2�{�V �Qrvh�DD�z�� �������7�����%�@��9wp������Q�f� ���H'�'4.Cobj����R%$H]q^�FF��'iMLTNveloc��*`穤;��"�����r�E�resea��BX � B�7����n���)��stng�cc�Jl��gg*M��KK�c:�0$%^triang�!!��51� ���7����������p�I I ����E)s�nn��\�m��ordered�==��� ��io�7������z��5�5odinga����ܽb*�[�� � �1��{�5pencva�##��v:H�%ۨ��� � ��!�Δ ��  �����V+ �����\�E^I5dium�������2ז��HH��)MR�GKL��y�Xu���JJ�Y�E��jK me�  ����*���������JscH4���I1"qKv��yy���e�*8�modul�� � �1��n�!��__�y�{��`I ��������1g/��s�����a�~�d�}}��b�Z$n�ww�����-)=6�� � ��*� ��=ru�||�1n�5� �+i����������l����Qئ �����a��L>Dpor�hh��Y7��Xg������J�U-�n���2P��.�T(�R�7�����긯�|�Vapac����1��"Z`{�����_11،un�TT��&��m����� � �Op�� �Ptbox������q� ��� � ��+o�/5�n�@@�O�m��u�������'� �N\�F�XX�?cK$�u�n�,,�玅��G3slef�����?O�1G"��rr��R7��  redread�;;�?���pK$� �����ZC(* �V��c#4Am ��������s��B����&�U����hQ���C��φ#���������I]�1�S�>>��׀�� �yb�� � ���%�aj������5��Gd��22����&2>Nn����+�xc}ڈpp�TT����IS��phet��z z �{B�J��``��t��\*Y�oo��D�x#�" pai��{ը}�� ��ÙP� G�s�CC���w��������u;�+5msgp�CC��T��/ ��71�  �*)�r�0�dfu�**��E $]����vc*�[ onli�����ڠ U�>@����*�n�VYs qui����b��̚M��  �����V�bookke�� ����t���������e�S�ea�33�:���(|/K����J�^>��arbrita� ��T��&&����t�B&t��setve����<�r�~A�����Į'|�P eautifu�tt�<�����--��[{k�Oradiu�������< ;�7������>�E>�useatin�**�� ,Vu61��������o��sha�YY��XF  o7�����2YN��En,coll������v�tt��4)fz�������uR(ϩ���OFl�rI� m���<KN#d��9��y� L���q mX'zb�?2�@@���M�R-~la����ɛ��[��bb�QK�q$��''���!�!���vv�A���^hm com�- - ���߰~H��!�� �w�$�m�MM�y�(��DۿR�7����AW�'4�quas�}}���l�D�)q�ii�����>�bu�SS���5�-ܷ���7�55�)���s�ssquee��&�l�F��  ��\r�U��tol�  �i��]5��  ��^��@W�helper�����"��:l d��>>����NM��pros����ڶb�{(�99��@��L )�lineno�  �jj�7����������NRjamyl�RR�"O�{l2������*Zg�YB�\etpid����dbe�0`�����z�\� retain�����>jK֘�7���������$e�row������W�X�����:�?3Ttheya� �j ��mL7�����75��H 8ker����uT�V�x�����A���m�outh�VV��T� jFK���  �l��" �n������9C�����J,��.��nea�==�ݥ}^4;������-�.?kGl�����XJ��c���>>�G�i�T�bbler�??���e"I7���55�g&��������/ ��s7�-������1@��v v�CC�18��h����7�&&� x�������y����N&]�����.V4\�se�nn�y�cq�7�����Q ��%���JJ��FR�'&���\ \ �!һ| /g8che�! ! ��é :�B�TT���J�.��h��V�P9 �pp��b�;s8cram����tD���H��_�@@��>�Ü.��py�@@�l��oK4������8‚G6�(lbyl�**��oXA��c��oo���f��7blian�  �TT�q�B�����7?Q�2\jon����H�h9G�����Q��Dy��bei������P!w)����� �Q �gung�ii�OT���"�55� v��Ganzrf�� � �QPb�P������� ���)]*�hoii����PP�)�� Z{��L�99��!�ϲ4�sdbshel�����<�/N]���& & �����fS�ream����pm �,,�T�F�/,xdivisib���b��{ee��77�Q��7�[/Bteabl�* * ��0G �I��+ + ��vCI��loppi�yy�Y"�׫�(������7jj>�3estrunn�JJ��@����i����a7pʖL�other����y�ܲ��������8��� �~~�����&��� � ���~�zH*qadmin����҈��U.���������^�C$��������U=́ �  ��2T@D8y �NN����33y��� �������*xO�sh�22�J!<�;db�~~���̈l&�log�0 0 �"�b�� �/ �]]�z��c|�lli�>>��!�lKb@fr�5 5 ��DD ^ox�����z_E��aei�XX�2n!�:s���  ��D�#��sta������p�F���qq�Z)��~�wa����J�;F6���??��%���)��verb�HH��ۡ� O���UU�*�9y-)ce��*��:9{�~2��7�rr�z���b(gemfi�~~�"���4�PC�= = ���I^&zUfvy�FF���fʏ!;���Z�7�B B ����i;��qb�� ��a�V{�^�;;��i'�0!�conc�D D � dZ�A��$��7�����-6K VǾpasswd��b)��p����ll�"o?W,�recom�99��Q\�n �|������r��|5�evenbit�������]ъ�����B6ώ2kMdlat�dd�z"*��,��7��O O �"%�O�+�9ringref����o9נ* ��ll�bƈw�jE�marku����jB�Ļea7��W W �r*Z�C`|�da�� � �Z�}z6�K �����Be� �peedi����~��aHc�F��oo��d֝f�������&Ӂ������<�J�npertyp�����S�^/������/~"���00�J�ք �����,&<&|lo����bP���Q� ��������ght;����H_#�y������-e c��� � ���/^����ʃ�C'�ڦ��7��UrR=eA7[� ���g�(Q '���7�SS��}��S�[�II��tR&�ꮨ�7�y y �_���Ay![�����ڪ��F���7�  ��^fJk$}�[����'���w�(���7�� � ��� �!��[�� � ����a1E5๨�7�� � ��$���h��[�����C3�n5�����7�� � ��� f�h[��O%���H3����7�X X ���Sz|y�[�� � �W�&J�(Ũ�7����7�3,�;P~[�gg��;1��\#vΨ�7����?{5�3?��[�jj�WNJ�T�,@��7����#��(�0[�..����a,\�H��7�����:u[0��[�  ���@|j3�Q��7��r�7 � �![�  �2�,'\ q*Y��7� ��L3'ev[�99�r�%�'t�b��7�WW�����Ng}A[���� ����>j��7���K�M�}�^[�BB� _�۱s� s��7��� &�Lr~�[�OO��%�K��{��7����r2Ab4 ��[�``�Qk��'Ӷ���7������9��{�e[�  ���7h��Q���7�//��`���?�[���d�rf���7�ww���Kot�[�  �:Z+j�-�����7����r�MԪ�4[��/E�f_�����7�11���Wş[8[�  �ǘ���5,Ω�7�  �_= 'V� [�  ��D=��=�Cة�7��<���[��� � U ��7����Գ ��-°[������-3$B��7�����tl�p.o[�# # �Y�P��w����7����d�6�/RJ[�����OYoq�#���7�DD����i. ��[�, , ���}< oB����7����1�G��[�- - �����^Ei���7�. . ��zЂw�M[�Z Z ��,f*6���7����"Ota�F?�[�HH��4.`�)�H ��7�4 4 ��V�r�4��[����j�Lw�O���7�; ; ���d�Hq�[�  ��sp�M!��7�77�:�d{c M[�cc��&l��D,��7�//��q���[��r�&��$��7����lv�a+[����j8.O���*��7�ww�ڋ��9[����z��Ƹ~X�0��7�����F\#, ��[��Z�r��5�6��7����� h��\�[�<<���&֕<��7�����P&J4[�� � �aېaj-�B��7�00�����n[�**��}��3&B;H��7�����;�֯a�_[����_U �\ ڍN��7�� � �w L.)� [�����G�opP��T��7��Oe���P�?[�OO�w`Oԙ��Z��7���������%i�[�����2a���`��7�**���z -[���85vDE�f��7�����;����[����*�0r�wk��7�����4�9[{h�[����[�--�b��:}v�|w��7�JJ����"��[�����C���q�J|��7�  �qSҪCw�O[�??�y�:H�H���7����ڠ���2�[�����Ø�7쇈��7�55�2��Wy�[����g���fԍ��7���������5[����y·0�$~����7�~~�ygS�j �)[�CC�����)����7�����t��d��[�( ( �AiW�b;U����7�����W�dF~�[�� � ��P�Hn�����7�������k��[�2 2 �rhXҤd����7�??�*�F��%b�[��������*%2���7�@ @ �J�Q�X>[����*C�bP���7����"���;�[�S S �����>,���7������ 7�104[��b�Ve>�ê�7����Z2D�'�[�xx���a��Sh&ɪ�7�� � �钸�l"�[�� � �������u  8����I���lw0h[���}��"�� 8��?KQ� ��[�__��q�v�@A 8�  �_UBd�Dm�[�  ���2�Y� 8����c*=fl�9[�VV��2-xF�! 8�� � �[����r��[�w w �����i��& 8�CC�qKѬ 0:[�  ��A�l$2#+ 8�����<�x(P [�  �b����0 8�bb��2@\&{"g[����� �%�T��5 8�����1CN��[�����{"Qa�s9 8����aׂ��74i[�YY��{wWJ�> 8�����(�e�X��[�8 8 �bޕa�y�C 8�||�J����,[�44���#�c��H 8�Q Q ���,J X�a[���G��9|N 8����AW%*<�[������ ��LY�S 8��������x [������M�f�X 8�����(d*[� �<�(�KD~�^ 8�BB������T�[�""��5W��@�;c 8������YJ�[�� � ��C��J�bh 8���br����[����� )Zpm 8�� � ��K��cl�[�hh�����!r�t 8��Ɇ�9���[����r�B1y ��~ 8����:.Q��"�[����:��¬"�"� 8����b(�n�i�[������5D�3�X� 8�''��C��.!S[�JJ���U_$d��� 8�ZZ� FW;zp0[�����*@&H�=� 8�����w�p:/0[�cc�ڜ� �e�P� 8����r�43�$[�� � ���n~G�� 8����0�t1�d[����A �p�i� 8�� � ��wP�u�U[�xx���(sC� 8�SS���&��[��������@i�� 8�����tČm8[�) ) ����� D� 8�FF��?��6��[����|=!_A� 8��j����C�6[�����N&T�� 8��:��Ry�C[������5�Ќ� 8����)�_)��[��qHڧ)|� 8�����Mkq���[�tt���^�Os��� 8�� � � �T��[�UU�9����9�N� 8����!��>K�b[����aːDt��� 8�BB��\�1x+[����q����[�������1�J�� 8����A$��?H�[�����#�K� 8��"�v։ �C[����z�&,le� 8����m���K��[�� � �[����z���gv� 8�  �R�@ gR�[�  ���d�fB�% 8���� p� ��[�����O1�2��* 8�ll��z�'��7[��"���>w�0 8�����w�F[�gg��b�)�= B6 8����T81Gn [�����l���< 8��z�UJ1O�[�����F�t(�B 8�c c �B5���-�[�VV���J�mH 8�����ע� 6�[�����OU.`�M 8�d d �b� �7I/9[�MM�b����J�S 8�xx�*���[ '[��zT���>�MY 8����&�%� �C[�e e �����mm��_ 8�f f ����Bm{�[�  �2��5Gk5d 8�kĵ#�;�[���ˊSw%j 8�vv���l[[�ii��\� �{o 8���3�[�o[�S[��X�_��u 8���# �=��[�h h �qtz3N�z 8�C-��+�l[����"җx^9� 8�K�Eݾ$�[���#�yո8�~� 8�==�`�3͋[�tt�1s�[�o� 8���35�y�Y�j[�--k�̿�}��� 8����ƥfj[�,,_[WEZ��� 8�55��W$Qf��[�WW��av�d�}� 8����V�r||�[�� � ���$j� 8�� � �[H9�[���(��p,9� 8����O&����[�--�}��c5� 8�++7i��f�[�����x�!%+`� 8�� � ����s�[�� � �Ωytn,� 8�� � �B�:us�[�������5R�� 8��=�U2�[���o"��l�� 8� ?Ձv�^�N[���m2~�� 8�� � �(Q�S�_[��/��9d�Y� 8�o�0:\p��[�r r wI)K��� 8�����Tb�U�a[�$$�6�[n"۫� 8�AAo#�v�x[���g�ݴ�6��� 8�y y 禫��[�[�$$o����K4�� 8�66�� �[�����a�� 8����73��[�o�Z/O�� 8�22Q?��6��[�7q����x� 8����3w|�T�[�[[�O�)q��� 8�&&W��� G[�bbo���zm{ 8�� � ���6eX��[�� � TN W ��lJ�7���.�r{T�[�%%�aA��0� sJ�7�55�[c��~5�[���:]]�NzJ�7���j2h[���̥�ucW�J�7�����.b*\2[�g l�w9Kp�J�7�ssWϵ� tZ0[�22��qB4��J�7�<<�Klk\�F[�g�G� j6��J�7�OO�2�:Ub[���u❰N�[�J�7���wT���[��[���G+3�;�h�J�7�� � o�ԕ��[��?d�- y�J�7�nnO:� Hy�[�  G;���J�7�o��u:�[�� � ϝr)�}�d�J�7�� � oA�� hn[�7df=�U�J�7�� � �uyW �[�� � o_2�}�J�7���К�����[���8U}yV. ��J�7���8�G�;fhi[�� � �ȣd ґ�J�7��F���z[�J7�Re_��J�7�XXH{f$� ?[���(�,g.@��J�7������$v,�~[�� � �5� |��J�7�##��N�Y�R[�XX�1�#a4��J�7���`HFtBF�[��� ��Kx���J�7�YY�^gpj��[�O�O�YTp��J�7�  ��W �*[�>>����b}��J�7���/�� z[������~i]r�K�7�NN�^4� 'S[����KN K�7���� �X�e[����Y��i+�K�7���oS�<��[�FF�/ԑ$K�7�ww���#�3��[����/��hs�K�7�]]wxU�sg [������m�<K�7�cc/���hC�[�**O�'�*_��%K�7����i�� w��[������l��+K�7�� � ��́y9=�[�������QP*2K�7������=2�[�33� �+ ~�$8K�7����@��+>[����OBj*T�?K�7���I �6�x[��@�f�v�EK�7������>#q[����V��#��KK�7���T \�("`[���t��Rn�RK�7���,{%H�.�B[������;!g�2XK�7�99�/�>E��[�  �C���w�_K�7�  D���oQ.�[���D��;�<�eK�7���,�7M'UE[����-F~�VlK�7�~~\&� w[�  ���� "QrK�7�!!ܱ�H�[����J_ �lMxK�7�&&tO6o(y�f[���-�z��K�7�����3��[����m�X���K�7������:�,�,[�� � |e&��[�9 9 �ڲ�4d��K�7����[�N/<<[�DD��o�i%C�K�7�JJZS�4V��[�ssJ�F�$E�K�7������)u��[�,,�����8�K�7���Ɋ�C Z�[����?�m�תK�7�����y B��[�����:�%�G�K�7����6Yttj�[�//J��}�t�K�7�11U�P�O�S[�8�d��3��K�7����] j_��[���8��-=S2��K�7�11�F�>\t[�<<��1[����]i� ���K�7������d{o{�[��pP4i�K�7���F`uxe~[���H�VI_=��K�7�44(p�[�$k[�X���|� �K�7����ٰ�d �P[�� � (��\jT�K�7�pC'��h�[����; +���K�7�ccЕx�:}x�[� �@U�k)�K�7�����z �0[�QQ��r]�F���K�7�**P���{;fr[���8>�ҀM ��K�7�  ��vV�YI�[���;��x�L�7���rҿ�\C[���0շ�br�L�7�����?��Փ[�ii�"G�i 8L�7�PP("4�)��[���`��g8.X�L�7�����L��[�88�r ���L�7����� �ge�[���H[-�Cu�$L�7��� T���fc[�RR dan=K��+L�7��� ��4�;��[�ww �˱|�T1L�7��� �IA!���[� �u���8L�7�FF �?�h�P��[�� � d�.�rCZ>L�7��� T�$�@.qQ[��� ,G $��DL�7��� ��lE@ ��[�# # �8)��JL�7� ����|Zk|[��� � ��0_��PL�7�� � H�ıxWn[�TT p,I�,BVL�7��� ��ht��m[� �v�� lO�\L�7�GG ��h#��[� @ ?кS0�bL�7��� pv�ީs/[��� (�[��%2�hL�7��� `���~��[� `�f�+KnL�7� �W)p�H�[� @/�� N�nuL�7�22 p-�#i��[��� ,���z�|L�7�## �΃F�h��[� @��/n��L�7� �p>l�t2J[� VL�"�L�7�&& �$씌C�\[�cc � #�M�`�L�7�] ] �#��E�[���� -t�]&wm�L�7���a��O��[��B���8.�T�L�7�))��C�G�z[����z�q{`d)�L�7�L L ��p�tN��[�99� �k��Ug��L�7��r_��j�[�oo�=�pZ+�#�L�7��n/�t��[��[�������Lk���L�7����T�����[�oo��e ���L�7�����[,��[�n n ��fH�Q�L�7�TTr[��[!T[�CC�[���wH� ?2��L�7�t t 7�4���[���oGv �z��L�7�� � ��P�U �|[���'�Vo%U�L�7�__�̺�+e1[�??G�(iw���L�7�``����4c �[�  G��U���L�7��.,HN+?\[������bEk���L�7���^(lfSD[�� � ?e��T �L�7�QQ�n;'Fy$[���7;}�/�#M�7��2��G�[���x{��:.BM�7�� � P�4B~z[�� � �,m�s2�� M�7�""�q�j^<7[�.�$j�$�:���=]U��*e.����.: =�GMPMW]e�fMiBmwoBr�x�|���&����}������¬+�������n�S�L�$������������� � Y�N��!�'�*�/�����5�:='?�E�I7L�S*V:W~\�aAc�����f/i�q�sgv�����{{�6�ʇi�ލސ�j�v�W�ϣ)�R�U��������d�U��a� �������������e �Z����� �#�%�*�09X>A�D3K�QfT�VQY�`}d�e�i�l�q(s6u yD{L�D���r��)�5�$���l^����Ų)�����H�F��[�������]� �R�(��������j -�����\ �$h+�12���\7#9�HMW�Yo]'g͘��WiIk�pJw{!}n�8������5���� J��^�`��������������:������������������ � ��ff�� � ����� � �**������$$�SS�������& & �  ����U U �� � ��%��a a �V��7�������**��� � �����((����77����� ��� ��XX����� � �� � �������2��7����mm�ll�? ? �99�[INST] How to execute multi-line statements within Python's own debugger (PDB) So I am running a Python script within which I am calling Python's debugger, PDB by writing: import ipdb; ipdb.set_trace() (iPython's version of PDB, though for the matter I don't think it makes a difference; I use it for the colored output only). Now, when I get to the debugger I want to execute a multi-line statement such as an if clause or a for loop but as soon as I type if condition: and hit the return key, I get the error message *** SyntaxError: invalid syntax (, line 1) How can one execute multi-line statements within PDB? If not possible is there a way around this to still executing an if clause or a for loop? [/INST] You could do this while in pdb to launch a temporary interactive Python session with all the local variables available: (pdb) !import code; code.interact(local=vars()) Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> When you're done, use Ctrl-D to return to the regular pdb prompt. Just don't hit Ctrl-C, that will terminate the entire pdb session. [INST] What exactly is the difference between shallow copy, deepcopy and normal assignment operation? import copy a=”deepak” b=1,2,3,4 c=[1,2,3,4] d={1:10,2:20,3:30} a1=copy.copy(a) b1=copy.copy(b) c1=copy.copy(c) d1=copy.copy(d) print "immutable - id(a)==id(a1)",id(a)==id(a1) print "immutable - id(b)==id(b1)",id(b)==id(b1) print "mutable - id(c)==id(c1)",id(c)==id(c1) print "mutable - id(d)==id(d1)",id(d)==id(d1) I get the below results - immutable - id(a)==id(a1) True immutable - id(b)==id(b1) True mutable - id(c)==id(c1) False mutable - id(d)==id(d1) False If i perform deepcopy - a1=copy.deepcopy(a) b1=copy.deepcopy(b) c1=copy.deepcopy(c) d1=copy.deepcopy(d) result are same - immutable - id(a)==id(a1) True immutable - id(b)==id(b1) True mutable - id(c)==id(c1) False mutable - id(d)==id(d1) False if i work on assignment operations - a1=a b1=b c1=c d1=d then results are - immutable - id(a)==id(a1) True immutable - id(b)==id(b1) True mutable - id(c)==id(c1) True mutable - id(d)==id(d1) True Can somebody explain what exactly makes a difference between the copies and is it something related with mutable & immutable objects, if so can you please explain me? [/INST] Normal assignment operations will simply point the new variable towards the existing object. The docs explain the difference between shallow and deep copies: The difference between shallow and deep copying is only relevant for compound objects (objects that contain other objects, like lists or class instances): A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original. Here's a little demonstration: import copy a = [1, 2, 3] b = [4, 5, 6] c = [a, b] Using normal assignment operatings to copy: d = c print id(c) == id(d) # True - d is the same object as c print id(c[0]) == id(d[0]) # True - d[0] is the same object as c[0] Using a shallow copy: d = copy.copy(c) print id(c) == id(d) # False - d is now a new object print id(c[0]) == id(d[0]) # True - d[0] is the same object as c[0] Using a deep copy: d = copy.deepcopy(c) print id(c) == id(d) # False - d is now a new object print id(c[0]) == id(d[0]) # False - d[0] is now a new object [INST] Pythonic way to return list of every n'th item in a larger list Say we have a list of numbers from zero to 1000. Is there a pythonic/efficient way to produce a list of the first and every subsequent 10th item? ie. [0, 10, 20, 30 ...] Yes I can do this using a for loop but I'm wondering if there is a neater way to do this, perhaps even in one line? [/INST] >>> l = range(165) >>> l[0::10] [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160] EDIT: just for fun, a little timing comparison (ignoring the boundary condition): $ python -m timeit -s "l = range(1000)" "l1 = [x for x in l if x % 10 == 0]" 1000 loops, best of 3: 525 usec per loop $ python -m timeit -s "l = range(1000)" "l1 = l[0::10]" 100000 loops, best of 3: 4.02 usec per loop [INST] What's the difference between lists enclosed by square brackets and parentheses in Python? >>> x=[1,2] >>> x[1] 2 >>> x=(1,2) >>> x[1] 2 Are they both valid? Is one preferred for some reason? [/INST] Square brackets are lists while parentheses are tuples. A list is mutable, meaning you can change its contents: >>> x = [1,2] >>> x.append(3) >>> x [1, 2, 3] while tuples are not: >>> x = (1,2) >>> x (1, 2) >>> x.append(3) Traceback (most recent call last): File "", line 1, in AttributeError: 'tuple' object has no attribute 'append' The other main difference is that a tuple is hashable, meaning that you can use it as a key to a dictionary, among other things. For example: >>> x = (1,2) >>> y = [1,2] >>> z = {} >>> z[x] = 3 >>> z {(1, 2): 3} >>> z[y] = 4 Traceback (most recent call last): File "", line 1, in TypeError: unhashable type: 'list' Note that, as many people have pointed out, you can add tuples together. For example: >>> x = (1,2) >>> x += (3,) >>> x (1, 2, 3) However, this does not mean tuples are mutable. In the example above, a new tuple is constructed by adding together the two tuples as arguments. The original tuple is not modified. To demonstrate this, consider the following: >>> x = (1,2) >>> y = x >>> x += (3,) >>> x (1, 2, 3) >>> y (1, 2) Whereas, if you were to construct this same example with a list, y would also be updated: >>> x = [1, 2] >>> y = x >>> x += [3] >>> x [1, 2, 3] >>> y [1, 2, 3] [INST] Does Flask support regular expressions in its URL routing? I understand that Flask has the int, float and path converters, but the application we're developing has more complex patterns in its URLs. Is there a way we can use regular expressions, as in Django? [/INST] Even though Armin beat me to the punch with an accepted answer I thought I'd show an abbreviated example of how I implemented a regex matcher in Flask just in case anyone wants a working example of how this could be done. from flask import Flask from werkzeug.routing import BaseConverter app = Flask(__name__) class RegexConverter(BaseConverter): def __init__(self, url_map, *items): super(RegexConverter, self).__init__(url_map) self.regex = items[0] app.url_map.converters['regex'] = RegexConverter @app.route('/-/') def example(uid, slug): return "uid: %s, slug: %s" % (uid, slug) if __name__ == '__main__': app.run(debug=True, host='0.0.0.0', port=5000) this URL should return with 200: http://localhost:5000/abc0-foo/ this URL should will return with 404: http://localhost:5000/abcd-foo/ [INST] How do I get PyLint to recognize numpy members? I am running PyLint on a Python project. PyLint makes many complaints about being unable to find numpy members. How can I avoid this while avoiding skipping membership checks. From the code: import numpy as np print np.zeros([1, 4]) Which, when ran, I get the expected: [[ 0. 0. 0. 0.]] However, pylint gives me this error: E: 3, 6: Module 'numpy' has no 'zeros' member (no-member) For versions, I am using pylint 1.0.0 (astroid 1.0.1, common 0.60.0) and trying to work with numpy 1.8.0 . [/INST] I had the same issue here, even with the latest versions of all related packages (astroid 1.3.2, logilab_common 0.63.2, pylon 1.4.0). The following solution worked like a charm: I added numpy to the list of ignored modules by modifying my pylintrc file, in the [TYPECHECK] section: [TYPECHECK] ignored-modules = numpy Depending on the error, you might also need to add the following line (still in the [TYPECHECK] section): ignored-classes = numpy [INST] Upload files in Google App Engine I am planning to create a web app that allows users to downgrade their visual studio project files. However, It seems Google App Engine accepts files uploading and flat file storing on the Google Server through db.TextProperty and db.BlobProperty. I'll be glad anyone can provide code sample (both the client and the server side) on how this can be done. [/INST] In fact, this question is answered in the App Egnine documentation. See an example on Uploading User Images. HTML code, inside

: Python code: class Guestbook(webapp.RequestHandler): def post(self): greeting = Greeting() if users.get_current_user(): greeting.author = users.get_current_user() greeting.content = self.request.get("content") avatar = self.request.get("img") greeting.avatar = db.Blob(avatar) greeting.put() self.redirect('/') [INST] Is there a way to convert indentation in Python code to braces? I am a totally blind programmer who would like to learn Python. Unfortunately the fact that code blocks are represented with different levels of indentation is a major stumbling block. I was wondering if there were any tools available that would allow me to write code using braces or some other code block delimiter and then convert that format into a properly indented representation that the Python interpreter could use? [/INST] There's a solution to your problem that is distributed with python itself. pindent.py, it's located in the Tools\Scripts directory in a windows install (my path to it is C:\Python25\Tools\Scripts), it looks like you'd have grab it from svn.python.org if you are running on Linux or OSX. It adds comments when blocks are closed, or can properly indent code if comments are put in. Here's an example of the code outputted by pindent with the command: pindent -c myfile.py def foobar(a, b): if a == b: a = a+1 elif a < b: b = b-1 if b > a: a = a-1 # end if else: print 'oops!' # end if # end def foobar Where the original myfile.py was: def foobar(a, b): if a == b: a = a+1 elif a < b: b = b-1 if b > a: a = a-1 else: print 'oops!' You can also use pindent.py -d to insert the correct indentation based on comments (read the header of pindent.py for details), this should allow you to code in python without worrying about indentation. I'd be interested to learn what solution you end up using, if you require any further assistance, please comment on this post and I'll try to help. [INST] What is the simplest way to SSH using Python? How can I simply SSH to a remote server from a local Python (3.0) script, supply a login/password, execute a command and print the output to the Python console? I would rather not use any large external library or install anything on the remote server. [/INST] You can code it yourself using Paramiko, as suggested above. Alternatively, you can look into Fabric, a python application for doing all the things you asked about: Fabric is a Python library and command-line tool designed to streamline deploying applications or performing system administration tasks via the SSH protocol. It provides tools for running arbitrary shell commands (either as a normal login user, or via sudo), uploading and downloading files, and so forth. I think this fits your needs. It is also not a large library and requires no server installation, although it does have dependencies on paramiko and pycrypt that require installation on the client. The app used to be here. It can now be found here. * The official, canonical repository is git.fabfile.org * The official Github mirror is GitHub/bitprophet/fabric There are several good articles on it, though you should be careful because it has changed in the last six months: Deploying Django with Fabric Tools of the Modern Python Hacker: Virtualenv, Fabric and Pip Simple & Easy Deployment with Fabric and Virtualenv Later: Fabric no longer requires paramiko to install: $ pip install fabric Downloading/unpacking fabric Downloading Fabric-1.4.2.tar.gz (182Kb): 182Kb downloaded Running setup.py egg_info for package fabric warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no files found matching 'fabfile.py' Downloading/unpacking ssh>=1.7.14 (from fabric) Downloading ssh-1.7.14.tar.gz (794Kb): 794Kb downloaded Running setup.py egg_info for package ssh Downloading/unpacking pycrypto>=2.1,!=2.4 (from ssh>=1.7.14->fabric) Downloading pycrypto-2.6.tar.gz (443Kb): 443Kb downloaded Running setup.py egg_info for package pycrypto Installing collected packages: fabric, ssh, pycrypto Running setup.py install for fabric warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no files found matching 'fabfile.py' Installing fab script to /home/hbrown/.virtualenvs/fabric-test/bin Running setup.py install for ssh Running setup.py install for pycrypto ... Successfully installed fabric ssh pycrypto Cleaning up... This is mostly cosmetic, however: ssh is a fork of paramiko, the maintainer for both libraries is the same (Jeff Forcier, also the author of Fabric), and the maintainer has plans to reunite paramiko and ssh under the name paramiko. (This correction via pbanka.) [INST] Why can I use the same name for iterator and sequence in a Python for loop? This is more of a conceptual question. I recently saw a piece of code in Python (it worked in 2.7, and it might also have been run in 2.5 as well) in which a for loop used the same name for both the list that was being iterated over and the item in the list, which strikes me as both bad practice and something that should not work at all. For example: x = [1,2,3,4,5] for x in x: print x print x Yields: 1 2 3 4 5 5 Now, it makes sense to me that the last value printed would be the last value assigned to x from the loop, but I fail to understand why you'd be able to use the same variable name for both your parts of the for loop and have it function as intended. Are they in different scopes? What's going on under the hood that allows something like this to work? [/INST] What does dis tell us: Python 3.4.1 (default, May 19 2014, 13:10:29) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from dis import dis >>> dis("""x = [1,2,3,4,5] ... for x in x: ... print(x) ... print(x)""") 1 0 LOAD_CONST 0 (1) 3 LOAD_CONST 1 (2) 6 LOAD_CONST 2 (3) 9 LOAD_CONST 3 (4) 12 LOAD_CONST 4 (5) 15 BUILD_LIST 5 18 STORE_NAME 0 (x) 2 21 SETUP_LOOP 24 (to 48) 24 LOAD_NAME 0 (x) 27 GET_ITER >> 28 FOR_ITER 16 (to 47) 31 STORE_NAME 0 (x) 3 34 LOAD_NAME 1 (print) 37 LOAD_NAME 0 (x) 40 CALL_FUNCTION 1 (1 positional, 0 keyword pair) 43 POP_TOP 44 JUMP_ABSOLUTE 28 >> 47 POP_BLOCK 4 >> 48 LOAD_NAME 1 (print) 51 LOAD_NAME 0 (x) 54 CALL_FUNCTION 1 (1 positional, 0 keyword pair) 57 POP_TOP 58 LOAD_CONST 5 (None) 61 RETURN_VALUE The key bits are sections 2 and 3 - we load the value out of x (24 LOAD_NAME 0 (x)) and then we get its iterator (27 GET_ITER) and start iterating over it (28 FOR_ITER). Python never goes back to load the iterator again. Aside: It wouldn't make any sense to do so, since it already has the iterator, and as Abhijit points out in his answer, Section 7.3 of Python's specification actually requires this behavior). When the name x gets overwritten to point at each value inside of the list formerly known as x Python doesn't have any problems finding the iterator because it never needs to look at the name x again to finish the iteration protocol. 9|[INST] Reseting generator object in Python I have generator object returned by multiple yield. Preparation to call this generator is rather time-consuming operation. That is why I want to reuse generator several times. y = FunctionWithYield() for x in y: print(x) #here must be something to reset 'y' for x in y: print(x) Of course, I'm taking in mind copying content into simple list. [/INST] Generators can't be rewound. You have the following options: Run the generator function again, restarting the generation: y = FunctionWithYield() for x in y: print(x) y = FunctionWithYield() for x in y: print(x) Store the generator results in a data structure on memory or disk which you can iterate over again: y = list(FunctionWithYield()) for x in y: print(x) # can iterate again: for x in y: print(x) The downside of option 1 is that it computes the values again. If that's CPU-intensive you end up calculating twice. On the other hand, the downside of 2 is the storage. The entire list of values will be stored on memory. If there are too many values, that can be unpractical. So you have the classic memory vs. processing tradeoff. I can't imagine a way of rewinding the generator without either storing the values or calculating them again. [INST] Best way to make Django's login_required the default I'm working on a large Django app, the vast majority of which requires a login to access. This means that all throughout our app we've sprinkled: @login_required def view(...): That's fine, and it works great as long as we remember to add it everywhere! Sadly sometimes we forget, and the failure often isn't terribly evident. If the only link to a view is on a @login_required page then you're not likely to notice that you can actually reach that view without logging in. But the bad guys might notice, which is a problem. My idea was to reverse the system. Instead of having to type @login_required everywhere, instead I'd have something like: @public def public_view(...): Just for the public stuff. I tried to implement this with some middleware and I couldn't seem to get it to work. Everything I tried interacted badly with other middleware we're using, I think. Next up I tried writing something to traverse the URL patterns to check that everything that's not @public was marked @login_required - at least then we'd get a quick error if we forgot something. But then I couldn't figure out how to tell if @login_required had been applied to a view... So, what's the right way to do this? Thanks for the help! [/INST] Middleware may be your best bet. I've used this piece of code in the past, modified from a snippet found elsewhere: import re from django.conf import settings from django.contrib.auth.decorators import login_required class RequireLoginMiddleware(object): """ Middleware component that wraps the login_required decorator around matching URL patterns. To use, add the class to MIDDLEWARE_CLASSES and define LOGIN_REQUIRED_URLS and LOGIN_REQUIRED_URLS_EXCEPTIONS in your settings.py. For example: ------ LOGIN_REQUIRED_URLS = ( r'/topsecret/(.*)$', ) LOGIN_REQUIRED_URLS_EXCEPTIONS = ( r'/topsecret/login(.*)$', r'/topsecret/logout(.*)$', ) ------ LOGIN_REQUIRED_URLS is where you define URL patterns; each pattern must be a valid regex. LOGIN_REQUIRED_URLS_EXCEPTIONS is, conversely, where you explicitly define any exceptions (like login and logout URLs). """ def __init__(self): self.required = tuple(re.compile(url) for url in settings.LOGIN_REQUIRED_URLS) self.exceptions = tuple(re.compile(url) for url in settings.LOGIN_REQUIRED_URLS_EXCEPTIONS) def process_view(self, request, view_func, view_args, view_kwargs): # No need to process URLs if user already logged in if request.user.is_authenticated(): return None # An exception match should immediately return None for url in self.exceptions: if url.match(request.path): return None # Requests matching a restricted URL pattern are returned # wrapped with the login_required decorator for url in self.required: if url.match(request.path): return login_required(view_func)(request, *view_args, **view_kwargs) # Explicitly return None for all non-matching requests return None Then in settings.py, list the base URLs you want to protect: LOGIN_REQUIRED_URLS = ( r'/private_stuff/(.*)$', r'/login_required/(.*)$', ) As long as your site follows URL conventions for the pages requiring authentication, this model will work. If this isn't a one-to-one fit, you may choose to modify the middleware to suit your circumstances more closely. What I like about this approach - besides removing the necessity of littering the codebase with @login_required decorators - is that if the authentication scheme changes, you have one place to go to make global changes. [INST] What is the 'pythonic' equivalent to the 'fold' function from functional programming? What is the most idiomatic way to achieve something like the following, in Haskell: foldl (+) 0 [1,2,3,4,5] --> 15 Or its equivalent in Ruby: [1,2,3,4,5].inject(0) {|m,x| m + x} #> 15 Obviously, Python provides the reduce function, which is an implementation of fold, exactly as above, however, I was told that the 'pythonic' way of programming was to avoid lambda terms and higher-order functions, preferring list-comprehensions where possible. Therefore, is there a preferred way of folding a list, or list-like structure in Python that isn't the reduce function, or is reduce the idiomatic way of achieving this? [/INST] The Pythonic way of summing an array is sum. For other purposes, you can sometimes use some combination of reduce and the operator module, e.g. def product(xs): return reduce(operator.mul, xs, 1) Be aware that reduce is actually a foldl, in Haskell terms. There is no special syntax to perform folds, there's no builtin foldr, and actually using reduce with non-associative operators is considered bad style. Using higher-order functions is quite pythonic; it makes good use of Python's principle that everything is an object, including functions and classes. You are right that lambdas are frowned upon by some Pythonistas, but mostly because they tend not to be very readable when they get complex. [INST] UnicodeDecodeError, invalid continuation byte Why is the below item failing? and why does it succeed with "latin-1" codec? o = "a test of \xe9 char" #I want this to remain a string as this is what I am receiving v = o.decode("utf-8") results in: Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 10: invalid continuation byte [/INST] In binary, 0xE9 looks like 1110 1001. If you read about UTF-8 on Wikipedia, you’ll see that such a byte must be followed by two of the form 10xx xxxx. So, for example: >>> '\xe9\x80\x80'.decode('utf-8') u'\u9000' But that’s just the mechanical cause of the exception. In this case, you have a string that is almost certainly encoded in latin 1. You can see how UTF-8 and latin 1 look different: >>> u'\xe9'.encode('utf-8') '\xc3\xa9' >>> u'\xe9'.encode('latin-1') '\xe9' [INST] Reading a JSON file using Python I am getting a bit of headache just because a simple looking, easy statement is throwing some errors in my face. I have a json file called strings.json like this: "strings": [ {"-name": "city", "#text": "City"}, {"-name": "phone", "#text": "Phone"}, ..., {"-name": "address", "#text": "Address"} ] I want to read the json file, just that for now. I have these statements which I found out, but it's not working: import json from pprint import pprint with open('strings.json') as json_data: d = json.loads(json_data) json_data.close() pprint(d) The error spitted on the console was this: Traceback (most recent call last): File "/home/.../android/values/manipulate_json.py", line 5, in d = json.loads(json_data) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer [Finished in 0.1s with exit code 1] EDITED Changed from json.loads to json.load and got this: Traceback (most recent call last): File "/home/.../android/values/manipulate_json.py", line 5, in d = json.load(json_data) File "/usr/lib/python2.7/json/__init__.py", line 278, in load **kw) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 369, in decode raise ValueError(errmsg("Extra data", s, end, len(s))) ValueError: Extra data: line 829 column 1 - line 829 column 2 (char 18476 - 18477) [Finished in 0.1s with exit code 1] [/INST] The json.load() method (without "s" in "load") can read a file directly: import json with open('strings.json') as json_data: d = json.load(json_data) print(d) You were using the json.loads() method, which is used for string arguments only. Edit: The new message is a totally different problem. In that case, there is some invalid json in that file. For that, I would recommend running the file through a json validator. There are also solutions for fixing json like for example How do I automatically fix an invalid JSON string?. [INST] Statistics: combinations in Python I need to compute combinatorials (nCr) in Python but cannot find the function to do that in math, numpy or stat libraries. Something like a function of the type: comb = calculate_combinations(n, r) I need the number of possible combinations, not the actual combinations, so itertools.combinations does not interest me. Finally, I want to avoid using factorials, as the numbers I'll be calculating the combinations for can get too big and the factorials are going to be monstrous. This seems like a REALLY easy to answer question, however I am being drowned in questions about generating all the actual combinations, which is not what I want. :) Many thanks [/INST] Why not write it yourself? It's a one-liner or such: from operator import mul # or mul=lambda x,y:x*y from fractions import Fraction def nCk(n,k): return int( reduce(mul, (Fraction(n-i, i+1) for i in range(k)), 1) ) Test - printing Pascal's triangle: >>> for n in range(17): ... print ' '.join('%5d'%nCk(n,k) for k in range(n+1)).center(100) ... 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1 1 9 36 84 126 126 84 36 9 1 1 10 45 120 210 252 210 120 45 10 1 1 11 55 165 330 462 462 330 165 55 11 1 1 12 66 220 495 792 924 792 495 220 66 12 1 1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1 1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1 1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455 105 15 1 1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368 1820 560 120 16 1 >>> PS. edited to replace int(round(reduce(mul, (float(n-i)/(i+1) for i in range(k)), 1))) with int(reduce(mul, (Fraction(n-i, i+1) for i in range(k)), 1)) so it won't err for big N/K [INST] Built in python hash() function Windows XP, Python 2.5: hash('http://stackoverflow.com') Result: 1934711907 Google App Engine (http://shell.appspot.com/): hash('http://stackoverflow.com') Result: -5768830964305142685 Why is that? How can I have a hash function which will give me same results across different platforms (Windows, Linux, Mac)? [/INST] As stated in the documentation, built-in hash() function is not designed for storing resulting hashes somewhere externally. It is used to provide object's hash value, to store them in dictionaries and so on. It's also implementation-specific (GAE uses a modified version of Python). Check out: >>> class Foo: ... pass ... >>> a = Foo() >>> b = Foo() >>> hash(a), hash(b) (-1210747828, -1210747892) As you can see, they are different, as hash() uses object's __hash__ method instead of 'normal' hashing algorithms, such as SHA. Given the above, the rational choice is to use the hashlib module. [INST] Variables inside and outside of a class __init__() function I'm trying to understand, is there any difference at all between these classes besides the name? Does it make any difference if I use or don't use the __init__() function in declaring the variable "value"? class WithClass (): def __init__(self): self.value = "Bob" def my_func(self): print(self.value) class WithoutClass (): value = "Bob" def my_func(self): print(self.value) My main worry is that I'll be using it one way when that'll cause me problems further down the road (currently I use the init call). [/INST] Variable set outside __init__ belong to the class. They're shared by all instances. Variables created inside __init__ (and all other method functions) and prefaced with self. belong to the object instance. [INST] 'id' is a bad variable name in Python Why is it bad to name a variable id in Python? [/INST] id() is a fundamental built-in: Help on built-in function id in module __builtin__: id(...) id(object) -> integer Return the identity of an object. This is guaranteed to be unique among simultaneously existing objects. (Hint: it's the object's memory address.) In general, using variable names that eclipse a keyword or built-in function in any language is a bad idea, even if it is allowed. [INST] How to configure logging to syslog in python? I can't get my head around Python's logging module. My needs are very simple: I just want to log everything to syslog. After reading documentation I came up with this simple test script: import logging import logging.handlers my_logger = logging.getLogger('MyLogger') my_logger.setLevel(logging.DEBUG) handler = logging.handlers.SysLogHandler() my_logger.addHandler(handler) my_logger.debug('this is debug') my_logger.critical('this is critical') But this script does not produce any log records in syslog. What's wrong? [/INST] Change the line to this: handler = SysLogHandler(address='/dev/log') This works for me import logging import logging.handlers my_logger = logging.getLogger('MyLogger') my_logger.setLevel(logging.DEBUG) handler = logging.handlers.SysLogHandler(address = '/dev/log') my_logger.addHandler(handler) my_logger.debug('this is debug') my_logger.critical('this is critical') [INST] Displaying better error message than "No JSON object could be decoded" Python code to load data from some long complicated JSON file: with open(filename, "r") as f: data = json.loads(f.read()) For many types of JSON error (missing delimiters, incorrect backslashes in strings, etc), this prints a nice helpful message containing the line and column number where the JSON error was found. However, for other types of JSON error (including the classic "using comma on the last item in a list", but also other things like capitalising true/false), Python's output is just: Traceback (most recent call last): File "myfile.py", line 8, in myfunction config = json.loads(f.read()) File "c:\python27\lib\json\__init__.py", line 326, in loads return _default_decoder.decode(s) File "c:\python27\lib\json\decoder.py", line 360, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "c:\python27\lib\json\decoder.py", line 378, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded For that type of ValueError, how do you get Python to tell you where is the error in the JSON file? [/INST] I've found that the simplejson module gives more descriptive errors in many cases where the built-in json module is vague. For instance, for the case of having a comma after the last item in a list: json.loads('[1,2,]') .... ValueError: No JSON object could be decoded which is not very descriptive. The same operation with simplejson: simplejson.loads('[1,2,]') ... simplejson.decoder.JSONDecodeError: Expecting object: line 1 column 5 (char 5) Much better! Likewise for other common errors like capitalizing True. [INST] Why is my xlabel cut off in my matplotlib plot? I am plotting a dataset using matplotlib where I have an xlabel that is quite "tall" (it's a formula rendered in TeX that contains a fraction and is therefore has the height equivalent of a couple of lines of text). In any case, the bottom of the formula is always cut off when I draw the figures. Changing figure size doesn't seem to help this, and I haven't been able to figure out how to shift the x-axis "up" to make room for the xlabel. Something like that would be a reasonable temporary solution, but what would be nice would be to have a way to make matplotlib recognize automatically that the label is cut off and resize accordingly. Here's an example of what I mean: import matplotlib.pyplot as plt plt.figure() plt.ylabel(r'$\ln\left(\frac{x_a-x_b}{x_a-x_c}\right)$') plt.xlabel(r'$\ln\left(\frac{x_a-x_d}{x_a-x_e}\right)$') plt.show() while you can see the entire ylabel, the xlabel is cut off at the bottom. In the case this is a machine-specific problem, I am running this on OSX 10.6.8 with matplotlib 1.0.0 [/INST] Use: import matplotlib.pyplot as plt plt.gcf().subplots_adjust(bottom=0.15) to make room for the label. Edit: Since i gave the answer, matplotlib has added the tight_layout() function. So i suggest to use it: plt.tight_layout() should make room for the xlabel. [INST] How do I access command line arguments in Python? I use python to create my project settings setup, but I need help getting the command line arguments. I tried this on the terminal: $python myfile.py var1 var2 var3 In my Python file, I want to use all variables that are input. [/INST] Python tutorial explains it: import sys print(sys.argv) More specifically, if you run python example.py one two three: >>> import sys >>> print(sys.argv) ['example.py', 'one', 'two', 'three'] [INST] How to join two generators in Python? I want to change the following code for directory, dirs, files in os.walk(directory_1): do_something() for directory, dirs, files in os.walk(directory_2): do_something() to this code: for directory, dirs, files in os.walk(directory_1) + os.walk(directory_2): do_something() I get the error: unsupported operand type(s) for +: 'generator' and 'generator' My question is, how to join two generators in Python? Thank you very much! [/INST] I think itertools.chain() should do it. �r[INST] Encrypt & Decrypt using PyCrypto AES 256 I'm trying to build two functions using PyCrypto that accept two parameters: the message and the key, and then encrypt/decrypt the message. I found several links on the web to help me out, but each one of them has flaws: This one at codekoala uses os.urandom, which is discouraged by PyCrypto. Moreover, the key I give to the function is not guaranteed to have the exact length expected. What can I do to make that happen ? Also, there are several modes, which one is recommended? I don't know what to use :/ Finally, what exactly is the IV? Can I provide a different IV for encrypting and decrypting, or will this return in a different result? Here's what I've done so far: from Crypto import Random from Crypto.Cipher import AES import base64 BLOCK_SIZE=32 def encrypt(message, passphrase): # passphrase MUST be 16, 24 or 32 bytes long, how can I do that ? IV = Random.new().read(BLOCK_SIZE) aes = AES.new(passphrase, AES.MODE_CFB, IV) return base64.b64encode(aes.encrypt(message)) def decrypt(encrypted, passphrase): IV = Random.new().read(BLOCK_SIZE) aes = AES.new(passphrase, AES.MODE_CFB, IV) return aes.decrypt(base64.b64decode(encrypted)) [/INST] You may need the following two functions to pad(when do encryption) and unpad(when do decryption) when the length of input is not a multiple of BLOCK_SIZE. BS = 16 pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) unpad = lambda s : s[:-ord(s[len(s)-1:])] So you're asking the length of key? You can use the md5sum of the key rather than use it directly. More, according to my little experience of using PyCrypto, the IV is used to mix up the output of a encryption when input is same, so the IV is chosen as a random string, and use it as part of the encryption output, and then use it to decrypt the message. And here's my implementation, hope it will be useful for you: import base64 from Crypto.Cipher import AES from Crypto import Random class AESCipher: def __init__( self, key ): self.key = key def encrypt( self, raw ): raw = pad(raw) iv = Random.new().read( AES.block_size ) cipher = AES.new( self.key, AES.MODE_CBC, iv ) return base64.b64encode( iv + cipher.encrypt( raw ) ) def decrypt( self, enc ): enc = base64.b64decode(enc) iv = enc[:16] cipher = AES.new(self.key, AES.MODE_CBC, iv ) return unpad(cipher.decrypt( enc[16:] )) [INST] How to ignore deprecation warnings in Python I keep getting this : DeprecationWarning: integer argument expected, got float How do I make this message go away? Is there a way to avoid warnings in Python? [/INST] I had these: /home/eddyp/virtualenv/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, md5, sys /home/eddyp/virtualenv/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Fixed it with: import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=DeprecationWarning) import md5, sha yourcode() Now you still get all the other DeprecationWarnings, but not the ones caused by import md5, sha [INST] Django: Get an object form the DB, or 'None' if nothing matches Is there any Django function which will let me get an object form the database, or None if nothing matches? Right now I'm using something like: foo = Foo.objects.filter(bar=baz) foo = len(foo) > 0 and foo.get() or None But that's not very clear, and it's messy to have everywhere. [/INST] There are two ways to do this; try: foo = Foo.objects.get(bar=baz) except model.DoesNotExist: foo = None Or you can use a wrapper: def get_or_none(model, *args, **kwargs): try: return model.objects.get(*args, **kwargs) except model.DoesNotExist: return None Call it like this foo = get_or_none(Foo, baz=bar) [INST] Using numpy to build an array of all combinations of two arrays I'm trying to run over the parameters space of a 6 parameter function to study it's numerical behavior before trying to do anything complex with it so I'm searching for a efficient way to do this. My function takes float values given a 6-dim numpy array as input. What I tried to do initially was this: First I created a function that takes 2 arrays and generate an array with all combinations of values from the two arrays from numpy import * def comb(a,b): c = [] for i in a: for j in b: c.append(r_[i,j]) return c Then I used reduce() to apply that to m copies of the same array: def combs(a,m): return reduce(comb,[a]*m) And then I evaluate my function like this: values = combs(np.arange(0,1,0.1),6) for val in values: print F(val) This works but it's waaaay too slow. I know the space of parameters is huge, but this shouldn't be so slow. I have only sampled 106 (a million) points in this example and it took more than 15 seconds just to create the array values. Do you know any more efficient way of doing this with numpy? I can modify the way the function F takes it's arguments if it's necessary. [/INST] Here's a pure-numpy implementation. It's ca. 5× faster than using itertools. import numpy as np def cartesian(arrays, out=None): """ Generate a cartesian product of input arrays. Parameters ---------- arrays : list of array-like 1-D arrays to form the cartesian product of. out : ndarray Array to place the cartesian product in. Returns ------- out : ndarray 2-D array of shape (M, len(arrays)) containing cartesian products formed of input arrays. Examples -------- >>> cartesian(([1, 2, 3], [4, 5], [6, 7])) array([[1, 4, 6], [1, 4, 7], [1, 5, 6], [1, 5, 7], [2, 4, 6], [2, 4, 7], [2, 5, 6], [2, 5, 7], [3, 4, 6], [3, 4, 7], [3, 5, 6], [3, 5, 7]]) """ arrays = [np.asarray(x) for x in arrays] dtype = arrays[0].dtype n = np.prod([x.size for x in arrays]) if out is None: out = np.zeros([n, len(arrays)], dtype=dtype) m = n / arrays[0].size out[:,0] = np.repeat(arrays[0], m) if arrays[1:]: cartesian(arrays[1:], out=out[0:m,1:]) for j in xrange(1, arrays[0].size): out[j*m:(j+1)*m,1:] = out[0:m,1:] return out [INST] How to get POSTed json in Flask? I'm trying to build a simple API using Flask, in which I now want to read some POSTed JSON. I do the post with the PostMan Chrome extension, and the JSON I post is simply {"text":"lalala"}. I try to read the JSON using the following method: @app.route('/api/add_message/', methods=['GET', 'POST']) def add_message(uuid): content = request.json print content return uuid On the browser it correctly returns the uuid I put in the GET, but on the console, it just prints out None (where I expect it to print out the {"text":"lalala"}. Does anybody know how I can get the posted JSON from within the Flask method? [/INST] You need to set the request content type to application/json for the .json property to work; it'll be None otherwise. See the Flask Request documentation: If the mimetype is application/json this will contain the parsed JSON data. Otherwise this will be None. Flask 0.10 added the request.get_json() method, and you should use that method instead of the .json property. You can tell the method to skip the content type requirement by setting force=True. [INST] pandas iloc vs ix vs loc explanation? Can someone explain how these three methods of slicing are different? I've seen the docs, and I've seen these answers, but I still find myself unable to explain how the three are different. To me, they seem interchangeable in large part, because they are at the lower levels of slicing. For example, say we want to get the first five rows of a DataFrame. How is it that all three of these work? df.loc[:5] df.ix[:5] df.iloc[:5] Can someone present three cases where the distinction in uses are clearer? [/INST] First, a recap: loc works on labels in the index. iloc works on the positions in the index (so it only takes integers). ix usually tries to behave like loc but falls back to behaving like iloc if the label is not in the index. It's important to note some subtleties that can make ix slightly tricky to use: if the index is of integer type, ix will only use label-based indexing and not fall back to position-based indexing. If the label is not in the index, an error is raised. if the index does not contain only integers, then given an integer, ix will immediately use position-based indexing rather than label-based indexing. If however ix is given another type (e.g. a string), it can use label-based indexing. To illustrate the differences between the three methods, consider the following Series: >>> s = pd.Series(np.nan, index=[49,48,47,46,45, 1, 2, 3, 4, 5]) >>> s 49 NaN 48 NaN 47 NaN 46 NaN 45 NaN 1 NaN 2 NaN 3 NaN 4 NaN 5 NaN Then s.iloc[:3] returns the first 3 rows (since it looks at the position) and s.loc[:3] returns the first 8 rows (since it looks at the labels): >>> s.iloc[:3] 49 NaN 48 NaN 47 NaN >>> s.loc[:3] 49 NaN 48 NaN 47 NaN 46 NaN 45 NaN 1 NaN 2 NaN 3 NaN >>> s.ix[:3] # the integer is in the index so s.ix[:3] works like loc 49 NaN 48 NaN 47 NaN 46 NaN 45 NaN 1 NaN 2 NaN 3 NaN Notice s.ix[:3] returns the same Series as s.loc[:3] since it looks for the label first rather than going by position (and the index is of integer type). What if we try with an integer label that isn't in the index (say 6)? Here s.iloc[:6] returns the first 6 rows of the Series as expected. However, s.loc[:6] raises a KeyError since 6 is not in the index. >>> s.iloc[:6] 49 NaN 48 NaN 47 NaN 46 NaN 45 NaN 1 NaN >>> s.loc[:6] KeyError: 6 >>> s.ix[:6] KeyError: 6 As per the subtleties noted above, s.ix[:6] now raises a KeyError because it tries to work like loc but can't find a 6 in the index. Because our index is of integer type it doesn't fall back to behaving like iloc. If, however, our index was of mixed type, given an integer ix would behave like iloc immediately instead of raising a KeyError: >>> s2 = pd.Series(np.nan, index=['a','b','c','d','e', 1, 2, 3, 4, 5]) >>> s2.index.is_mixed() # index is mix of types True >>> s2.ix[:6] # behaves like iloc given integer a NaN b NaN c NaN d NaN e NaN 1 NaN Keep in mind that ix can still accept non-integers and behave like loc: >>> s2.ix[:'c'] # behaves like loc given non-integer a NaN b NaN c NaN General advice: if you're only indexing using labels, or only indexing using integer positions, stick with loc or iloc to avoid unexpected results. If however you have a DataFrame and you want to mix label and positional index types, ix lets you do this: >>> df = pd.DataFrame(np.arange(25).reshape(5,5), index=list('abcde'), columns=['x','y','z', 8, 9]) >>> df x y z 8 9 a 0 1 2 3 4 b 5 6 7 8 9 c 10 11 12 13 14 d 15 16 17 18 19 e 20 21 22 23 24 Using ix, we can slice the rows by label and the columns by position (note that for the columns, ix default to position-based slicing since the label 4 is not a column name): >>> df.ix[:'c', :4] x y z 8 a 0 1 2 3 b 5 6 7 8 c 10 11 12 13 [INST] Fatal error in launcher: Unable to create process using ""C:\Program Files (x86)\Python33\python.exe" "C:\Program Files (x86)\Python33\pip.exe"" Searching the net this seems to be a problem caused by spaces in the Python installation path. How do I get pip to work without having to reinstall everything in a path without spaces ? [/INST] it seems that python -m pip install XXX will work anyway (worked for me) (see link by user474491) [INST] CSV file written with Python has blank lines between each row import csv with open('thefile.csv', 'rb') as f: data = list(csv.reader(f)) import collections counter = collections.defaultdict(int) for row in data: counter[row[10]] += 1 with open('/pythonwork/thefile_subset11.csv', 'w') as outfile: writer = csv.writer(outfile) for row in data: if counter[row[10]] >= 504: writer.writerow(row) This code reads thefile.csv, makes changes, and writes results to thefile_subset1. However, when I open the resulting csv in Microsoft Excel, there is an extra blank line after each record! Is there a way to make it not put an extra blank line? [/INST] In Python 2, open outfile with mode 'wb' instead of 'w'. The csv.writer writes \r\n into the file directly. If you don't open the file in binary mode, it will write \r\r\n because on Windows text mode will translate each \n into \r\n. In Python 3 the required syntax changed, so open outfile with the additional parameter newline='' instead. Examples: # Python 2 with open('/pythonwork/thefile_subset11.csv', 'wb') as outfile: writer = csv.writer(outfile) # Python 3 with open('/pythonwork/thefile_subset11.csv', 'w', newline='') as outfile: writer = csv.writer(outfile) Documentation Links https://docs.python.org/2/library/csv.html#csv.writer https://docs.python.org/3/library/csv.html#csv.writer gf[INST] Upgrade python in a virtualenv Is there a way to upgrade the version of python used in a virtualenv (e.g. if a bugfix release comes out)? I could pip freeze --local > requirements.txt then remove the directory and pip install -r requirements.txt but this requires a lot of reinstallation of large libraries, for instance numpy which I use a lot. I can see this is an advantage when upgrading from e.g. 2.6 -> 2.7, but what about 2.7.x -> 2.7.y? Thanks [/INST] Did you see this? If I haven't misunderstand that answer, you may try to create a new virtualenv on top of the old one. You just need to know which python is going to use your virtualenv (you will need to see your virtualenv version). If your virtualenv is installed with the same python version of the old one and upgrading your virtualenv package is not an option, you may want to read this in order to install a virtualenv with the python version you want. EDIT I've tested this approach (the one that create a new virtualenv on top of the old one) and it worked fine for me. I think you may have some problems if you change from python 2.6 to 2.7 or 2.7 to 3.x but if you just upgrade inside the same version (staying at 2.7 as you want) you shouldn't have any problem, as all the packages are held in the same folders for both python versions (2.7.x and 2.7.y packages are inside your_env/lib/python2.7/). If you change your virtualenv python version, you will need to install all your packages again for that version (or just link the packages you need into the new version packages folder, i.e: your_env/lib/python_newversion/site-packages) [INST] Scoping in Python 'for' loops I'm not asking about Python's scoping rules; I understand generally how scoping works in Python for loops. My question is why the design decisions were made in this way. For example (no pun intended): for foo in xrange(10): bar = 2 print(foo, bar) The above will print (9,2). This strikes me as weird: 'foo' is really just controlling the loop, and 'bar' was defined inside the loop. I can understand why it might be necessary for 'bar' to be accessible outside the loop (otherwise, for loops would have very limited functionality). What I don't understand is why it is necessary for the control variable to remain in scope after the loop exits. In my experience, it simply clutters the global namespace and makes it harder to track down errors that would be caught by interpreters in other languages. [/INST] The likeliest answer is that it just keeps the grammar simple, hasn't been a stumbling block for adoption, and many have been happy with not having to disambiguate the scope to which a name belongs when assigning to it within a loop construct. Variables are not declared within a scope, it is implied by the location of assignment statements. The global keyword exists just for this reason (to signify that assignment is done at a global scope). Update Here's a good discussion on the topic: http://mail.python.org/pipermail/python-ideas/2008-October/002109.html Previous proposals to make for-loop variables local to the loop have stumbled on the problem of existing code that relies on the loop variable keeping its value after exiting the loop, and it seems that this is regarded as a desirable feature. In short, you can probably blame it on the Python community :P [INST] How to jump to a particular line in a huge text file? Are there any alternatives to the code below: startFromLine = 141978 # or whatever line I need to jump to urlsfile = open(filename, "rb", 0) linesCounter = 1 for line in urlsfile: if linesCounter > startFromLine: DoSomethingWithThisLine(line) linesCounter += 1 If I'm processing a huge text file (~15MB) with lines of unknown but different length, and need to jump to a particular line which number I know in advance? I feel bad by processing them one by one when I know I could ignore at least first half of the file. Looking for more elegant solution if there is any. [/INST] You can't jump ahead without reading in the file at least once, since you don't know where the line breaks are. You could do something like: # Read in the file once and build a list of line offsets line_offset = [] offset = 0 for line in file: line_offset.append(offset) offset += len(line) file.seek(0) # Now, to skip to line n (with the first line being line 0), just do file.seek(line_offset[n]) [INST] Threading in a PyQt application: Use Qt threads or Python threads? I'm writing a GUI application that regularly retrieves data through a web connection. Since this retrieval takes a while, this causes the UI to be unresponsive during the retrieval process (it cannot be split into smaller parts). This is why I'd like to outsource the web connection to a separate worker thread. [Yes, I know, now I have two problems.] Anyway, the application uses PyQt4, so I'd like to know what the better choice is: Use Qt's threads or use the Python threading module? What are advantages / disadvantages of each? Or do you have a totally different suggestion? Edit (re bounty): While the solution in my particular case will probably be using a non-blocking network request like Jeff Ober and Lukáš Lalinský suggested (so basically leaving the concurrency problems to the networking implementation), I'd still like a more in-depth answer to the general question: What are advantages and disadvantages of using PyQt4's (i.e. Qt's) threads over native Python threads (from the threading module)? Edit 2: Thanks all for you answers. Although there's no 100% agreement, there seems to be widespread consensus that the answer is "use Qt", since the advantage of that is integration with the rest of the library, while causing no real disadvantages. For anyone looking to choose between the two threading implementations, I highly recommend they read all the answers provided here, including the PyQt mailing list thread that abbot links to. There were several answers I considered for the bounty; in the end I chose abbot's for the very relevant external reference; it was, however, a close call. Thanks again. [/INST] This was discussed not too long ago in PyQt mailing list. Quoting Giovanni Bajo's comments on the subject: It's mostly the same. The main difference is that QThreads are better integrated with Qt (asynchrnous signals/slots, event loop, etc.). Also, you can't use Qt from a Python thread (you can't for instance post event to the main thread through QApplication.postEvent): you need a QThread for that to work. A general rule of thumb might be to use QThreads if you're going to interact somehow with Qt, and use Python threads otherwise. And some earlier comment on this subject from PyQt's author: "they are both wrappers around the same native thread implementations". And both implementations use GIL in the same way. [INST] Can I use `pip` instead of `easy_install` for `python setup.py install` dependency resolution? python setup.py install will automatically install packages listed in requires=[] using easy_install. How do I get it to use pip instead? [/INST] You can pip install a file perhaps by python setup.py sdist first. You can also pip install -e . which is like python setup.py develop. �\[INST] Should I use `import os.path` or `import os`? According to the official documentation, os.path is a module. Thus, what is the preferred way of importing it? # Should I always import it explicitly? import os.path Or... # Is importing os enough? import os Please DON'T answer "importing os works for me". I know, it works for me too right now (as of Python 2.6). What I want to know is any official recommendation about this issue. So, if you answer this question, please post your references. [/INST] os.path works in a funny way. It looks like os should be a package with a submodule path, but in reality os is a normal module that does magic with sys.modules to inject os.path. Here's what happens: When Python starts up, it loads a bunch of modules into sys.modules. They aren't bound to any names in your script, but you can access the already-created modules when you import them in some way. sys.modules is a dict in which modules are cached. When you import a module, if it already has been imported somewhere, it gets the instance stored in sys.modules. os is among the modules that are loaded when Python starts up. It assigns its path attribute to an os-specific path module. It injects sys.modules['os.path'] = path so that you're able to do "import os.path" as though it was a submodule. I tend to think of os.path as a module I want to use rather than a thing in the os module, so even though it's not really a submodule of a package called os, I import it sort of like it is one and I always do import os.path. This is consistent with how os.path is documented. Incidentally, this sort of structure leads to a lot of Python programmers' early confusion about modules and packages and code organization, I think. This is really for two reasons If you think of os as a package and know that you can do import os and have access to the submodule os.path, you may be surprised later when you can't do import twisted and automatically access twisted.spread without importing it. It is confusing that os.name is a normal thing, a string, and os.path is a module. I always structure my packages with empty __init__.py files so that at the same level I always have one type of thing: a module/package or other stuff. Several big Python projects take this approach, which tends to make more structured code. [INST] Python: Removing \xa0 from string? I am currently using Beautiful Soup to parse an HTML file and calling get_text(), but it seems like I'm being left with a lot of \xa0 Unicode representing spaces. Is there an efficient way to remove all of them in Python 2.7, and change them into spaces? I guess the more generalized question would be, is there a way to remove Unicode formatting? I tried using: line = line.replace(u'\xa0',' '), as suggested by another thread, but that changed the \xa0's to u's, so now I have "u"s everywhere instead. ): EDIT: The problem seems to be resolved by str.replace(u'\xa0', ' ').encode('utf-8'), but just doing .encode('utf-8') without replace() seems to cause it to spit out even weirder characters, \xc2 for instance. Can anyone explain this? [/INST] \xa0 is actually non-breaking space in Latin1 (ISO 8859-1), also chr(160). You should replace it with a space. string = string.replace(u'\xa0', u' ') When .encode('utf-8'), it will encode the unicode to utf-8, that means every unicode could be represented by 1 to 4 bytes. For this case, \xa0 is represented by 2 bytes \xc2\xa0. Read up on http://docs.python.org/howto/unicode.html. [INST] running bash commands in python On my local machine I run a python script which contains this line bashCommand = "cwm --rdf test.rdf --ntriples > test.nt" os.system(bashCommand) This works fine. Then I run the same code on a server and I get the following error message 'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/bin/cwm", line 48, in from swap import diag ImportError: No module named swap So what I did then is I inserted a "print bashCommand" which prints me then the command in the terminal before it runs it with os.system(). Of course I get again the error (caused by os.system(bashCommand)) but before that error it prints the command in the terminal. Then I just copied that output and did a copy paste into the terminal and hit enter and it works... Does anyone have a clue what's going on :(? [/INST] Don't use os.system. Use subprocess. Like in your case: bashCommand = "cwm --rdf test.rdf --ntriples > test.nt" import subprocess process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE) output, error = process.communicate() �UAL[INST] Case insensitive replace What's the easiest way to do a case-insensitive string replacement in Python? [/INST] The string type doesn't support this. You're probably best off using the regular expression sub method with the re.IGNORECASE option. >>> import re >>> insensitive_hippo = re.compile(re.escape('hippo'), re.IGNORECASE) >>> insensitive_hippo.sub('giraffe', 'I want a hIPpo for my birthday') 'I want a giraffe for my birthday' [INST] Pairwise circular Python 'for' loop Is there a nice Pythonic way to loop over a list, retuning a pair of elements? The last element should be paired with the first. So for instance, if I have the list [1, 2, 3], I would like to get the following pairs: 1 - 2 2 - 3 3 - 1 [/INST] A Pythonic way to access a list pairwise is: zip(L, L[1:]). To connect the last item to the first one: >>> L = [1, 2, 3] >>> zip(L, L[1:] + L[:1]) [(1, 2), (2, 3), (3, 1)] [INST] Python None comparison: should I use "is" or ==? Possible Duplicate: When is the `==` operator not equivalent to the `is` operator? (Python) I am using Python 2.x. My editor gives me a 'warning' underline when I compare my_var == None, but no warning when I use my_var is None. I did a test in the Python shell and determined both are valid syntax, but my editor seems to be saying that my_var is None is preferred. Is this the case, and if so, why? [/INST] Summary: Use is when you want to check against an object's identity (e.g. checking to see if var is None). Use == when you want to check equality (e.g. Is var equal to 3?). Explanation: You can have custom classes where my_var == None will return True e.g: class Negator(object): def __eq__(self,other): return not other thing = Negator() print thing == None #True print thing is None #False is checks for object identity. There is only 1 object None, so when you do my_var is None, you're checking whether they actually are the same object (not just equivalent objects) In other words, == is a check for equivalence (which is defined from object to object) whereas is checks for object identity: lst = [1,2,3] lst == lst[:] # This is True since the lists are "equivalent" lst is lst[:] # This is False since they're actually different objects [INST] How do I include related model fields using Django Rest Framework? Let's say that we have the following model: class Classroom(models.Model): room_number = [....] class Teacher(models.Model): name = [...] tenure = [...] classroom = models.ForeignKey(Classroom) Let's say that instead of getting a result like this per the ManyRelatedPrimaryKeyField function: { "room_number": "42", "teachers": [ 27, 24, 7 ] }, have it return something that includes the full related model representation like: { "room_number": "42", "teachers": [ { 'id':'27, 'name':'John', 'tenure':True }, { 'id':'24, 'name':'Sally', 'tenure':False }, ] }, Is this possible? If so, how? And is this a bad idea? [/INST] The simplest way is to use the depth argument class ClassroomSerializer(serializers.ModelSerializer): class Meta: model = Classroom depth = 1 However, that will only include relationships for forward relationships, which in this case isn't quite what you need, since the teachers field is a reverse relationship. If you've got more complex requirements (eg. include reverse relationships, nest some fields, but not others, or nest only a specific subset of fields) you can nest serializers, eg... class TeacherSerializer(serializers.ModelSerializer): class Meta: model = Teacher fields = ('id', 'name', 'tenure') class ClassroomSerializer(serializers.ModelSerializer): teachers = TeacherSerializer(source='teacher_set') class Meta: model = Classroom Note that we use the source argument on the serializer field to specify the attribute to use as the source of the field. We could drop the source argument by instead making sure the teachers attribute exists by using the related_name option on your Teacher model, ie. classroom = models.ForeignKey(Classroom, related_name='teachers') One thing to keep in mind is that nested serializers do not currently support write operations. For writable representations, you should use regular flat representations, such as pk or hyperlinking. [INST] Saving a Numpy array as an image I have a matrix in the type of a Numpy array. How would I write it to disk it as an image? Any format works (png, jpeg, bmp...). One important constraint is that PIL is not present. [/INST] This uses PIL, but maybe some might find it useful: import scipy.misc scipy.misc.imsave('outfile.jpg', image_array) EDIT: The current scipy version started to normalize all images so that min(data) become black and max(data) become white. This is unwanted if the data should be exact grey levels or exact RGB channels. The solution: import scipy.misc scipy.misc.toimage(image_array, cmin=0.0, cmax=...).save('outfile.jpg') [INST] How to dynamically load a Python class Given a string of a Python class, e.g. my_package.my_module.MyClass, what is the best possible way to load it? In other words I am looking for a equivalent Class.forName() in Java, function in Python. It needs to work on Google App Engine. Preferably this would be a function that accepts the FQN of the class as a string, and returns a reference to the class: my_class = load_class('my_package.my_module.MyClass') my_instance = my_class() [/INST] From the python documentation, here's the function you want: def my_import(name): components = name.split('.') mod = __import__(components[0]) for comp in components[1:]: mod = getattr(mod, comp) return mod The reason a simple __import__ won't work is because any import of anything past the first dot in a package string is an attribute of the module you're importing. Thus, something like this won't work: __import__('foo.bar.baz.qux') You'd have to call the above function like so: my_import('foo.bar.baz.qux') Or in the case of your example: klass = my_import('my_package.my_module.my_class') some_object = klass() EDIT: I was a bit off on this. What you're basically wanting to do is this: from my_package.my_module import my_class The above function is only necessary if you have a empty fromlist. Thus, the appropriate call would be like this: mod = __import__('my_package.my_module', fromlist=['my_class']) klass = getattr(mod, 'my_class') [INST] Cannot kill Python script with Ctrl-C I am testing Python threading with the following script: import threading class FirstThread (threading.Thread): def run (self): while True: print 'first' class SecondThread (threading.Thread): def run (self): while True: print 'second' FirstThread().start() SecondThread().start() This is running in Python 2.7 on Kubuntu 11.10. Ctrl+C will not kill it. I also tried adding a handler for system signals, but that did not help: import signal import sys def signal_handler(signal, frame): sys.exit(0) signal.signal(signal.SIGINT, signal_handler) To kill the process I am killing it by PID after sending the program to the background with Ctrl+Z, which isn't being ignored. Why is Ctrl+C being ignored so persistently? How can I resolve this? [/INST] Ctrl+C terminates the main thread, but because your threads aren't in daemon mode, they keep running, and that keeps the process alive. We can make them daemons: f = FirstThread() f.daemon = True f.start() s = SecondThread() s.daemon = True s.start() But then there's another problem - once the main thread has started your threads, there's nothing else for it to do. So it exits, and the threads are destroyed instantly. So let's keep the main thread alive: import time while True: time.sleep(1) Now it will keep print 'first' and 'second' until you hit Ctrl+C. Edit: as commenters have pointed out, the daemon threads may not get a chance to clean up things like temporary files. If you need that, then catch the KeyboardInterrupt on the main thread and have it co-ordinate cleanup and shutdown. But in many cases, letting daemon threads die suddenly is probably good enough. [INST] How do I access the request object or any other variable in a form's clean() method? I am trying to request.user for a form's clean method, but how can I access the request object? Can I modify the clean method to allow variables input? [/INST] The answer by Ber - storing it in threadlocals - is a very bad idea. There's absolutely no reason to do it this way. A much better way is to override the form's __init__ method to take an extra keyword argument, request. This stores the request in the form, where it's required, and from where you can access it in your clean method. class MyForm(forms.Form): def __init__(self, *args, **kwargs): self.request = kwargs.pop('request', None) super(MyForm, self).__init__(*args, **kwargs) def clean(self): ... access the request object via self.request ... and in your view: myform = MyForm(request.POST, request=request) [INST] How is Python's List Implemented? Is it a linked list, an array? I searched around and only found people guessing. My C knowledge isn't good enough to look at the source code. [/INST] The C code is pretty simple, actually. Expanding one macro and pruning some irrelevant comments, the basic structure is in listobject.h, which defines a list as: typedef struct { PyObject_HEAD Py_ssize_t ob_size; /* Vector of pointers to list elements. list[0] is ob_item[0], etc. */ PyObject **ob_item; /* ob_item contains space for 'allocated' elements. The number * currently in use is ob_size. * Invariants: * 0 <= ob_size <= allocated * len(list) == ob_size * ob_item == NULL implies ob_size == allocated == 0 */ Py_ssize_t allocated; } PyListObject; PyObject_HEAD contains a reference count and a type identifier. So, it's a vector/array that overallocates. The code for resizing such an array when it's full is in listobject.c. It doesn't actually double the array, but grows by allocating new_allocated = (newsize >> 3) + (newsize < 9 ? 3 : 6); new_allocated += newsize; to the capacity each time, where newsize is the requested size (not necessarily allocated + 1 because you can extend by an arbitrary number of elements instead of append'ing them one by one). See also the Python FAQ. [INST] How to determine whether a substring is in a different string I have a sub-string: substring = "please help me out" I have another string: string = "please help me out so that I could solve this" How do I find if substring is a subset of string using Python? [/INST] with in: substring in string: >>> substring = "please help me out" >>> string = "please help me out so that I could solve this" >>> substring in string True [INST] How to filter a dictionary according to an arbitrary condition function? I have a dictionary of points, say: >>> points={'a':(3,4), 'b':(1,2), 'c':(5,5), 'd':(3,3)} I want to create a new dictionary with all the points whose x and y value is smaller than 5, i.e. points 'a', 'b' and 'd'. According to the the book, each dictionary has the items() function, which returns a list of (key, pair) tuple: >>> points.items() [('a', (3, 4)), ('c', (5, 5)), ('b', (1, 2)), ('d', (3, 3))] So I have written this: >>> for item in [i for i in points.items() if i[1][0]<5 and i[1][1]<5]: ... points_small[item[0]]=item[1] ... >>> points_small {'a': (3, 4), 'b': (1, 2), 'd': (3, 3)} Is there a more elegant way? I was expecting Python to have some super-awesome dictionary.filter(f) function... [/INST] Nowadays, in Python 2.7 and up, you can use a dict comprehension: {k: v for k, v in points.iteritems() if v[0] < 5 and v[1] < 5} And in Python 3: {k: v for k, v in points.items() if v[0] < 5 and v[1] < 5} [INST] How to make the python interpreter correctly handle non-ASCII characters in string operations? I have a string that looks like so: 6 918 417 712 The clear cut way to trim this string (as I understand Python) is simply to say the string is in a variable called s, we get: s.replace(' ', '') That should do the trick. But of course it complains that the non-ASCII character '\xc2' in file blabla.py is not encoded. I never quite could understand how to switch between different encodings. Here's the code, it really is just the same as above, but now it's in context. The file is saved as UTF-8 in notepad and has the following header: #!/usr/bin/python2.4 # -*- coding: utf-8 -*- The code: f = urllib.urlopen(url) soup = BeautifulSoup(f) s = soup.find('div', {'id':'main_count'}) #making a print 's' here goes well. it shows 6 918 417 712 s.replace(' ','') save_main_count(s) It gets no further than s.replace... [/INST] def removeNonAscii(s): return "".join(filter(lambda x: ord(x)<128, s)) edit: my first impulse is always to use a filter, but the generator expression is more memory efficient (and shorter)... def removeNonAscii(s): return "".join(i for i in s if ord(i)<128) Keep in mind that this is guaranteed to work with UTF-8 encoding (because all bytes in multi-byte characters have the highest bit set to 1). [INST] How can I break up this long line in Python? How would you go about formatting a long line such as this? I'd like to get it to no more than 80 characters wide: logger.info("Skipping {0} because its thumbnail was already in our system as {1}.".format(line[indexes['url']], video.title)) Is this my best option? url = "Skipping {0} because its thumbnail was already in our system as {1}." logger.info(url.format(line[indexes['url']], video.title)) [/INST] That's a start. It's not a bad practice to define your longer strings outside of the code that uses them. It's a way to separate data and behavior. Your first option is to join string literals together implicitly by making them adjacent to one another: ("This is the first line of my text, " "which will be joined to a second.") Or with line ending continuations, which is a little more fragile, as this works: "This is the first line of my text, " \ "which will be joined to a second." But this doesn't: "This is the first line of my text, " \ "which will be joined to a second." See the difference? No? Well you won't when it's your code either. The downside to implicit joining is that it only works with string literals, not with strings taken from variables, so things can get a little more hairy when you refactor. Also, you can only interpolate formatting on the combined string as a whole. Alternatively, you can join explicitly using the concatenation operator (+): ("This is the first line of my text, " + "which will be joined to a second.") Explicit is better than implicit, as the zen of python says, but this creates three strings instead of one, and uses twice as much memory: there are the two you have written, plus one which is the two of them joined together, so you have to know when to ignore the zen. The upside is you can apply formatting to any of the substrings separately on each line, or to the whole lot from outside the parentheses. Finally, you can use triple-quoted strings: """This is the first line of my text which will be joined to a second.""" This is often my favorite, though its behavior is slightly different as the newline and any leading whitespace on subsequent lines will show up in your final string. You can eliminate the newline with an escaping backslash. """This is the first line of my text \ which will be joined to a second.""" This has the same problem as the same technique above, in that correct code only differs from incorrect code by invisible whitespace. Which one is "best" depends on your particular situation, but the answer is not simply aesthetic, but one of subtly different behaviors. [INST] python: getting user input i am running this: import csv import sys reader = csv.reader(open(sys.argv[0], "rb")) for row in reader: print row and i get this in response: ['import csv'] ['import sys'] ['reader = csv.reader(open(sys.argv[0]', ' "rb"))'] ['for row in reader:'] [' print row'] >>> for the sys.argv[0] i would like it to prompt me to enter a filename. how do i get it to prompt me to enter a filename? [/INST] Use the raw_input() function to get input from users: print "Enter a file name:", filename = raw_input() or just: filename = raw_input('Enter a file name: ') [INST] Longest equally-spaced subsequence I have a million integers in sorted order and I would like to find the longest subsequence where the difference between consecutive pairs is equal. For example 1, 4, 5, 7, 8, 12 has a subsequence 4, 8, 12 My naive method is greedy and just checks how far you can extend a subsequence from each point. This takes O(n²) time per point it seems. Is there a faster way to solve this problem? Update. I will test the code given in the answers as soon as possible (thank you). However it is clear already that using n^2 memory will not work. So far there is no code that terminates with the input as [random.randint(0,100000) for r in xrange(200000)] . Timings. I tested with the following input data on my 32 bit system. a= [random.randint(0,10000) for r in xrange(20000)] a.sort() The dynamic programming method of ZelluX uses 1.6G of RAM and takes 2 minutes and 14 seconds. With pypy it takes only 9 seconds! However it crashes with a memory error on large inputs. The O(nd) time method of Armin took 9 seconds with pypy but only 20MB of RAM. Of course this would be much worse if the range were much larger. The low memory usage meant I could also test it with a= [random.randint(0,100000) for r in xrange(200000)] but it didn't finish in the few minutes I gave it with pypy. In order to be able to test the method of Kluev's I reran with a= [random.randint(0,40000) for r in xrange(28000)] a = list(set(a)) a.sort() to make a list of length roughly 20000. All timings with pypy ZelluX, 9 seconds Kluev, 20 seconds Armin, 52 seconds It seems that if the ZelluX method could be made linear space it would be the clear winner. [/INST] We can have a solution O(n*m) in time with very little memory needs, by adapting yours. Here n is the number of items in the given input sequence of numbers, and m is the range, i.e. the highest number minus the lowest one. Call A the sequence of all input numbers (and use a precomputed set() to answer in constant time the question "is this number in A?"). Call d the step of the subsequence we're looking for (the difference between two numbers of this subsequence). For every possible value of d, do the following linear scan over all input numbers: for every number n from A in increasing order, if the number was not already seen, look forward in A for the length of the sequence starting at n with a step d. Then mark all items in that sequence as already seen, so that we avoid searching again from them, for the same d. Because of this, the complexity is just O(n) for every value of d. A = [1, 4, 5, 7, 8, 12] # in sorted order Aset = set(A) for d in range(1, 12): already_seen = set() for a in A: if a not in already_seen: b = a count = 1 while b + d in Aset: b += d count += 1 already_seen.add(b) print "found %d items in %d .. %d" % (count, a, b) # collect here the largest 'count' Updates: This solution might be good enough if you're only interested in values of d that are relatively small; for example, if getting the best result for d <= 1000 would be good enough. Then the complexity goes down to O(n*1000). This makes the algorithm approximative, but actually runnable for n=1000000. (Measured at 400-500 seconds with CPython, 80-90 seconds with PyPy, with a random subset of numbers between 0 and 10'000'000.) If you still want to search for the whole range, and if the common case is that long sequences exist, a notable improvement is to stop as soon as d is too large for an even longer sequence to be found. [INST] Can scrapy be used to scrape dynamic content from websites that are using AJAX? I have recently been learning Python and am dipping my hand into building a web-scraper. It's nothing fancy at all; its only purpose is to get the data off of a betting website and have this data put into Excel. Most of the issues are solvable and I'm having a good little mess around. However I'm hitting a massive hurdle over one issue. If a site loads a table of horses and lists current betting prices this information is not in any source file. The clue is that this data is live sometimes, with the numbers being updated obviously from some remote server. The HTML on my PC simply has a hole where their servers are pushing through all the interesting data that I need. Now my experience with dynamic web content is low, so this thing is something I'm having trouble getting my head around. I think Java or Javascript is a key, this pops up often. The scraper is simply a odds comparison engine. Some sites have APIs but I need this for those that don't. I'm using the scrapy library with Python 2.7 I do apologize if this question is too open-ended. In short, my question is: how can scrapy be used to scrape this dynamic data so that I can use it? So that I can scrape this betting odds data in real-time? Cheers people :) [/INST] Here is a simple example of using scrapy with ajax request. Let see the site http://www.rubin-kazan.ru/guestbook.html All messages are loaded with an ajax request. My goal is to fetch this messages with all their attributes (author, date, ...). When I analyse the source code of the page I can't see all these messages because the web page use ajax technology. But I can with Firebug from Mozila Firefox (or an analogy instrument in other browser) to analyse the Http request that generate the messages on the web page. For this purpose I don't reload all page but only the part of page that contain messages. For this purpose I click an arbitrary number of page on the bottom and I observe the HTTP request that is responsible about message body After finish I analyse the headers of request (I must quote that this url I'll extract from source page from var section, see the code below). and the form data content of request (the Http method is "Post") and the content of response, which is an Json file, which present all information I'm looking for. From now I must implement all this knowledge in scrapy. Let's define the spider for this purpose. class spider(BaseSpider): name = 'RubiGuesst' start_urls = ['http://www.rubin-kazan.ru/guestbook.html'] def parse(self, response): url_list_gb_messages = re.search(r'url_list_gb_messages="(.*)"', response.body).group(1) yield FormRequest('http://www.rubin-kazan.ru' + url_list_gb_messages, callback=self.RubiGuessItem, formdata={'page': str(page + 1), 'uid': ''}) def RubiGuessItem(self, response): json_file = response.body In parse function I have the response for first request. In RubiGuessItem I have the json file with all information. I hope this response will help you. Best regards. [INST] How to run multiple python version on Windows I had two versions of Python installed in my machine (versions 2.6 and 2.5). I want to run 2.6 for one project and 2.5 for another. How can I specify which I want to use? I am working on Windows XP SP2. [/INST] Running a different copy of Python is as easy as starting the correct executable. You mention that you've started a python instance, from the command line, by simply typing python. What this does under Windows, is to trawl the %PATH% environment variable, checking for an executable, either batch file (.bat), command file (.cmd) or some other executable to run, that matches the name given. When it finds the correct file to run, it does it. Now, if you've installed two python versions 2.5 and 2.6, the path will have both of their directories in it, something like PATH=c:\python\2.5;c:\python\2.6 but Windows will stop examining the path when it finds a match. What you really need to do is to explicitly call one or both of the applications, such as c:\python\2.5\python.exe or c:\python\2.6\python.exe. The other alternative is to create a shortcut to the respective python.exe calling one of them python25 and the other python26; you can then simply run python25 on your command line. �@[INST] Hiding a password in a (python) script I have got a python script which is creating an ODBC connection. The ODBC connection is generated with a connection string. In this connection string I have to include the username and password for this connection. Is there an easy way to obscure this password in the file (just that nobody can read the password when I'm editing the file) ? [/INST] Base64 encoding is in the standard library and will do to stop shoulder surfers: >>> import base64 >>> print base64.b64encode("password") cGFzc3dvcmQ= >>> print base64.b64decode("cGFzc3dvcmQ=") password [INST] What is the most efficient string concatenation method in python? Is there any efficient mass string concatenation method in Python (like StringBuilder in C# or StringBuffer in Java)? I found following methods here: Simple concatenation using + Using string list and join method Using UserString from MutableString module Using character array and the array module Using cStringIO from StringIO module But what do you experts use or suggest, and why? [A related question here] [/INST] You may be interested in this: An optimization anecdote by Guido. Although it is worth remembering also that this is an old article and it predates the existence of things like ''.join (although I guess string.joinfields is more-or-less the same) On the strength of that, the array module may be fastest if you can shoehorn your problem into it. But ''.join is probably fast enough and has the benefit of being idiomatic and thus easier for other python programmers to understand. Finally, the golden rule of optimization: don't optimize unless you know you need to, and measure rather than guessing. You can measure different methods using the timeit module. That can tell you which is fastest, instead of random strangers on the internet making guesses. [INST] Double Iteration in List Comprehension In Python you can have multiple iterators in a list comprehension, like [(x,y) for x in a for y in b] for some suitable sequences a and b. I'm aware of the nested loop semantics of Python's list comprehensions. My question is: Can one iterator in the comprehension refer to the other? In other words: Could I have something like this: [x for x in a for a in b] where the current value of the outer loop is the iterator of the inner? As an example, if I have a nested list: a=[[1,2],[3,4]] what would the list comprehension expression be to achieve this result: [1,2,3,4] ?? (Please only list comprehension answers, since this is what I want to find out). [/INST] To answer your question with your own suggestion: >>> [x for b in a for x in b] # Works fine While you asked for list comprehension answers, let me also point out the excellent itertools.chain(): >>> from itertools import chain >>> list(chain.from_iterable(a)) >>> list(chain(*a)) # If you're using python < 2.6 [INST] How to round a number to significant figures in Python I need to round a float to be displayed in a UI. E.g, to one significant figure: 1234 -> 1000 0.12 -> 0.1 0.012 -> 0.01 0.062 -> 0.06 6253 -> 6000 1999 -> 2000 Is there a nice way to do this using the Python library, or do I have to write it myself? [/INST] You can use negative numbers to round integers: >>> round(1234, -3) 1000.0 Thus if you need only most significant digit: >>> from math import log10, floor >>> def round_to_1(x): ... return round(x, -int(floor(log10(abs(x))))) ... >>> round_to_1(0.0232) 0.02 >>> round_to_1(1234243) 1000000.0 >>> round_to_1(13) 10.0 >>> round_to_1(4) 4.0 >>> round_to_1(19) 20.0 You'll probably have to take care of turning float to integer if it's bigger than 1. [INST] AttributeError: 'module' object has no attribute I have two python modules: a.py import b def hello(): print "hello" print "a.py" print hello() print b.hi() b.py import a def hi(): print "hi" When I run a.py, I get: AttributeError: 'module' object has no attribute 'hi' What does the error mean? How do I fix it? [/INST] You have mutual top-level imports, which is almost always a bad idea. If you really must have mutual imports in Python, the way to do it is to import them within a function: # In b.py: def cause_a_to_do_something(): import a a.do_something() Now a.py can safely do import b without causing problems. (At first glance it might appear that cause_a_to_do_something() would be hugely inefficient because it does an import every time you call it, but in fact the import work only gets done the first time. The second and subsequent times you import a module, it's a quick operation.) [INST] A weighted version of random.choice I needed to write a weighted version of random.choice (each element in the list has a different probability for being selected). This is what I came up with: def weightedChoice(choices): """Like random.choice, but each element can have a different chance of being selected. choices can be any iterable containing iterables with two items each. Technically, they can have more than two items, the rest will just be ignored. The first item is the thing being chosen, the second item is its weight. The weights can be any numeric values, what matters is the relative differences between them. """ space = {} current = 0 for choice, weight in choices: if weight > 0: space[current] = choice current += weight rand = random.uniform(0, current) for key in sorted(space.keys() + [current]): if rand < key: return choice choice = space[key] return None This function seems overly complex to me, and ugly. I'm hoping everyone here can offer some suggestions on improving it or alternate ways of doing this. Efficiency isn't as important to me as code cleanliness and readability. [/INST] def weighted_choice(choices): total = sum(w for c, w in choices) r = random.uniform(0, total) upto = 0 for c, w in choices: if upto + w >= r: return c upto += w assert False, "Shouldn't get here" [INST] pythonw.exe or python.exe? Long story short: pythonw.exe does nothing, python.exe accepts nothing (which one should I use?) test.py: print "a" CMD window: C:\path>pythonw.exe test.py C:\path> C:\path>python.exe test.py File "C:\path\test.py", line 7 print "a" ^ SyntaxError: invalid syntax C:\path> Please tell me what I'm doing terrible wrong. [/INST] If you don't want a terminal window to pop up when you run your program use pythonw.exe; Otherwise, use python.exe Regarding the syntax error: print is now a function in 3.x So use instead: print("a") [INST] Changing user agent on urllib2.urlopen How can I download a webpage with a user agent other than the default one on urllib2.urlopen? [/INST] I answered a similar question a couple weeks ago. There is example code in that question, but basically you can do something like this: (Note the capitalization of User-Agent as of RFC 2616, section 14.43.) opener = urllib2.build_opener() opener.addheaders = [('User-Agent', 'Mozilla/5.0')] response = opener.open('http://www.stackoverflow.com') [INST] Python list comprehension rebind names even after scope of comprehension. Is this right? List comprehensions are having some unexpected interactions with scoping. Is this the expected behaviour? I've got a method: def leave_room(self, uid): u = self.user_by_id(uid) r = self.rooms[u.rid] other_uids = [ouid for ouid in r.users_by_id.keys() if ouid != u.uid] other_us = [self.user_by_id(uid) for uid in other_uids] r.remove_user(uid) # OOPS! uid has been re-bound by the list comprehension above # Interestingly, it's rebound to the last uid in the list, so the error only shows # up when len > 1 At the risk of whining, this is a brutal source of errors. As I write new code, I just occasionally find very weird errors due to rebinding -- even now that I know it's a problem. I need to make a rule like "always preface temp vars in list comprehensions with underscore", but even that's not fool-proof. The fact that there's this random time-bomb waiting kind of negates all the nice "ease of use" of list comprehensions. [/INST] List comprehensions leak the loop control variable in Python 2 but not in Python 3. Here's Guido van Rossum (creator of Python) explaining the history behind this: We also made another change in Python 3, to improve equivalence between list comprehensions and generator expressions. In Python 2, the list comprehension "leaks" the loop control variable into the surrounding scope: x = 'before' a = [x for x in 1, 2, 3] print x # this prints '3', not 'before' This was an artifact of the original implementation of list comprehensions; it was one of Python's "dirty little secrets" for years. It started out as an intentional compromise to make list comprehensions blindingly fast, and while it was not a common pitfall for beginners, it definitely stung people occasionally. For generator expressions we could not do this. Generator expressions are implemented using generators, whose execution requires a separate execution frame. Thus, generator expressions (especially if they iterate over a short sequence) were less efficient than list comprehensions. However, in Python 3, we decided to fix the "dirty little secret" of list comprehensions by using the same implementation strategy as for generator expressions. Thus, in Python 3, the above example (after modification to use print(x) :-) will print 'before', proving that the 'x' in the list comprehension temporarily shadows but does not override the 'x' in the surrounding scope. [INST] How to override [] operator What is the name of the method to override the [] operator for a class? [/INST] You need to use the __getitem__ method. >>> class MyClass: ... def __getitem__(self,index): ... return index * 2 ... >>> myobj = MyClass() >>> myobj[3] 6 And if you're going to be setting values you'll need to implement the __setitem__ method too, otherwise this will happen: >>> myobj[5] = 1 Traceback (most recent call last): File "", line 1, in AttributeError: MyClass instance has no attribute '__setitem__' [INST] python: how to identify if a variable is an array or a scalar I have a function that takes the argument NBins. I want to make a call to this function with a scalar 50 or an array [0, 10, 20, 30]. How can I identify within the function, what the length of NBins is? or said differently, if it is a scalar or a vector? I tried this: >>> N=[2,3,5] >>> P = 5 >>> len(N) 3 >>> len(P) Traceback (most recent call last): File "", line 1, in TypeError: object of type 'int' has no len() >>> As you see, I can't apply len to P, since it's not an array.... Is there something like isarray or isscalar in python? thanks [/INST] >>> isinstance([0, 10, 20, 30], list) True >>> isinstance(50, list) False To support any type of sequence, check collections.Sequence instead of list. note: isinstance also supports a tuple of classes, check type(x) in (..., ...) should be avoided and is unnecessary. You may also wanna check not isinstance(x, (str, unicode)) [INST] In Python, how do I split a string and keep the separators? Here's the simplest way to explain this. Here's what I'm using: re.split('\W', 'foo/bar spam\neggs') -> ['foo', 'bar', 'spam', 'eggs'] Here's what I want: someMethod('\W', 'foo/bar spam\neggs') -> ['foo', '/', 'bar', ' ', 'spam', '\n', 'eggs'] The reason is that I want to split a string into tokens, manipulate it, then put it back together again. [/INST] >>> re.split('(\W)', 'foo/bar spam\neggs') ['foo', '/', 'bar', ' ', 'spam', '\n', 'eggs'] [INST] Getting the docstring from a function I have the following function: def my_func(): """My docstring is both funny and informative""" pass How do I get access to the docstring? [/INST] Interactively, you can display it with help(my_func) Or from code you can retrieve it with my_func.__doc__ [INST] python exception message capturing import ftplib import urllib2 import os import logging logger = logging.getLogger('ftpuploader') hdlr = logging.FileHandler('ftplog.log') formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') hdlr.setFormatter(formatter) logger.addHandler(hdlr) logger.setLevel(logging.INFO) FTPADDR = "some ftp address" def upload_to_ftp(con, filepath): try: f = open(filepath,'rb') # file to send con.storbinary('STOR '+ filepath, f) # Send the file f.close() # Close file and FTP logger.info('File successfully uploaded to '+ FTPADDR) except, e: logger.error('Failed to upload to ftp: '+ str(e)) This doesn't seem to work, I get syntax error, what is the proper way of doing this for logging all kind of exceptions to a file [/INST] You have to define which type of exception you want to catch. So write except Exception, e: instead of except, e: for a general exception (that will be logged anyway). Other possibility is to write your whole try/except code this way: try: with open(filepath,'rb') as f: con.storbinary('STOR '+ filepath, f) logger.info('File successfully uploaded to '+ FTPADDR) except Exception, e: logger.error('Failed to upload to ftp: '+ str(e)) [INST] Python csv string to array Anyone know of a simple library or function to parse a csv encoded string and turn it into an array or dictionary? I don't think I want the built in csv module because in all the examples I've seen that takes filepaths, not strings. [/INST] I would use StringIO: import StringIO import csv scsv = """1,2,3 a,b,c d,e,f""" f = StringIO.StringIO(scsv) reader = csv.reader(f, delimiter=',') for row in reader: print '\t'.join(row) simplier version with split() on newlines: reader = csv.reader(scsv.split('\n'), delimiter=',') for row in reader: print '\t'.join(row) Or you can simply split this string into lines using \n as separator, and then split each line into values, but this way you must be aware of quoting, so using csv module is preferred. [INST] UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c I have a socket server that is supposed to receive UTF-8 valid characters from clients. The problem is some clients (mainly hackers) are sending all the wrong kind of data over it. I can easily distinguish the genuine client, but I am logging to files all the data sent so I can analyze it later. Sometimes I get characters like this œ that cause the UnicodeDecodeError error. I need to be able to make the string UTF-8 with or without those characters. [/INST] http://docs.python.org/howto/unicode.html#the-unicode-type str = unicode(str, errors='replace') or str = unicode(str, errors='ignore') Note: This solution will strip out (ignore) the characters in question returning the string without them. Only use this if your need is to strip them not convert them. For Python 3: While reading the file: with codecs.open(file_name, "r",encoding='utf-8', errors='ignore') as fdata: [INST] Get month name from number How can I get the month name from the month number? For instance, if I have 3, I want to return march date.tm_month() How to get the string march? [/INST] import datetime mydate = datetime.datetime.now() mydate.strftime("%B") Returns: December Some more info on the Python doc website [INST] How to check blas/lapack linkage in numpy/scipy? I am builing my numpy/scipy environment based on blas and lapack more or less based on this walk through. When I am done, how can I check, that my numpy/scipy functions really do use the previously built blas/lapack functionalities? [/INST] The method numpy.__config__.show() outputs information about linkage gathered at build time. My output looks like this. I think it means I am using the BLAS/LAPACK that ships with Mac OS. >>>import numpy as np >>>np.__config__.show() lapack_opt_info: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] extra_compile_args = ['-msse3'] define_macros = [('NO_ATLAS_INFO', 3)] blas_opt_info: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers'] define_macros = [('NO_ATLAS_INFO', 3)] [INST] Why does Python allow function calls with wrong number of arguments? Python is my first dynamic language. I recently coded a function call incorrectly supplying a wrong number of arguments. This failed with an exception at the time that function was called. I expected that even in a dynamic language, this kind of error can be detected when the source file is parsed. I understand that the type of actual arguments is not known until the function is called, because the same variable may contain values of any type at different times. But the number of arguments is known as soon as the source file is parsed. It is not going to change while the program is running. So that this is not a philosophical question To keep this in scope of Stack Overflow, let me phrase the question like this. Is there some feature, that Python offers, that requires it to delay checking the number of arguments in a function call until the code actually executes? [/INST] Python cannot know up-front what object you'll end up calling, because being dynamic, you can swap out the function object. At any time. And each of these objects can have a different number of arguments. Here is an extreme example: import random def foo(): pass def bar(arg1): pass def baz(arg1, arg2): pass the_function = random.choice([foo, bar, baz]) print(the_function()) The above code has a 2 in 3 chance of raising an exception. But Python cannot know a-priori if that'll be the case or not! And I haven't even started with dynamic module imports, dynamic function generation, other callable objects (any object with a __call__ method can be called), or catch-all arguments (*args and **kwargs). But to make this extra clear, you state in your question: It is not going to change while the program is running. This is not the case, not in Python, once the module is loaded you can delete, add or replace any object in the module namespace, including function objects. [INST] Round to 5 (or other number) in python Is there a built-in function that can round like this: 10 -> 10 12 -> 10 13 -> 15 14 -> 15 16 -> 15 18 -> 20 [/INST] I don't know of a standard function in Python, but this works for me: def myround(x, base=5): return int(base * round(float(x)/base)) It is easy to see why the above works. You want to make sure that your number divided by 5 is an integer, correctly rounded. So, we first do exactly that (round(float(x)/5)), and then since we divided by 5, we multiply by 5 as well. The final conversion to int is because round() returns a floating-point value in Python. I made the function more generic by giving it a base parameter, defaulting to 5. [INST] Check if string ends with one of the strings from a list What is the pythonic way of writing the following code? extensions = ['.mp3','.avi'] file_name = 'test.mp3' for extension in extensions: if file_name.endswith(extension): #do stuff I have a vague memory that the explicit declaration of the for loop can be avoided and be written in the if condition. Is this true? [/INST] Though not widely known, str.endswith also accepts a tuple. You don't need to loop. >>> 'test.mp3'.endswith(('.mp3', '.avi')) True [INST] What's the pythonic way to use getters and setters? I'm doing it like: def set_property(property,value): def get_property(property): or object.property = value value = object.property I'm new to Python, so i'm still exploring the syntax, and i'd like some advice on doing this. [/INST] Try this: Python Property The sample code is: class C(object): def __init__(self): self._x = None @property def x(self): """I'm the 'x' property.""" print "getter of x called" return self._x @x.setter def x(self, value): print "setter of x called" self._x = value @x.deleter def x(self): print "deleter of x called" del self._x [INST] Can iterators be reset in Python? Can I reset an iterator / generator in Python? I am using DictReader and would like to reset it (from the csv module) to the beginning of the file. [/INST] I see many answers suggesting itertools.tee, but that's ignoring one crucial warning in the docs for it: This itertool may require significant auxiliary storage (depending on how much temporary data needs to be stored). In general, if one iterator uses most or all of the data before another iterator starts, it is faster to use list() instead of tee(). Basically, tee is designed for those situation where two (or more) clones of one iterator, while "getting out of sync" with each other, don't do so by much -- rather, they say in the same "vicinity" (a few items behind or ahead of each other). Not suitable for the OP's problem of "redo from the start". L = list(DictReader(...)) on the other hand is perfectly suitable, as long as the list of dicts can fit comfortably in memory. A new "iterator from the start" (very lightweight and low-overhead) can be made at any time with iter(L), and used in part or in whole without affecting new or existing ones; other access patterns are also easily available. As several answers rightly remarked, in the specific case of csv you can also .seek(0) the underlying file object (a rather special case). I'm not sure that's documented and guaranteed, though it does currently work; it would probably be worth considering only for truly huge csv files, in which the list I recommmend as the general approach would have too large a memory footprint. [INST] Outputting data from unit test in python If I'm writing unit tests in python (using the unittest module), is it possible to output data from a failed test, so I can examine it to help deduce what caused the error? I am aware of the ability to create a customized message, which can carry some information, but sometimes you might deal with more complex data, that can't easily be represented as a string. For example, suppose you had a class Foo, and were testing a method bar, using data from a list called testdata: class TestBar(unittest.TestCase): def runTest(self): for t1, t2 in testdata: f = Foo(t1) self.assertEqual(f.bar(t2), 2) If the test failed, I might want to output t1, t2 and/or f, to see why this particular data resulted in a failure. By output, I mean that the variables can be accessed like any other variables, after the test has been run. [/INST] We use the logging module for this. For example: import logging class SomeTest( unittest.TestCase ): def testSomething( self ): log= logging.getLogger( "SomeTest.testSomething" ) log.debug( "this= %r", self.this ) log.debug( "that= %r", self.that ) # etc. self.assertEquals( 3.14, pi ) if __name__ == "__main__": logging.basicConfig( stream=sys.stderr ) logging.getLogger( "SomeTest.testSomething" ).setLevel( logging.DEBUG ) unittest.main() That allows us to turn on debugging for specific tests which we know are failing and for which we want additional debugging information. My preferred method, however, isn't to spent a lot of time on debugging, but spend it writing more fine-grained tests to expose the problem. [INST] How can I find the missing value more concisely? The following code checks if x and y are distinct values (the variables x, y, z can only have values a, b, or c) and if so, sets z to the third character: if x == 'a' and y == 'b' or x == 'b' and y == 'a': z = 'c' elif x == 'b' and y == 'c' or x == 'c' and y == 'b': z = 'a' elif x == 'a' and y == 'c' or x == 'c' and y == 'a': z = 'b' Is is possible to do this in a more, concise, readable and efficient way? [/INST] z = (set(("a", "b", "c")) - set((x, y))).pop() I am assuming that one of the three cases in your code holds. If this is the case, the set set(("a", "b", "c")) - set((x, y)) will consist of a single element, which is returned by pop(). Edit: As suggested by Raymond Hettinger in the comments, you could also use tuple unpacking to extract the single element from the set: z, = set(("a", "b", "c")) - set((x, y)) [INST] How can you dynamically create variables via a while loop? I want to create variables dynamically via to a while loop in Python. Anyone have any creative means of doing this? [/INST] Unless there is an overwhelming need to create a mess of variable names, I would just use a dictionary, where you can dynamically create the key names and associate a value to each. a = {} k = 0 while k < 10: key = ... value = ... a[key] = value k += 1 There are also some interesting data structures in the new 'collections' module that might be applicable: http://docs.python.org/dev/library/collections.html [INST] What is the official "preferred" way to install pip and virtualenv systemwide? Is it this, which people seem to recommend most often: $ sudo apt-get install python-setuptools $ sudo easy_install pip $ sudo pip install virtualenv Or this, which I got from http://www.pip-installer.org/en/latest/installing.html: $ curl -O https://github.com/pypa/virtualenv/raw/master/virtualenv.py $ python virtualenv.py my_new_env $ . my_new_env/bin/activate (my_new_env)$ pip install ... Or something entirely different? [/INST] If you can install the latest Python (2.7.9 and up) Pip is now bundled with it. See: https://docs.python.org/2.7//installing/index.html If not : Update (from the release notes): Beginning with v1.5.1, pip does not require setuptools prior to running get-pip.py. Additionally, if setuptools (or distribute) is not already installed, get-pip.py will install setuptools for you. I now run the regular: curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 Here are the official installation instructions: http://pip.readthedocs.org/en/latest/installing.html#install-pip EDIT 25-Jul-2013: Changed URL for setuptools install. EDIT 10-Feb-2014: Removed setuptools install (thanks @Ciantic) EDIT 26-Jun-2014: Updated URL again (thanks @LarsH) EDIT 1-Mar-2015: Pip is now bundled with Python [INST] What is causing ImportError: No module named pkg_resources after upgrade of Python on os X? I just updated Python to 2.6.4 on my Mac. I installed from the dmg package. The binary did not seem to correctly set my Python path, so I added '/usr/local/lib/python2.6/site-packages' in .bash_profile >>> pprint.pprint(sys.path) ['', '/Users/Bryan/work/django-trunk', '/usr/local/lib/python2.6/site-packages', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages'] Apparently that is not all the required paths because I can't run iPython. $ ipython Traceback (most recent call last): File "/usr/local/bin/ipython", line 5, in from pkg_resources import load_entry_point ImportError: No module named `pkg_resources` I've done Google searches and I can't really figure out how to install pkg_resources or make sure it's on the path. What do I need to do to fix this? [/INST] I encountered the same ImportError. Somehow the setuptools package had been deleted in my Python environment. To fix the issue, run the setup script for setuptools: curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python If you have any version of distribute, or any setuptools below 0.6, you will have to uninstall it first.* See Installation Instructions for further details. * If you already have a working distribute, upgrading it to the "compatibility wrapper" that switches you over to setuptools is easier. But if things are already broken, don't try that. [INST] Is it possible to hide the browser in Selenium RC? I am using Selenium RC to automate some browser operations but I want the browser to be invisible. Is this possible? How? What about Selenium Grid? Can I hide the Selenium RC window also? [/INST] There are a few options: You could use Selenium Grid so that the browser is opened on a completely different machine (or virtual machine) that you can then connect to via VNC or Remote Desktop Connection if you wanted to see the browser. Also, another option: if you run a Jenkins foreground process on that remote server, it can execute your test project on the desktop. You can run Selenium 'headless' on Linux in XVFB. I've never tried doing this and doubt it's really worth the effort. http://www.alittlemadness.com/2008/03/05/running-selenium-headless/ You can wrap Selenium RC in a Windows service. http://support.microsoft.com/kb/137890 . Except that permissions constraints on later versions of windows will probably prevent Selenium from accessing the desktop like Windows 2000 used to allow us to do. Another option would be to use something like WebDriver HTMLUnitDriver, which doesn't launch a 'real' browser. http://code.google.com/p/webdriver/ . Also there is a PhantomJS option as well as a 'headless Chrome' that you could use. Of course there's also the option of using a service like SauceLabs, where you can get your tests to be run in the cloud. After your tests have completed you can watch a video of them running. [INST] How do I compile a Visual Studio project from the command-line? I'm scripting the checkout, build, distribution, test, and commit cycle for a large C++ solution that is using Monotone, CMake, Visual Studio Express 2008, and custom tests. All of the other parts seem pretty straight-forward, but I don't see how to compile the Visual Studio solution without getting the GUI. The script is written in Python, but an answer that would allow me to just make a call to: os.system would do. [/INST] I know of two ways to do it. Method 1 The first method (which I prefer) is to use msbuild: msbuild project.sln /Flags... Method 2 You can also run: vcexpress project.sln /build /Flags... The vcexpress option returns immediately and does not print any output. I suppose that might be what you want for a script. Note that DevEnv is not distributed with Visual Studio Express 2008 (I spent a lot of time trying to figure that out when I first had a similar issue). So, the end result might be: os.system("msbuild project.sln /p:Configuration=Debug") You'll also want to make sure your environment variables are correct, as msbuild and vcexpress are not by default on the system path. Either start the Visual Studio build environment and run your script from there, or modify the paths in Python (with os.putenv). [INST] Exit codes in Python I got a message saying script xyz.py returned exit code 0. What does this mean? What do the exit codes in Python mean? How many are there? Which ones are important? [/INST] What you're looking for in the script is calls to sys.exit(). The argument to that method is returned to the environment as the exit code. It's fairly likely that the script is never calling the exit method, and that 0 is the default exit code. [INST] Generating file to download with Django Is it possible to make a zip archive and offer it to download, but still not save a file to the hard drive? [/INST] To trigger a download you need to set Content-Disposition header: from django.http import HttpResponse from wsgiref.util import FileWrapper # generate the file response = HttpResponse(FileWrapper(myfile.getvalue()), content_type='application/zip') response['Content-Disposition'] = 'attachment; filename=myfile.zip' return response If you don't want the file on disk you need to use StringIO import cStringIO as StringIO myfile = StringIO.StringIO() while not_finished: # generate chunk myfile.write(chunk) Optionally you can set Content-Length header as well: response['Content-Length'] = myfile.tell() [INST] Read large text files in Python, line by line without loading it in to memory I need to read a large file, line by line. Lets say that file has more than 5GB and I need to read each line, but obviously I do not want to use readlines() because it will create a very large list in the memory. How will the code below work for this case? Is xreadlines itself reading one by one into memory? Is the generator expression needed? f = (line for line in open("log.txt").xreadlines()) # how much is loaded in memory? f.next() Plus, what can I do to read this in reverse order, just as the Linux tail command? I found: http://code.google.com/p/pytailer/ and "python head, tail and backward read by lines of a text file" Both worked very well! [/INST] I provided this answer because Keith's, while succinct, doesn't close the file explicitly with open("log.txt") as infile: for line in infile: do_something_with(line) [INST] Dictionary vs Object - which is more efficient and why? What is more efficient in Python in terms of memory usage and CPU consumption - Dictionary or Object? Background: I have to load huge amount of data into Python. I created an object that is just a field container. Creating 4M instances and putting them into a dictionary took about 10 minutes and ~6GB of memory. After dictionary is ready, accessing it is a blink of an eye. Example: To check the performance I wrote two simple programs that do the same - one is using objects, other dictionary: Object (execution time ~18sec): class Obj(object): def __init__(self, i): self.i = i self.l = [] all = {} for i in range(1000000): all[i] = Obj(i) Dictionary (execution time ~12sec): all = {} for i in range(1000000): o = {} o['i'] = i o['l'] = [] all[i] = o Question: Am I doing something wrong or dictionary is just faster than object? If indeed dictionary performs better, can somebody explain why? [/INST] Have you tried using __slots__? From the documentation http://docs.python.org/reference/datamodel.html#slots: "By default, instances of both old and new-style classes have a dictionary for attribute storage. This wastes space for objects having very few instance variables. The space consumption can become acute when creating large numbers of instances. The default can be overridden by defining __slots__ in a new-style class definition. The __slots__ declaration takes a sequence of instance variables and reserves just enough space in each instance to hold a value for each variable. Space is saved because __dict__ is not created for each instance." So does this save time as well as memory? Comparing the three approaches on my computer: test_slots.py: class Obj(object): __slots__ = ('i', 'l') def __init__(self, i): self.i = i self.l = [] all = {} for i in range(1000000): all[i] = Obj(i) test_obj.py: class Obj(object): def __init__(self, i): self.i = i self.l = [] all = {} for i in range(1000000): all[i] = Obj(i) test_dict.py: all = {} for i in range(1000000): o = {} o['i'] = i o['l'] = [] all[i] = o test_namedtuple.py (supported in 2.6): import collections Obj = collections.namedtuple('Obj', 'i l') all = {} for i in range(1000000): all[i] = Obj(i, []) Run benchmark (using CPython 2.5): $ lshw | grep product | head -n 1 product: Intel(R) Pentium(R) M processor 1.60GHz $ python --version Python 2.5 $ time python test_obj.py && time python test_dict.py && time python test_slots.py real 0m27.398s (using 'normal' object) real 0m16.747s (using __dict__) real 0m11.777s (using __slots__) Using CPython 2.6.2, including the named tuple test: $ python --version Python 2.6.2 $ time python test_obj.py && time python test_dict.py && time python test_slots.py && time python test_namedtuple.py real 0m27.197s (using 'normal' object) real 0m17.657s (using __dict__) real 0m12.249s (using __slots__) real 0m12.262s (using namedtuple) So yes (not really a surprise), using __slots__ is a performance optimization. Using a named tuple has similar performance to __slots__.  7[INST] Why declare unicode by string in python? I'm still learning python and I have a doubt: In python 2.6.x I usually declare encoding in the file header like this (as in PEP 0263) # -*- coding: utf-8 -*- After that, my strings are written as usual: a = "A normal string without declared Unicode" But everytime I see a python project code, the encoding is not declared at the header. Instead, it is declared at every string like this: a = u"A string with declared Unicode" What's the difference? What's the purpose of this? I know Python 2.6.x sets ASCII encoding by default, but it can be overriden by the header declaration, so what's the point of per string declaration? Addendum: Seems that I've mixed up file encoding with string encoding. Thanks for explaining it :) [/INST] Those are two different things, as others have mentioned. When you specify # -*- coding: utf-8 -*-, you're telling Python the source file you've saved is utf-8. The default for Python 2 is ASCII (for Python 3 it's utf-8). This just affects how the interpreter reads the characters in the file. In general, it's probably not the best idea to embed high unicode characters into your file no matter what the encoding is; you can use string unicode escapes, which work in either encoding. When you declare a string with a u in front, like u'This is a string', it tells the Python compiler that the string is Unicode, not bytes. This is handled mostly transparently by the interpreter; the most obvious difference is that you can now embed unicode characters in the string (that is, u'\u2665' is now legal). You can use from __future__ import unicode_literals to make it the default. This only applies to Python 2; in Python 3 the default is Unicode, and you need to specify a b in front (like b'These are bytes', to declare a sequence of bytes). [INST] Parsing XML with namespace in Python via 'ElementTree' I have the following XML which I want to parse using Python's ElementTree: basketball league a group of sports teams that compete against each other in Basketball I want to find all owl:Class tags and then extract the value of all rdfs:label instances inside them. I am using the following code: tree = ET.parse("filename") root = tree.getroot() root.findall('owl:Class') Because of the namespace, I am getting the following error. SyntaxError: prefix 'owl' not found in prefix map I tried reading the document at http://effbot.org/zone/element-namespaces.htm but I am still not able to get this working since the above XML has multiple nested namespaces. Kindly let me know how to change the code to find all the owl:Class tags. [/INST] ElementTree is not too smart about namespaces. You need to give the .find(), findall() and iterfind() methods an explicit namespace dictionary. This is not documented very well: namespaces = {'owl': 'http://www.w3.org/2002/07/owl#'} # add more as needed root.findall('owl:Class', namespaces) Prefixes are only looked up in the namespaces parameter you pass in. This means you can use any namespace prefix you like; the API splits off the owl: part, looks up the corresponding namespace URL in the namespaces dictionary, then changes the search to look for the XPath expression {http://www.w3.org/2002/07/owl}Class instead. You can use the same syntax yourself too of course: root.findall('{http://www.w3.org/2002/07/owl#}Class') If you can switch to the lxml library things are better; that library supports the same ElementTree API, but collects namespaces for you in a .nsmap attribute on elements. [INST] Can I redirect the stdout in python into some sort of string buffer? I'm using python's ftplib to write a small FTP client, but some of the functions in the package don't return string output, but print to stdout. I want to redirect stdout to an object which I'll be able to read the output from. I know stdout can be redirected into any regular file with: stdout = open("file", "a") But I prefer a method that doesn't uses the local drive. I'm looking for something like the BufferedReader in Java that can be used to wrap a buffer into a stream. [/INST] from cStringIO import StringIO import sys old_stdout = sys.stdout sys.stdout = mystdout = StringIO() # blah blah lots of code ... sys.stdout = old_stdout # examine mystdout.getvalue() [INST] How do i get python's pprint to return a string instead of printing? In other words, what's the sprintf equivalent to pprint? [/INST] The pprint module has a command named pformat, for just that purpose. From the documentation: Return the formatted representation of object as a string. indent, width and depth will be passed to the PrettyPrinter constructor as formatting parameters. Example: >>> import pprint >>> people = [ ... {"first": "Brian", "last": "Kernighan"}, ... {"first": "Dennis", "last": "Richie"}, ... ] >>> pprint.pformat(people, indent=4) "[ { 'first': 'Brian', 'last': 'Kernighan'},\n { 'first': 'Dennis', 'last': 'Richie'}]" [INST] How to send email to multiple recipients using python smtplib? After much searching I couldn't find out how to use smtplib.sendmail to send to multiple recipients. The problem was every time the mail would be sent the mail headers would appear to contain multiple addresses, but in fact only the first recipient would receive the email. The problem seems to be that the email.Message module expects something different than the smtplib.sendmail() function. In short, to send to multiple recipients you should set the header to be a string of comma delimited email addresses. The sendmail() parameter to_addrs however should be a list of email addresses. from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText import smtplib msg = MIMEMultipart() msg["Subject"] = "Example" msg["From"] = "me@example.com" msg["To"] = "malcom@example.com,reynolds@example.com,firefly@example.com" msg["Cc"] = "serenity@example.com,inara@example.com" body = MIMEText("example email body") msg.attach(body) smtp = smtplib.SMTP("mailhost.example.com", 25) smtp.sendmail(msg["From"], msg["To"].split(",") + msg["Cc"].split(","), msg.as_string()) smtp.quit() [/INST] This really works, I spent a lot of time trying multiple variants. import smtplib from email.mime.text import MIMEText s = smtplib.SMTP('smtp.uk.xensource.com') s.set_debuglevel(1) msg = MIMEText("""body""") sender = 'me@example.com' recipients = ['john.doe@example.com', 'john.smith@example.co.uk'] msg['Subject'] = "subject line" msg['From'] = sender msg['To'] = ", ".join(recipients) s.sendmail(sender, recipients, msg.as_string()) [INST] Random strings in Python 2.6 (Is this OK?) I've been trying to find a more pythonic way of generating random string in python that can scale as well. Typically, I see something similar to ''.join(random.choice(string.letters) for i in xrange(len)) It sucks if you want to generate long string. I've been thinking about random.getrandombits for a while, and figuring out how to convert that to an array of bits, then hex encode that. Using python 2.6 I came across the bitarray object, which isn't documented. Somehow I got it to work, and it seems really fast. It generates a 50mil random string on my notebook in just about 3 seconds. def rand1(leng): nbits = leng * 6 + 1 bits = random.getrandbits(nbits) uc = u"%0x" % bits newlen = int(len(uc) / 2) * 2 # we have to make the string an even length ba = bytearray.fromhex(uc[:newlen]) return base64.urlsafe_b64encode(str(ba))[:leng] edit heikogerlach pointed out that it was an odd number of characters causing the issue. New code added to make sure it always sent fromhex an even number of hex digits. Still curious if there's a better way of doing this that's just as fast. [/INST] import os random_string = os.urandom(string_length) [INST] Does python have an equivalent to Java Class.forName()? I have the need to take a string argument and create an object of the class named in that string in Python. In Java, I would use Class.forName().newInstance(). Is there an equivalent in Python? Thanks for the responses. To answer those who want to know what I'm doing: I want to use a command line argument as the class name, and instantiate it. I'm actually programming in Jython and instantiating Java classes, hence the Java-ness of the question. getattr() works great. Thanks much. [/INST] Reflection in python is a lot easier and far more flexible than it is in Java. I recommend reading this tutorial There's no direct function (that I know of) which takes a fully qualified class name and returns the class, however you have all the pieces needed to build that, and you can connect them together. One bit of advice though: don't try to program in Java style when you're in python. If you can explain what is it that you're trying to do, maybe we can help you find a more pythonic way of doing it. Here's a function that does what you want: def get_class( kls ): parts = kls.split('.') module = ".".join(parts[:-1]) m = __import__( module ) for comp in parts[1:]: m = getattr(m, comp) return m You can use the return value of this function as if it were the class itself. Here's a usage example: >>> D = get_class("datetime.datetime") >>> D >>> D.now() datetime.datetime(2009, 1, 17, 2, 15, 58, 883000) >>> a = D( 2010, 4, 22 ) >>> a datetime.datetime(2010, 4, 22, 0, 0) >>> How does that work? We're using __import__ to import the module that holds the class, which required that we first extract the module name from the fully qualified name. Then we import the module: m = __import__( module ) In this case, m will only refer to the top level module, For example, if your class lives in foo.baz module, then m will be the module foo We can easily obtain a reference to foo.baz using getattr( m, 'baz' ) To get from the top level module to the class, have to recursively use gettatr on the parts of the class name Say for example, if you class name is foo.baz.bar.Model then we do this: m = __import__( "foo.baz.bar" ) #m is package foo m = getattr( m, "baz" ) #m is package baz m = getattr( m, "bar" ) #m is module bar m = getattr( m, "Model" ) #m is class Model This is what's happening in this loop: for comp in parts[1:]: m = getattr(m, comp) At the end of the loop, m will be a reference to the class. This means that m is actually the class itslef, you can do for instance: a = m() #instantiate a new instance of the class b = m( arg1, arg2 ) # pass arguments to the constructor [INST] convert a string of bytes into an int (python) How can I convert a string of bytes into an int in python? Say like this: 'y\xcc\xa6\xbb' I came up with a clever/stupid way of doing it: sum(ord(c) << (i * 8) for i, c in enumerate('y\xcc\xa6\xbb'[::-1])) I know there has to be something builtin or in the standard library that does this more simply... This is different from converting a string of hex digits for which you can use int(xxx, 16), but instead I want to convert a string of actual byte values. UPDATE: I kind of like James' answer a little better because it doesn't require importing another module, but Greg's method is faster: >>> from timeit import Timer >>> Timer('struct.unpack(">> Timer("int('y\xcc\xa6\xbb'.encode('hex'), 16)").timeit() 1.1432669162750244 My hacky method: >>> Timer("sum(ord(c) << (i * 8) for i, c in enumerate('y\xcc\xa6\xbb'[::-1]))").timeit() 2.8819329738616943 FURTHER UPDATE: Someone asked in comments what's the problem with importing another module. Well, importing a module isn't necessarily cheap, take a look: >>> Timer("""import struct\nstruct.unpack(">L", "y\xcc\xa6\xbb")[0]""").timeit() 0.98822188377380371 Including the cost of importing the module negates almost all of the advantage that this method has. I believe that this will only include the expense of importing it once for the entire benchmark run; look what happens when I force it to reload every time: >>> Timer("""reload(struct)\nstruct.unpack(">L", "y\xcc\xa6\xbb")[0]""", 'import struct').timeit() 68.474128007888794 Needless to say, if you're doing a lot of executions of this method per one import than this becomes proportionally less of an issue. It's also probably i/o cost rather than cpu so it may depend on the capacity and load characteristics of the particular machine. [/INST] In Python 3.2 and later, use >>> int.from_bytes(b'y\xcc\xa6\xbb', byteorder='big') 2043455163 or >>> int.from_bytes(b'y\xcc\xa6\xbb', byteorder='little') 3148270713 according to the endianness of your byte-string. This also works for bytestring-integers of arbitrary length, and for two's-complement signed integers by specifying signed=True. See the docs for from_bytes. [INST] Clear variable in python Is there a way to clear the value of a variable in python? For example if I was implementing a binary tree: Class Node: self.left = somenode1 self.right = somenode2 If I wanted to remove some node from the tree, I would need to set self.left to empty. [/INST] The del keyword would do. >>> a=1 >>> a 1 >>> del a >>> a Traceback (most recent call last): File "", line 1, in NameError: name 'a' is not defined EDITED: But in this case I vote for self.left = None [INST] Using OR in SQLAlchemy I've looked through the docs and I cant seem to find out how to do an OR query in SQLAlchemy. I just want to do this query. SELECT address FROM addressbook WHERE city='boston' AND (lastname='bulger' OR firstname='whitey') Should be something like addr = session.query(AddressBook).filter(City == "boston").filter(????) [/INST] SQLAlchemy overloads the bitwise operators &, | and ~ so instead of the ugly and hard-to-read prefix syntax with or_() and and_() (like in Bastien's answer) you can use these operators: .filter((AddressBook.lastname == 'bulger') | (AddressBook.firstname == 'whitey')) Note that the parentheses are not optional due to the precedence of the bitwise operators. So your whole query could look like this: addr = session.query(AddressBook) \ .filter(AddressBook.city == "boston") \ .filter((AddressBook.lastname == 'bulger') | (AddressBook.firstname == 'whitey')) [INST] Python strptime() and timezones? I have a CSV dumpfile from a Blackberry IPD backup, created using IPDDump. The date/time strings in here look something like this (where EST is an Australian time-zone): Tue Jun 22 07:46:22 EST 2010 I need to be able to parse this date in Python. At first, I tried to use the strptime() function from datettime. >>> datetime.datetime.strptime('Tue Jun 22 12:10:20 2010 EST', '%a %b %d %H:%M:%S %Y %Z') However, for some reason, the datetime object that comes back doesn't seem to have any tzinfo associated with it. I did read on this page that apparently datetime.strptime silently discards tzinfo, however, I checked the documentation, and I can't find anything to that effect documented here. I have been able to get the date parsed using a third-party Python library, dateutil, however I'm still curious as to how I was using the in-built strptime() incorrectly? Is there any way to get strptime() to play nicely with timezones? [/INST] I recommend using python-dateutil. Its parser has been able to parse every date format I've thrown at it so far. >>> from dateutil import parser >>> parser.parse("Tue Jun 22 07:46:22 EST 2010") datetime.datetime(2010, 6, 22, 7, 46, 22, tzinfo=tzlocal()) >>> parser.parse("Fri, 11 Nov 2011 03:18:09 -0400") datetime.datetime(2011, 11, 11, 3, 18, 9, tzinfo=tzoffset(None, -14400)) >>> parser.parse("Sun") datetime.datetime(2011, 12, 18, 0, 0) >>> parser.parse("10-11-08") datetime.datetime(2008, 10, 11, 0, 0) and so on. No dealing with strptime() format nonsense... just throw a date at it and it Does The Right Thing. Update: Oops. I missed in your original question that you mentioned that you used dateutil, sorry about that. But I hope this answer is still useful to other people who stumble across this question when they have date parsing questions and see the utility of that module. [INST] Python/Django: log to console under runserver, log to file under Apache How can I send trace messages to the console (like print) when I'm running my Django app under manage.py runserver, but have those messages sent to a log file when I'm running the app under Apache? I reviewed Django logging and although I was impressed with its flexibility and configurability for advanced uses, I'm still stumped with how to handle my simple use-case. [/INST] Here's a Django logging-based solution. It uses the DEBUG setting rather than actually checking whether or not you're running the development server, but if you find a better way to check for that it should be easy to adapt. LOGGING = { 'version': 1, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' }, 'simple': { 'format': '%(levelname)s %(message)s' }, }, 'handlers': { 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple' }, 'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': '/path/to/your/file.log', 'formatter': 'simple' }, }, 'loggers': { 'django': { 'handlers': ['file'], 'level': 'DEBUG', 'propagate': True, }, } } if DEBUG: # make all loggers use the console. for logger in LOGGING['loggers']: LOGGING['loggers'][logger]['handlers'] = ['console'] see https://docs.djangoproject.com/en/dev/topics/logging/ for details. [INST] Changing default encoding of Python? I have many "can't encode" and "can't decode" problems with Python when I run my applications from the console. But in the Eclipse PyDev IDE, the default character encoding is set to UTF-8, and I'm fine. I searched around for setting the default encoding, and people say that Python deletes the sys.setdefaultencoding function on startup, and we can not use it. So what's the best solution for it? [/INST] Here is a simpler method (hack) that gives you back the setdefaultencoding() function that was deleted from sys: import sys # sys.setdefaultencoding() does not exist, here! reload(sys) # Reload does the trick! sys.setdefaultencoding('UTF8') PS: This is obviously a hack, since sys.setdefaultencoding() is purposely removed from sys when Python starts. Reenabling it and changing the default encoding can break code that relies on ASCII being the default (this code can be third-party, which would generally make fixing it impossible or dangerous). [INST] How do you automatically remove the preview window after autocompletion in Vim? I'm using omnifunc=pythoncomplete. When autocompleting a word (e.g., os.), I get the list of eligible class members and functions, as expected, as well as a scratch buffer preview window with documentation about the selected member or function. This is great, but after selecting the function I want, the preview window remains. I can get rid of it with ":pc", but I'd like it just to automatically disappear after I've selected my function, a la Eclipse. I've played around with "completeopt" but to no avail. [/INST] Put the following in your vimrc: " If you prefer the Omni-Completion tip window to close when a selection is " made, these lines close it on movement in insert mode or when leaving " insert mode autocmd CursorMovedI * if pumvisible() == 0|pclose|endif autocmd InsertLeave * if pumvisible() == 0|pclose|endif [INST] What does Python's eval() do? In the book that I am reading on Python, it keeps using the code eval(input('blah')) I read the documentation, and I understand it, but I still do not see how it changes the input() function. What does it do? Can someone explain? [/INST] The eval function lets a python program run python code within itself. eval example (interactive shell): >>> x = 1 >>> eval('x + 1') 2 >>> eval('x') 1 [INST] Lists in ConfigParser The typical ConfigParser generated file looks like: [Section] bar=foo [Section 2] bar2= baz Now, is there a way to index lists like, for instance: [Section 3] barList={ item1, item2 } Related question: Python’s ConfigParser unique keys per section ? Thanks in advance [/INST] Also a bit late, but maybe helpful for some. I am using a combination of ConfigParser and JSON: [Foo] fibs: [1,1,2,3,5,8,13] just read it with: >>> json.loads(config.get("Foo","fibs")) [1, 1, 2, 3, 5, 8, 13] You can even break lines if your list is long (thanks @peter-smit): [Bar] files_to_check = [ "/path/to/file1", "/path/to/file2", "/path/to/another file with space in the name" ] Of course i could just use JSON, but i find config files much more readable, and the [DEFAULT] Section very handy. [INST] Python memoising/deferred lookup property decorator Recently I've gone through an existing code base containing many classes where instance attributes reflect values stored in a database. I've refactored a lot of these attributes to have their database lookups be deferred, ie. not be initialised in the constructor but only upon first read. These attributes do not change over the lifetime of the instance, but they're a real bottleneck to calculate that first time and only really accessed for special cases. Hence they can also be cached after they've been retrieved from the database (this therefore fits the definition of memoisation where the input is simply "no input"). I find myself typing the following snippet of code over and over again for various attributes across various classes: class testA(object): def __init__(self): self._a = None self._b = None @property def a(self): if self._a is None: # Calculate the attribute now self._a = 7 return self._a @property def b(self): #etc Is there an existing decorator to do this already in Python that I'm simply unaware of? Or, is there a reasonably simple way to define a decorator that does this? I'm working under Python 2.5, but 2.6 answers might still be interesting if they are significantly different. Note This question was asked before Python included a lot of ready-made decorators for this. I have updated it only to correct terminology. [/INST] Here is an example implementation of a lazy property decorator: def lazyprop(fn): attr_name = '_lazy_' + fn.__name__ @property def _lazyprop(self): if not hasattr(self, attr_name): setattr(self, attr_name, fn(self)) return getattr(self, attr_name) return _lazyprop class Test(object): @lazyprop def a(self): print 'generating "a"' return range(5) Interactive session: >>> t = Test() >>> t.__dict__ {} >>> t.a generating "a" [0, 1, 2, 3, 4] >>> t.__dict__ {'_lazy_a': [0, 1, 2, 3, 4]} >>> t.a [0, 1, 2, 3, 4] [INST] Python Flask, how to set content type I am using Flask and I return an XML file from a get request. How do I set the content type? e.g. @app.route('/ajax_ddl') def ajax_ddl(): xml = 'foo' header("Content-type: text/xml") return xml [/INST] Try like this: from flask import Response @app.route('/ajax_ddl') def ajax_ddl(): xml = 'foo' return Response(xml, mimetype='text/xml') The actual Content-Type is based on the mimetype parameter and the charset (defaults to UTF-8). Response (and request) objects are documented here: http://werkzeug.pocoo.org/docs/wrappers/ [INST] `if __name__ == '__main__'` equivalent in Ruby I am new to Ruby. I'm looking to import functions from a module that contains a tool I want to continue using separately. In Python I would simply do this: def a(): ... def b(): ... if __name__ == '__main__': a() b() This allows me to run the program or import it as a module to use a() and/or b() separately. What's the equivalent paradigm in Ruby? [/INST] From the Ruby I've seen out in the wild (granted, not a ton), this is not a standard Ruby design pattern. Modules and scripts are supposed to stay separate, so I wouldn't be surprised if there isn't really a good, clean way of doing this. EDIT: Found it. if __FILE__ == $0 foo() bar() end But it's definitely not common. [INST] Recommended .gitignore file for Python projects? I'm trying to collect some of my default settings, and one thing I realized I don't have a standard for is .gitignore files. There's a great thread showing a good .gitignore for Visual Studio projects, but I don't see many recommendations for Python and related tools (PyGTK, Django). So far, I have... *.pyc *.pyo ...for the compiled objects and... build/ dist/ ...for the setuptools output. Any more recommendations for me? [/INST] Github has a great boilerplate .gitignore # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] # C extensions *.so # Distribution / packaging bin/ build/ develop-eggs/ dist/ eggs/ lib/ lib64/ parts/ sdist/ var/ *.egg-info/ .installed.cfg *.egg # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports .tox/ .coverage .cache nosetests.xml coverage.xml # Translations *.mo # Mr Developer .mr.developer.cfg .project .pydevproject # Rope .ropeproject # Django stuff: *.log *.pot # Sphinx documentation docs/_build/ [INST] In Python, why can a function modify some arguments as perceived by the caller, but not others? I'm new to Python and am trying to understand its approach to variable scope. In this example, why is f() able to alter the value of x, as perceived within main(), but not the value of n? def f(n, x): n = 2 x.append(4) print 'In f():', n, x def main(): n = 1 x = [0,1,2,3] print 'Before:', n, x f(n, x) print 'After: ', n, x main() Output: Before: 1 [0, 1, 2, 3] In f(): 2 [0, 1, 2, 3, 4] After: 1 [0, 1, 2, 3, 4] [/INST] Some answers contain the word "copy" in a context of a function call. I find it confusing. Python doesn't copy objects you pass during a function call ever. Function parameters are names. When you call a function Python binds these parameters to whatever objects you pass (via names in a caller scope). Objects can be mutable (like lists) or immutable (like integers, strings in Python). Mutable object you can change. You can't change a name, you just can bind it to another object. Your example is not about scopes or namespaces, it is about naming and binding and mutability of an object in Python. def f(n, x): # these `n`, `x` have nothing to do with `n` and `x` from main() n = 2 # put `n` label on `2` balloon x.append(4) # call `append` method of whatever object `x` is referring to. print 'In f():', n, x x = [] # put `x` label on `[]` ballon # x = [] has no effect on the original list that is passed into the function Here are nice pictures on the difference between variables in other languages and names in Python. [INST] New line Python How would I specify a new line in python? For a comparison to Java in a String you would do something like "First Line\r\nSecond Line" So How would you do that in Python? For purposes of saving files with more then one line. [/INST] Depends on how correct you want to be. \n will usually do the job. If you really want to get it right you look up the newline character in the os package. (It's actually called linesep.) Note: when writing to files using the Python api, do not use the os.linesep. Just use \n, Python automatically translates that to the proper newline character for your platform. [INST] How can I parse JSON in Google App Engine? I'd like to parse a JSON string into an object under Google App Engine (python). What do you recommend? Something to encode/stringify would be nice too. Is what you recommend built in, or a library that I have to include in my app? Is it secure? Thanks. [/INST] Consider using Django's json lib, which is included with GAE. from django.utils import simplejson as json # load the object from a string obj = json.loads( string ) The link above has examples of Django's serializer, and here's the link for simplejson's documentation. If you're looking at storing Python class instances or objects (as opposed to compositions of lists, strings, numbers, and dictionaries), you probably want to look at pickle. I hope that helps. Incidentally, to get Django 1.0 (instead of Django 0.96) running on GAE, you can use the following call in your main.py, per this article: from google.appengine.dist import use_library use_library('django', '1.0') Edit: Native JSON support in Google App Engine 1.6.0 with Python 2.7 As of Google App Engine 1.6.0, you can use the Python 2.7 runtime by adding runtime: python27 in app.yaml, and then you can import the native JSON library with import json. [INST] Python 3 ImportError: No module named 'ConfigParser' I am trying to pip install the MySQL-python package, but I get an ImportError. Jans-MacBook-Pro:~ jan$ /Library/Frameworks/Python.framework/Versions/3.3/bin/pip-3.3 install MySQL-python Downloading/unpacking MySQL-python Running setup.py egg_info for package MySQL-python Traceback (most recent call last): File "", line 16, in File "/var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-python/setup.py", line 14, in from setup_posix import get_config File "./setup_posix.py", line 2, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 16, in File "/var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-python/setup.py", line 14, in from setup_posix import get_config File "./setup_posix.py", line 2, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/pip-build/MySQL-python Storing complete log in /Users/jan/.pip/pip.log Jans-MacBook-Pro:~ jan$ Any ideas? [/INST] You can instead use the mysqlclient package as a drop-in replacement for MySQL-python. It is a fork of MySQL-python with added support for Python 3. I had luck with simply pip install mysqlclient in my python3.4 virtualenv after sudo apt-get install python3-dev libmysqlclient-dev which is obviously specific to ubuntu/debian, but I just wanted to share my success :) [INST] python capitalize first letter only I am aware .capitalize() capitalizes the first letter of a string but what if the first character is a integer? this 1bob 5sandy to this 1Bob 5Sandy [/INST] Only because no one else has mentioned it: >>> 'bob'.title() 'Bob' >>> 'sandy'.title() 'Sandy' >>> '1bob'.title() '1Bob' >>> '1sandy'.title() '1Sandy' However, this would also give >>> '1bob sandy'.title() '1Bob Sandy' >>> '1JoeBob'.title() '1Joebob' i.e. it doesn't just capitalize the first alphabetic character. But then .capitalize() has the same issue, at least in that 'joe Bob'.capitalize() == 'Joe bob', so meh. [INST] Installing python module within code I need to install a package from PyPi straight within my script. Maybe there's exists module or distutils (distribute, pip) ability which allows me just execute something like pypi.install('requests') and requests will be installed into my virtualenv, and I should not type pip install requests in my shell? [/INST] You can also use something like: import pip def install(package): pip.main(['install', package]) # Example if __name__ == '__main__': install('argh') [INST] What is the maximum float in Python? I think the maximum integer in python is available by calling sys.maxint. What is the maximum float or long in Python? [/INST] For float have a look at sys.float_info: >>> import sys >>> sys.float_info sys.floatinfo(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308, min=2.2 250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15, mant_dig=53, epsil on=2.2204460492503131e-16, radix=2, rounds=1) Specifically, sys.float_info.max: >>> sys.float_info.max 1.7976931348623157e+308 If that's not big enough, there's always positive infinity: >>> infinity = float("inf") >>> infinity inf >>> infinity / 10000 inf The long type has unlimited precision, so I think you're only limited by available memory. [INST] IndexError: list assignment index out of range Please consider the following code: i = [1, 2, 3, 5, 8, 13] j = [] k = 0 for l in i: j[k] = l k += 1 print j The output (Python 2.6.6 on Win 7 32-bit) is: > Traceback (most recent call last): > j[k] = l IndexError: list assignment index out of range I guess it's something simple I don't understand. Can someone clear it up? [/INST] j is an empty list, but you're attempting to write to element [0] in the first iteration, which doesn't exist yet. Try the following instead, to add a new element to the end of the list: for l in i: j.append(l) [INST] Resize fields in Django Admin Django tends to fill up horizontal space when adding or editing entries on the admin, but, in some cases, is a real waste of space, when, i.e., editing a date field, 8 characters wide, or a CharField, also 6 or 8 chars wide, and then the edit box goes up to 15 or 20 chars. How can I tell the admin how wide a textbox should be, or the height of a TextField edit box? [/INST] You should use ModelAdmin.formfield_overrides. It is quite easy - in admin.py, define: class YourModelAdmin(admin.ModelAdmin): formfield_overrides = { models.CharField: {'widget': TextInput(attrs={'size':'20'})}, models.TextField: {'widget': Textarea(attrs={'rows':4, 'cols':40})}, } admin.site.register(YourModel, YourModelAdmin) Don't forget that you should import appropriate classes -- in this case: from django.forms import TextInput, Textarea from django.db import models [INST] Wrong math with Python? Just starting out with Python, so this is probably my mistake, but... I'm trying out Python. I like to use it as a calculator, and I'm slowly working through some tutorials. I ran into something weird today. I wanted to find out 2013*2013, but I wrote the wrong thing and wrote 2013*013, and got this: >>> 2013*013 22143 I checked with my calculator, and 22143 is the wrong answer! 2013 * 13 is supposed to be 26169. Why is Python giving me a wrong answer? My old Casio calculator doesn't do this... [/INST] Because of octal arithmetic, 013 is actually the integer 11. >>> 013 11 With a leading zero, 013 is interpreted as a base-8 number and 1*81 + 3*80 = 11. Note: this behaviour was changed in python 3. Here is a particularly appropriate quote from PEP 3127 The default octal representation of integers is silently confusing to people unfamiliar with C-like languages. It is extremely easy to inadvertently create an integer object with the wrong value, because '013' means 'decimal 11', not 'decimal 13', to the Python language itself, which is not the meaning that most humans would assign to this literal. [INST] How do I replace whitespaces with underscore and vice versa? I want to replace whitespace with underscore in a string to create nice URLs. So that for example: "This should be connected" becomes "This_should_be_connected" I am using Python with Django. Can this be solved using regular expressions? [/INST] You don't need regular expressions, Python has a string method that does what you need: mystring.replace (" ", "_") [INST] What does "mro()" do in Python? In django.utils.functional.py: for t in type(res).mro():#<-----this if t in self.__dispatch: return self.__dispatch[t][funcname](res, *args, **kw) I don't understand mro. What does "mro()" do? What does mro mean? [/INST] Follow along...: >>> class A(object): pass ... >>> A.__mro__ (, ) >>> class B(A): pass ... >>> B.__mro__ (, , ) >>> class C(A): pass ... >>> C.__mro__ (, , ) >>> As long as we have single inheritance, __mro__ is just the tuple of: the class, its base, its base's base, and so on up to object (only works for new-style classes of course). Now, with multiple inheritance...: >>> class D(B, C): pass ... >>> D.__mro__ (, , , , ) ...you also get the assurance that, in __mro__, no class is duplicated, and no class comes after its ancestors, save that classes that first enter at the same level of multiple inheritance (like B and C in this example) are in the __mro__ left to right. Every attribute you get on a class's instance, not just methods, is conceptually looked up along the __mro__, so, if more than one class among the ancestors defines that name, this tells you where the attribute will be found -- in the first class in the __mro__ that defines that name. [INST] How to sort mongodb with pymongo I'm trying to use the sort feature when querying my mongoDB, but it is failing. The same query works in the MongoDB console but not here. Code is as follows: import pymongo from pymongo import Connection connection = Connection() db = connection.myDB print db.posts.count() for post in db.posts.find({}, {'entities.user_mentions.screen_name':1}).sort({u'entities.user_mentions.screen_name':1}): print post The error I get is as follows: Traceback (most recent call last): File "find_ow.py", line 7, in for post in db.posts.find({}, {'entities.user_mentions.screen_name':1}).sort({'entities.user_mentions.screen_name':1},1): File "/Library/Python/2.6/site-packages/pymongo-2.0.1-py2.6-macosx-10.6-universal.egg/pymongo/cursor.py", line 430, in sort File "/Library/Python/2.6/site-packages/pymongo-2.0.1-py2.6-macosx-10.6-universal.egg/pymongo/helpers.py", line 67, in _index_document TypeError: first item in each key pair must be a string I found a link elsewhere that says I need to place a 'u' infront of the key if using pymongo, but that didn't work either. Anyone else get this to work or is this a bug. [/INST] .sort(), in pymongo, takes key and direction as parameters. So if you want to sort by, let's say, id then you should .sort("_id", 1) )[INST] How to count the frequency of the elements in a list? I'm a python newbie, so please bear with me. I need to find the frequency of elements in a list a = [1,1,1,1,2,2,2,2,3,3,4,5,5] output-> b = [4,4,2,1,2] Also I want to remove the duplicates from a a = [1,2,3,4,5] [/INST] In Python 2.7, you can use collections.Counter: import collections a = [1,1,1,1,2,2,2,2,3,3,4,5,5] counter=collections.Counter(a) print(counter) # Counter({1: 4, 2: 4, 3: 2, 5: 2, 4: 1}) print(counter.values()) # [4, 4, 2, 1, 2] print(counter.keys()) # [1, 2, 3, 4, 5] print(counter.most_common(3)) # [(1, 4), (2, 4), (3, 2)] If you are using Python 2.6 or older, you can download it here. [INST] How to get the seconds since epoch from the time + date output of gmtime() in Python? In python, how do you do reverse gmtime(), where you put the time + date and get the number of seconds? I have strings like 'Jul 9, 2009 @ 20:02:58 UTC', and i want to get back the number of seconds between the epoch and July 9, 2009. I have tried time.strftime but I don't know how to use it properly, or if it is the correct command to use. [/INST] Use the time module: epoch_time = int(time.time()) [INST] Peak-finding algorithm for Python/SciPy I can write something myself by finding zero-crossings of the first derivative or something, but it seems like a common-enough function to be included in standard libraries. Anyone know of one? My particular application is a 2D array, but usually it would be used for finding peaks in FFTs, etc. Specifically, in these kinds of problems, there are multiple strong peaks, and then lots of smaller "peaks" that are just caused by noise that should be ignored. These are just examples; not my actual data: 1-dimensional peaks: 2-dimensional peaks: The peak-finding algorithm would find the location of these peaks (not just their values), and ideally would find the true inter-sample peak, not just the index with maximum value, probably using quadratic interpolation or something. Typically you only care about a few strong peaks, so they'd either be chosen because they're above a certain threshold, or because they're the first n peaks of an ordered list, ranked by amplitude. As I said, I know how to write something like this myself. I'm just asking if there's a pre-existing function or package that's known to work well. Update: I translated a MATLAB script and it works decently for the 1-D case, but could be better. Updated update: sixtenbe created a better version for the 1-D case. [/INST] I'm looking at a similar problem, and I've found some of the best references come from chemistry (from peaks finding in mass-spec data). For a good thorough review of peaking finding algorithms read this. This is one of the best clearest reviews of peak finding techniques that I've run across. (Wavelets are the best for finding peaks of this sort in noisy data.). It looks like your peaks are clearly defined and aren't hidden in the noise. That being the case I'd recommend using smooth savtizky-golay derivatives to find the peaks (If you just differentiate the data above you'll have a mess of false positives.). This is a very effective technique and is pretty easy to implemented (you do need a matrix class w/ basic operations). If you simply find the zero crossing of the first S-G derivative I think you'll be happy. [INST] Does python have a sorted list? By which I mean a structure with: O(log n) complexity for x.push() operations O(log n) complexity to find an element O(n) complexity to compute list(x) which will be sorted I also had a related question about performance of list(...).insert(...) which is now here. [/INST] The standard Python list is not sorted in any form. The standard heapq module can be used to append in O(log n) and remove the smallest one in O(log n), but isn't a sorted list in your definition. There are various implementations of balanced trees for Python that meet your requirements, e.g. rbtree, RBTree, or pyavl. [INST] Common use-cases for pickle in Python I've looked at the pickle documentation, but I don't understand where pickle is useful. What are some common use-cases for pickle? [/INST] Some uses that I have come across: 1) saving a program's state data to disk so that it can carry on where it left off when restarted (persistence) 2) sending python data over a TCP connection in a multi-core or distributed system (marshalling) 3) storing python objects in a database 4) converting an arbitrary python object to a string so that it can be used as a dictionary key (e.g. for caching & memoization). There are some issues with the last one - two identical objects can be pickled and result in different strings - or even the same object pickled twice can have different representations. This is because the pickle can include reference count information. o [INST] Can I write native iPhone apps using Python Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how? [/INST] You can use PyObjC on the iPhone as well, due to the excellent work by Jay Freeman (saurik). See iPhone Applications in Python. Note that this requires a jailbroken iPhone at the moment. [INST] How do I sort unicode strings alphabetically in Python? Python sorts by byte value by default, which means é comes after z and other equally funny things. What is the best way to sort alphabetically in Python? Is there a library for this? I couldn't find anything. Preferrably sorting should have language support so it understands that åäö should be sorted after z in Swedish, but that ü should be sorted by u, etc. Unicode support is thereby pretty much a requirement. If there is no library for it, what is the best way to do this? Just make a mapping from letter to a integer value and map the string to a integer list with that? [/INST] IBM's ICU library does that (and a lot more). It has Python bindings: PyICU. Update: The core difference in sorting between ICU and locale.strcoll is that ICU uses the full Unicode Collation Algorithm while strcoll uses ISO 14651. The differences between those two algorithms are briefly summarized here: http://unicode.org/faq/collation.html#13. These are rather exotic special cases, which should rarely matter in practice. >>> import icu # pip install PyICU >>> sorted(['a','b','c','ä']) ['a', 'b', 'c', 'ä'] >>> collator = icu.Collator.createInstance(icu.Locale('de_DE.UTF-8')) >>> sorted(['a','b','c','ä'], key=collator.getSortKey) ['a', 'ä', 'b', 'c'] [INST] virtualenv --no-site-packages and pip still finding global packages? I was under the impression that virtualenv --no-site-packages would create a completely separate and isolated Python environment, but it doesn't seem to. For example, I have python-django installed globally, but wish to create a virtualenv with a different Django version. $ virtualenv --no-site-packages foo New python executable in foo/bin/python Installing setuptools............done. $ pip -E foo install Django Requirement already satisfied: Django in /usr/share/pyshared Installing collected packages: Django Successfully installed Django From what I can tell, the pip -E foo install above is supposed to re-install a new version of Django. Also, if I tell pip to freeze the environment, I get a whole lot of packages. I would expect that for a fresh environment with --no-site-packages this would be blank? $ pip -E foo freeze 4Suite-XML==1.0.2 BeautifulSoup==3.1.0.1 Brlapi==0.5.3 BzrTools==1.17.0 Django==1.1 ... and so on ... Am I misunderstanding how --no-site-packages is supposed to work? [/INST] I had a problem like this, until I realized that (long before I had discovered virtualenv), I had gone adding directories to the PYTHONPATH in my .bashrc file. As it had been over a year beforehand, I didn't think of that straight away. [INST] Is there a label/goto in Python? Is there a goto or any equivalent in Python to be able to jump to a specific line of code? [/INST] No, Python does not support labels and goto, if that is what you're after. It's a (highly) structured programming language. [INST] Deleting multiple elements from a list Is it possible to delete multiple elements from a list at the same time? If I want to delete elements at index 0 and 2, and try something like del somelist[0], followed by del somelist[2], the second statement will actually delete somelist[3]. I suppose I could always delete the higher numbered elements first but I'm hoping there is a better way. [/INST] If you're deleting multiple non-adjacent items, then what you describe is the best way (and yes, be sure to start from the highest index). If your items are adjacent, you can use the slice assignment syntax: a[2:10] = [] [INST] How can I build a model to distinguish tweets about Apple (Inc.) from tweets about apple (fruit)? See below for 50 tweets about "apple." I have hand labeled the positive matches about Apple Inc. They are marked as 1 below. Here are a couple of lines: 1|“@chrisgilmer: Apple targets big business with new iOS 7 features http://bit.ly/15F9JeF ”. Finally.. A corp iTunes account! 0|“@Zach_Paull: When did green skittles change from lime to green apple? #notafan” @Skittles 1|@dtfcdvEric: @MaroneyFan11 apple inc is searching for people to help and tryout all their upcoming tablet within our own net page No. 0|@STFUTimothy have you tried apple pie shine? 1|#SuryaRay #India Microsoft to bring Xbox and PC games to Apple, Android phones: Report: Microsoft Corp... http://dlvr.it/3YvbQx @SuryaRay Here is the total data set: http://pastebin.com/eJuEb4eB I need to build a model that classifies "Apple" (Inc). from the rest. I'm not looking for a general overview of machine learning, rather I'm looking for actual model in code (Python preferred). [/INST] What you are looking for is called Named Entity Recognition. It is a statistical technique that (most commonly) uses Conditional Random Fields to find named entities, based on having been trained to learn things about named entities. Essentially, it looks at the content and context of the word, (looking back and forward a few words), to estimate the probability that the word is a named entity. Good software can look at other features of words, such as their length or shape (like "Vcv" if it starts with "Vowel-consonant-vowel") A very good library (GPL) is Stanford's NER Here's the demo: http://nlp.stanford.edu:8080/ner/ Some sample text to try: I was eating an apple over at Apple headquarters and I thought about Apple Martin, the daughter of the Coldplay guy (the 3class and 4class classifiers get it right) [INST] Find string between two substrings How do I find a string between two substrings ('123STRINGabc' -> 'STRING')? My current method is like this: >>> start = 'asdf=5;' >>> end = '123jasd' >>> s = 'asdf=5;iwantthis123jasd' >>> print((s.split(start))[1].split(end)[0]) iwantthis However, this seems very inefficient and un-pythonic. What is a better way to do something like this? Forgot to mention: The string might not start and end with start and end. They may have more characters before and after. [/INST] import re s = 'asdf=5;iwantthis123jasd' result = re.search('asdf=5;(.*)123jasd', s) print result.group(1) [INST] What does %s mean in Python? What does %s mean in Python? And what does the following bit of code do? For instance... if len(sys.argv) < 2: sys.exit('Usage: %s database-name' % sys.argv[0]) if not os.path.exists(sys.argv[1]): sys.exit('ERROR: Database %s was not found!' % sys.argv[1]) [/INST] It is a string formatting syntax (which it borrows from C). Please see "Formatting Strings": Python supports formatting values into strings. Although this can include very complicated expressions, the most basic usage is to insert values into a string with the %s placeholder. Edit: Here is a really simple example: name = raw_input("who are you?") print "hello %s" % (name,) The %s token allows me to insert (and potentially format) a string. Notice that the %s token is replaced by whatever I pass to the string after the % symbol. Notice also that I am using a tuple here as well (when you only have one string using a tuple is optional) to illustrate that multiple strings can be inserted and formatted in one statement. [INST] Keyboard Interrupts with python's multiprocessing Pool How can I handle KeyboardInterrupt events with python's multiprocessing Pools? Here is a simple example: from multiprocessing import Pool from time import sleep from sys import exit def slowly_square(i): sleep(1) return i*i def go(): pool = Pool(8) try: results = pool.map(slowly_square, range(40)) except KeyboardInterrupt: # **** THIS PART NEVER EXECUTES. **** pool.terminate() print "You cancelled the program!" sys.exit(1) print "\nFinally, here are the results: ", results if __name__ == "__main__": go() When running the code above, the KeyboardInterrupt gets raised when I press ^C, but the process simply hangs at that point and I have to kill it externally. I want to be able to press ^C at any time and cause all of the processes to exit gracefully. [/INST] This is a Python bug. When waiting for a condition in threading.Condition.wait(), KeyboardInterrupt is never sent. Repro: import threading cond = threading.Condition(threading.Lock()) cond.acquire() cond.wait(None) print "done" The KeyboardInterrupt exception won't be delivered until wait() returns, and it never returns, so the interrupt never happens. KeyboardInterrupt should almost certainly interrupt a condition wait. Note that this doesn't happen if a timeout is specified; cond.wait(1) will receive the interrupt immediately. So, a workaround is to specify a timeout. To do that, replace results = pool.map(slowly_square, range(40)) with results = pool.map_async(slowly_square, range(40)).get(9999999) or similar. [INST] Get Element value with minidom with Python I am creating a GUI frontend for the Eve Online API in Python. I have successfully pulled the XML data from their server. I am trying to grab the value from a node called "name": from xml.dom.minidom import parse dom = parse("C:\\eve.xml") name = dom.getElementsByTagName('name') print name This seems to find the node, but the output is below: [] How could I get it to print the value of the node? [/INST] It should just be name[0].firstChild.nodeValue [INST] How to get a reference to current module's attributes in Python What I'm trying to do would look like this in the command line: >>> import mymodule >>> names = dir(mymodule) How can I get a reference to all the names defined in mymodule from within mymodule itself? Something like this: # mymodule.py names = dir(__thismodule__) [/INST] As previously mentioned, globals gives you a dictionary as opposed to dir() which gives you a list of the names defined in the module. The way I typically see this done is like this: import sys dir(sys.modules[__name__]) [INST] Calculating a directory size using Python? Before i re-invent this particular wheel, has anybody got a nice routine for calculating the size of a directory using Python? It would be very nice if the routine would format the size nicely in Mb/Gb etc. [/INST] This grabs subdirectories: import os def get_size(start_path = '.'): total_size = 0 for dirpath, dirnames, filenames in os.walk(start_path): for f in filenames: fp = os.path.join(dirpath, f) total_size += os.path.getsize(fp) return total_size print get_size() And a oneliner for fun using os.listdir (Does not include sub-directories): import os sum(os.path.getsize(f) for f in os.listdir('.') if os.path.isfile(f)) Reference: os.path.getsize - Gives the size in bytes os.walk Updated To use os.path.getsize, this is clearer than using the os.stat().st_size method. Thanks to ghostdog74 for pointing this out! os.stat - st_size Gives the size in bytes. Can also be used to get file size and other file related information. Update 2015 scandir is available and may be faster than the os.walk method. A package is available from pypi, and os.scandir() is to be included in python 3.5: https://pypi.python.org/pypi/scandir [INST] unbound method f() must be called with fibo_ instance as first argument (got classobj instance instead) In Python, I'm trying to run a method in a class and I get an error: Traceback (most recent call last): File "C:\Users\domenico\Desktop\py\main.py", line 8, in fibo.f() TypeError: unbound method f() must be called with fibo instance as first argument (got nothing instead) Code: (swineflu.py) class fibo: a=0 b=0 def f(self,a=0): print fibo.b+a b=a; return self(a+1) Script main.py import swineflu f = swineflu fibo = f.fibo fibo.f() #TypeError is thrown here What does this error mean? What is causing this error? [/INST] OK, first of all, you don't have to get a reference to the module into a different name; you already have a reference (from the import) and you can just use it. If you want a different name just use import swineflu as f. Second, you are getting a reference to the class rather than instantiating the class. So this should be: import swineflu fibo = swineflu.fibo() # get an instance of the class fibo.f() # call the method f of the instance A bound method is one that is attached to an instance of an object. An unbound method is, of course, one that is not attached to an instance. The error usually means you are calling the method on the class rather than on an instance, which is exactly what was happening in this case because you hadn't instantiated the class. [[INST] Iterating over a numpy array Is there a less verbose alternative to this: for x in xrange(array.shape[0]): for y in xrange(array.shape[1]): do_stuff(x, y) I came up with this: for x, y in itertools.product(map(xrange, array.shape)): do_stuff(x, y) Which saves one indentation, but is still pretty ugly. I'm hoping for something that looks like this pseudocode: for x, y in array.indices: do_stuff(x, y) Does anything like that exist? [/INST] I think you're looking for the ndenumerate. >>> a =numpy.array([[1,2],[3,4],[5,6]]) >>> for (x,y), value in numpy.ndenumerate(a): ... print x,y ... 0 0 0 1 1 0 1 1 2 0 2 1 Regarding the performance. It is a bit slower than a list comprehension. X = np.zeros((100, 100, 100)) %timeit list([((i,j,k), X[i,j,k]) for i in range(X.shape[0]) for j in range(X.shape[1]) for k in range(X.shape[2])]) 1 loop, best of 3: 376 ms per loop %timeit list(np.ndenumerate(X)) 1 loop, best of 3: 570 ms per loop If you are worried about the performance you could optimise a bit further by looking at the implementation of ndenumerate, which does 2 things, converting to an array and looping. If you know you have an array, you can call the .coords attribute of the flat iterator. a = X.flat %timeit list([(a.coords, x) for x in a.flat]) 1 loop, best of 3: 305 ms per loop [INST] How to check a string for specific characters? How can I check if a string value has exact characters in it using Python2? Specifically, I am looking to detect if it has dollar signs ("$"), commas (","), and numbers. [/INST] Assuming your string is s: '$' in s # found '$' not in s # not found # original answer given, but less Pythonic than the above... s.find('$')==-1 # not found s.find('$')!=-1 # found And so on for other characters. ... or pattern = re.compile(r'\d\$,') if pattern.findall(s): print('Found') else print('Not found') ... or chars = set('0123456789$,') if any((c in chars) for c in s): print('Found') else: print('Not Found') [Edit: added the '$' in s answers] [INST] Python executable not finding libpython shared library I am installing Python 2.7 on CentOS 5. I built and installed Python as follows ./configure --enable-shared --prefix=/usr/local make make install When I try to run /usr/local/bin/python, I get this error message /usr/local/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory When I run ldd on /usr/local/bin/python, I get ldd /usr/local/bin/python libpython2.7.so.1.0 => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030e9a00000) libdl.so.2 => /lib64/libdl.so.2 (0x00000030e9200000) libutil.so.1 => /lib64/libutil.so.1 (0x00000030fa200000) libm.so.6 => /lib64/libm.so.6 (0x00000030e9600000) libc.so.6 => /lib64/libc.so.6 (0x00000030e8e00000) /lib64/ld-linux-x86-64.so.2 (0x00000030e8a00000) How do I tell Python where to find libpython? [/INST] Try the following: LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python Replace /usr/local/lib with the folder where you have installed libpython2.7.so.1.0 if it is not in /usr/local/lib. If this works and you want to make the changes permanent, you have two options: Add export LD_LIBRARY_PATH=/usr/local/lib to your .profile in your home directory (this works only if you are using a shell which loads this file when a new shell instance is started). This setting will affect your user only. Add /usr/local/lib to /etc/ld.so.conf and run ldconfig. This is a system-wide setting of course. [INST] How to get only the last part of a path in Python? In Python, suppose I have a path like this: /folderA/folderB/folderC/folderD/ How can I get just the folderD part? [/INST] Use os.path.normpath, then os.path.basename: >>> os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/')) 'folderD' The first strips off any trailing slashes, the second gives you the last part of the path. Using only basename gives everything after the last slash, which in this case is ''. [INST] In Python, how do I use urllib to see if a website is 404 or 200? How to get the code of the headers through urllib? [/INST] The getcode() method (Added in python2.6) returns the HTTP status code that was sent with the response, or None if the URL is no HTTP URL. >>> a=urllib.urlopen('http://www.google.com/asdfsf') >>> a.getcode() 404 >>> a=urllib.urlopen('http://www.google.com/') >>> a.getcode() 200 [INST] Age from birthdate in python How can I find an age in python from today's date and a persons birthdate? The birthdate is a from a DateField in a Django model. [/INST] That can be done much simpler considering that int(True) is 1 and int(False) is 0: from datetime import date def calculate_age(born): today = date.today() return today.year - born.year - ((today.month, today.day) < (born.month, born.day)) [INST] Using both Python 2.x and Python 3.x in IPython Notebook I use IPython notebooks and would like to be able to select to create a 2.x or 3.x python notebook in IPython. I initially had Anaconda. With Anaconda a global environment variable had to be changed to select what version of python you want and then IPython could be started. This is not what I was looking for so I uninstalled Anaconda and now have set up my own installation using MacPorts and PiP. It seems that I still have to use port select --set python to toggle between python 2.x and 3.x. which is no better than the anaconda solution. Is there a way to select what version of python you want to use after you start an IPython notebook, preferably with my current MacPorts build? [/INST] The idea here is to install multiple ipython kernels. Here are instructions for anaconda. If you are not using anaconda, I recently added instructions using pure virtualenvs. Anaconda 4.1.0 Since version 4.1.0, anaconda includes a special package nb_conda_kernels that detects conda environments with notebook kernels and automatically registers them. This makes using a new python version as easy as creating new conda environments: conda create -n py27 python=2.7 ipykernel conda create -n py35 python=3.5 ipykernel After a restart of jupyter notebook, the new kernels are available over the graphical interface. Please note that new packages have to be explicitly installed into the new enviroments. The Managing environments section in conda's docs provides further information. Manually registering kernels Users who do not want to use nb_conda_kernels or still use older versions of anaconda can use following steps to manually register ipython kernels. configure the python2.7 environment: conda create -n py27 python=2.7 source activate py27 conda install notebook ipykernel ipython kernel install --user configure the python3.5 environment: conda create -n py35 python=3.5 source activate py35 conda install notebook ipykernel ipython kernel install --user After that you should be able to choose between python2 and python3 when creating a new notebook in the interface. Additionally you can pass the --name and --display-name options to ipython kernel install if you want to change the names of your kernels. See ipython kernel install --help for more informations. [INST] Comparing two numpy arrays for equality, element-wise What is the simplest way to compare two numpy arrays for equality (where equality is defined as: A = B iff for all indices i: A[i] == B[i])? Simply using == gives me a boolean array: >>> numpy.array([1,1,1]) == numpy.array([1,1,1]) array([ True, True, True], dtype=bool) Do I have to and the elements of this array to determine if the arrays are equal, or is there a simpler way to compare? [/INST] (A==B).all() test if all values of array (A==B) are True. Edit (from dbaupp's answer and yoavram's comment) It should be noted that: this solution can have a strange behavior in a particular case: if either A or B is empty and the other one contains a single element, then it return True. For some reason, the comparison A==B returns an empty array, for which the all operator returns True. Another risk is if A and B don't have the same shape and aren't broadcastable, then this approach will raise an error. In conclusion, the solution I proposed is the standard one, I think, but if you have a doubt about A and B shape or simply want to be safe: use one of the specialized functions: np.array_equal(A,B) # test if same shape, same elements values np.array_equiv(A,B) # test if broadcastable shape, same elements values np.allclose(A,B,...) # test if same shape, elements have close enough values [INST] How to check if text is "empty" (spaces, tabs, newlines) in Python? How can I test if the string is empty in Python? For example, "" is empty, so is "", so is "", etc. [/INST] yourString.isspace() "Return true if there are only whitespace characters in the string and there is at least one character, false otherwise." Combine that with a special case for handling the empty string. Alternatively, you could use strippedString = yourString.strip() And then check if strippedString is empty. [INST] Convert a list to a dictionary in Python Let's say I have a list a in Python whose entries conveniently map to a dictionary. Each even element represents the key to the dictionary, and the following odd element is the value for example, a = ['hello','world','1','2'] and I'd like to convert it to a dictionary b, where b['hello'] = 'world' b['1'] = '2' What is the syntactically cleanest way to accomplish this? [/INST] b = dict(zip(a[0::2], a[1::2])) If a is large, you will probably want to do something like the following, which doesn't make any temporary lists like the above. from itertools import izip i = iter(a) b = dict(izip(i, i)) In Python 3 you could also use a dict comprehension, but ironically I think the simplest way to do it will be with range() and len(), which would normally be a code smell. b = {a[i]: a[i+1] for i in range(0, len(a), 2)} So the iter()/izip() method is still probably the most Pythonic in Python 3, although as EOL notes in a comment, zip() is already lazy in Python 3 so you don't need izip(). i = iter(a) b = dict(zip(i, i)) If you want it on one line, you'll have to cheat and use a semicolon. ;-) a[INST] Python: how to print a dictionary's key? I found a my question in SO already, but it was not answered directly. I would like to print a specific Python dictionary key: mydic = {} mydic['key_name'] = 'value_name' Now I can check if mydic.has_key('key_name'), but what I would like to do is print the name of the key 'key_name'. Of course I could use mydic.items(), but I don't want all the keys listed, merely one specific key. For instance I'd expect something like this (in pseudo-code): print "the key name is", mydic['key_name'].name_the_key(), "and its value is", mydic['key_name'] Is there any name_the_key() method to print a key name? Edit: OK, thanks a lot guys for your reactions! :) I realise my question is not well formulated and trivial. I just got confused because i realised key_name and mydic['key_name'] are two different things and i thought it would incorrect to print the key_name out of the dictionary context. But indeed i can simply use the 'key_name' to refer to the key! :) [/INST] A dictionary has, by definition, an arbitrary number of keys. There is no "the key". You have the keys() method, which gives you a python list of all the keys, and you have the iteritems() method, which returns key-value pairs, so for key, value in mydic.iteritems() : print key, value Python 3 version: for key, value in mydic.items() : print (key, value) So you have a handle on the keys, but they only really mean sense if coupled to a value. I hope I have understood your question. G [INST] Error installing Python Image Library using pip on Mac OS X 10.9 I want to install PIL on Mavericks using pip but get this error. _imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found #include ^ 1 error generated. error: command 'cc' failed with exit status 1 My Command Line Tools are installed and up to date and every hint I found didn't help. How can I get this to compile? EDIT: I just checked, freetype is also already installed via homebrew [/INST] Instead of symlinking to a specific version of freetype2, do this: ln -s /usr/local/include/freetype2 /usr/local/include/freetype This saves you the trouble of recreating the symlink whenever you upgrade freetype2. [INST] ropemacs USAGE tutorial There are many sites with instructions on installing ropemacs, but so far I couldn't find any with instructions on how to use it after it's already installed. I have it installed, or at least it seems so, Emacs has "Rope" menu in it's top menu bar. Now what? So far I could use only "Show documentation" (C-c d by default). An attempt to use code assist (which is auto-complete, I presume?) only causes Emacs to ask about "Rope project root folder" (what's that?) in the minibuffer and then showing nothing. So, once ropemacs is installed, what are the steps to see it in action on some simple python scripts? Something like "if you have this script in your emacs and put the blinking square here and press this, it does that" would be an answer. (I've been thinking if I should ask this or not for some time, because nobody else seems to have the same problem) [/INST] Well, you first need to select your project root folder. Quite simply, this is the folder at the top level of your project, or the current folder if you're dealing with a single file. Once you've selected the root folder, then other options will work, such as code assist, showing documentation, jumping to other symbols, etc. For full benefit of ropemacs, I suggest getting autocomplete.el, putting it in ~/.emacs.d, and then adding this to your .emacs (add-to-list 'load-path "~/.emacs.d/") (add-to-list 'load-path "~/.emacs.d/auto-complete-1.2") (autoload 'python-mode "python-mode" "Python Mode." t) (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode)) (add-to-list 'interpreter-mode-alist '("python" . python-mode)) (require 'python-mode) (autoload 'pymacs-apply "pymacs") (autoload 'pymacs-call "pymacs") (autoload 'pymacs-eval "pymacs" nil t) (autoload 'pymacs-exec "pymacs" nil t) (autoload 'pymacs-load "pymacs" nil t) (pymacs-load "ropemacs" "rope-") (setq ropemacs-enable-autoimport t) (require 'auto-complete) (global-auto-complete-mode t) This assumes you install autocomplete in ~/.emacs.d/auto-complete-1.2. After you do this, you will get autocomplete automatically after typing a few characters of a word or symbol. You can modify your ROOT/.ropeproject/config.py file to add more directories to the rope lookup path, in order to provide better autocomplete. EDIT: Two of the most important functions for me are looking up documentation and jumping directly to a function definition. This is dependent on setting the rope lookup path correctly for your project as mentioned above. Documentation: Put the cursor over a symbol (function name, class name, etc), and do: C-c d This will show you the docstring for the symbol in question. Jumping to definition:Put the cursor over a symbol (function name, class name, etc), and do: C-c g This will immediately open the file where the symbol resides and jump to the beginning of the definition. This is great for times when the documentation is sparse and you want to see the actual code. Also, it's really nice for navigating around inside your own code. Find occurrences: C-c f Smart search in your entire project for the symbol at the cursor. Code assist: M-/ Just type the first characters of a function, class, etc, and this will show a list of possible completions. Note that due to python's nature, it will not always be a complete list. Refactorings: There are quite a few options under Rope->Refactor. These are to organize your code better. How to use them should be mostly self-explanatory; in general, select the region of code you want to refactor, then choose the command. Edit: In response to a comment below, here's exactly how to add other paths to your python path so autocomplete will look for those symbols as well. prefs.add('python_path', '~/path/to/virtualenv/lib/python2.6/site-packages') This goes in .ropeproject/config.py [INST] Python (and Python C API): __new__ versus __init__ The question I'm about to ask seems to be a duplicate of Python's use of __new__ and __init__?, but regardless, it's still unclear to me exactly what the practical difference between __new__ and __init__ is. Before you rush to tell me that __new__ is for creating objects and __init__ is for initializing objects, let me be clear: I get that. In fact, that distinction is quite natural to me, since I have experience in C++ where we have placement new, which similarly separates object allocation from initialization. The Python C API tutorial explains it like this: The new member is responsible for creating (as opposed to initializing) objects of the type. It is exposed in Python as the __new__() method. ... One reason to implement a new method is to assure the initial values of instance variables. So, yeah - I get what __new__ does, but despite this, I still don't understand why it's useful in Python. The example given says that __new__ might be useful if you want to "assure the initial values of instance variables". Well, isn't that exactly what __init__ will do? In the C API tutorial, an example is shown where a new Type (called a "Noddy") is created, and the Type's __new__ function is defined. The Noddy type contains a string member called first, and this string member is initialized to an empty string like so: static PyObject * Noddy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { ..... self->first = PyString_FromString(""); if (self->first == NULL) { Py_DECREF(self); return NULL; } ..... } Note that without the __new__ method defined here, we'd have to use PyType_GenericNew, which simply initializes all of the instance variable members to NULL. So the only benefit of the __new__ method is that the instance variable will start out as an empty string, as opposed to NULL. But why is this ever useful, since if we cared about making sure our instance variables are initialized to some default value, we could have just done that in the __init__ method? [/INST] The difference mainly arises with mutable vs immutable types. __new__ accepts a type as the first argument, and (usually) returns a new instance of that type. Thus it is suitable for use with both mutable and immutable types. __init__ accepts an instance as the first argument and modifies the attributes of that instance. This is inappropriate for an immutable type, as it would allow them to be modified after creation by calling obj.__init__(*args). Compare the behaviour of tuple and list: >>> x = (1, 2) >>> x (1, 2) >>> x.__init__([3, 4]) >>> x # tuple.__init__ does nothing (1, 2) >>> y = [1, 2] >>> y [1, 2] >>> y.__init__([3, 4]) >>> y # list.__init__ reinitialises the object [3, 4] As to why they're separate (aside from simple historical reasons): __new__ methods require a bunch of boilerplate to get right (the initial object creation, and then remembering to return the object at the end). __init__ methods, by contrast, are dead simple, since you just set whatever attributes you need to set. Aside from __init__ methods being easier to write, and the mutable vs immutable distinction noted above, the separation can also be exploited to make calling the parent class __init__ in subclasses optional by setting up any absolutely required instance invariants in __new__. This is generally a dubious practice though - it's usually clearer to just call the parent class __init__ methods as necessary. [INST] Python timedelta in years I need to check if some number of years have been since some date. Currently I've got timedelta from datetime module and I don't know how to convert it to years. [/INST] You need more than a timedelta to tell how many years have passed; you also need to know the beginning (or ending) date. (It's a leap year thing.) Your best bet is to use the dateutil.relativedelta object, but that's a 3rd party module. If you want to know the datetime that was n years from some date (defaulting to right now), you can do the following:: from dateutil.relativedelta import relativedelta def yearsago(years, from_date=None): if from_date is None: from_date = datetime.now() return from_date - relativedelta(years=years) If you'd rather stick with the standard library, the answer is a little more complex:: from datetime import datetime def yearsago(years, from_date=None): if from_date is None: from_date = datetime.now() try: return from_date.replace(year=from_date.year - years) except ValueError: # Must be 2/29! assert from_date.month == 2 and from_date.day == 29 # can be removed return from_date.replace(month=2, day=28, year=from_date.year-years) If it's 2/29, and 18 years ago there was no 2/29, this function will return 2/28. If you'd rather return 3/1, just change the last return statement to read:: return from_date.replace(month=3, day=1, year=from_date.year-years) Your question originally said you wanted to know how many years it's been since some date. Assuming you want an integer number of years, you can guess based on 365.25 days per year and then check using either of the yearsago functions defined above:: def num_years(begin, end=None): if end is None: end = datetime.now() num_years = int((end - begin).days / 365.25) if begin > yearsago(num_years, end): return num_years - 1 else: return num_years [INST] Heatmap in matplotlib with pcolor? I'd like to make a heatmap like this (shown on FlowingData): The source data is here, but random data and labels would be fine to use, i.e. import numpy column_labels = list('ABCD') row_labels = list('WXYZ') data = numpy.random.rand(4,4) Making the heatmap is easy enough in matplotlib: from matplotlib import pyplot as plt heatmap = plt.pcolor(data) And I even found a colormap arguments that look about right: heatmap = plt.pcolor(data, cmap=matplotlib.cm.Blues) But beyond that, I can't figure out how to display labels for the columns and rows and display the data in the proper orientation (origin at the top left instead of bottom left). Attempts to manipulate heatmap.axes (e.g. heatmap.axes.set_xticklabels = column_labels) have all failed. What am I missing here? [/INST] This is late, but here is my python implementation of the flowingdata NBA heatmap. updated:1/4/2014: thanks everyone # -*- coding: utf-8 -*- # 3.0 # ------------------------------------------------------------------------ # Filename : heatmap.py # Date : 2013-04-19 # Updated : 2014-01-04 # Author : @LotzJoe >> Joe Lotz # Description: My attempt at reproducing the FlowingData graphic in Python # Source : http://flowingdata.com/2010/01/21/how-to-make-a-heatmap-a-quick-and-easy-solution/ # # Other Links: # http://stackoverflow.com/questions/14391959/heatmap-in-matplotlib-with-pcolor # # ------------------------------------------------------------------------ import matplotlib.pyplot as plt import pandas as pd from urllib2 import urlopen import numpy as np %pylab inline page = urlopen("http://datasets.flowingdata.com/ppg2008.csv") nba = pd.read_csv(page, index_col=0) # Normalize data columns nba_norm = (nba - nba.mean()) / (nba.max() - nba.min()) # Sort data according to Points, lowest to highest # This was just a design choice made by Yau # inplace=False (default) ->thanks SO user d1337 nba_sort = nba_norm.sort('PTS', ascending=True) nba_sort['PTS'].head(10) # Plot it out fig, ax = plt.subplots() heatmap = ax.pcolor(nba_sort, cmap=plt.cm.Blues, alpha=0.8) # Format fig = plt.gcf() fig.set_size_inches(8, 11) # turn off the frame ax.set_frame_on(False) # put the major ticks at the middle of each cell ax.set_yticks(np.arange(nba_sort.shape[0]) + 0.5, minor=False) ax.set_xticks(np.arange(nba_sort.shape[1]) + 0.5, minor=False) # want a more natural, table-like display ax.invert_yaxis() ax.xaxis.tick_top() # Set the labels # label source:https://en.wikipedia.org/wiki/Basketball_statistics labels = [ 'Games', 'Minutes', 'Points', 'Field goals made', 'Field goal attempts', 'Field goal percentage', 'Free throws made', 'Free throws attempts', 'Free throws percentage', 'Three-pointers made', 'Three-point attempt', 'Three-point percentage', 'Offensive rebounds', 'Defensive rebounds', 'Total rebounds', 'Assists', 'Steals', 'Blocks', 'Turnover', 'Personal foul'] # note I could have used nba_sort.columns but made "labels" instead ax.set_xticklabels(labels, minor=False) ax.set_yticklabels(nba_sort.index, minor=False) # rotate the plt.xticks(rotation=90) ax.grid(False) # Turn off all the ticks ax = plt.gca() for t in ax.xaxis.get_major_ticks(): t.tick1On = False t.tick2On = False for t in ax.yaxis.get_major_ticks(): t.tick1On = False t.tick2On = False The output looks like this: There's an ipython notebook with all this code here. I've learned a lot from 'overflow so hopefully someone will find this useful. [INST] Python: using a recursive algorithm as a generator Recently I wrote a function to generate certain sequences with nontrivial constraints. The problem came with a natural recursive solution. Now it happens that, even for relatively small input, the sequences are several thousands, thus I would prefer to use my algorithm as a generator instead of using it to fill a list with all the sequences. Here is an example. Suppose we want to compute all the permutations of a string with a recursive function. The following naive algorithm takes an extra argument 'storage' and appends a permutation to it whenever it finds one: def getPermutations(string, storage, prefix=""): if len(string) == 1: storage.append(prefix + string) # <----- else: for i in range(len(string)): getPermutations(string[:i]+string[i+1:], storage, prefix+string[i]) storage = [] getPermutations("abcd", storage) for permutation in storage: print permutation (Please don't care about inefficiency, this is only an example.) Now I want to turn my function into a generator, i.e. to yield a permutation instead of appending it to the storage list: def getPermutations(string, prefix=""): if len(string) == 1: yield prefix + string # <----- else: for i in range(len(string)): getPermutations(string[:i]+string[i+1:], prefix+string[i]) for permutation in getPermutations("abcd"): print permutation This code does not work (the function behaves like an empty generator). Am I missing something? Is there a way to turn the above recursive algorithm into a generator without replacing it with an iterative one? [/INST] def getPermutations(string, prefix=""): if len(string) == 1: yield prefix + string else: for i in xrange(len(string)): for perm in getPermutations(string[:i] + string[i+1:], prefix+string[i]): yield perm Or without an accumulator: def getPermutations(string): if len(string) == 1: yield string else: for i in xrange(len(string)): for perm in getPermutations(string[:i] + string[i+1:]): yield string[i] + perm [INST] Unresolved Import Issues with PyDev and Eclipse I am very new to PyDev and Python, though I have used Eclipse for Java plenty. I am trying to work through some of the Dive Into Python examples and this feels like an extremely trivial problem that's just becoming exceedingly annoying. I am using Ubuntu Linux 10.04. I want to be able to use the file odbchelper.py, which is located in the directory /Desktop/Python_Tutorials/diveintopython/py Here is my example.py file that I'm working on in my PyDev/Eclipse project: import sys sys.path.append("~/Desktop/Python_Tutorials/diveintopython/py") This works fine, but then I want the next line of my code to be: import odbchelper and this causes an unresolved import error every time. I have added __init__.py files to just about every directory possible and it doesn't help anything. I've tried adding __init__.py files one at a time to the various levels of directories between the project location and the odbchelper.py file, and I've also tried adding the __init__.py files to all of the directories in between simultaneously. Neither works. All I want to do is have a project somewhere in some other directory, say /Desktop/MyStuff/Project, in which I have example.py ... and then from example.py I want to import odbchelper.py from /Desktop/Python_Tutorials/diveintopython/py/ Every message board response I can find just saying to use the sys.path.append() function to add this directory to my path, and then import it ... but that is precisely what I am doing in my code and it's not working. I have also tried the Ctrl-1 trick to suppress the error message, but the program is still not functioning correctly. I get an error, ImportError: No module named odbchelper. So it's clearly not getting the path added, or there is some problem that all of my many permutations of adding __init__.py files has missed. It's very frustrating that something this simple... calling things from some file that exists somewhere else on my machine... requires this much effort. [/INST] In the properties for your pydev project, there's a pane called "PyDev - PYTHONPATH", with a sub-pane called "External Libraries". You can add source folders (any folder that has an __init__.py) to the path using that pane. Your project code will then be able to import modules from those source folders. [INST] Calculating Pearson correlation and significance in Python I am looking for a function that takes as input two lists, and returns the Pearson correlation, and the significance of the correlation. [/INST] You can have a look at scipy: http://docs.scipy.org/doc/scipy/reference/stats.html from pydoc import help from scipy.stats.stats import pearsonr help(pearsonr) >>> Help on function pearsonr in module scipy.stats.stats: pearsonr(x, y) Calculates a Pearson correlation coefficient and the p-value for testing non-correlation. The Pearson correlation coefficient measures the linear relationship between two datasets. Strictly speaking, Pearson's correlation requires that each dataset be normally distributed. Like other correlation coefficients, this one varies between -1 and +1 with 0 implying no correlation. Correlations of -1 or +1 imply an exact linear relationship. Positive correlations imply that as x increases, so does y. Negative correlations imply that as x increases, y decreases. The p-value roughly indicates the probability of an uncorrelated system producing datasets that have a Pearson correlation at least as extreme as the one computed from these datasets. The p-values are not entirely reliable but are probably reasonable for datasets larger than 500 or so. Parameters ---------- x : 1D array y : 1D array the same length as x Returns ------- (Pearson's correlation coefficient, 2-tailed p-value) References ---------- http://www.statsoft.com/textbook/glosp.html#Pearson%20Correlation [INST] Python: List vs Dict for look up table I have about 10million values that I need to put in some type of look up table, so I was wondering which would be more efficient a list or dict? I know you can do something like this for both: if something in dict_of_stuff: pass and if something in list_of_stuff: pass My thought is the dict will be faster and more efficient. Thanks for your help. EDIT 1 Little more info on what I'm trying to do. Euler Problem 92. I'm making a look up table to see if a value calculated has all ready been calculated. EDIT 2 Efficiency for look up. EDIT 3 There are no values assosiated with the value...so would a set be better? [/INST] Speed Lookups in lists are O(n), lookups in dictionaries are amortized O(1), with regard to the number of items in the data structure. If you don't need to associate values, use sets. Memory Both dictionaries and sets use hashing and they use much more memory than only for object storage. According to A.M. Kuchling in Beautiful Code, the implementation tries to keep the hash 2/3 full, so you might waste quite some memory. If you do not add new entries on the fly (which you do, based on your updated question), it might be worthwhile to sort the list and use binary search. This is O(log n), and is likely to be slower for strings, impossible for objects which do not have a natural ordering. [INST] python dictionary and default values Assuming connectionDetails is a Python dictionary, what's the best, most elegant, most "pythonic" way of refactoring code like this: if "host" in connectionDetails: host = connectionDetails["host"] else: host = someDefaultValue [/INST] Like this: host = connectionDetails.get('host','someDefault') [INST] Convert a timedelta to days, hours and minutes I've got a timedelta. I want the days, hours and minutes from that - either as a tuple or a dictionary... I'm not fussed. I must have done this a dozen times in a dozen languages over the years but Python usually has a simple answer to everything so I thought I'd ask here before busting out some nauseatingly simple (yet verbose) mathematics. Mr Fooz raises a good point. I'm dealing with "listings" (a bit like ebay listings) where each one has a duration. I'm trying to find the time left by doing when_added + duration - now Am I right in saying that wouldn't account for DST? If not, what's the simplest way to add/subtract an hour? [/INST] If you have a datetime.timedelta value td, td.days already gives you the "days" you want. timedelta values keep fraction-of-day as seconds (not directly hours or minutes) so you'll indeed have to perform "nauseating simple mathematics", e.g.: def days_hours_minutes(td): return td.days, td.seconds//3600, (td.seconds//60)%60 [INST] How do I get Pyflakes to ignore a statement? A lot of our modules start with: try: import json except ImportError: from django.utils import simplejson as json # Python 2.4 fallback. ...and it's the only Pyflakes warning in the entire file: foo/bar.py:14: redefinition of unused 'json' from line 12 How can I get Pyflakes to ignore this? (Normally I'd go read the docs but the link is broken. If nobody has an answer, I'll just read the source.) [/INST] If you can use flake8 instead - which wraps pyflakes as well as the pep8 checker - a line ending with # NOQA (in which the space is significant - 2 spaces between the end of the code and the #, one between it and the NOQA text) will tell the checker to ignore any errors on that line. [INST] How to continue a task when Fabric receives an error When I define a task to run on several remote servers, if the task runs on server one and exits with an error, Fabric will stop and abort the task. But I want to make fabric ignore the error and run the task on the next server. How can I make it do this? For example: $ fab site1_service_gw [site1rpt1] Executing task 'site1_service_gw' [site1fep1] run: echo 'Nm123!@#' | sudo -S route [site1fep1] err: [site1fep1] err: We trust you have received the usual lecture from the local System [site1fep1] err: Administrator. It usually boils down to these three things: [site1fep1] err: [site1fep1] err: #1) Respect the privacy of others. [site1fep1] err: #2) Think before you type. [site1fep1] err: #3) With great power comes great responsibility. [site1fep1] err: root's password: [site1fep1] err: sudo: route: command not found Fatal error: run() encountered an error (return code 1) while executing 'echo 'Nm123!@#' | sudo -S route ' Aborting. [/INST] From the docs: ... Fabric defaults to a “fail-fast” behavior pattern: if anything goes wrong, such as a remote program returning a nonzero return value or your fabfile’s Python code encountering an exception, execution will halt immediately. This is typically the desired behavior, but there are many exceptions to the rule, so Fabric provides env.warn_only, a Boolean setting. It defaults to False, meaning an error condition will result in the program aborting immediately. However, if env.warn_only is set to True at the time of failure – with, say, the settings context manager – Fabric will emit a warning message but continue executing. Looks like you can exercise fine-grained control over where errors are ignored by using the settings context manager, something like so: sudo('mkdir tmp') # can't fail with settings(warn_only=True): sudo('touch tmp/test') # can fail sudo('rm tmp') # can't fail [INST] Matplotlib 2 Subplots, 1 Colorbar I've spent entirely too long researching how to get two subplots to share the same y-axis with a single colorbar shared between the two in Matplotlib. What was happening was that when I called the colorbar() function in either subplot1 or subplot2, it would autoscale the plot such that the colorbar plus the plot would fit inside the 'subplot' bounding box, causing the two side-by-side plots to be two very different sizes. To get around this, I tried to create a third subplot which I then hacked to render no plot with just a colorbar present. The only problem is, now the heights and widths of the two plots are uneven, and I can't figure out how to make it look okay. Here is my code: from __future__ import division import matplotlib.pyplot as plt import numpy as np from matplotlib import patches from matplotlib.ticker import NullFormatter # SIS Functions TE = 1 # Einstein radius g1 = lambda x,y: (TE/2) * (y**2-x**2)/((x**2+y**2)**(3/2)) g2 = lambda x,y: -1*TE*x*y / ((x**2+y**2)**(3/2)) kappa = lambda x,y: TE / (2*np.sqrt(x**2+y**2)) coords = np.linspace(-2,2,400) X,Y = np.meshgrid(coords,coords) g1out = g1(X,Y) g2out = g2(X,Y) kappaout = kappa(X,Y) for i in range(len(coords)): for j in range(len(coords)): if np.sqrt(coords[i]**2+coords[j]**2) <= TE: g1out[i][j]=0 g2out[i][j]=0 fig = plt.figure() fig.subplots_adjust(wspace=0,hspace=0) # subplot number 1 ax1 = fig.add_subplot(1,2,1,aspect='equal',xlim=[-2,2],ylim=[-2,2]) plt.title(r"$\gamma_{1}$",fontsize="18") plt.xlabel(r"x ($\theta_{E}$)",fontsize="15") plt.ylabel(r"y ($\theta_{E}$)",rotation='horizontal',fontsize="15") plt.xticks([-2.0,-1.5,-1.0,-0.5,0,0.5,1.0,1.5]) plt.xticks([-2.0,-1.5,-1.0,-0.5,0,0.5,1.0,1.5]) plt.imshow(g1out,extent=(-2,2,-2,2)) plt.axhline(y=0,linewidth=2,color='k',linestyle="--") plt.axvline(x=0,linewidth=2,color='k',linestyle="--") e1 = patches.Ellipse((0,0),2,2,color='white') ax1.add_patch(e1) # subplot number 2 ax2 = fig.add_subplot(1,2,2,sharey=ax1,xlim=[-2,2],ylim=[-2,2]) plt.title(r"$\gamma_{2}$",fontsize="18") plt.xlabel(r"x ($\theta_{E}$)",fontsize="15") ax2.yaxis.set_major_formatter( NullFormatter() ) plt.axhline(y=0,linewidth=2,color='k',linestyle="--") plt.axvline(x=0,linewidth=2,color='k',linestyle="--") plt.imshow(g2out,extent=(-2,2,-2,2)) e2 = patches.Ellipse((0,0),2,2,color='white') ax2.add_patch(e2) # subplot for colorbar ax3 = fig.add_subplot(1,1,1) ax3.axis('off') cbar = plt.colorbar(ax=ax2) plt.show() [/INST] Just place the colorbar in its own axis and use subplots_adjust to make room for it. As a quick example: import numpy as np import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=2, ncols=2) for ax in axes.flat: im = ax.imshow(np.random.random((10,10)), vmin=0, vmax=1) fig.subplots_adjust(right=0.8) cbar_ax = fig.add_axes([0.85, 0.15, 0.05, 0.7]) fig.colorbar(im, cax=cbar_ax) plt.show() [INST] How to convert pandas index in a dataframe to a column? This seems rather obvious, but I can't seem to figure out how do I convert an index of data frame to a column? For example: df= gi ptt_loc 0 384444683 593 1 384444684 594 2 384444686 596 To, df= index1 gi ptt_loc 0 0 384444683 593 1 1 384444684 594 2 2 384444686 596 [/INST] either: df['index1'] = df.index or, .reset_index: df.reset_index(level=0, inplace=True) so, if you have a multi-index frame with 3 levels of index, like: >>> df val tick tag obs 2016-02-26 C 2 0.0139 2016-02-27 A 2 0.5577 2016-02-28 C 6 0.0303 and you want to convert the 1st (tick) and 3rd (obs) levels in the index into columns, you would do: >>> df.reset_index(level=['tick', 'obs']) tick obs val tag C 2016-02-26 2 0.0139 A 2016-02-27 2 0.5577 C 2016-02-28 6 0.0303 [INST] Solving "DLL load failed: %1 is not a valid Win32 application." for Pygame I recently installed Python 3.1 and the Pygame module for Python 3.1 When I type import python in the console I get the following error: Traceback (most recent call last): File "", line 1, in import pygame File "C:\Python31\lib\site-packages\pygame\__init__.py", line 95, in from pygame.base import * ImportError: DLL load failed: %1 is not a valid Win32 application. Please help! [/INST] It could be due to the architecture of your OS. Is your OS 64 Bit and have you installed 64 bit version of Python? It may help to install both 32 bit version Python 3.1 and Pygame, which is available officially only in 32 bit and you won't face this problem. I see that 64 bit pygame is maintained here, you might also want to try uninstalling Pygame only and install the 64 bit version on your existing python3.1, if not choose go for both 32-bit version. [INST] Latest 'pip' fails with "requires setuptools >= 0.8 for dist-info" Using the recent (1.5) version of pip, I get an error when attempting to update several packages. For example, sudo pip install -U pytz results in failure with: Wheel installs require setuptools >= 0.8 for dist-info support. pip's wheel support requires setuptools >= 0.8 for dist-info support. I don't understand this message (I have setuptools 2.1) or what to do about it. Exception information from the log for this error: Exception information: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 230, in run finder = self._build_package_finder(options, index_urls, session) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 185, in _build_package_finder session=session, File "/Library/Python/2.7/site-packages/pip/index.py", line 50, in __init__ self.use_wheel = use_wheel File "/Library/Python/2.7/site-packages/pip/index.py", line 89, in use_wheel raise InstallationError("pip's wheel support requires setuptools >= 0.8 for dist-info support.") InstallationError: pip's wheel support requires setuptools >= 0.8 for dist-info support. [/INST] This worked for me: sudo pip install setuptools --no-use-wheel --upgrade Note it's usage of sudo UPDATE On window you just need to execute pip install setuptools --no-use-wheel --upgrade as an administrator. In unix/linux, sudo command is for elevating permissions. UPDATE This appears to have been fixed in 1.5.1. [INST] python: create a "with" block on several context managers Suppose you have three objects you acquire via context manager, for instance A lock, a db connection and an ip socket. You can acquire them by: with lock: with db_con: with socket: #do stuff But is there a way to do it in one block? something like with lock,db_con,socket: #do stuff Furthermore, is it possible, given an array of unknown length of objects that have context managers, is it possible to somehow do: a=[lock1, lock2, lock3, db_con1, socket, db_con2] with a as res: #now all objects in array are acquired If the answer is "no", is it because the need for such a feature implies bad design, or maybe I should suggest it in a pep? :-P [/INST] In Python 2.6 and below, you can use contextlib.nested: from contextlib import nested with nested(A(), B(), C()) as (X, Y, Z): do_something() is equivalent to: m1, m2, m3 = A(), B(), C() with m1 as X: with m2 as Y: with m3 as Z: do_something() Note that this isn't exactly the same as normally using nested with, because A(), B(), and C() will all be called initially, before entering the context managers. This will not work correctly if one of these functions may raise exceptions, but will work for the examples in the question. In Python 2.7 and 3.1, syntax has been added for this, and contextlib.nested has been deprecated: with A() as X, B() as Y, C() as Z: do_something() In Python 3.3, you can also enter an unknown-length list of context managers by using contextlib.ExitStack: with ExitStack() as stack: for mgr in ctx_managers: stack.enter_context(mgr) # ... This allows you to create the context managers as you are adding them to the ExitStack, which prevents the possible problem with contextlib.nested. ~[INST] Putting a variable inside a string (python) Hi I am quite new to python and this is probably quite a basic question but the help would be much appreciated. I would like to put an int within a string. This is what I am doing at the moment.. end = smooth(data,window_len=40) plot.plot(time[0:len(end)],end) plot.savefig('hanning(40).pdf') #problem line I have to run the program for several different numbers instead of the two 40's. So I'd like to do a loop but inserting the variable like this doesn't work: plot.savefig('hanning',num,'.pdf') Thanks! [/INST] Oh, the many, many ways... String concatenation: plot.savefig('hanning' + str(num) + '.pdf') Conversion Specifier: plot.savefig('hanning%s.pdf' % num) Using local variable names: plot.savefig('hanning%(num)s.pdf' % locals()) # Neat trick Using format(): plot.savefig('hanning{0}.pdf'.format(num)) # Note: This is the new preferred way Using string.Template: plot.savefig(string.Template('hanning${num}.pdf').substitute(locals())) [INST] Is it possible to forward-declare a function in Python? Is it possible to forward-declare a function in Python? I want to sort a list using my own cmp function before it is declared. print "\n".join([str(bla) for bla in sorted(mylist, cmp = cmp_configs)]) I've organized my code to put the definition of cmp_configs method after the invocation. It fails with this error: NameError: name 'cmp_configs' is not defined Is there any way to "declare" cmp_configs method before it's used? It would make my code look cleaner? I assume that some people will be tempted to tell me that I should just reorganize my code so that I don't have this problem. However, there are cases when this is probably unavoidable, for instance when implementing some forms of recursion. If you don't like this example, assume that I have a case in which it's really necessary to forward declare a function. Consider this case where forward-declaring a function would be necessary in Python: def spam(): if end_condition(): return end_result() else: return eggs() def eggs(): if end_condition(): return end_result() else: return spam() Where end_condition and end_result have been previously defined. Is the only solution to reorganize the code and always put definitions before invocations? [/INST] What you can do is to wrap the invocation into a function of its own. So that foo() def foo(): print "Hi!" will break, but def bar(): foo() def foo(): print "Hi!" bar() will be working properly. General rule in Python is not that function should be defined higher in the code (as in Pascal), but that it should be defined before its usage. Hope that helps. [INST] Any way to clear python's IDLE window? I know there's a similar topic about python console, but I do not know if they are the same. I tried system("clear") and it didn't work here. How do I clear python's IDLE window? [/INST] The "cls" and "clear" are commands which will clear a terminal (ie a DOS prompt, or terminal window). From your screenshot, you are using the shell within IDLE, which won't be affected by such things. Unfortunately, I don't think there is a way to clear the screen in IDLE. The best you could do is to scroll the screen down lots of lines, eg: print "\n" * 100 Though you could put this in a function: def cls(): print "\n" * 100 And then call it when needed as cls() [INST] How do you extract a column from a multi-dimensional array? Does anybody know how to extract a column from a multi-dimensional array in Python? [/INST] >>> import numpy as np >>> A = np.array([[1,2,3,4],[5,6,7,8]]) >>> A array([[1, 2, 3, 4], [5, 6, 7, 8]]) >>> A[:,2] # returns the third columm array([3, 7]) See also: "numpy.arange" and "reshape" to allocate memory Example: (Allocating a array with shaping of matrix (3x4)) nrows = 3 ncols = 4 my_array = numpy.arange(nrows*ncols, dtype='double') my_array = my_array.reshape(nrows, ncols) [INST] How do I mock an open used in a with statement (using the Mock framework in Python)? How do I test the following code with mocks (using mocks, the patch decorator and sentinels provided by Michael Foord's Mock framework): def testme(filepath): with open(filepath, 'r') as f: return f.read() [/INST] The way to do this has changed in mock 0.7.0 which finally supports mocking the python protocol methods (magic methods), particularly using the MagicMock: http://www.voidspace.org.uk/python/mock/magicmock.html An example of mocking open as a context manager (from the examples page in the mock documentation): >>> open_name = '%s.open' % __name__ >>> with patch(open_name, create=True) as mock_open: ... mock_open.return_value = MagicMock(spec=file) ... ... with open('/some/path', 'w') as f: ... f.write('something') ... >>> file_handle = mock_open.return_value.__enter__.return_value >>> file_handle.write.assert_called_with('something') [INST] Unpack a list in Python? I think 'unpack' might be the wrong vocabulary here - apologies because I'm sure this is a duplicate question. My question is pretty simple: in a function that expects a list of items, how can I pass a Python list item without getting an error? my_list = ['red', 'blue', 'orange'] function_that_needs_strings('red', 'blue', 'orange') # works! function_that_needs_strings(my_list) # breaks! Surely there must be a way to expand the list, and pass the function 'red','blue','orange' on the hoof? [/INST] function_that_needs_strings(*my_list) # works! You can read all about it here. [INST] How to turn Unicode strings into regular strings? How do I remove the u' in u'somestring' in the printed output in Python? Assuming that 'a' is a Unicode string 'Hello World', print a prints the following message: u'Hello World' [/INST] Call str() on a unicode string to create a regular string. String literals with a u prepended e.g. u'string' are unicode strings. Example: >>> a = u'hello' >>> a u'hello' >>> str(a) 'hello' [INST] pandas resample documentation So I completely understand how to use resample, but the documentation does not do a good job explaining the options. So most options in the resample function are pretty straight forward except for these two: rule : the offset string or object representing target conversion how : string, method for down- or re-sampling, default to ‘mean’ So from looking at as many examples as I found online I can see for rule you can do 'D' for day, 'xMin' for minutes, 'xL' for milliseconds, but that is all I could find. for how I have seen the following: 'first', np.max, 'last', 'mean', and 'n1n2n3n4...nx' where nx is the first letter of each column index. So is there somewhere in the documentation that I am missing that displays every option for pandas.resample's rule and how inputs? If yes, where because I could not find it. If no, what are all the options for them? [/INST] B business day frequency C custom business day frequency (experimental) D calendar day frequency W weekly frequency M month end frequency BM business month end frequency CBM custom business month end frequency MS month start frequency BMS business month start frequency CBMS custom business month start frequency Q quarter end frequency BQ business quarter endfrequency QS quarter start frequency BQS business quarter start frequency A year end frequency BA business year end frequency AS year start frequency BAS business year start frequency BH business hour frequency H hourly frequency T minutely frequency S secondly frequency L milliseonds U microseconds N nanoseconds See the timeseries documentation. It includes a list of offsets (and 'anchored' offsets), and a section about resampling. Note that there isn't a list of all the different how options, because it can be any NumPy array function and any function that is available via groupby dispatching can be passed to how by name. [INST] How to load/edit/run/save text files (.py) into an IPython notebook cell? I've recently moved over to using IPython notebooks as part of my workflow. However, I've not been successful in finding a way to import .py files into the individual cells of an open IPython notebook so that they can edited, run and then saved. Can this be done? I've found this in the documentation which tells me how to import .py files as new notebooks but this falls short of what I want to achieve. Any suggestions would be much appreciated, thanks in advance. [/INST] A text file can be loaded in a notebook cell with the magic command %load. If you execute a cell containing: %load filename.py the content of filename.py will be loaded in the next cell. You can edit and execute it as usual. To save the cell content back into a file add the cell-magic %%writefile filename.py at the beginning of the cell and run it. Beware that if a file with the same name already exists it will be silently overwritten. To see the help for any magic command add a ?: like %load? or %%writefile?. For general help on magic functions type "%magic" For a list of the available magic functions, use %lsmagic. For a description of any of them, type %magic_name?, e.g. '%cd?'. See also: Magic functions from the official IPython docs. EDIT: Starting from IPython 3 (now Jupyter project), the notebook has a text editor that can be used as a more convenient alternative to load/edit/save text files. [INST] PEP8 - 80 Characters - Big Strings Due to the sheer annoyance of figuring out what to Google, I've decided to risk what any reputation I had to ask this rather simple question. As PEP8 suggests keeping below the 80 column rule for your python program, how can I abide to that with long strings, i.e. s = "this is my really, really, really, really, really, really, really long string that I'd like to shorten." How would I go about expanding this to the following line, i.e. s = "this is my really, really, really, really, really, really" + "really long string that I'd like to shorten." [/INST] Also, because neighboring string constants are automatically concatenated, you can code it like this too: s = ("this is my really, really, really, really, really, really, " "really long string that I'd like to shorten.") Note no plus sign, and I added the extra comma and space that follows the formatting of your example. Personally I don't like the backslashes, and I recall reading somewhere that its use is actually deprecated in favor of this form which is more explicit. Remember "Explicit is better than implicit." I consider the backslash to be less clear and less useful because this is actually escaping the newline character. It's not possible to put a line end comment after it if one should be necessary. It is possible to do this with concatenated string constants: s = ("this is my really, really, really, really, really, really, " # comments ok "really long string that I'd like to shorten.") Update: I used a Google search of "python line length" which returns the PEP8 link as the first result, but also links to another good StackOverflow post on this topic: Why should Python PEP-8 specify a maximum line length of 79 characters? Another good search phrase would be "python line continuation". [INST] Python - Create list with numbers between 2 values? How would I create a list with values between 2 values I put in? For example, following list is generated for values between 11 and 16: list = [11, 12, 13, 14, 15, 16] [/INST] Use range. In Python 2.x it returns a list so all you need is, >>> range(11, 17) [11, 12, 13, 14, 15, 16] In Python 3.x it's a iterator so you need to convert it to a list, >>> list(range(11, 17)) [11, 12, 13, 14, 15, 16] Note: Second number is exclusive so here it needs to be 16+1 = 17 EDIT: To response to the question about incrementing by 0.5 the easiest option would probably be to use numpy's arange, >>> numpy.arange(11, 17, 0.5) array([ 11. , 11.5, 12. , 12.5, 13. , 13.5, 14. , 14.5, 15. , 15.5, 16. , 16.5]) [INST] import module from string variable I'm working on a documentation (personal) for nested matplotlib (MPL) library, which differs from MPL own provided, by interested submodule packages. I'm writing Python script which I hope will automate document generation from future MPL releases. I selected interested submodules/packages and want to list their main classes from which I'll generate list and process it with pydoc Problem is that I can't find a way to instruct Python to load submodule from string. Here is example of what I tried: import matplotlib.text as text x = dir(text) . i = __import__('matplotlib.text') y = dir(i) . j = __import__('matplotlib') z = dir(j) And here is 3 way comparison of above lists through pprint: I don't understand what's loaded in y object - it's base matplotlib plus something else, but it lack information that I wanted and that is main classes from matplotlib.text package. It's top blue coloured part on screenshot (x list) Please don't suggest Sphinx as different approach. [/INST] The __import__ function can be a bit hard to understand. If you change i = __import__('matplotlib.text') to i = __import__('matplotlib.text', fromlist=['']) then i will refer to matplotlib.text. In Python 2.7 and Python 3.1 or later, you can use importlib: import importlib i = importlib.import_module("matplotlib.text") [INST] How can I download all emails with attachments from Gmail? How do I connect to Gmail and determine which messages have attachments? I then want to download each attachment, printing out the Subject: and From: for each message as I process it. [/INST] Hard one :-) import email, getpass, imaplib, os detach_dir = '.' # directory where to save attachments (default: current) user = raw_input("Enter your GMail username:") pwd = getpass.getpass("Enter your password: ") # connecting to the gmail imap server m = imaplib.IMAP4_SSL("imap.gmail.com") m.login(user,pwd) m.select("[Gmail]/All Mail") # here you a can choose a mail box like INBOX instead # use m.list() to get all the mailboxes resp, items = m.search(None, "ALL") # you could filter using the IMAP rules here (check http://www.example-code.com/csharp/imap-search-critera.asp) items = items[0].split() # getting the mails id for emailid in items: resp, data = m.fetch(emailid, "(RFC822)") # fetching the mail, "`(RFC822)`" means "get the whole stuff", but you can ask for headers only, etc email_body = data[0][1] # getting the mail content mail = email.message_from_string(email_body) # parsing the mail content to get a mail object #Check if any attachments at all if mail.get_content_maintype() != 'multipart': continue print "["+mail["From"]+"] :" + mail["Subject"] # we use walk to create a generator so we can iterate on the parts and forget about the recursive headach for part in mail.walk(): # multipart are just containers, so we skip them if part.get_content_maintype() == 'multipart': continue # is this part an attachment ? if part.get('Content-Disposition') is None: continue filename = part.get_filename() counter = 1 # if there is no filename, we create one with a counter to avoid duplicates if not filename: filename = 'part-%03d%s' % (counter, 'bin') counter += 1 att_path = os.path.join(detach_dir, filename) #Check if its already there if not os.path.isfile(att_path) : # finally write the stuff fp = open(att_path, 'wb') fp.write(part.get_payload(decode=True)) fp.close() Wowww! That was something. ;-) But try the same in Java, just for fun! By the way, I tested that in a shell, so some errors likely remain. Enjoy EDIT: Because mail-box names can change from one country to another, I recommend doing m.list() and picking an item in it before m.select("the mailbox name") to avoid this error: imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED [INST] django MultiValueDictKeyError error, how do i deal with it Hay, I'm trying to save a object to my database, but it's throwing a MultiValueDictKeyError error. The problems lies within the form, the is_private is represented by a checkbox. If the check box is NOT selected, obvously nothing is passed. This is where the error gets chucked. How do i properly deal with this exception, and catch it? The line is is_private = request.POST['is_private'] Thank [/INST] Use the MultiValueDict's get method. This is also present on standard dicts and is a way to fetch a value while providing a default if it does not exist. is_private = request.POST.get('is_private', False) Generally, my_var = dict.get(, ) [INST] Setting Django up to use MySQL I'm wanting to move away from PHP a little ways and learn Python. In order to do web development with Python I'm going to need a framework to help with templating and other things. I have a non-production server that I test all of web development stuff on. It is a Debian 7.1 LAMP stack that runs MariaDB instead of the common MySQL-server package. Yesterday I installed Django and created my first project called firstweb. I have not changed any settings yet. Here is my first big piece of confusion. In the tutorial I followed the guy installed Django, started his first project, restarted Apache, and Django just worked from then on. He went to his browser and went to the Django default page with no problems. Me however, I have to cd into my firstweb folder and run python manage.py runserver myip:port And it works. No problem. But I'm wondering if it is supposed to work like this, and if this will cause problems down the line? My second question is that I want to set it up so it uses my MySQL database. I go into my settings.py under /firstweb/firstweb and I see ENGINE and NAME but I'm not sure what to put here. And then in the USER, PASSWORD, and HOST areas is this my database and its credentials? If I am using localhost can I just put localhost in the HOST area? [/INST] MySQL support is simple to add. In your DATABASES array, you will have an entry like this: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'DB_NAME', 'USER': 'DB_USER', 'PASSWORD': 'DB_PASSWORD', 'HOST': 'localhost', # Or an IP Address that your DB is hosted on 'PORT': '3306', } } You also have the option of utilizing MySQL option files, as of Django 1.7. You can accomplish this by setting your DATABASES array like so: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { 'read_default_file': '/path/to/my.cnf', }, } } You also need to create the /path/to/my.cnf file with similar settings from above [client] database = DB_NAME host = localhost user = DB_USER password = DB_PASSWORD default-character-set = utf8 With this new method of connecting in Django 1.7, it is important to know the order connections are established: 1. OPTIONS. 2. NAME, USER, PASSWORD, HOST, PORT 3. MySQL option files. In other words, if you set the name of the database in OPTIONS, this will take precedence over NAME, which would override anything in a MySQL option file. If you are just testing your application on your local machine, you can use python manage.py runserver Adding the ip:port argument allows machines other than your own to access your development application. Once you are ready to deploy your application, I recommend taking a look at the chapter on Deploying Django on the djangobook If you are using Oracle's MySQL connector your ENGINE line should look like this: 'ENGINE': 'mysql.connector.django', [INST] How do I format a string using a dictionary in python-3.x? I am a big fan of using dictionaries to format strings. It helps me read the string format I am using as well as let me take advantage of existing dictionaries. For example: class MyClass: def __init__(self): self.title = 'Title' a = MyClass() print 'The title is %(title)s' % a.__dict__ path = '/path/to/a/file' print 'You put your file here: %(path)s' % locals() However I cannot figure out the python 3.x syntax for doing the same (or if that is even possible). I would like to do the following # Fails, KeyError 'latitude' geopoint = {'latitude':41.123,'longitude':71.091} print '{latitude} {longitude}'.format(geopoint) # Succeeds print '{latitude} {longitude}'.format(latitude=41.123,longitude=71.091) [/INST] Is this good for you? geopoint = {'latitude':41.123,'longitude':71.091} print('{latitude} {longitude}'.format(**geopoint)) [INST] Python recursive folder read I have a C++/Obj-C background and I am just discovering Python (been writing it for about an hour). I am writing a script to recursively read the contents of text files in a folder structure. The problem I have is the code I have written will only work for one folder deep. I can see why in the code (see #hardcoded path), I just don't know how I can move forward with Python since my experience with it is only brand new. Python Code: import os import sys rootdir = sys.argv[1] for root, subFolders, files in os.walk(rootdir): for folder in subFolders: outfileName = rootdir + "/" + folder + "/py-outfile.txt" # hardcoded path folderOut = open( outfileName, 'w' ) print "outfileName is " + outfileName for file in files: filePath = rootdir + '/' + file f = open( filePath, 'r' ) toWrite = f.read() print "Writing '" + toWrite + "' to" + filePath folderOut.write( toWrite ) f.close() folderOut.close() [/INST] Make sure you understand the three return values of os.walk: for root, subdirs, files in os.walk(rootdir): has the following meaning: root: Current path which is "walked through" subdirs: Files in root of type directory files: Files in root (not in subdirs) of type other than directory And please use os.path.join instead of concatenating with a slash! Your problem is filePath = rootdir + '/' + file - you must concatenate the currently "walked" folder instead of the topmost folder. So that must be filePath = os.path.join(root, file). BTW "file" is a builtin, so you don't normally use it as variable name. Another problem are your loops, which should be like this, for example: import os import sys walk_dir = sys.argv[1] print('walk_dir = ' + walk_dir) # If your current working directory may change during script execution, it's recommended to # immediately convert program arguments to an absolute path. Then the variable root below will # be an absolute path as well. Example: # walk_dir = os.path.abspath(walk_dir) print('walk_dir (absolute) = ' + os.path.abspath(walk_dir)) for root, subdirs, files in os.walk(walk_dir): print('--\nroot = ' + root) list_file_path = os.path.join(root, 'my-directory-list.txt') print('list_file_path = ' + list_file_path) with open(list_file_path, 'wb') as list_file: for subdir in subdirs: print('\t- subdirectory ' + subdir) for filename in files: file_path = os.path.join(root, filename) print('\t- file %s (full path: %s)' % (filename, file_path)) with open(file_path, 'rb') as f: f_content = f.read() list_file.write(('The file %s contains:\n' % filename).encode('utf-8')) list_file.write(f_content) list_file.write(b'\n') If you didn't know, the with statement for files is a shorthand: with open('filename', 'rb') as f: dosomething() # is effectively the same as f = open('filename', 'rb') try: dosomething() finally: f.close() [INST] how to extract a substring from inside a string in Python? Lets say I have a string 'gfgfdAAA1234ZZZuijjk' I want to extract just the '1234' part. I only know what will be the few characters directly before (AAA), and after (ZZZ) the part I am interested in (1234). With sed it is possible to do something like this with a string: echo "$STRING" | sed -e "s|.*AAA\(.*\)ZZZ.*|\1|" And this will give me 1234 as a result. How to do the same thing in Python? [/INST] Using regular expressions - documentation for further reference import re text = 'gfgfdAAA1234ZZZuijjk' m = re.search('AAA(.+?)ZZZ', text) if m: found = m.group(1) # found: 1234 or: import re text = 'gfgfdAAA1234ZZZuijjk' try: found = re.search('AAA(.+?)ZZZ', text).group(1) except AttributeError: # AAA, ZZZ not found in the original string found = '' # apply your error handling # found: 1234 [INST] Embedding Python in an iPhone app So it's a new millennium; Apple has waved their hand; it's now legal to include a Python interpreter in an iPhone (App Store) app. How does one go about doing this? All the existing discussion (unsurprisingly) refers to jailbreaking. (Older question: Can I write native iPhone apps using Python) My goal here isn't to write a PyObjC app, but to write a regular ObjC app that runs Python as an embedded library. The Python code will then call back to native Cocoa code. It's the "control logic is Python code" pattern. Is there a guide to getting Python built in XCode, so that my iPhone app can link it? Preferably a stripped-down Python, since I won't need 90% of the standard library. I can probably figure out the threading and Python-extension API; I've done that on MacOS. But only using command-line compilers, not XCode. [/INST] It doesn't really matter how you build Python -- you don't need to build it in Xcode, for example -- but what does matter is the product of that build. Namely, you are going to need to build something like libPython.a that can be statically linked into your application. Once you have a .a, that can be added to the Xcode project for your application(s) and, from there, it'll be linked and signed just like the rest of your app. IIRC (it has been a while since I've built python by hand) the out-of-the-box python will build a libPython.a (and a bunch of other libraries), if you configure it correctly. Of course, your second issue is going to be cross-compiling python for ARM from your 86 box. Python is an autoconf based project and autoconf is a pain in the butt for cross-compilation. As you correctly state, making it small will be critical. Not surprising, either, is that you aren't the first person to want to do this, but not for iOS. Python has been squeezed into devices much less capable than those that run iOS. I found a thread with a bunch of links when googling about; it might be useful. Also, you might want to join the pyobjc-dev list. While you aren't targeting a PyObjC based application (which, btw, is a good idea -- PyObjC has a long way to go before it'll be iOS friendly), the PyObjC community has been discussing this and Ronald, of anyone, is probably the most knowledgeable person in this particular area. Note that PyObjC will have to solve the embedded Python on iOS problem prior to porting PyObjC. Their prerequisite is your requirement, as it were. [INST] String concatenation vs. string substitution in Python In Python, the where and when of using string concatenation versus string substitution eludes me. As the string concatenation has seen large boosts in performance, is this (becoming more) a stylistic decision rather than a practical one? For a concrete example, how should one handle construction of flexible URIs: DOMAIN = 'http://stackoverflow.com' QUESTIONS = '/questions' def so_question_uri_sub(q_num): return "%s%s/%d" % (DOMAIN, QUESTIONS, q_num) def so_question_uri_cat(q_num): return DOMAIN + QUESTIONS + '/' + str(q_num) Edit: There have also been suggestions about joining a list of strings and for using named substitution. These are variants on the central theme, which is, which way is the Right Way to do it at which time? Thanks for the responses! [/INST] Concatenation is (significantly) faster according to my machine. But stylistically, I'm willing to pay the price of substitution if performance is not critical. Well, and if I need formatting, there's no need to even ask the question... there's no option but to use interpolation/templating. >>> import timeit >>> def so_q_sub(n): ... return "%s%s/%d" % (DOMAIN, QUESTIONS, n) ... >>> so_q_sub(1000) 'http://stackoverflow.com/questions/1000' >>> def so_q_cat(n): ... return DOMAIN + QUESTIONS + '/' + str(n) ... >>> so_q_cat(1000) 'http://stackoverflow.com/questions/1000' >>> t1 = timeit.Timer('so_q_sub(1000)','from __main__ import so_q_sub') >>> t2 = timeit.Timer('so_q_cat(1000)','from __main__ import so_q_cat') >>> t1.timeit(number=10000000) 12.166618871951641 >>> t2.timeit(number=10000000) 5.7813972166853773 >>> t1.timeit(number=1) 1.103492206766532e-05 >>> t2.timeit(number=1) 8.5206360154188587e-06 >>> def so_q_tmp(n): ... return "{d}{q}/{n}".format(d=DOMAIN,q=QUESTIONS,n=n) ... >>> so_q_tmp(1000) 'http://stackoverflow.com/questions/1000' >>> t3= timeit.Timer('so_q_tmp(1000)','from __main__ import so_q_tmp') >>> t3.timeit(number=10000000) 14.564135316080637 >>> def so_q_join(n): ... return ''.join([DOMAIN,QUESTIONS,'/',str(n)]) ... >>> so_q_join(1000) 'http://stackoverflow.com/questions/1000' >>> t4= timeit.Timer('so_q_join(1000)','from __main__ import so_q_join') >>> t4.timeit(number=10000000) 9.4431309007150048 [INST] Locking a file in Python I need to lock a file for writing in Python. It will be accessed from multiple Python processes at once. I have found some solutions online, but most fail for my purposes as they are often only Unix based or Windows based. [/INST] Alright, so I ended up going with the code I wrote here, on my website (also available on GitHub). I can use it in the following fashion: from filelock import FileLock with FileLock("myfile.txt"): # work with the file as it is now locked print("Lock acquired.") [INST] Is explicitly closing files important? In Python, if you either open a file without calling close(), or close the file but not using try-finally or the "with" statement, is this a problem? Or does it suffice as a coding practice to rely on the Python garbage-collection to close all files? For example, if one does this: for line in open("filename"): # ... do stuff ... ... is this a problem because the file can never be closed and an exception could occur that prevents it from being closed? Or will it definitely be closed at the conclusion of the for statement because the file goes out of scope? [/INST] In your example the file isn't guaranteed to be closed before the interpreter exits. In current versions of CPython the file will be closed at the end of the for loop because CPython uses reference counting as its primary garbage collection mechanism but that's an implementation detail, not a feature of the language. Other implementations of Python aren't guaranteed to work this way. For example IronPython, PyPy, and Jython don't use reference counting and therefore won't close the file at the end of the loop. It's bad practice to rely on CPython's garbage collection implementation because it makes your code less portable. You might not have resource leaks if you use CPython, but if you ever switch to a Python implementation which doesn't use reference counting you'll need to go through all your code and make sure all your files are closed properly. For your example use: with open("filename") as f: for line in f: # ... do stuff ... VN0��iRq�Y6���[�r�F�����8u%�EҖ�f�"K �dIg�N�yS�!0$��杯��)��>�>@�����3���]V%&��������}�~ru;�E��\�Z�$Q��*[�ʬM^YU�fW����*��+���� �e�Q�2ͫ�*uj�@m�j�?�Pt�wz���؎F�z�R�n���Vi�|E�� �N�t��emƑ‡wQ����d���J�B��x�0�H���Β���ȩV��7i"6���<3��Ae���ZI��aK��j��*lb�Mi���"1�H�"���X�Z�y�9�U�5�:SCwX���̎�]����a�@�Z�I���)���*�A$}͕�0i�s��KU� �4�_[�{Qy54x�#92�EygGꏵ�fB�"��]�A+آ.cÇ�c� �������r@ܝ�U���$+̲C��ٔ�ߙv�,��� h��*��{�fS��i΢(����[mAmj�:�q\WFM�4X��N�K�����ޝ��)�Lu�s��Ӫ(wj��eQ��b�OWDr�2�/k�4v�X���s��JߛG���R�غS�<�3�ɘL��z�B=����:��Yg����#5�ݦc�m�V ^@�D{�%4bSC�_����:� Qt���%nS���f�DϢ�g���Zh��R6]��.��F��,�v��Rӕ�@=4ʰ���#�ԕ���I�M^t8=��}�x��tY�f�wU )�͏���z�;y �bI��V��i��� G's�ep{�5xKV*���$��A����t�3I�&�;�*h���S�x�W�2Q�l1�W�5��� [lV;�Ai��u��5����;�KI�6 %�2Hv!�2��rU��)�'i��F��c�m��(z�1u�R�׺������p�0[k�ѥ�*K��4�G�z +���P@�P����\���E~oJ�[�m^�D-�q>ch)z )V��;[���($?q��?��M �xC�i>T2� "Ƨ������\�*cuQ���eE6�4 |�c��Ik�= ��P���䘒����e���E�����t�=Ñ�%��Ӗ�'V�9�q�.�Ұ�T��SȨ�|�-�}�1�s+Ɗ�$Ɠ�OM'�/R8�F\������2�-~`%a�� �ǑJCĄ����6�a��˙��U_;�9/ˏA'����/㈴��cxl�Q5��Gk�G������=ˆ:�A�ř�V�&&. [&��&cu�.� 8`�����M��L��q��z��5�~���x�܁Y�a0��ϊ"��xbָ�(gE-�����*O� .*LW��b���M��������_���а�)d��5fs��;���f� �Sҫm��pe�a� �%�p k+!� 9/'O���"-�BLr�E�2�;�DUW�:�e�Ob(�P�8��y6�a3�-������E��e�&��܌(Rt&ar�!)I#�4�N�D�$�傌�z�V ���/Va2�&(�� �R����T��~nb������ y�1����YQl,� �yT9w��M�Y�p����S֗��B�19F��4N�E �,ՙ0��p4w�lh�r@ %�Dj��F���fcp�yq�2�кd/��6�0��m�Lr��L�6��g�$�i쮌�N�D����V٥:o�#<�!te�3R��<��?7t,H!"E��KC��x��ɾ�<��z�D�@j��9Z���0��.�����HA_��ab��ǜ6A������ �7��J��H_Y (���%�,1�#�v�B��=����<����S����~⼋�I�\�t�W0@u\�_ r��:�»#��42��<��Y4���'.e}T?ӗ���)�*�'���K���^��<} ~K�܏��d�9���ו����a���kJ,pJ���g�e�6���;Kˆ��K۱:����yO���������e'��6�JI��>�V=�TV��$ \�W������!pZ��K�8a]�`E��V"�2�TN���]*��A��͆H��,�L�U���:��tײ��^Cn�T�p�x@�gy�H#�8'8��v! � q�(��B�P�=��z�Iq X�S�H��� �XSXh�)�b����!�,{� uDzssv��XGS����C*���z�@@cuxW��؂n� ���S�ȁẍ́h#N��E��@s�/�z�T7pt�"��Q���>t.�%�i�;c����E����H��g��<�y݃I�W��dZ{�Ӛ�a��-_.cG* ���9#�E���#:R���U���b1[��1mJ��H���7������P=~ƒߜ�GW�L�S� `]����zy���J��GP��J��]xǪ7��6��-�g� ������8x����s��7 _4���E�F��^^63�ƭ=�Yg����y���a�.��A��@]N�ί��@����|٬X,��ɋ�/� ���}v���ʁ���$��Z�� ��jg)jWA�F�$��:��L���U� ����%�7��� �����K^{"�x�� �Z�o�hS�@�����<=�!��~%��u�FV#;JF���z�� �. *xy�dNf��ʕ�L��;�qz�M��Aʰy\���p|?�k���ys���p�EmF�|'n �0�䌭��x�gf���> ��0J�5 p���tZ�#����(ZA1�1;d��uy_��5�d<��>�� �epQ�nKK�-�w2��k?Be�|Jz��l�`����� ����݉c ��T�*jg��X��gY'Q= $ p�5�y#��׈�{��� 7^�Z(4.���\)]��ꊱ�۱��t�"G);)6̺Ҭ�2�s&k�����r�ZI�5E*�,E�I�`��w���Tf�\ �r_}�ї�V&��j����z����!��b�;��/y\�w��{���՟�C����Y�t"$���a^�������A�w4�R�99(��Y^�F�p��Z�Q[��GvO�BA��t��>@k({p���esm�x���1����O�Q(��VL��_/$'�{v��~�:9����S4sP�kg���>��X<�� �L_/v�*�����簳i8�gV���…�I��6�4G 3�ǏB���d~t������o�/��ݞO���.��o4���ܮ53����u�F�7�]�a�,ɣ�����Jt���w����pK�o����7���l�����]B��;^{v����ig}�㾋���������y`�?q���C]�ҟ�������f��^��s�� �b�F�e=�}���X,�D��aJL0����F�U�X�i�h���)��8W����� �1�z\�x��������B WxJ�y�,�Y�����:'D2i�{G���O@|7� �r�<��M*�8TL�XPg��ʱ"���t�V�g|a�����^vku�P4����suU���ˉo����/ݒ��a�k��;Z��"�� ��AD.���7���Pb]��l>�^�|���-��NÅ<M�\�ǻ��5}�. ���;��:���'|���OƺwC)ʂ#]`c��(��(���z�( &O�Ň#���ȧ��j#������$� =�q�U˾?m�a���|�z��o�.`+=�Ÿ��]P���y��D��k~v}�`���=��V�]��9}s>�'F=S�/:���=����o��yk�s!��������ݥ�����X��^^�.�^�M'�W�Cv~�$O�o��������v�|��`�qg�ɱ�\�\����n��0}sz6��~�n��`���l}����O�br�M�D:Ͽ�4��� &���W��N߾���;�|{qf�.l%)�`����cj=bx���$��-�+�-��*��>I>�)4�EI�'P|TM�!l��!���y��e2H1P���dd�m�s�Ұ-4�ƒIlܥn�9���Qta g�\�GQI<��bGܱE J�A�d�=!� -�`���d"[q\v{���V&��3pM_�Ĕq4-ul�=����'��D�e�+����G�=�-Ll�W�I:<���&�i:\E0[�I ��� �T!����E�����D��ln���� I��ܢC���ahj�'@��s�*Uߢ�<�����CF����a�۠���[�l�)�[�:X��)aF��5O����D���L )i�𡳇sK=�QZ���8����ζ`*J�5����� � �U��3*B�^J��g�A�Ɛw�~�ƶ����ŋ���;�Bk��*��JP��u���2���'`�s�) ^�5=da��]�P���Q��_�l��x��ݠcMV��p���c_�5��������nS?k��̪�'�|��܅ ������& ����4�����P����,��Rs��'p��d?ȹ>�ۃ����(4�� ƩR�s�ZI!�F:�\ߘ��V���~p�md֔��MH߂�Z���0|���Ih��pF�q> u$��>K5��-��Jd�Z�㕁un0��l� �Υ�+���%ʫ����-�NL�}�BE���s3��x���M)��r���y�wۆ]},��%�`�&@Ms���A����կ\��V}2�i~gJ�~k�������sRE/���� 1�к6p�i�+ ���d��Z]w�C�u�͊f�̄xU�w, Ţ��� '�xu����\�3 -�k���t��߲�� ��d��Ɇ�ơh�O�c �nA�A����� I(�*q������u�{l�� ES���(zF��+��c��Km�{���6��/j��rR��G�Lh�9�K6EoBgsnt�3b�qݫ���*� ��F�]7��fq0�P��*J���(�9�Q''ߎ�+cQ|��8ۗ�!�)X�j }���46�4�6)"2Z� �?����{��`q��c��s� ,M�?1U T�(� Fq@�F�#��?�ďz��R)����������X�^�<��]m�K��+`�s�@G�����g��}�.-���^#,�~ԩo��o8�� ���������4ee�����H��}� B �Y6� Y"���Z{o�F�_�bN>��KQ�&-�� m�6������� ��h�.%Y���~�����F�cq�;;;�����|�x;���;z+)��ȥ�W��*'Y�0^���KʏE���,��ga��e�mH��.���ʌ~�[��o���D��o>'�-F����BR@2 ��v��Zm� �^d'��4�(��wY'OA�g_��� e͙��6OS�U���>�h%�(�0O9�6�� �'��R��2Ȣ<�O�>�OVhOsb��<@tEW�Ff����q{D��B�P��hDR��5"i�w����^$�ƌ�u�`�"���'8K�^K2����b&q�u}� ��A��\ B��:S��o��V�����o�g1+��)���"g� niNJ���ľ��UO��wz�윮K��x��=�%j��ٍ?����w$�2���`DPT'�W�:؈F��f���:�O�`�i��ՋR�|//�ԋ��gc�����q��H?܊�Inš񃺋��:��<���;軟��.?�]�WlC�"*��� �Dh-_i`d�� �+��ǚB1�5(�{�`9����<2����� �L ۼ&b�m��2N����9a��g�����*����J\k&�}Y;���-�m�zGDJ`�Z��i�ow��� ]��A)`"��g�H���%�����|j̳���~����m����>��HBP�� o9���d���߼*W��0՚�y;�_j�"A��¼89�-tr�[On�B[2]�G����W�Ք��2@4���^|�n�P_ g�C]s�j��; ;� ��!@�Yi� ��d�f�O��t,�0�v�����f���J��3V�|��x�M7�W�ב�H����0���6�j���n�6����O�O�4V����=_O�&VY�a�|G����Q|'ԛ�_� R��x��x4�kj��n��v��d��'��*���k|N�)��{�z���p�TDq���*�^�4�u$���������Glu�=۰���m�� ��tӈ��o�ķz��Z+�ou�em�k�]��3�~�F������������P��q ��%�Lb��u�њ2�p@�i��N� _܇w���N끔����N��)i��I�ؿ 9c��k���a���0���)�|>�G�M���`�7/>�FI�#�α� o�ȏ�����������ef�[��R�k�R���S/ƃ�8��N{ ��x/��@Q�:���?]�����Ӌ�s� 9��{�:�ݔQ(x�+ �� ,�������`5�чonvG#ن�ӡ��UQ`� 7�y�7D.S}�� �lB��J�T r[��bd_�.A��>��&j~-S�_'#�m�KC��j-�(�wȕ;]���x�����[�\�r shz6pi2��`����%�� �1d���B& 6yr��N����T�/��� �hg,�UbtH�����]d��O[R�I�� PU�dl�5X��n�€w���,�0 �ب̏�]���>�Pdͭr �C���'jz�B��e����qUM�(ܺ53yv5-ҡL�Eur�1vicr�}���:Ƀ��gt�a+������1Yѩʪq՞:��{� Y����m�� !������n3w��b8��|r�v���C}3���:�3֌J#m�Ζ�M�S���'��mˌ?͂5���v��~0H��.U���o��]X*w���}žw%�Glʹ�R����_�j-�)9���]�VB-����I�>V���.�X���B2[Y��5�$�*2N"��j �}�1�� ��#t-G[�C0"���K|﹕���Kv+�9�p���)�Y�J�#�U�(ȗ���l����"f%��@� }���p���+\f���-� �]�7���d�c��p#f�m���� ��*�: '_��"t�Eͅ�1w�yz��)к���Z�^����n�C1��w^^��{��@��@�G=�)�f�����X�j��.~�3� ���c�l��% i�t`6������nl�� 2X�q�]�Y��b*�é%�5�F����;iB�š�-�Y`r�7�I��<�ēx�%ih�f���G�K�i�, β�)�:�G4p����s�e��gh�p�]��2 �l��kκ�y�^�8@�}�ߵd��d���������ʩ٥5����-j�s%x鼻T�{}�F��;�M���a�ǟ4j�M[Gr�kd�6�'�3"�����}� �R�lpXLfH�*s�OJ|ƷPs��� �E�Te^��]u��-N�͓ȟ��"� ��T��a��� )��˽0v:6��5��3 �b�t�T;綁� �����&������%�]�֫�}6�@5����"�������]U�Z�<\� Nin8q���Xɑ�Tq�̩qo�q�S�D�|mB��`CL}�.lU�Ick�m��� �`�i��h�Ф��5Z���'G���+y7&s�הJ*Sp� :�1���э�]�n<�>��`V�4�� `pX_��z?��0p ��(�WM�Nupk��؍cg��ڶ�����Y^�:��}\��D�w�T,(2\����YO��Tt�X� `��<<�����5��f���;4�^Ɏ����p�h6�� Q(>�3F��6p�m�����6����kD�*�.�s� :�s� \��v<��|S �Q�Q��m���1/�N�ّ�8���U1���= ������Q�@ ���%���[��싊v�`\���\D�j�x���S���z�m�c��H���߰�#3��6Ps<\1��1�mX��K���1/w(���401����W�Gr N��Qt:����!��ޮYp_ �B���daCY��>H��,�D�$ Dρ��wɋg��o�^=ǿ;��q�#�[U��B�C�|2l5ѫ�|�?DIY"����W�o7~߿������ܤ���}��Mz�_F P���6���ݡ�{�rW��E�`I����o�~n�o�}��(~:��YT Bz%���!�������ĭ��^ )�y�����u6Jm�p����A�^�׽ �z-���C������.m���":1�G%Z��<�.�F�2����I��hO��'��Uu+���h�m]��J�UH&R��ؤ(F��;���""��1��% �. c(Q /u� ��qTo�w�����)�K�7��W�o.��e�����E#��J���eC��7l��} ���v������5b��Z����;�T]������S�b�V�����xx��?�C��(g�� ��W�_�Z�M\�(�����Pꢮ� W������wWW���u�E[�@�姨l#����͡�� ��� %Rڦ�0�d<3�v1�fJH��bd{�v��%���X"����ᯄ�лd: ��':�l��(̻��Z�I*WK!��x�t��Nɣ5��l�D��SҘc��;d�Q�u�[��k�{�7l̫d��(0�#�5�+M�.`��#��PJ\Q?:�s�Q%"��[��O�J �/��SQ�����k{8}��.��|�qq`87�s�L�d��޾�����p����H�!�O��u|+B���F��!�l((ҏ5� Y�i�;د��1%��I�RN `4C��<�E�D�݆b͜�[틜���Gu,P�c�X���xPƬp85�i�&���u�hԧ�uN��b]��u����H����� *�=��HG�F��Ćv��߀D� �� ��:%�35�|������nI�bم�h��e~�j�S��� q��6���HV� �t7��:��K8B*¨�f��܇��@/8*t���7|�m���Tm�q� ���V�{;�F L� G����B�>�&+��_Q��L����g�E�dƻ4=���R�zv]8 i��@�g���X���:C��*��7+ �����T2<]���XB������F��;,�9K���?�����o@XRU��TG�FI����I+X%�/��eT.�)|��']U777y���/�W�WM��,-uX4b�nBA��j�.���j�=c�K#�d._�^~��?Vl��3~��m&\�>u^��xh {�=Z��s�� ��W��\�%��k����G�6<�R��}�ѨLAQ�@��Pgy�f�YxL~$m�o{�Q�}�BB{������?4���W|�A��``��t(���@�@Q� i�*�k����dR����k�*��e���y}W�|���W�o�6~�_qp�N]uK��M� ꗮ@ �!( Z�l.��T��w�,�G���2l�$�x��}wz�ϯ��>|�D����h�"�WF� ds�Tj� *��6i��x�PW���洖7��CP��V�: k(���m�š�(���2��4�_ �neYjJ:P�W�@�5 $���[ե2�S�P�+��\�6�T��֕T�� ڡ�U�<����N��SR!M�[�iO�lL�|�_H�иe�Of��������tzz��S��?~��t�C�� � �%m���^�=�L�a<��������z�gZ�DU��dҟv 0��!vvWB��� ��4��b����6S�{��s`4�d˪H��醞���w���B���j=M�E�k�M�ٙ?sr�47 ��r����"o����%R4��m��{����ID)��M#bZ��h�F�e��E�ת���fO�����-+N@i��P�X��h�� q�z!�P�*T�`��O�뮥�����xZ%����Z,�?�_�=ľߊ��2 ?���K�?d��DMg��H0�T�������{�y�?�a����m[�}�z�e��Y�j�D������#�5�60U�^��D��$���^��SɅ��u,���"&BZ´�� p�������S����3-�B�k`_�>8���o��A �2�R`࿔-U*�����*t���o0���I`�Yb�d8�*�&_,;E'�V�=�%4�zR�ob� 2��dt"o+����u����~��M�R)��hnq6��K�(�y�mI�a\w��2 m��S����6���9K�mz_�d�oe�c{�����~�=�&l���'q�Yz��q�w�~��]��ZO���Ia ��T��~�'�>��E��Pq�Gs-�����?�M�����b�k46v N#�6ߙ�b~∤3@��48;���?]�2�Z� ]z���:��R5&BeN�4��] �~30���*���a��Qa�5C�3�uLx4n���b���B">�h���Lf|��6�C Ae��qo�P�A9���0A�/�/į���Qbښ�SO�`<�J�1([��t��ePm|@�p�F���i�fs���j(ݖ�;��6�?���rtU+����ix������Ч� qi6d9$+�L��_�z���bm<,�i��L|C����{�B\f� \D���0�7����0��z�?'���̃ �;�|~��������'� �>;!�f�{����1����=4��S:�>O^<񬵅O'+��r��!+��0~�'��E�I Jz���p�1*������q��u^C��L�0�/?�:k�����3@{�}%Ў���K7R�_�!y �x:K^vMq�ܢ0��@����ӣԟ<�.�!���!��v�>l��W�������V|�����X[o��~篘nHrt��k6�H�5Ц�"�c�ȑ89�ΐ������� ��C Μ��;g���������[q�YW)_��:��Z\���rB��}�Y#z��v'R��Е�Y��Q\������^�����&;]e�� �3a>�t ���-1���U�Di����bcmʔk kR��ƈ]� �%�2qփ4�~�j-\[v���쯵Iۭa����Z@�z�����67mݻ�Y\��`��~��Яx����_��b0�rO�w�)o�oa]tOp�lT{>����n���m�V�跣�m��(@�z���L..F��h�l!��*J���������E ��U� e*Yiėc䛈�{Jxrw'��o�4Qt3%S��+��B�ۗ�N��7�!E�T�UU� |b�j��v�(�W����V���x8����o ��ْ^�]O�^Ʌ�Ϫ"��� ��g��]��5��䖬Dr��"�U�+�����j/����^���=|8�a$���Y"q�(������d�'�?7��":O�r%M�����3r�+����ߋވ�ř���&��.����&(��J���m律� %��Kr�TIEiG5h�^��"�k*�.�t"�<���6 ׽�OW}!��t�G c�7�F'�LV�WA�P �ŕ8�O�6�FdEQ⤱$QT�R �vu�.��*�"x-�ĉ�g����BtO9%���I��eygr���DHw�W�r.08��b�d6���-���2��Юu.]�����a�(��{�Q�uH� M�� 0����ٍ�EJi@�m����ŵR8kP`����f�n3Hm2���~<��jPش�U�L�NG��ĦV ��i|�H�Ob�,�� [B�/e�|�8L��} �X8e�HK��Od3g��H6��=�G�k�j :<ʥ��HI"xj����x޹��l�� i�� ��JNtB!���x>��.f�t2�'-6P�Ų)���a�)�d"��`�[� 0��IwH!�+�WE�9��T\9�x-�|A�o0�� dрĘ�LY��T>oL�J-� W��>#e����,[��l�;�Q�(L��l<`�:�5�{tX��,�^OE�t9�);d�Z�^��/��&O(,$v1z�p*��lǒ�>D�̦�ĂNG)����D����#����R��X�G�q3�������`�H2鐺Wx��/�]���S-J���^�K|�B9W5C#� ��U!���4uϒ#^1�?S���gt�ct�ʜR NMG$3]"�����X�HË���9䁇�AQ�}�q�Il^h�c9� s����˧������y&g�nZ·1C7�&��^ҍSVϞj�$f�/�#;���8>&y���!4$����d�y��ݐQSi�^�< &�/�)��,[> �� �Fm��{�0F�t�iA`� ���kS��1M� �@�L�k�>@�HÆ���/�=��@g��@�'W+�~(��5Jz�����:���$8~��z����pU�N�������x��F #�x~+>4@�O�� ��C��)�O@� y��&yE9r�=+����8X�����V*��3 ������A�F{�C*h첶�Dm��� 7yB ��~6�Q�j(�$�^6�'����M�J�q���C�O���%j�T;�N�Љ��uZ���j�։���¤ ! �g�եJ��fyR��;��D_��lC�'*M/��ho(,[b2gC����ń~-��{N���!~�nD�1���0f���b8dF|��d|9���x:�!q|9-���x���b6]����'��b4���|2]LG8���|��1'�|:���S% ��Y>�}�'q<�����G���C�*��Œ�:���:���!'��(m��M�HlE�M��i����q��\�H���H�R�˲50�a�*����������D�^xJ����)4���;������Oī�̢�i޻�rx�{U�x�B�'�S�?��xp�O��O��e�� �ؘ��P8TE��Qgqؤ���� ���r��"ݺ��j��c�q�]��N8�!�����ͼɒ{tCy(�+~��?�E�|��:Z礢��U�a��lilN�Ȧ��/�#�����j]�*�sz�!��-� �Le���� ��������"�x�Rq���W�o�F�οb�g����Aq�p��r���,圢�+r$�i�e�K��_ov)�q�+ 4@ ��ݙy3�������l�z*tV�v�`�IW4���Vjc�ⲇ���[� ���ҿ�zX��4��9'o)���X��mɴ��jŎZ��Uw&�*�\���VgkX���^)���.�ܑ����ɤ�L������ޫ$zE}r̥�0� ��+lkr����<�<�^P�U�2kךɵumߣO������͔��6p�VfG�X=�ݞ%���\ֆ=vQf4W8�;�Qi��@#�@���k���bq�﷐2&�Gn�N������a6�����h�#�Yz�ܴسd�ۆ�ArH���*��ܩ Ӎnxi��'�}�����ѵ�5�nkfa��j� 6 GJ�+����mz�~O VϨ�;ՠ�.�^\�%]��X0"�(�1�S��#��E��_<��0�4~��||{?F�ד��Ln�������G Z�[7�u�<\A�eL3��}����=�x��=K�yK�uN/���+��KWz����{^[k�w�.u!�x�H��n8 �OU�NU����_�� )��c醺 �k P��\��5��� �+bj��9t�09��ڏ��c���C�!�%�RF`�icQ�C��Y��Ƥ�b�TdL�+t���j�7��[]�� �x��;�t�� �Qt��,��qv�DF$�e��õ�����@���Չ����YJR�u|K0H���W97�ж�����@����vHl���"��(9�U!PY�\W?Ng�q>�q�>���+��rD\�#�䌎hž\/�� �=���.�ڊ��K�܆��|_HH�38O�J7�2*)x(�I�rI�8%��`�Nl z�'��) f��D�zS��2T�ܼ ���'�� ΅� �nm-�$���=1ڱ�sc+�*�B m���ѐ�4z�Ө�n[�UdT�m݋���pOb�\����Ԃ�!�� (���¼"���0��� ����G�+t6�bW�H��u�6��2�~�Z_S-y�ߢZ�Ñj2 �����������nG�Th8��o�jTX�"D�˚}d�f�l�̶@�<�FƢ�۩,�9.|i��F�8b)&�� ��!Ҏ:j�0W H�Q��#��ˉ���E �2=~��L�/�ְ�6��<#[�C�p��j��0��P��~�.J�}|'(���Ԩ]�Q ���m�q:����������nL�{�{rKx���i6�ǣ������'����3�dm������ I��;N��I��x�_>i��P%ԎM~������z��q <|���(�����h8��> ��m'�/evP7�&��V�P�ElZ���d����} �|��ǀ}%2�;�UPR�g��M��o�8��.b\p����r�{�-��\b��x��6\�����C �!��㹻�rQ�lq% {���X�ܶ���`�@��̎S�������` EP�3C�D�$��4��(��飤/�s�%%�zݦA����~\�{ι�z��}}��/��N�������Q��Q��.)�W�M�I���Y}uJG�P7C��h���� O�����umt��U���n�ƨ�����WU��� g;ݪo�~ص�����ـ����Q�7���R=S�?��{R&��Ե�Y�*<{9�[Ss}]�!��O�j���/Vx���5���bٗ:��e;�LJ��i��57<5/�+}��՛�&WU��N[wQ~�c6O��B��q^�������^D�K���Ƭ��F�U@��Qɰ��k�'z}0��N�w�L�6j�0�j�T��l2(tg[T�X��N$Ʉ��1XGe�w NJʻ��Q��T��O�fb�MT�'u��Ȱr:����*$��{T�`�mRp`��46ڃ�X�?8���O�]�Z� �[���k�8JB48�l:m}́ҏ�n�ke,&*��uA�T���zC��v����#[��&HQm�3͚á���9,���N@J�)uȥ��^�Lk�K����ȥ�D c�h&��O�"m�\��p�g�o�WHޠ.[�‰��3t�R~Ȕ��s�� ��Aֳ��|:R�"�Eԓ�/I��(���� ���y� �'�A�e�S����-�^`:�����#���e[���T$��� ��;e �y#QSmE��{�r&Lc��I�r�I�F۶�1���C"a�T���P~^ � k��˾���˄��o��͸������C[:����Q9B ���;�Ll��;A�|��VdZȊ�k�0�;`F�jӪ9����PA�����0L���m`�X�hp������X6՗� �ek09~��?A.�_�߄���qrIt�I�?�D�\i \,�W��&Ͽ��&k� �R[F��~��(]b�?ұϣ�zE^�}G���*��ը�%��P����R;�`K-��`������3ۍ���qD��=v��ہj7�M�5w �z���e;90�s#�cO����Q "T��O��8��/s�.� ������G�:��a�M�Arv�{L�A����2��ZC�kcB�)�� p�<�3'H��U�=՗����������gnO,E:��_�m�H�'�A����������p,^K�C��C��X�@;��oI1�M !�-iF ���=�8=GGvg9,ڏ*l���28�hob�290��n|n|x�z�"1�#���kv4�~�ݤz��tM�rC�7�' �F80e� ���PaK QX�����Q��;�hԧ��p?@���Ck���u�]�n�䜸o��^��GM���� n�XzV��V�`�@�~p5��[�Nb����bc�j�\}����@���_Kslf���w����S��{膼�GJ��zg ]���H:]��NJ��^q�Y�������_>J �+��V �-�S�.p��j\�sS����:�]�p�T]��$�A�p\琝4cS$-N4 �8d�d(ۻ�B���7���Mf��%4!�[ �����۫t��Q�� ����9X���"�;�r��:� � z&003��/9�}J�����1�ꖴ>[7ԯ��$v��'aC�E7I�$b���%}�v�T(vN� �э=�0n<�[0������R3�������j��p�͖e�R�?���#�Z�}-���i%�~��o���ʼ��+����$�����.�b�����T���MVә>q�GtC�F� ���"dJ���k�ȁr�F�$x�H�>9�s��� �I����Ǻ\ڰ�ͮ�m�a_q�v�d�.��}u0S���א����6��3����y���{�8>��l7>{Wc���Wێ�6}�WL��[[]g�)�f{ �Eoh�! �DY�J�JR���{f(_v� �>�؋%�s9sf�<|�j�ۋ�oh�WQ��Ӟb��5Vr5) ���-5�N��hV,pX�t�� �n5v���j�蚞���$�%�S�R1�@��1�v�S1r�-ucU��F� k>;�̑B�|L�,����s�R�` 0<�8���lX�8���Њ���Mi��T �eDq' e����^b%�Z�(M�gx01��1Z�^}���' �g/���.S���-B1�k��5~�9޾7�"��$�>�s�^�l&��g�( >��Й����r-�!߯�����n��I s�~�ş�h�.i����"hI�N���M~]>���β��Z�� j�^�A�0M���S8g#�����z������ņ ��mvn 4�:m�$�7��ђ�:ˠ��ƪN��Hhnn:��͍��_K��Kd �����q^K:��=��/ʂ�F��gk㻴��v�� ��s��Ć���4�P��/.�=@% |��E��F� %0������:���u��Ƨԧj[u��03]��B?��8��9��X�2�{A�s=h�@�s�^n�� �Ғzp/��R��/�Q��u���S�l�����7�޽ש�$�ܴRs�-G0����SҎ,�Z�М�:��-STh�[[Ɂ�k�1��*��i ��;p2�aG+(���0rP�'�wl)�D]A#P��'��# �ޣݷ8 ��ީ�ɳ_t�F8�bv7��am�E3�`��?g���qPi ZG�]|}� ���O(�;�Q���;�Pny�kB��NuDvt�<� �*ؼ��x ��f�Eɫ�XP��U�o�O�7�r'ٲ�(?� @E��X��!UU0컟U�Y�#�T��ך]�CL�*S� ꑳ,�\��#8�;�xAw��E��-�lp/�x��>.�dr���x�Q�B|��N���^=�Y�� ū��.(�i�w�Њ��/λ�?a��S�6睽��i����p�"�>����*��8p��DZ�Շ���������L�E2�SR��P�d\���V+�Ĵ���7ȉ�e�Aቸ.�r� ����@y�t��^���;穆 B*x��@M�q�x�I*�t-3� �F*�^_�*0�.y��G �a&3�L���ng� C�12q-����6w;�D�*o�,��!�'a�� T�A~�]�1�ЭA��m��t"��%i*ܢ��3:��l4�! �_ ���(N]p�ȳ�xSWR#y!? �y�=*'�Jo�� �(�̩!�mx�i�/���������,難 �֢Lp�1qƜ[𥂑+\��C�n�g99��#��F��(����[���mL�/��#Z���9x� ���r�'7l9e�3-��MM�o1��� ���V�;�e��^(>.!�����t�旄�=ͯ�\��g�k]9�!,���jD�"�~LWH郡ѹ6�S��U]Q�F��p�1DZw�O�4���`_��r�:�N��}�bSCW��T(�w�����xY����{`���һ������+}�XX ���զn}�,�2�Wc�8P���w>��bB���0J������NQ��8���v6�n�(��o��3���>�\-b �̾Ѹ�evݿ��ݵ/�}�99�2�\��q_����9h:B�S��exg���]x+�$u��tD�Y�Bc���R�0�|.�\`��Y�Q��/T�;q.����EJq��~[��W����ɑA2Dk�!�t�lz%|�l"4�Q��A�����+�X�ۥNzj�Ks��Fet� X!��6�W 1(����H������� �8W��YY�7!� ��˰d5����M�l]�$�+�������~P���d<�MǓ���u�m2�_ލG��l�N;e�mC\��W,�� �N���4�I����f�ZW��I�`��M��6�X� ���ŗ��M���jf�ѹ�o|��?Z?߯P݄���*Q�F��bu��Tt������}�B�~��=1���R�N�_����)E��J��(��J��� �[2[\�N�M�+B�龩+{�O�/�7��U"��o��Hv{e;�=. B�׳R�h��P@�rBQ�O�����-y$��}Xa��6��_1 p���N{�i��f�j����-�Cq0h����DI�V���7CJ�n�+ڠ�ș�73�y��������_���)XʇF�&SU5P� ��ڙ{�SZM��Pj��� ]�.�����5��Ju����`�| �a�0 ,�á �U,�����CЍ7X�m�U�Sa]r�&��C������nI�^�Ѥmp ���5���� �5��d��zv�9�����|���Ue{����Y��4��!���������W��jo*�ū�v�E$��?�,Ћw�����U�qF�g�x�"�������ߞ�.����챭�l-*u��#P��no~���������~��/���.?^��s{}�R���Y#�7<;�;�o>~!+����g��N��C�=6?��E�r�+��O��mi<����%��@��556��xZ� � ����P�������&�P���a���喱$�M�u��>�G$�d�N�b��R�UCϭ��R��zv���P�� c՘&h�:�?׳ �c;������� .Q��0�96�^�����)���W����ԦR.H��r����V'@5��-JV��P�& \���Y�=bڕ.����z�|Sn���Q�jeO�3�����Ҡ$�ֵG�z=��Y�^�j�}@����&h��[\�S=�:���,��umTq.Tvr� ��{������ԓ��/����Y��ӕ"��dc�[�b��{\�Hf*�0�?,h��@�q��҃�9JQ��`v:S�QyN�λL�L�%'�y���x�5h��HB�423�=����Ds�_n�Bs���2[#L|��I�}��Tw{��P��2�U�I�X�ݏ�7�����7��s�͡���o�{F���)8\)�~���1�!��wmk}�382Υ؈|ey'E���C����#'}�m� ���h�BP�,}�Zn�����}����8J�="Q��������&~�9Ö�y�`�q0���X����!Z?s��8�Z {nO��q׮A#�R<�F|���M�:���|�g���(!ВZ[ك���T8 � _�j|��~�׎-g�ҏ&a��(���4G�bɧ�܉8K���M?Z��$9���=߅aQK��푑���P!t����l4xU)�7Ma�Y۞Y-�}� |�y�P��T8u��05�ۺ3 �sW�h @�8V\@q&�ZX.m � ��f���x��m��}y�.Q�i�@����>���*/_���Pp2��4ߑ���"~�1H��-���Z���Yֹ�V?\��g�%��B��t��R���)h^ -@l� �9u!�S<߰�՛lL�|1:;�\/�;�vQ���� c#�I�\��@4?���ӯ��� 6�@�M���1�ڹݍ\ �2�q�:sI���_< K�Q��)��-����,���#��|Pw�E��xm��� �&��g趘.ee�x ���~n�sQt�������h}�̍�؆��N zȰL?��u����sD��9�6/B��I�����d��f� �r]��F���]�x�ѼP[�{�S�I�kox��S>���,�̽�d�^}����8}��h�EO_'�|V�ZxǠ1#hZ�ou��n�UX��X�����ʡ�������E���NS8�c$ҩK���_y|٪���H��\5vo�Y�>k����y��}-5O��u�K�q-~}�}w�#C�:�b� �x��|}���� �x��<�@�庘n�dCi�@�4�� n�.ۛf� Y�Hp���ܜ����g=�N�/�1 ��qաYN�氞���"8���\�*/x\��]���-��g���UB?& [Zʙ� �;Q����d6��[��CZ"��㼭i�I�3|1� � �� ���u�T�A�m�(���L[��K`�eԴIF�H8�{p�.Vr+� �Ȅ��^ 58˺6g�Z�Q��c��&푄\ⵠ�ZQ��*ʳ���/����b=�h��� n#To�tC|��>�8�,Pj�����I��M������t��-����$<~�U��$<�����7�{$L����w<�Yq�bI�eky������X�j�Jv¬=�UƁݭ�<��b �ϕ&Jd֌kz�~F�_�7�(��h$���W�r���SL��X�H�0�$hZF�,�B�|pR���,v�ݙ�̬ �d'/�T��wH9�@�X��@Z��YE���������������čх-Յ��Y�㢖���X�`! i�A(^"�fe�X�E��ioJUi���3�9m��zSm�X ي��A����rj�N��G��)vص�*X�ʔ��V�RI#RlԪ�k%zO&.__]�Vaw� ���ي�:Q�U�^��+���� |t��`3N�� B�R���[��A�Z� ��I��e&��u��K8ڋF�*��~�֘ܩoz��dDN�ft��]����3Q+Y*��:k��o����d��c���z���S�[3�8H���4�#pv2�C5?O���2���ח�\H�RTa-��xD~� � ըV��{��lj]� �R�PZT)n�?����=m� � �-���ʭ�M� ��: �h/?{y!^�,9�_iSڍ�D�k��a1�A�pH��Dϱ���%�u�������v^J_OE��os��I�I��kis�p�p��& H='4\҉'�ON�b��{� ��'�'�MgO�����~���L�JPW��o5�$,��6��P�36��,އc���4&O;�5��������Lϲ%,�M)*���sHt��:��kP��[|�y�h2.:Db<;N 3��83�f�+�������*h���v���w���}$6:������+c�K%��HQo�a�5_d�� �HgD�RJ��P�����nE�;�L�(8�ůWo���Y���q�RQ9��>@��jrON8^��,HA��lǾYT�4�gD,ۼ�"�� te����A�E��� �RV]Z*�߂Hm�! ��"�'�|�f~2E��ѯgb%�[�D���`(�)e'��ŵ��i �zs9+��|���fiH/7�N��Z& �0�o�%��4ފ�`�(]꒰^Kh�ABa[M)R�!�� .��CK;֗��$l$��0�֒i�����xi`J�1 n�Ȁ���2�8{1ۨA}#��,F�-�Q�/*�P:���r(�T�*,��Ό$��;ɟW|BP�͒we�2��hDB� �! ��&8@w���|�)��B1~����Ɛ�����*�^�X� ���Ӥ��SX�8����b��뫣�zq�6�2��*g�E�l�p�K�Ǖ} V��hP�� ��7W�¬��.�t[r�n;�ψl8�~�gW6b��<�ْyG�O����[@��2(�T1!�^}��aU�� �~����b���ʉ�hKv�9����k\_��k�Fn4�D6���� t.�`S�k��o� �@ރ��l�t��J���[�Y�gL)�>U)�L��m��l��ͳ���+Mq\b�. 7�� ��Ӡ��^�<�D�9ѷ��:B#�nY� eY,8�1���e�L?� @���[�FC ���Y,��پ.�,����?�������_�� ���������T�@q�LG�&!H ��"�f��K�վ�E�٪�� Et)�K�@sK�����g�P��@m�-��v���p�Ѿe�n"em�1^zdd�t��L�k"�zv�b$�"7���X{˕2�������ź�+�a+d�_)< O�_�*�Q��U �[m6���E�ns����n{t�̾�՛�ny�X[L� � ��=E �Aݧ�����\\�N�]d�Tl<J���4:稀�:;��K\�#�+� Jo��WS�ƨ���R�eay�z�]�{�zY��av��P?X�g"ub�L�� �Oo�Nnײ &Ʊ���'�?pV�������=��n��z�����":��>�Lc���˗;�v�I'��چ�éj�� I,Fy�h`�b����s����-.[E<���E%(UL��IL����<5@�@�jcIP3�pb����4�㷄�����e�Xt�����\�V�b�/���������ŏ)(�cLW�q�����'����P����~� �?�p,|Zz�t�G҈�M?�T|�j%u�b���G��� az�`����Xo�6�_��^�m@S�.}�h�fY�z�����i0�2m��D������9R��$+Z`A��$��{�����|qC����&+���d%TI[� �ڹB��ӢP�r����������Tɽȧ�:Z�ZN�U5�8��kJ�L��/>�v�^ѠԹ( m� I�~��amX����4�\��j�$�Kl\>��M��R#�o n�Ulj �T*�d��?_�/X�;Y��_н���/x�+i���a�swx���nf{FWF6�@y�ZQF�$�:�s0���5���76Yh�߼]~�����!��F|Ŕ��>iU���:Sb'�lt��w�$e�Xi���|�� �]�����E:;��4:���Un#ȳd�jMSrf�I�ѐr�j�r�ֹS�FPo%�Qv���ڧz�ۀ��>{��̎' ��A�y q`U�_��'����� y���գ}Hx���|\��&"�|�����ᵧ�����g�sp,f�� �QrF���.�E�[UoH�����\���Fj����^���|�U�����$��� ;� x�5;ܽD���SN��J��R��� ~g}���4)̨F��Mms�ԫ].2~���^����So3j��E�{��ǘ����}����A��uf��X��/^xU,���ZSm�q� xo�5JO����iE��A���<}��2 �BYI Ϲ��溮�7 ���G.�����_.w����.t��� &�yIr����p��e���eY�P�����'�Mź�B� G;�Rk��/"̊�h�]��(� B�� TflgwtUJ5�ַ$ս��x���@.W���c!��t5��v*��I�)�z�$�@�ȋ��X�䄽eT������ӋF��NW�{���3�p��ץ��[�ʳ���&�4�P�ɻ��4��)t0 ǎ)�3�\�Ƒ���(�+C��7nc�O]�V"C?l�{,���V�I5n����ݬR�̜�w�e̦������Fr?�w"h�E�N)ؓ u�]D8�"�ֶU� ��'{Y��AbV�g����B�E��%�t�aw�2,���,�h��9�:6x�$x���n ����=��И�2���^� @�L:��Z��FQw���G�`�z�u�� �N�"܎I���n��o�e��U����+L]ǽS�tkHokO9��l�w�C��]�ڄY���C� �.K�٥��xx��|�@_Ï��d��a�A�9���o��@GrW�h� F�M}s&���}Yʾлi�Ҟ���Nr�yP g}IM��Ŕ����Y\�^�fg�� ����슾��#ݢƱj�`�Z����L֢R�*#�!~�;�p��x/�/�cx,$��Ѽ�s��t���ղ��2: ���t[{�t�"d��������?18*� cij ��z�N���s��8^Nt$,H��/ݔק�DF�u�Ot�NצEBT�j�Z�sn� e|h�c�F�Po搪�`OW~��Z�}g��'JH��p�W�~��gk���%m� =5� &�X͑���x�B *�V1Mlgp�8jcE���J،.�j�G�m:� ]x*��'f�t��F�R�l�}]"��3�c��Y2�i- q�Ek�|���t/]?ӑ���n��E3����F �J��v� ��N�C�o��R)��e���� ���z��~�����~i�s�N�~#�� ���0��[.V�X���1� :NB��ɬ�w=��П-��:c" �q,�9��� �H�n7�a_q�_��1���k�f��|s�9��Ä�-�i0��o���d�5֒�9���؋ݩ��Qt�2xyb_�ܠ���΃�x丼����������7�*�W�|��������= = g'�+4�<�������������ǡ��j������������e=��.����������OX� ��w������������2����g����������Q��ҽ��������99��.�ϳ�����������������*����������Fۢ$���������qq/�zÇ����������/��﻾)���������PP7kL��7��������--����F��(����������@FQ��\�������������������������LL��������������SS����l��������ii�59�<�/���������ssQ���U����������1 �?��v��������KK��w�,�������������|/O�6��������RR��'��4���������  a���6�����������)�`�m�����������A?k�鴒Q����������1T����!��������������k߾�]�������� ��u,1�B��������oo�\�f\�C��������Q �����a��������ff�p�W>��[����������A��zqڷ���������.J�}���.����������dOPɔ������������ә)?�����������ޥ�>�띷�������������}V������������6`ُ�2%��������``�^�� ������������[�"m̢��������QQ6�r�u��^�������� �USi��r������������^�|����������� � N}�%;�ɝ�����������NJ���;��������� � �;s[[�:��������������{P����������6�D�_��=����������Vh|#o����������SS6��%y����������nn��ٴ9�Д��������@@~hY{%��s��������88��1>��>���������//��L������������]]�sr4��wp��������RRҜ~ ��"��������hhJ�����-������������~�9M� ���������zz"L�fV��y�������������'�����������KK��e���Q������������3��ĎQ���������� ~Cڰ����������� ���d������������� �����:��������� �"j��L��������55 W�#C���9�������� ��r3� ��������?? C}������������� w���s��N���������� � L�� 9��������QQ '� ���tk��������JJ �.��G�8��������� ��C;���������� :Nx����p���������� :5#�.�����������\\ ����Vؿ<��������55 2:�� �h����������� z3���*�������� �tu!Ь~��������22 ���t������������� ʓA|��%�������� o2?B�Ӱ���������88 6t?i������������ O�H���r����������� 'NqM��e��������FF ߃-������������ �-�V�� i��������44 �-�%�l��������'' υ$]������������ W�ڏc���������' ' _��;���������� �c����������oo �X'ܐ��N���������� ��h5���o��������SS ���4=�~����������� �M`������������� w����M���������PP ��>YІ��������� '&�������������� � /�q��(k��������rr �Ёŏ������������ � '�� �0f��������JJ �N_��v���������� Y7ʺᓃY��������� � 9�����S���������� ��N-��U����������� ����������   iv����@���������� ���p���������� �0!�zq������������������������CC�VV�6�Xh����������"�O�s�RI��������88B�\����(���������\�J�������������ͬ�u���O��������lL/\�0_��������ii�8�2r�����������aa����m���������SS�T�3��5��������$��7�u���������nn�Os�3�������������1���������BB|�"K�ox��������PPQ�eߌ�lz������������=����'��������//��s��ѥ������������EGw'��#�������������o]�P[��������>>��TS�ӟ��������HH�uӥ`��!��������&&���bx�������������UԦ�Y����������,�@���������������DQ�D�����������E3ȟ�J������������b��������ii��|ؼ�7��������bbY�?���)i�������� �7��՝����������1��f���������������������������h�ȿp��������==�����?5��������DDf*U������������!!��� U��������������l���*�����������m�� <��������� � �!��u��+������������mR�d���������� ������N����������r4����_O��������� �  �u�4�����������ccS�:A��\�����������ϻ�e�����������[���^����������� n4?C��WJ���������� � ��Xa���������� f�����/��������PP w�9�F��������� BQ�N����������tt �F�¿�j���������� b��k�Ҡ���������� w8������������ � �x2@�|�������� ���Fr�&��ç��������� � '��0ٚm���������CC �E���ԗ���������EE ׭�Bu�����������   !������E��������99 ���=2��?��������pp �FM������������� 9U����G�������������o�U�Y����������������Le����������5��Y�Z���������KK}7��������������L��Zt�yr��������``�Q� ���4�����������W& ¬���������O��32�2��������**���.��������������G����;��������TT�"��;�����������t5o,�������������]�N�^���������nn�P�� �{���������YY ��C�Ο4����������� ��T�NJ��������99 ���k+�u��������� �>���� ��������HH �o�S��Y����������� �|�!����������� �I���A���������� Z8��9����������� ���Hr������������ ����(�I����������� ����ϲ+���������99 ���&�e���������22b��i#�~���������BB�<��5�b��������99m�D�4��������wwXjD�M�����������Wo�����������tt����� ��������EEﴎ���;��������##�*���e���������� � �!0�1����������oo����������������/sz�A.������������C����������������������������6xw���������� �JW���m���������� _|������������� OC{a����������� 1�O*Y����������ttL)%�|�ֈ��������""���Z���}����������a��n⬛���������;;��U�Z��������������{�]�L��������� � �K�������������  ����{ ��������AAb(`����������������zB�a��.��������$$ �8TB��V����������� ����{�>���������� oz��c�Z���������OO ћ��N��K��������� � JM8�������������-�N�ܺ���������>>߭S��$���������llnQ;$݁���������ccN }5��t��������!!�d�/:�������� Z��b�;C��������%% Z����%��������   ᷨ� �} ��������!! �o"bD�����������22����ʲ������������� ��h���������� �-r���tJ��������J҆0�S���������yyM �ͦ���������THB��Z��������6�F�����������yy j�`�V�H�������������/�#����������� i��b��� ����������J��u�W����������in��������������X|�r��������� �[���3�����������O�Ѩ�����������+ + :�c\��������������ۻ���0��������``�D��t�����������##����r��J��������77z�*����������������R�'A��������CCA2#��M��������OOr��~?����������ZK����p.��������j���'��+��������$$2�,�WיR����������RA��Mۗ���������yy���^ �����������&&: ��������������� � *���i�C-��������OO:`�F%��i���������K�A'�����������ڍ������������Ңf �g���������@@B9����{z����������>�<������������Z��R|��H��������*�>��6����������ʪ,�������������ږ**(��2��������TT�Ʋ�4�����������rS+.�������������͈p測�������� *4��ꓝ��������,,�Fߥ',����������S�L���y��������22��]����������������x��������������K�:̄5�������� �Թ�*������������d�:��%��������11���K�ܤ���������**��y)����������]]�5u|��y������������߆�}�/�����������tb7���|\���������jϡ\�O���������--D�mSl�ņ����������t4Z�5��E��������UU�B�$�bR�����������1Ky��ϰ��������QQl�+�r��������u u < �w����������00���*�GO�����������Ypi���4�������������\������������UO���;���������DD��Mv�����������``��BZ����������ooG�vZ~�'e�����������8 �a������������� �t\�����������S/�����������#�җf����������7  ߚ���������TTOa��� ����������� ���W�s���������� �����i����������� ؅&Q#�����������d d X�; ��{��������k k ���i8���������99 �p�ߩ^���������� � �҈�է����������� ��#��,����������� `�R��F����������� ��ߏ����������� Pi��_�����������}} �ylB�� ��������� � !����W�ya��������� � !$�c�i�Vl��������ww!�57n�����������! `����^���������d d ! B�) ������������!\���8�L���������@@! �%Kf�_�����������!tCm%׭)��������!|rd�M�Ar��������NN!4�4�~�����������!��ׅ�8�����������!\75�ٍ���������!��dL��z��������$)��J�����������>>$�L&�)�%4��������AA$qcG_�����������$�/z����������''$����E`��������$�\��ݢ������������$����k�����������$�s�g��|��������$ ��Sm��������44$9�:I� �����������$����}��������$م#���T�������� $�������������%%$�!����`u����������$���y�FM����������$�b�w��*����������$�"��Q������������&j~�g��+��������HH&%_�o�����������DD&�Ձ�O�bE����������&n�^��y����������&�W������������&�*1�������������XX&��Uy���I��������&bX����D��������&���z�-�����������&"�f4������������&J�m]!�>&�y��G�]�����������&e܃���@����������&Jo�'4��'����������&�C��y��m����������&R]W5��&�����������&�[��=��������&�8]��F��������tt&�K�휌W{��������)|���b�������������)T��U2��.��������NN)4H_��:��������DD) �����Ş����������)lW�ٞ�uk����������)l�������������)D1�ƻ�������������)T��L��M��������;;)>/��T��Z��������KK/��{w�����������/W����s�����������//i���"����������//F�n�Z���������ss/O;qh��a�����������/�&����c����������/?���<�����������**/�>ֿ������������//��P��r���������  /���ױ�������������/| ����O��������!!/Nj�W�BS����������//�7�B�GO��������PP/?����O���������TT/Ww��������������/? ����������������/���W�W�����������/G�/J���!����������/���-¬?e��������  /g4�������������tt/�tm_������������  /�f�s8�����������/_��9���+����������0_J/=j��l��������..0� !�����������uu0�T+���p�����������0�=��զ)��������cc0��?����������>>0gif;������������0���P8Ů����������0M�C|�����������ii0W���^�����������550�laA������������BB0g�5��3����������0�-�{��?T��������%%1.��w�+�����������1�C��P�k�����������1^���d����������  1vb��j�Y�����������1.�ގ��j��������  1~�G���9��������  1�9���Xt��������1z� ��F����������1n�w=�����������XX1�� ��%���������""1^_Lr\ԯ���������HH1v�(?�������������1^U�G��������������1���R@�����������??1vt�R�J����������1n{ꡣ��\��������uu1���X���O��������//1�}�F��������������1^cJ ��U���������--1N�����{_��������1� ��>���������1>���~���������991�~5�y\����������1����Q������������1V7��'�����������**1�a�,c����������1��Ϸ�7$����������1֑ �_I��������D D 1�w'�L�9 ��������##1>�i���B���������1� 8������������331^���0� �����������1N�y��{���������2݂P��p�����������2���^x����������''2���j�l.��������552 Oi/#ӯ)����������2%��ɛ����������[[2��ɯ��[���������QQ2]�,4�A�����������2Ű�X��d�����������2ݻ��NJ���������@@2.�d�9�����������2���,�����������2喤~������������~~2���]�����������aa2�ʼ���B���������<<2]�FM��Q���������2��鎠�Q7��������2E� �鈛���������II2���\����������. . 2m�>P�A����������2��ܖ��Ɵ����������2��j�������������2}�v��y����������2��(>����������CC2�[*��$���������2m�t���m\��������� � 2��,��?������������rJI�4y����������2�`0;������������ڂ9���t���������PP�G��"��������''*d�`�wW�������������=��OO�������������[�Fd�����������0Au��I��������t*�A������������ #��?��������]]�������������������h����������m������������RR���Γ����������HH ������k���������� �3�b�~���������>> �T ������������� p���=��8��������"" �s��X� ���������� `��� ��W����������!�^�f�������������!V��.������������ � !� �<�Ʈ ��������! ��\������������33!�!�$����������!�k�i��BO����������!��Xܬ��v��������!�5�J������������$��7݌ì��������� � $�TE۠�������������& o�J�������������&ZSep�� ����������& DTf�B���������uu&�Z�U ԑ�����������&�*���������������& a�m�=h��������77&�S���K���������NN&D�����=����������&����N����������)T�}���������������)��?ı������������-+$`-N�i�����������-#ڠZtֳ���������]]-��ɶA���������-��iP��;����������- �]*�޿M����������-cX���6���������-�����Vv����������/���m��������������/z�.�����������/gmD.x�(9����������/�?P���#����������/?�^4�@�����������/���Q��l����������/��YÐ�����������33/�U�5��e���������� � /g�xy�����������**/G�tna��/����������/�dz�&����������qq/o��R܆-��������""/W�`!�q��������- - /����!����������ff//�~�6�.��������� /D�)z��3����������/w�c+ʓ������������07��ް�����������0oB9��������������0pl�x~����������0�e+��@��������UU0�����������������1�Q!�i��x��������1n`/�]�UY��������**1N�Q�)�E���������111.��<���#����������1��V��&����������16��Ǖ�������������1���<�B����������1n����������������1��� ꝱ~����������1�$�~x��q����������1��/�����������NN1n�)1�����������  1^!����\����������1^���4�W����������1V����d���������yy1638f��ı��������1f@�_ �I"����������1֏r���h���������� � 1���*�s���������2E,��װ�����������2�1��k��~����������2�G�e��Ϝ����������2 �8�V}����������� �������������� �  ��������������MM2��Օ ���������� �Z&҇���������FFҼ�_�ص��������>>��?�� ���������&&b���~������������&�I���]��������,,t��my�Hu��������aa�̒h7��&���������������&��������bb7�Bx�d;��������D������������((��!ˇ�[���������=�@�����������99!�����ʳr����������!D�p�k����������zz!tM�٩����������&&!�n)�&��l����������$�������������$ \�C��{����������$a^(8�+��������xx&���� �����������&jD���(`��������77)4ݏd��A��������)��|�����������99) y�JZ�1����������-sB��冧��������� � -�P���������������/w�j�"����������X X /?�^���������������//jӒ����������/�����4��������,,/G�����\��������/�^�{�����������''/�$��@�k�����������0�?����b7����������0���.�$���������::07Y!���Z����������1nX�~��(����������1N�'G��8���������� � 1 S�������������1���������������;;1&���l����������1�i ��E����������1�G��g�H�����������2EdiT�����������oo2�p�Yžo@��������222]R����3����������2�\,��� ��������  2�����V��������ff2ջ� �p���������22��֏�߅��������FF��nP��8����������Щ6����������lD�X�k ��������xxwS9���a���������� h�U1�����������// �&-�|�H���������   ��e�����������  !�_����A��������$qH�s�M����������&�u�P��C����������&�hl铮����������mm&o� ��}4����������&Z�0�$����������� � &���A/�ܙ��������)T��-r�&����������)��$@��C��������99)D_��ų�����������-�^F���\W����������-c��^ϾM��������//-p����!��������� � -k�@�_�/���������CC/g,��S�z���������x x /w�i�諾���������/�����6"����������/ϖg�������������/OS@P�Ei��������gg1�I�N陿���������OO1&���������������331&�W�m��T����������1���%H�m\��������1�]��.0����������1~����� �������� 2�3$ټƾS��������ҍ"��{������������r����������������JCbU�c<��������~~�$X����/��������b�f��r��������{{tĥ�%'��������� � !�-��*���������>>&j�U!�� �����������&Z`�\�܁Q����������)�\ �O�� ��������RR-;��i��7��������;;-sh$���.��������RR-�_S|��u��������GG/���ܠI���������88/'��~2�]����������1����5��<��������2�. ̢�k��������<< �h���������QQ �� ��W����������k�K���������JJ �ͣI�y+��������&�d�u��V��������� � &:v7��T#����������&�$� ��I��������ii/���p�Ϥ�����������0G(JT�����������1� 7Ю��w��������ll&�h�� �U����������&�Y����H���������� � /O�>������������==//�²I��)���������� �-�W������������1�����p���������@@$ �_�����������B�u� ���������99$��p�ye����������&Z�3��>��Z���ڷ����������&����A��������((-��� ��M����������-��7(��#��������""0WN�i��Z����������1n����������������0��#������������2��~c�_z������������Ԟ�;t��������55&��R[��u���������%%2E�Ы�����������OO2 ���x�)v��������>>2�ퟶ���J��������&&2=��|�H���������TT2��eŨ�D���������??2���Ί�������������2�9 f6�\�����������2/B>��y��������``2չ�v��b0��������II2��F7Ʊh���������SS2��@� �������������2VG$��?���������OO2=�n�\և���������y y 2%����U��������aa2%w�f��j���������2 � %��*����������2���� �����������  2������-|��������OO2� ����p���������~~2E ����f���������oo�$�H���'��������22����OH�` ��������cc�\W�`s�����������%%�9����h��������| | ����Y������m�������������b�'��:������������Y ��%��������a a �������%������������6�C�¸������������N*�� �������������%�ݒ7������������� �x� y������������1���Lb�������������dRq�f��������99���x\�����������55��c�߾��������QQ���X���z�����������:8��W�j��������22� �\3Ȧ����������:�Nf��c�������������h�g�����������55�y"�k���������������������������������ZE����������������i�不��������77����������������_�L��^����������*�wl�f������������: ������������$$�*���W*��������gg����Z������������SS�;a���f���������>>�Uxʳ�����������������-=�ݭ��������TT���X��=������������U��;��t������������C�QX�G��������RR�������L��������bb����٫v;��������@@��$C��'���������=�b͋C �������������M��4������������e8������������pp���lt]�@�����������R�T�N��������������G�,8�M���������**��*��������������pp��1��|���������������;�����������DD��K�_��Bh��������))��Yq����������������P�����������SS�qb�<�������������� ᵴ�T�����������i���n������������Dk^ۜO��������qq�Y(��%�=`��������44� �3R-��{������������]�(����������DD�T)���q����������$l����<��������XX��*Z�y��c��������^^�š�y��2,��������� � ��֨�������������Z� ��WY������������� }��91��������dd��6u���)a��������oo�Z�*tY�R��������QQ�Z��6���������������T�Al��������������j�O��O������������X��y�H������������:�� ��7&�����������r�hV2�����������������3=��X�����������z�Sg�݀�����������•����;���������//��P�&�U�����������ڻ?��2g��������88�"��\�p ���������������~�����������ss��Syp+�UN��������99��> ���C�����������2Jޱ6����������ڡU����A�����������"y�nc��x��������55��Y&�ˈ����������� � �R��&�צ*��������$$�mo�QE�Ci���������%k��m�~���������\\����t'�&���������%d�#=��|��������gg�u�� -������������MK/}��W���������6+�x�������������*.򁻚�����������w� ����������������p�����������uu�V����(3������������J��˃���������nn�f��P*�Q~�����������~��O���������������J8f�-��������������)I���������������Pյ�.������������xL�������������HH������}�������������hf��ɣ�����������X�����������������Hi�r��y��������DDp��� Q�����������eD*�������������@�i�؀��������//�z.��γ����������� �Ah���������??�ܢ�� �����������E@��V����������I7��\� �����������I����=�����������I�6�¼�����������H��4������������99`U@V��� ����������pj\X�������������X������������������u��������������������+���������__O�@�@�����������������b������������ǃ����������//���*��I6�����������}% �c���������PPW��š���������HH�jvI�������������Źv�������������~�������������CC���9�,F���������2F �(I��������^Y���Ri����������F�CF$�)P��������� H�J��#�����������S��I����������CC{�b��:����������u��P���K�������� ݞ� ��?�����������}ڱш����������-�5���Ѽ��������博 ����������q��4ʾ���������BBk��*��������������וq�-P��������)) �P2��?���������CC3%LYԛO�������������$ZP�@G��������33#eԤ碣����������P���{��������� �͡A� "��������=�z ���������� �B�������������&&m9��Z���������� � ՀZ������������#aE]a��fO����������#�A-4��;����������#�E�— `��������#�a�Q�\���������||# �<_6�m���������  #��0�բq�����������#��;��]����������%����������������%�>����u��������%�Q�ڑ�����������**% ��L�r���������CC%��i-��O�����������%�oZ{����������KK'�:�S������������RR'ؙZm������������'�4�V�����������TT'���H@�|���������'�F>�y���������u u 'dݝ������������'�B~C���(��������yy'�7<��w���������(('�̻_ ��P����������(�[W�������������(�/8�׳������������(ػ��\�R���������(x*@�c� O��������(��e�d�������������( )D���������uu*9��-�D���������99*��e\�����������XX*A~5��5c��������NN*ј߈��!����������*��i����x����������*�>�kޔ�O��������+ 璹Ǥ�L��������&&+mvW�u�ε��������+ ��p�*���������44+`lijO:��������+U�w��:��������99,��`���G-��������,�]D�M��������NN,���ړ�������������,�|�ZߑaV��������)),w��e�q���������]],W��eΤ���������EE,�4�ZA�������������,w��"롒���������99,�*��)5��������.f/�9�y.��������..N� �z���������� � ..�+��s�����������..�9���A��������{{.��� �����������22.��qaf������������.���d]�~O��������//.�h)�E��T����������3��b�݂j��������993�U,���R$��������xx2݋�:�D��������112��1n7��I����������2�so$��`��������**2%�B�F����������2�AЗw�����������2�#J'L�t����������<1(���������������Ѿ�!��������jj�t��>�RW���������� �P�w���������77�I��w�������������m�������������}}�[ܬ���a��������qq�L�"b��V`��������� ��y�ޑ��������))�<xҟ�,��������ZZ��м-[�L ��������vv�nf���A���������� � �� L�\�Kq������������t`�m�B@����������1�ee�e_����������������������������z�N���ق�������������|i�%'���������f�̫�����������((�� ����,������������7vI�����������&&��8��W�����������2I�D���}��������aa�W��Q�*(�������������C�@���������SS�^`�������������22�]!���~�����������`����E��������OO����6��M�����������Ah�`��b��������OO���Q�� y������������ķX��E��������ee���.��������������c �������������C\���������������U90v��������������-�o�_�������������Z�T��������JJ�e�dfE�#������������Dĵ��*_�����������*E©���w��������//�RA{߅���������������z,��M���������::��x� �}���������� � �)"ٯ�����������55� TU�[�f|������������?Ӂ^�����������-v���S���������99��/�@¤ ��������==�r)(��by���������*? ��J��������ee�z���N�������������K:=��^��������ll�"j_Z��a�����������<{�Wf����������� X������������YY��d�|`����������gg�J�'���iG���������"Uh�f������������=�Y?��i���������� � Օ�������������Շ�Yއ�_��������66���K�������������������Tj������������!��6��������``��L�>I��q��������  ����<��E�������������r���˟��������,,�pt�<���������������暙�+n�����������DW�������������� ���Eh�������������i������������X� ��uz����������0�����S��������//Y���� !�����������+����������������L�4i������������wZ�b������������AA�z"���"a����������^�݉��`�����������V��|h��������U����Ծ���������U��;� 1����������u-������������22e���{���������~~{@'\� ���������  ��p��@���������22-�r�v�,��������''=� �:�,����������=��R������������% ��n߀7����������% �����-��������%dyD �1�����������%�`Y?������������% "p������������''%������������,�72�d����������55,W(P(���@��������.��c4��"�����������.ƨ�:��}��������.~�A�G�������������.���N�� �����������B��F�������������'�X����4��������222������ ��������,,��g���x���������� �%?Σ@ ��������aa�|��j~�Z���������ee��z�ө(����������F_�s��μ���������j��7����������QQ���������������������o���w������������8E��="�������� ��֔�b����������55��6\�=�U����������s��.�+ ��������hh���ۙ]�����������rr�z�@����������������k�^�j6�������������r���]�������������% /B���������ll� p�����������''���߅��������������3� ����������U�� d�������������~������?��������SS�ά�ĥ��������������������E5����������� j-���S��������99���ܶB��������oo��� �"�����������~�7k �R���������0 0 6��hے!��������vv-��Z~��t�����������Z�~��x�����������i����m��������88�TU��ث��������<<'���q�b�����������(0dg��V���������//*�!�o��������������+-\v�y�N���������}},�6�L״�����������,��ɐT�����������.����˫��������~~.f �q(�e�����������>׷��V�����������)�.��۪Q�����������h� ��3�����������������g�����������R��#g�t��������))��T'3�jk������������=�%*��������..�7}��[c�����������uhЅ$���������JJ�+X���x�����������w�qR��}��������������t��o�����������#QE��B́U��������+���ꃶ���������**,����w�:������������ϝ ������������!!�Z)/�2�&�������������ң����~��������;;�2��b�ٵ��������~��u{� _�����������ʃh��G ��������%D����h���������##(�;n�=�����������22,�M��������������==��Z�'��K������������F����,T���������2okf8�������������*�@�� �����������܃�*������������ҍ��:��:�����������X(Y3��6���������O�S��\����������(賔ͥ�����������,ϖ?���:@��������2=,Wfk��������������&z����s��������99�nH�%Ϥ@D���������6[3R�����������mT��]��������II����`�_#�����������Q�1u��*����������U�ى|ڋ���������44O?tB��T��������+�A����������������t���������������&�[�J_��������@@�٩��[�J���������NNaQM�_�����������h�x������������~�?�&���������QQ%\Nn+�*����������$���i�"B�����������D�$t�0����������������l��������������p�����������(p���0����������__*�&k�X�\���������  ��:���2�����������jQW���F����������o5,���x�������������B:�����������������I�@ߦy��������NN�j~��������������3̄�u�S���������993����v�}��������??3 �6�4�������������3���^T����������4��P����N��������4{�� �����������{{4�3�dp�aI��������4�⾹�߾X��������%%4;�8o"�H=��������AA4�1Fc���c��������114Cb�),�x�����������4[�5�p�x�����������4�_檼ث ����������4{�ҕ�U��������664Cbsm�aC����������4۬��������������4�b���Z�����������4S{��ʵ*����������4K��5������������4Ӕ� Żt���������oo4C� �����������5�(�9������������5HJӹ��L����������5 ._F�������������5������a��������  5��ؓ��A��������5P M�n��������BB5�>I��w����������5���$z�����������5h�T� �Wd��������YY5Hm�}�Ϳe��������5558�����N���������CC5�:r�^�;&��������5�\�̎Lj��������rr5 SɂZ�c���������8�z�T�����������8z�kf}�M��������8*D`�FJ����������8z�.��)��������SS8�8"f�����������z z 8�! �� �����������8Zg�W��H��������558 &u��* ��������6682�c�P���������<<8r���O���������778��D�a�����������8z���3������������8��D�)��Y��������� � 8���R��eK��������8r�(z�e���������>>8�٩[П�����������8�qn��u����������8��'�I�e�����������9� �,��>�����������9VO�5��+��������**9އ�"��� ����������9^��6W�������������9^������Y����������9��.�6ޑJ��������;;:�{ΔH��0��������:���Z�x��������:��&x�����������11:����'�$����������: �hDp�fd����������:�st(�������������:�p�@����������oo:�% ��í��������@@:p[�nt�����������  :X�X>^������������:.�[��������������;T�t�$�������������;�'�\K�3����������;ܘ��v�������������;���+��:6����������;TwO�G����������� � ;\(�9H�|���������uu;\Xw��ӭ���������||;<�.�ա e����������;��q��e&��������<��)��Ĭ�����������<:��O��_��������< ~M��;�����������<z���a�x���������>><2����G�����������<5�9�����������OO<�n�� �����������VV<����:���������� � <?�a�k~��������NN<�0*G�HL����������<by�4ե7�����������<j���j����������=T X@�=X��������&&=��1��×^��������SS=dowj���'����������=,%d��������������=,lN�Z�kv��������NN=<)�B�l/����������=L���0�4�����������=�*�Q&��5��������=|8<��C?����������=T�J ��_����������=�]T�H�4e��������88=����]F��������=,��w��m���������=4��<�����������=��CA)�ܥ��������=�}����)��������==�Ү���������hh>�gٚ� W��������� � >���B�������������>Qk����G����������>�B���<��������;;>�a�7���f����������A/���:��F����������A�We�a�c���������55A�%���I����������Aw��썂������������A�������������//A?Rڝ_��_����������A�dq�ش����������AOV�>Ϲ����������HHAw�'�����������A��eP��������������Ao%Y5�J�����������A�`U��-X����������A���Ć$���������Aջa������������AAAG�.)ң����������A��Z������������Aעb�Ϲ����������YYAgVmO�����������XXA� w�������������Aoy��丹(��������� � A���5��������������AwT7n��p��������Awѷ @�W��������hhAG��������������A�#lIG�Z����������Aq9������������� � A'����G��������JJAg߯��&��������� � AY�驛g�����������A'��Ƭ�O��������� � A��|�������������??A����P�I�����������A������\��������wwA� d�����������UUA�Z��}����������A#3������������00Ag��ek�N����������A���_��`���������BBA��'�/�����������A���(�����������AgG/�@��F����������A���L�1d��������A�� �;��������;;AWJ�����P����������Ay���*�����������A��fN��������hhAoL�5:� a��������# # A��Q�⏒���������99Agr�����<��������� � A� v�c�;"��������Bo���̖���������VVBת��ُ������������Bw�z��/��������ooBw�Qi��Z��������ooB���fٸi��������99B�Ts�0�З��������BWA9$3�r���������44B卵 ������������B_��)�������������B�#Gk���E��������B�ø��(.��������~~B��*�'��s��������B�z@�����������PPBo�W�C����������..B�ҍ�Ⱦ��������//BOJ��e��X����������B��|��#����������B/�'�#�����������Bw{�����������99C���{L������������C���̭ҋ����������CB�T-�������������C*Cc�����������**4�g���"�����������4�K"��Q|��������334��A��������������5�wԃ�xt����������5��“5�4Y����������5�,����n����������5�n1iɒ����������++5�<=\ϗ���������##5�Dy�3�)l����������5x�ޱ��H�������� 8Re\@���e����������8�-'g�4���������JJ8 >�nq�ў��������h h 8�7)9�d����������82˧������������''8T'����������NN9Uۙ��ڴ��������: yzh��������������:�(� t�#��������22:�����_T��������aa:��������������zz:��8=�������������:@�6IE��k����������:�HkE�F��������:::h�:vs�;<��������:�v��\�����������YY;���Rb�_���������//;��0�$������������;d��%�����������;�S�n��<#��������==;lV�G�6���������,,<R0�(�R^��������{{<��EF�P���������tt<rxf�z�����������--<�{��ע�H��������xx<2c|\:�&����������=�p�L�R���������))=��r�v���������II=�;�X�[��������;;=D��+��|���������r r =�n�*Ԙ���������++=d�҂������������>��(��֡�����������>Q�3Tz�Q����������>A:ٔS�%���������>)�pfc� ��������v v >�������������NN>��i������������A�^B.��ʹ��������__AW�zą���������A��B��/����������AwB�T��{��������CCA\sT�(��������zzA������T��������22A�7;��h���������yyAo�y[\�>���������EEAw&Y1��G+��������qqAǙ�/�� ����������A�Ei^�H>����������A��j��������������A�� -�������������A/��.�m�����������A׺ �L�����������Bw$L.��� ��������BBBWHV[�F8��������EEB�k��B���������55B'�8��f����������B��;��������������B@�����[��������FFB{� �������������B/����+`��������bbB��[ȕ��p��������^^B��^�ÌB��������H H B������OB��������B���e�U3��������QQBwzx/�G�����������B�<������������''BG�2�������������Bo��W���e����������B���x��'���������WWB_o[�Yė��������HHB�]�������������B�?�0�������������CJYI�]�0��������//C���q������������ � CB��b"گ���������HHC�����G��������� DF�i_�����������nnD>Bfi������������TTDv ��8��B��������{{DFz�������������''D�+:`(�Z�����������D.ο�������������//E���ԑ�g%��������BBE�P����������������E�*Vg��H��������LLEC���{���������EE4Sq׊Y����������aa4 ,����j����������4[ux&��V�����������4��j.,�u���������ss4��;��@?��������4#�\9x�����������""5����uE��������TT5(��j�߃B����������5�Y�ë��p����������5��� ������������8ښ`���"��������888�Æ�X�S���������II8�>���}�����������8�A\��"-����������9f|^X�� D��������ZZ9.����}���������tt9�x������������xx:�-�/�Vo��������88:�q���8-��������;��o�×W���������NN;��H���]��������  ;��#rE�٨��������;���� ���������11<H��I+��������<�D@�f������������<j�ܒ������������=,z�"�]�����������=�%�=��0B��������>>= ȟa��ѭ��������=�%7/�in��������uu=��l������������!!>�9���X��������tt>9����%�����������> �!���ɉ��������ccAo�ms-������������A��2l�������������A��V�*�s���������77A�޿o�" ����������A2GJ-�����������ppAϔ\r�����������zzA�����������������Ag w���>��������B��(����������Bw����T���������B�Cn� �^o��������GGB�ij��_��������OOBq��6���������� � B��bQ:�f+��������TTBǷ�+r������������Bo�V쾯\5��������llB�f#��Ck��������||B�"�I#������������ � B��� ��I���������--BO��(��_����������CAᠢ�������������C6S��4 ��������= = D��n��x����������5�?�s����������� � 4s$H�pƯ��������II4˕�ٝ�2��������! ! 4#���ϼ9�9���������++>q���p�t��������yyA�q�����g��������; ; A?+�Z�����������A 4���y����������A�v+������������UUB��"�����������TTB�H���� ����������B�W1������������~~B_��ɋ����������aaB�]����D���������hhB� ���������������B���bi�F�����������C���uΰm��������D�-�v���^��������- - C�� ������������ � 3āԎP��&��������8B���b��������@@8�XVR�,���������99:��� ;����������99;��m������������??; ;h)�0��������rr;TK-�[������������<ru6oN������������=�m�𱻍��������hh=T`eG�������������AwM��~�������������BߦQD����������>>C�.��v�����������Aw���� �����������4������=N����������4�'h�K�����������^^8���iXޛ�����������9������[��������:��{�M�u���������AA=�a���p����������B���O�������������Bת�7�h�����������Bߦ��p��1��������$$B? J���������������:��G��������������;������0����������AG�?:���3��������ssAO�LR�������������Ba�b_������������DvP����/��������uu4#�Á�����������pp=�|9��h$��������Bu��������������++A�2n&��2��������BwM!�>�n ��������``<��U�k������������5��=���\w����������8j0���U�����������Ag�;��3��������55: ���茎'����������Bo���8����������:�h/7<����������E�P1�X�I�����������E�D,��p�����������E�e��v�˗����������E�0��Ң����������;;E����l�K*��������OOE���������������F5�TM����������WWF�8%KG�������������F�A=S�d�����������F͆*{���T����������F�E@�.l����������F��ao���v��������JJFM��p�̂����������F�����l�����������F�O�0�#����������F��|��\����������F�)��������������KKF�����������������F�3��"�kj����������Fu����9��������F��}�{�L�����������F=6E�������������F� E��8N��������F݀�[k�$W����������F�����P��������33F�r/����������O O F��p���M����������F�xOC��ԟ��������IIFUX����r����������F@t�����������YYFE���G����������))F�'���������������FE��aIݚ����������F��4U���D��������\\F��5��������������F��c콕~,��������]]F%9��Q�'r��������YYF���5گD�����������F�8��� �����������F��@SG�����������))F=����]b����������F=�yYU�-=����������F��gnރ10��������WWFun!�� )����������F��q���/����������F%� N���d����������FEm-������������F����G�!w��������ZZF=����>1����������F�yL���_���������� � F��R�0������������F��+=$�M��������BBF�3���a��������� � F=���Ԋ���������99F���?������������F�s�c�� ��������H�e�T�����������H.&�g������������bbH��wX�������������H�L:���k��������  H�{8�;�t6��������bbH�;4��>d��������((H���u=�P���������YYH�-�������������H�`i��������������H6��(��6�������� H���&����������H�s�j4��j����������H�J��{�v�����������H�z��8���������ffH�g��=8����������H>Lo#:�v�����������H�g��c���������HΥ��������������Hf��)��a��������88Hނ����{A����������H��<���I��������''H~��� ��<��������hhH��b���T����������H�Tyu��,���������H~�YH�oH��������I��8��8J��������hhI��jǛ������������I��� ����������Ih����.����������I`�;R�ݚ��������jjI��wF����������I�����sd����������I�{��ۖ)��������I�� v��V�����������I��e������������xxIH���.����������� IhZ,������������%%IP����9��������JmЈ���L��������J�([�������������FFJ�w���X���������TTJ� -�~��r��������TTJ��o�]��S����������J�j��h�j~����������J%r�4!��<����������JM����R����������J�'$u�ޜV��������<<J��=.Ϥm`��������J�?��v֓�����������J���,h� ~��������++J�1����������������J�����s��������}}J�"w������������J��6-�[���������J��3������������J u�����������J��H��Z��������  J�X۪"������������J]̋^L�O���������99J�����5��������RRJ%�v���#����������JE4y�����������RRJ��Ur�ۗ#����������J�K5�+E��������DDKs��)Ĥ=���������..Kc�|u`�������������K�W�C�'���������K�: ����������YYK�t���3��������hhK���9�I���������,,K#�U*z�T��������K+��8�����������>>K�;�L�c����������K{�<�g�)��������L�Q=�5����������Lg���������������Lg�i�����������ooL_G�放����������L7���и����������L�rH7������������LW��`�om��������Lך����f��������� � L_�ڂPݢ��������ppL_̵�D������������L���=�I?��������� � L(3&������������LwO� �u�����������L�y�=���Y����������LW��zښ�n��������,,L���!�?O��������RRL�F����>���������PPL?��+�>���������QQL �� �-���������zzL��|�`���������CCL?jٍ7�3����������L7r�\D� h��������22L�&�3����������??L��#!�Ӛ����������L��������������  L���ʪ�f��������L/}&���qT��������~~L?W1��������������L�� �x�����������yyL��L\�ȴ!��������{{Lg�*�����������UULoh-)������������L/q+ ��.��������//L�i���� ��������BBL'`�;�������������L/��Һ�����������L///�s��3��������]]L?5���������������L��fX��������������L�����Г���������##M���Ȍ������������M5��m��>�����������M]98|��l�����������M%n/䦲����������M�)|Ǭd�����������M�F~ ��Kj��������� � Mm�x9O��[��������**M�����������������M=�5���|n����������M�vi��:���������M}���a6����������M}�㤙� ��������Eә��v�8d����������E�5�ޟ˸����������E# �Ծ������������EC�eX�Y�����������E��5���i����������E;"�� 拢��������>>F�H �������������TTF �KL|� ��������99F�l��є*�����������F��`w��Ф��������F$J�;� ��������F��c#^���������XXF�9�J0� 5��������ZZF�rƦ��-���������[[F]�Ƚ�9I����������FE �e.�#<��������RRFmr���-��������%%F��^��x3��������F fd�J�����������F�*�Rw�S6��������vvF��| ��}>����������F�8���Z����������F��;2��&���������H��#"��U��������H�� �b����������ooH�G��p�85��������xxH������1��������H�%I$�� ��������77HvYu�3����������llHF��ז!��������[[H���Ƞ���������ssH�{�E��h���������ddH��1=��X��������u u HN�vA���+��������H���������������11H��$���G���������##I�!ќG�����������III��e��g����������I`����������������J��z�O�I>��������� � JU��݌� ��������J�$�iR�����������  Jme:�9�Q����������JM;�\q�~����������J��4���D���������nnJ�#Gg8�T��������77JE����S��������ooJŌ�ӭ���������IIK y쑕k0����������K�8���<���������OOK�?<������������77KsA~[[�n��������99K��2�޹a��������ooL����!�����������L��I�]e����������LW�8�J�������������Lgc��������������L��G���6��������� � L���w`�P%����������L���5��B�����������L/���\h����������L��1�n�i���������NNL�1Rf5�����������ttL7"�A��q ����������L��e7�Ã��������� � L�k���`y����������LW�m����������**L�.sz�'�����������L���B������������((L/�y���m���������DDL��3����������55Lw��r��u��������LG�ʑ��g��������LG&� �Y5����������L7��l���������L�t�$���������L�c�l��7��������L�O�_��Y��������99M�]C-��6��������,,M%rN��l=��������MI�&�� ��������  M�O�������������M�~:��8���������Lac�m^��������uuEs@��m��m��������]]E{/Ǿ?�������������F�S��������������F��飨V��������JJF�@�SJ����������PPF��ȸ�Wj��������66H6qߔ������������<<H��X^+� �����������H�p� �������������H���,��.���������TTH��U����������ffH΃�H���:��������  Hn�sd�����������EEH��w��a�����������J� ѧ)]��������22J�.I�^�_�����������JE�%�0І�����������J�����3"����������JMk:z�䓇��������  J�5=R�G�����������J��퇽�$���������55K#���d�z���������ssK��2x������������22K�&U��y<��������HHK�g��*ˮ�����������K��<����������L�` ��P��������QQL�ڥ�鴺 ����������L�,=��6���������OOL����*猩����������LVd��,A����������L?U��������������L��gG��n��������M��a��ն��������))M yͶ��˨��������77Mu�e�8�o����������E�X�]��q�����������E���а� ���������E[�%����r��������F%�އ������������44F�@��t�;���������\\Fզ��>��N����������F��A�,�E�����������H�Ū�T��^��������aaH^�������������Hn���'��������H��7�k��!��������**H&�N�������������Hnt��Ѽ���������KKI����c������������J�W���Ի��������J�j�7k�Vq��������;;JM���2�xC����������J�c����������������J����������������J]f��(������������K����^�8�����������L�El���j��������} } L� � Λ���������uuL�-���z�����������L�����L�����������L��p��~�����������L��Âv��������;;L�\9�A_�������� Mu=��b�j���������� � M�7[����4��������@@J�6"UA�*����������E�, �=�q���������XXE �t]y�������������F�3"B��I��������ZZI�ʣ/�����������J�W(�|�@s����������K�G��A�q#��������==L�G�����������xxL����H���������||L�R5Ӎ����������M�DMv��% ����������Fݩ�L�!<��������::Lg�)"��D����������L���0Q��b��������hhK{� �Y�����������RRL�n�Ɲ%d��������""F�۠�мҕ����������I iW�����������ggH���+��F7��������L�������r��������FE��[ �y����������I��7�ٙ�%����������LO 5�ĕi����������L�a������������� � M�ӥJ�j4��������H�z���#�����������HV������������Lg�-�ۂ�����������H>vz/h�:G����������M-�@��j���������HHM���lI�ՠ��������O��`@k����������mmOh�T�����������QQO�=���������������OH�{��'�����������O�y͝���I����������O�m��Ö�l��������[[OЋ��V�G����������O�V~,��_���������OF��|���������O���윈��������ffOP\T��6��������nnO�c8�$��k��������O�2D7������������O�RD'�,��������FFOMr�p�T���������99O�$��>���������O�3 �� p��������? ? O��xъ��������P�[2�=�~��������P�ˏ��;����������P�ꄓM�HL��������<<P�@� ��a��������ccP���Y�FU��������YYP���l�ш���������P9�n�L����������FFP� 5&����������vvPA��l �TX��������  P ZO�$���������%%PyZVӑ�|�������� P�t�Z������������99P����۫y����������Q�����R�����������Q/AZҽ�ȁ��������" " Q�J�ӄ�VH����������QrBv��݇����������Q/�\�'�����������Q���9�g�����������Q'f�#���a����������Q�q�;ų@��������EEQw��@���E����������Q�k�8/��e��������""Q��������������Q�� �u{����������Q�����IW����������Qw�Nz��ա����������Q_ �m��h����������S�b!⸑v���������S��́�v����������S��< .��0����������S2J�ww��N����������S*!}�w���������44SZІ�����������//Sr��g��a!����������So��v�����������S��]��Ne��������%%T� �v�n��������T%�ocH�$���������FFT���OP��f��������))T=�^�����������>>Tլ�C��)���������99T�����������������T���&������������TL.��������������T���Ǣ����������T +�ି����������''T�m�Y��������##T�s>1B�<����������Tu�6ƦY�����������TEp,5�������������Tޙd�DH��������T����ЖH��������wwTu�}#�M����������T�#�/ݾ����������hhU5�3��Ŝ����������U&��������������U��&��#��������ccU��|�m��O����������UK�γ̳����������99U�������{��������llU��oE��Y����������U �Z�M�����������U�xY��Ǐ��������,,UCr����|h��������rrUCopb㮥��������Uk8}Pa���������U�9����?���������UK7ʙ����������U�Gn��ߵ ��������� � U�M�'�����������U��ك�j�����������Uk#:��ʸ����������U�V"s��S�����������U��D���tm����������Uk(���Ы���������??U 퓺'�����������^^U�����������������UD�ȹp����������U����Z��K��������  Uc��������������Ux� T�h�����������UcI{��ۂ.����������U[ {������������U��g����f��������NNU��]�h�������������U��:�p�������������U�w F�9����������U�e�/X����������XXU#xf���A�����������U�(��S��������  U���(�������������U�8�>�����������OOU���������������LLX�#�>ĥ������������Xpdc �x!��������SSX`��Y����������Xh[�$�)>����������X�b��s�p����������X�ۙ�=���������qqX��^�R��J��������77X�2OĪlp��������X`E*b��a|��������X���n� u��������+ + X`֠����a��������X�'*F;�Ԧ����������ss]Nd�q��!���������]��>������������]�|ɤ��e���������  ]V�ё��D���������]�x��}ɽs��������**]��u���2@��������\ \ ]�Ѩn��ߒ��������VV]�W���{���������]&���&��M��������]^�R�H�G���������y y ]~On���gZ��������^ȨP��z�����������^�y��L�����������VV^��M�������������^@�/�ۡF�����������^�����������������^�O�l-����������5 5 ^�_�nX�����������66^07Ω�����������^0Iz��#���������22^�6i7���V����������^�&9������������}}_ryþX�� ����������_R9�{e�%���������&&_�ָ Σ5��������99_��m����+��������??_j�:�+�]b��������_�o՟�� ��������11_jiKA,�������������_�lF�ޡ|'��������_z���[�h?����������_� �Ԅ����������//_��0�x��H����������_r��}����������yy_������b���������77_ EUι ����������_�\H����������_B�O)��������Q���B���������Q��̱W��������d d S�����������������Tռ��������������T�b�;ԓ����������T A���Q�����������Tu��6�ZW����������T�N�}a�n���������DDT��2a��q��������zzUk�����%��������||U;ʔ^�������������U 9�e��|����������U;9�)r�|�����������U#�\ ^�TZ��������rrUS��P`�l7����������Uk˲i�sU��������BBU�W�8��������������U��ߑ� �����������U�#rjX�������������U�sE}� ,����������Uk`p��;����������U�(<~˲=����������U��ח�G����������U��4n��C����������Uk ���X����������U���˘a��������KKX�˦8��k�����������XX� g��������������X�Wl��j���������UUX0z7*�݈��������ppY*��g��I���������xxY�4�e*�G���������bbY�2�S������������Y�SΚ�G����������Z�P�$�c���������99Zp̽EV�b���������77Z�`��C�������������Z��G7�@y��������]������/��������]N�M��Т���������WW]~%�B��;�����������]�=�}������������]>�VW������������^�S,fR�����������++^���弖�����������^�(|�c��^��������TT^� X��=�����������^X�����f��������44^�׉�=�� ��������&&^ࡾ��[���������,,_Z�~l�� ��������rr_Js-����������cc_�$� ����������_�ky͢�����������**_��^��sQ����������_�ë8�!����������_��q�Y�������������_�&R:�m���������ii_���̀ͷm����������_JG�� �]�����������O`��<%������������O��8υ���������OPI��&��������MMOpj#ˆ�����������P)u#��=0��������22P ���b������������Pq�-w���7����������P Ϟ���;1����������Qϼ[xߐv0����������Q/;rX���'��������AAS��&���\��������ssS�۶ܚa�����������S�8�r�əQ����������Sb�e (�`F��������AAT i�m��a��������  U�el�� ����������U���@�F+����������U�?������������55UKP�)��A����������U�f�=� �����������U��� ���|����������U�_&��������������U�p[)0��R��������� � X�/�ƃџ�����������Y�Y����Z����������YG1��vV����������Y��|�E@��������>>Y�$�%��Q��������))Y�V�������������]���'�������������]�Wn�/�������������]�+�OC�,���������EE]g�������������hh^�>Ǔg�����������^��ڶ��O����������^@ f~����������^��@�˿�����������_ N�bʽ����������PPM ��Ŏʶ����������O@O9� ����������99Q?� A� ���������iiQ���Ak�68��������EEQ/���}�����������Tմ4�q�����������||Tm3�N��/����������T�J��D�����������,,T�ݏþA�����������T �9�P�����������U[B����Z��������U�� ������������**UsL_p��d��������99U����c����������U#@��Z��c��������""U�rt;�z���������� � Uh^e8�$�����������X���=C����������''YbP&~��\��������??Yz�C��������������Y*��������������ZZY^�鬶\�����������Yj�b6�A�����������Zx�����p��������00]���O��<���������QQ]&��7گ�����������]��t����A��������JJ_�5ݿ��1����������_�i ��v ����������_��ـ�� ���������O�}�΀����������� O�T�VB��������@@Pa� ٙ�G����������SR�(�!�Ȥ��������HHT�t"�����������$ $ U���xͳ<��������NNU���Ϛ��������8 8 US� ������������EEU�L6[x� �����������U�l8�ƍ��������jjX�_�ˤ�� ��������Y�[�c�.O��������^�0{b>�!z��������� � _B ���.}����������P����y:��������&&Q?r�p��@�����������Q���2��N��������hhS"��ϴ����������YYSB�^���6.��������99S*ϯmr�wB����������T�T��)��������2 2 T��O���S��������llU��W ������������UchF<�w����������UC�_���;���������;;Y�r"�y�]��������� � ZȞL)������������_"������������QQP���R��<����������Y�@�h�Q����������]���Ɨ�H�����������_˰�V�+�����������O��3�����������44O��P*���7��������WWO�(� ��yB����������PY��#��ʥ��������� � Qww�;��`��������%%T����[��.����������XP�& ��W#����������]�җ������������Qg9��F�y6��������]]UK�-d)������������U[���R�l;��������ZZUk~7�������������Y:�Iz�����������''OK^&ֱ�?��������CC]�x��"�����������_Z�BP�͙��������� � Yjn�5����������Yj�yn�����������11^���C �w�����������Yj�����0 ����������OxM�ߗO���������##P�����̻����������]�[��Ā����������U�J"��������������U��C��X����������^�� 픿���������Q��� ������������`7n�(�6����������`a �%P������������`1'����/��������66`��\N��� ����������`�.�ߩ�o�����������`ɮ@�������������`�ms��d<��������`��kV�������������`I�� ��h��������- - `!�L�����������nn`��4 ��}�����������`���Dc�����������99`�ؠ�Կ�q��������  `1 ����0����������`A��Δ����������`�8�]��A0����������a6fX��7�����������a�NA1���!����������aF������~��o���������IIav:4]�� ��������//a���������������}}a���$��J1��������aNX��%���������a&�L���M���������ppa^6jĥ�s��������a8���9��������b��W��|���������  b)e ���T����������b��|��������������b<��? ����������biI���������������b�"u|��(-��������>>bI��6 �q�����������b9�n���������������bi�R�����������IIb�`/���.��������88b��@B����������oob�1�M�A�����������bQX8�7�J�����������b�%g�h���������HHb98��������������qqb���:��������������b)Fn]Ȯ~����������by?�Ν��0����������b�a�"��{����������b�Վ� �%�����������b��N��"U��������iibyw\���O�����������b�GQ�M��U����������b���'��Y���������WWb�=簯����������bI��� �����������bqz�ӚI��������bYD�F�� u��������cD�dF[������������c�piz��t�����������c�D�������������c��t��U$��������cdv�Ȱ�W���������c��7 ���e�������� c��R0�W��������JJc��V|��ɬ��������IIcd�� ߕ���������ttc�A]�����������^^c,��5��������������c�����Q�����������cD0��t!����������c�3#}��"���������FFd�%��3��������� � d�6B�Z���������d����ᤦ��������  d>X�$S݊���������� � dV��~���w����������d�F����YJ��������}}dF�弪�,v����������d]tj�(�����������dF} �r�P���������OOd&V>�ե�����������d&>-�������������EEd��L�y���������d� ?��ݘ���������ccdVI�� ������������d>J ���m����������d�i?<������������d6�uKɊ���������� � dF��8�����������PPdv&l���f�����������dFĄ� �������������d��~��������������dr���������������d��ALJ����������ttd�`�������������dF�a�������������d�I�� ����������;;dn�?���Z����������d����q�W#��������IId�������������UUd^7�^�ʶ����������dN���īz����������d��'�I�#���������d�c>������������dvmQ���C��������ssd�×\�X���������ppd�b��T����������d.#x�⮜���������!!dn������d��������&&d6x�\ ��(����������e�N�P�������������e� ������������55e���g���~��������ecHs�� ?����������eC�uq��Z����������e��~U}�������������e�D%�<�+�����������e���z�����������gge{�I��)>��������2 2 ec��jݵ�b��������= = e+�-��"��������e*5��������������e�9΂3�����������ZZe�-KK)����������rreC���m�|_��������EEe�Mr�u�0���������yye�?������������f�������k��������� � f'u��[p��������fw1�T�����������DDf���F��b����������f/�+�!�*���������''f߶Qv�����������22fG7���V�����������f�X>":�������������fWԣ�.�-�����������f_\ee�������������f� ɹo� p����������fO�4���@��������aaf/����O��������88f��|� ˄g����������f/D�<�~��������  f�V2�8]��������fff/���[Ƿ`����������f�UOD��y��������bbf?݂#������������SSf~F�O���������LLf�,�ۄ�d����������fw�' �����������iif�&�W�1V����������fg��n7��T��������fh� >�d���������BBf]T"��� ��������aaf��,}������������f7�O�uΰw����������fw��m�ֺ����������g��������������22g���y��=�����������gV'd̻8���������g~ai�39��������gX� 4�l��������  g��KY�4C��������..g��gI�mh��������kkgV�,������������PPg�BY��,9��������44g~o"t��|����������g���A������������  gn�3��zh����������g���a>����������g&�x{�&=��������,,g��N�������������gN�ք� ��������ffh��|M��9��������MMh�qB�ÐU��������WWh�&��%����������h�鎮��� ����������h�r"�����������--h}��T��ό����������h�� �>�����������h��{��- ��������RRh��!���q����������h��g*�� ����������h�B~�� ��������OOh58�{��[:����������h�ݞD��.��������^^h�5ӓ��T���������� � i�#�Ʉ��R��������hhi����4�Hb��������i��1��Δ�����������i���ض���������//ih��������������YYiX�a"��O���������==j9����f��������<<jI�F�l�+���������FFj�a�t��9��������BBjq*\�e�r��������j c̤����������MMj�%�g[�����������00jqJ*G �Z@����������j���B � ���������j��#�i�0�����������j�[�@�s4��������!!jI,Sm���{����������j�3�1؂F��������  j���P�F0��������j)G{�����������j�x��x�����������99j�)g`̒���������jѠ�W�ί��������� � j����ϧS��������((k�Tӊ�L6��������))k�x7�@�������������kE�vO��������������k]�����-����������k����W"����������kݍbT������������k%{�d�[�����������k��5�������������k}]s�f�}D��������//k��t騙kw��������11k��C�)P����������km+�@mÀ����������k}&�'��!�����������m3���J��y����������m3��m��4 ��������22m��l.A�R���������m�G� �YH��������99m�c-�0��������  m���g=������������m�0�)�W!�������� m�CI]u�q���������''m#���q�:���������m��j��A���������SSm��-?��<��������nY� ���q���������''na��K��G�����������n11�������������n� ���*r����������n�|1��������������n���l����������� � nY�K�S����������n���� ����������VVn��%��������������n9 >Ǔ�F����������n�@k�����������ccn9�Ƌ��I�����������n)/�j�&,��������QQn1Ȣ��sD����������niG9���U�����������n)�D�&��c����������n�UŐ�������������nAۦgƻ����������o������0-��������oQ8�3�k���������NNo!�.�������������oaTm�%�u����������oqs+:�>E����������o)�_�8�y����������_  �� ���������{{`�����X���������a�L�<�V����������an�Po��������������bA�t�������������b�����*���������E E b�`K��]��������a a bq�8�|�޳��������NNby{=����h��������99b1��s"�������������bAp�*b�Xp����������bx-�� ����������b���ߩ�4N��������BBbI{� ��K��������OObI0�s��=��������""b'�������������c�)��U��{����������c �^���8��������22c� �!����������y y c�j�� ����������� � d��#����&����������d�K&��`�����������dnv2����������))d����:�������������d�nO-��S��������CCdw�d�m�����������d�Gh����l��������??d�nA�A�����������__d��+z��S!����������d�Z�mx�:m��������� � dN�@��%����������eK �lڰ%����������e�c@�)$��������e�"�%��������������e{ ����0��������--e�Z���ٔ����������e�*YR��������������e�9�\?� ����������f����%��������  f�E,���af��������((f� ��KےQ����������f�qYL`��x����������f��ߛͮ��������� f��jZ������������f?���#�4��������ddf7�����j���������0 0 f����2������������f?�҄�V�����������fW�* ��O����������f�c�ݑ�����������fg��F8����������XXg�ía��E����������g��%�������������gV� 琙������������g� ������������g���B� ����������h��`��]����������huC��^�Y��������,,h�f���Ԗ�����������i@�5C��m���������iii��B� �5l����������ix�҂֧������������iP*�E�uT����������i�Vq���ކ��������j Ʃ�G���������ja�����[U��������j�� �������������77k%p�%��������uukmU3�T��?����������ke��=���r����������k�f@(�7���������m[\�I��F��������m;��T��fu��������m��]�`�v��������((m;�� ���|����������m�M��ա����������m;�<��������������m���3��)���������n�2Y.׬���������xxniM�)���~����������n�0E����������n�%���#e����������n��i�cϔ,��������oonANu`z�G����������o�\H~���B��������SSo9wA�(��W����������`�7c�u�����������`���Ҍ��r����������`��k9n������������a�N�����������  aƚ��#�o���������__b��=�O����������__bq�X�&�M�����������b�E=$Ԕ\����������b 3;�������������b1aJe�� �����������b)�6����&��������--b�<����0��������@@cՊ@��4�����������cĽ#���M���������WWc���*�ؽ��������++c�1\�F�������������d���p����������d���de�@��������� � d�C.1�X�����������d�!㻵����������JJd>��~5�_f��������77eӢ�Տ��{����������e���N�t���������qqf7j�_�����������f�YK��������������g��B��PI����������g��c@F����������h]�!W�h2��������  h �������������DDhE�\�#ټ;����������h�rñ��ܘ��������bbh��S�D�G���������i���M��*��������ddjم����~��������j�|ͷ��Ж����������j���[ �*�����������j1�~3j�7@��������j��������������JJk��s��Z�����������k�F�Z�.�����������m;��MR� �����������m3��GD��I����������m-����$���������� � m��8�-�w���������nyp�M4�(�����������ni᫪:�������������n�ҝ��i,��������&&j���G��f�����������_j�2IP�"�����������`�׺'������������dda��SCx�>g��������bAEʅŠV����������b�=1na�U���������WWbip��Z�d���������00b!���������������b�k���fz��������}}d&�X��G�����������d�;,�4�5n��������WWd�[U�W�������������e� 3�������������hhfg= �ޗ��������f�I���bX����������fw~����?]����������f'jv� U����������gZ��'�>����������gN�iܮ��{����������g+ʪ_ڰ�����������h��������������h�#���� ��������h�LK1&­ ��������55i����8�����������zziP?��a�/f��������CCj�Խ�������������__kE��1f�9�����������k�E۴������������ku����<���������EEk������ޘ����������n���%0�����������`!��9��o1��������&&a�*��˚�����������c\Ac74�qi����������dΘpUz�e��������d&}dԕ�+ ��������==df�����1����������d�-��}�ɓ��������UUeN���K^��������e�Vм���)��������e��#z��P����������f����j����������g�]M����������tth�@C�����������TTh�O�)(�/ ����������j᭲�������������j��0[�y����������ker����о��������;;k��R�U�Gx����������k��� �������������m������6����������m��|ȄDH����������n9@�]�Fa����������`I�g�5w����������a��-R����������ooa��Ӝ�����������eea��� �����������b����[`����������c�zY�8�ٿ����������d������+����������eC1e�̦���������e���Y��b6����������g��wfi����������h�j���3���������88h%���(����������i��:��x��������oojyЧW������������j�K�Ƒ�������������n1�U�������������`��'���F8��������VVb���R¼���������DDb��_���3W��������''d��;��G����������d�8��f߳���������ggd6@J�Ū����������bbd�\ �Ѐ����������33e���J�>,��������f/�k������������fj �� h����������h������R)����������m��G����.��������`��G�_�d�����������by�wi��\���������e�L(7��6����������g&Y��%�uf����������i"B;v�������������i��{+������������CCn���$��V���������99e�Ҍ�ݓ ��������~~g��l+Թ���������99i0���#������������bэo# �9�����������dF��dʆ �����������fOC�ӌ�����������ppdVF�<)�E�����������i�oA��ͣ7��������m����t�[{��������uud� ^I��i����������b!��{�����������HHb!����ӷ�����������oA�5B������������44j�و�7��S��������g~���o�N����������fw��' ͉�����������cԦ0�E�,�����������naQ'R��{���������55e[Q����Q~����������oQ�Ç>�R����������o���`�ؿ��������aao!&����q ��������GGo��N��������������o� ��r� �����������oA2@/������������oQ��N��6��������PPoA�Bv'�"w��������MMoQq��(��2��������^^o��A�����������  o��,��(���������� � oqY�����h��������--qɘ�ͪՎ���������q5���� ��������@@q����@��;��������q��ي��������������q�$��[�"���������PPq�ts{5��@����������q9�ys��vu����������q����U����������[[qN:jڙk���������ffq�B��.����������q�"���R��������  q1�1#G�7,����������q��(��r����������q�N��.����������SSq� �H�(h��������* * qI��˰ԟ��������qi�l��������������r�J��X��j����������rx��?ʨse����������r��=l�,��������77rH�Ϧ��W����������r���;��*���������--r��+��������������r�S����������������rЎ4z�c�����������rx/OTܛ���������KKr(�O( ������������r���%��^����������rH4�"B�^G����������r�BR�N������������rR������������33rh_�s�������������r8H�r�@���������r� M������������r���������������s��B?�ʁ���������s��g�k$����������s�X� ���.��������� � s�ީ�Í|Q��������@@s�N%�� �����������sxZ����X��������sP�Ô9�D����������s�(:�u���������QQs��dB�r���������``s��>��Q4����������sx ;�&�\�����������s �!Pn�>�����������s`L�Y�-&����������sPp��O-��������IIsh�M��[�����������s��G6LJ2�����������sxU�l�y�����������s q����z����������s1�k"�����������yys�L�ڕ�C_����������sH��R��.p��������~~s�J���U�����������s�Ll�� ���������I I s����ޱ}�����������s0�0ֹ���������s��v���u�����������s8V9�ᄌ���������s cAo:�G���������KKs����ǟ����������  s������ �������� s��!��Y����������s��8Lh����������s@����t����������s8%�5W��w��������OOsHZX3�ҝ-����������s ���?�7���������!!s���[Kǿ���������uk���쓧��������''uS�LN¥�����������u+�*�M��������mmu�����BA��������� � uC�A����������..u�.2�^�^�����������u�C�n.�!"��������QQuxL�~ő��������u�r��h��>����������u�V�\�6�����������uK,>�o�����������[[u�Bg"�?g��������22u�cI�@� ��������x1�"�ٙ�����������x ��h��p@��������aax�s^���؇��������x�m��K��-��������x)c����O��������qqx�6��@��@��������x�/F\�������������xy�Km�q1��������x�K~���\���������G G x�i7�]�Z���������x�af�������������xY�l���,��������55xy�� y�5$����������x��e(�ڜ��������**x�`�&m��������z z x)���枯�����������xQn���^��������FFx�2+���1����������xa�������������x) �3�EN��������  xq �-�i���������y^w"����������y�������������BBy&肆C��S����������y�������������yF�����kg��������zzyvQ��������������y^j;���Z��������22y���E��)(��������bby�s���H����������y���\Χ�����������y�I��ہP��������<<yF�񢜹���������  yΙ�������������y^L��W�]�����������yF.݆͢J���������\\y�Z�i��3��������� y��6�� w��������y����� �����������y1w?������������y�?������������WW{�uhB��{����������{��!�K�����������{�u7�z�����������pp{2�C��-���������""{�"�b���e����������{2 @���m��������{����8���������ww{§VQ�^����������{�W����F��������{�@w7�E���������YY{�ߦBd��������JJ{��;���X��������qq{����\��������NN{2 ��������������99{��K�:�����������{*]V�������������� � {*h'�g��s��������00{�e*3���z����������{b�������������{_eƖ�����������)){ ��4��[�����������{�]�U��{1��������{�^�����������..{b�q������������{"~��φF��������ii{�r�*���R����������{���o �'�����������{�����&�����������{�)"�NS��������~�i�ѵ����������99~&�ަ-�H���������;;~�ti���$�����������~.tu�m�x����������~.�;�O�������������~F[�`�a���������~>�tq�� �����������~f1e��L�����������~����������������~.����������������~^u3���@����������~��hP��֝��������~~�vǕ�B����������~>��������������~����p�����������~���x��,�����������~V�-��J���������~�=��-�{�����������~V�I� �Y�����������~�c����A��������oo~65`Vě�*����������~� 2�)L��������$$~�� _� ��������~V]qe����������JJ~~-"��Z�����������~N:E��������������~V8��b�/��������  ~� �?�01����������~Rp���A��������##~�Vfx�u��������xx~��CK����������~4@,R�$�����������~n��{)��w��������~ ���G��������ZZ~�i���ފ;����������~v��V�������������~��"Ɲ�Z~��������FF~.�D��"�����������~^�Q��xw��������� � ~���C�������������~�����-����������~F�e�9���������  ~~�C��ֳ��������==~t��X�'���������??~N�9���w�����������~&xA*�������������~�Ge���e��������((~&���ۙ�����������~�i| �����������gg~�>�݃�A��������� � ~6�j�w�5���������� � ~����������������~��r񙞴��������44~v1%�=<��������xx~~b�W������������ � ~Fx�BU�����������TToad̊�w��������TToǐK��r��������WWo��^t���:��������ffo�S�V2�T���������qу�z��P'��������q��ٖ���������qQ�"G ��,��������IIq��v3���*��������mmq9��,3�����������qi�0�������������q1�����M����������r�w���R��������IIr@�`��������������r�2M�����������))r��cx����������**rx+j�����������eer�R<���G��������RRs�14{X��5����������sH��d��!���������88s�qq��|�����������s�͖k�du��������GGsvNǐQz����������s� ���~�����������s8S 벧b�����������s�2��&�C���������``sh;" ���?��������  sp䘫��x��������RRsssW�f���������u�e[����)��������BBu�����������������u��Gο������������x�漉@�Е��������88xA�i��:�����������x�/�X�������������x�2L�י�Z����������y�U.J����������y�*Kh�H����������y�lmX��;����������y^ä������������CCy�s�Ŗ�����������y�:�}��X����������{�ew�I�����������{ �اf��z��������]]{2�7Պ�����������{:X#���P��������{rTΆ�������������{b�xk%����������22~>�ѥ��f��������~�aƍ�n���������CC~N�S� �R���������TT~6e]o�t�����������~8DH�������������~>����������������~��g��_���������VV~~��I�v ��������VV~���$��xe��������++~~��Pȥ+����������~#WRt�����������~6��p��>����������~�^ns�m����������~�r�T�u���������))~�`����C����������~���}บ~����������~~�ӟ� 4��������BB~Vł�3������������~��4�i�A��������KK~��Q緱S�����������~�Ϻm��'��������~^W��x������������~~��7�����������h h ~���S��Y����������~>o�������������~����6�����������~vSQ�� ��������yy~^��H�v�����������~6m����P����������~b��P�t��������11~�}������������&&~���!�<���������00o�LB�'�-�����������o�+��������������oA��|_�������������oqIq�سW��������**o9w��������������qq9��������������q��$Y|�s���������ZZr��k������������__r`�-��W��������||sh��>N�����������SSs����N��>��������s؟m��+.��������s`���ְb3��������TTs0�n���w�����������sx�-ȯ������������s���]�����������  s�� o�����������nns��"g��n0����������u��|�D���������ggu;�� ��((����������u��F=�۹E��������SSx)c�b�R7��������MMx�v(�$�a�����������x��9G��U�����������y�Ź�����������y����������������y"�ۘ����������aay�� E��������������{j'��������������%%{�= l�������������{ �ݗ\�\�����������{�7k���xr��������]]{*&�����������{��lh �+���������~�����J��������**~��M��" ����������~�ٷ��K��������44~�T �U��L����������~�f��������������~�ئ⡭����������? ? ~�_q ݩ�����������~v, �؇�C��������� � ~F�R�,�؋����������~ί��W�����������~���L:�������������~~ISP��s5��������NN~�9P��-���������$$~V:b����{����������~�l^Rƴ�K����������~N�Ec�:S����������~��šƖQ��������GGoY�DE��Q���������QQo�%�r]����������o1�g������������))r0�Ϛ� �����������r���B��B��������22s0� ��������������sZ?Ġ�^��������sPRr��`x����������s`�YP�������������s&��s���������sH@[�q�d8����������s=��������������s(�5��������������x)Uo!�, ��������xxx�2wM�!I��������yyx����������������y�|�N��������������{�ţ5����������__{���ؗ�[���������{B'�H������������BB{�~K�������������{B���?�����������{j��OR�b���������||~VT*o�����������}}~B6�~���������SS~fސ� �S���������LL~� O��t����������~�d>.��}����������~��ۮ���r��������~�#M���:����������~�;q}��2e��������{{~ִ�,m�a�����������~F��:�������������q�0~�`�6��������s�l˅��0�����������s`|�<����������s ��)���m��������s0֯6˝������������y>f ��!r��������{z� ��D���������NN{�~�{�)�����������~n��RJ�)n����������o����J���������  q�� ϱ'k����������r0��x�b���������wwrXe$�����������s8� 7��P��������--s�f�E����������BBs��8|��������������x�5��C���������ffx�f.������������44y��K��ۯ_��������  {��m�� ���������22~Nf���4 ��������~���.�������������q�(����#����������r`N����'����������yn�BD�ߓ���������SS~Z>~�r�����������~^��e\� ����������~�E)�����������eesx w:j�v�����������{2Ai���E��������{�꤅��<����������{��X��Ҡ����������~^��E��w���������||r�!���'�����������sgw� �����������sX���z�����������FF~^��ŶV��������rҝZʥ �����������r�-�6��(�����������x�a��������������x�������������%%~N'x'?�H�����������rK;;���(��������~.f�(J�����������s�$j���a���������VVo�["��Ռ��������DD{r��K��։��������~����2��m��������~6|C�D�z ��������~���P\���������xx~��GG9� ]��������pp~���i�ܰ���������""~��ܷ�����������~~]����Q�����������~>eX�(�Л��������]]~f��a��d����������~>%�����������UU~W���i�����������~V�ș �F��������~FE����V��������~>?��[6��������[[~��C���J����������~6S┟����������~֚�*��@����������~��ҫ��� ����������~f�^�L�W��������PP~$�p������������ � ~�I^��������������k���&�������������C% �a���������``ظ'Z��D����������s1*��������������5���a���������II�̊T�S�������������H�����������55@� Q���_��������tt���3��{������������C;�<����������pp���8̵�����������������t����������p��v�^)������������)�,��u��������Ȯ��!�i*�����������,�Sx�N���������||�0�ȋ��������������N��b���������AA��/O����������PP��|r�ª��������HHHĮ���ݼ����������0�,�}���������i���&���������� � ���똪�)��������� � �)��5��N���������9j��-������������Q����v�������������ۤ�d��=��������//����u���������������1G�΀���������������O�T��������������!���������������GG�9?���Z���������VV�A!�@��h��������~~��:�����������<<�1��͈ ��������QQ���:^ �����������nn���廙b����������!�&�����������^^�������V���������I?YƏ� 8������������� 珔������������)dD��$��������������+��(���������JJ�t��� ��������s s ����P�-�����������!�����������������a�e��.���������::������A����������)��=t�W������������YLÙc�JT��������xx�ɗ�������������!!���)Eu������������dQS莛�����������Yy��w��^����������ѵ&�Q��������gg�G��x������������dd�ς,�c����������||��;�ɗ�+��������  ��*���=��������������=؆_��������SS�T��ɼ����������==����Б�-�����������L��l��������aa��D��P�Ru��������>>��^���������������1���⇹�������������B�yh�����������@7�� !��������ZZ�N�@������������//��,9�R�h������������������~E��������JJ��Ƿg�YL�����������U�t b��3�����������U��;���2��������p p ��Hk���jy�����������E��噟�1��������" " ��OK�3Αu�����������e���/���������������f{�!��������dd����GE�ӕ��������hh������� ������������}�rm�3\��������AA�-]t�#����������PP��9����t�����������-}M�?�����������0!��5������������}�_����4���������-��D�э��������� � �-��� ��������������߀4�����������u�Ä��@�����������e�m���M<�����������<*]R�)^��������GG�}k�~�A8��������ZZ��6Q E��_��������� � ��>%�9�������������Up��@<������������7ܟ�B{��������ll�=/�ވ�������������M�l������������-�,�ޑ�����������-��eJ�+�����������=щ���������������֭����������((��������������~ ~ �E2�2N�������������U�72� V�����������%�P����������������@���5����������U��zڢI���������U<\�� ��������ee��yb����������������5�v��8�����������-`e��������������M!��ŧ$����������e'��Цfs��������XX���7�$�0��������������0���˹������������0/���7������������Me�a��[�������������x���%����������օ 7d�{a�����������E*��8��������22�v{�P;�����������SS��s+o������������  �6 ^G�U���������SS�.2�A�����������@@�Fc��$�;���������6i��-u�����������v����o��������99�nj�S�����������QQ�&�ˡՋ:���������CC����&�\x��������BB���,��V.���������T�lR�u������������4�-3կ��������``�,�?����������������l��?<��������]]�l��{x�b������������O��t��������������!��NO�������������7P��Q\��������99��UK ������������  ���ߖ��4������������w��֩z�����������N�"��������������T�К�ަ��������BB���X���I��������w w ��������������������u�F�&������������l҇�x�'������������<� l��ԯ��������jj����;T�Jz��������..��r��s��������==�t�6������������FF� X\z9�(����������|�L���S���������� �S�m�}(����������~֭�]�������������~���3��:��������������L�6���������\\�!���?�]^�����������y���ۄ��������OO���v��N��������RR�y/���+`�����������!�����7�������������/��������������A!�s��6����������Z���H����������M�l�� �����������U1q�:����������ii���|������������ � �MMv�4�ѯ��������  ����(�{����������L�~��c����������dgD��������������+J�F��� ��������BB��x,�a�I���������55��S�- ��4����������~F��Ҝ�����������~�#"0"��C����������~� ���j��������**�f���P������������ ��ޛz��������**��"�v��(���������a�Ciտf��������44�y/�����������������M� I����������VV��'���˻���������((~��(������������''�Y��J�����������  � ���ݗ�������������m����D��������QQ��D�և�9��������gg���o����������������|�����������������t��';�BP�������������I�ͅ;������������b�6��������//pn�9�I�����������E�ż��8�����������v�m��>_��������KK�ֆЅ���G�����������L�k�ߠ����������''����ts���������������V�� ��������mm~ֻ'�T���������,,�ki�H�]]������������ �[���Q���������}M��U���������8 8 �_��U��C������������� �N1�"*��������((����n��'5��������I I ��ޘCk�0�����������IQ\�K����������h�rɫΦ��������**�UY��� ��������__�o<���=�����������_UM}��������������2�V8�gV���������o��1��e������������Ǻ aZ��I��������  �GRAQ5�}W��������%%��p˂��ٰ������������IV����`��������__��O�Ɛ�������������N1F������������II�/(]�e씤������������s�v��.������������~R[����������DD��;`�Dž������������0~�8��������������x�uѡ����������''��z�?��g������������ `)�y�r���������==�0��;�����������oo�Y[#��=L��������  �0�}����f��������KK���j��̟���������cc���七����������������������������` �t�z�����������0��\�~��������������,��y���������tt��*|������������!!��z�(��Ө����������� X{Y1�����������������5�lP��������������h��w����������@R\.I�xV��������OO�د��h�b��������� ��*�^z����������_ _ �@95I���#��������66��4���.j������������_��J&��������hh��_P)��M@��������**�`I�0 �g��������������bʸA�����������0�gP��uE��������33��[D#��U����������������t�����������AA�������)��������������!�������������x́������������<<� JT+,�A��������__�!�������������nn�y��ͦ������������Y�ѣ�����������q�M�t�4���������99�)u2���9�����������>�>������������Y= ��������������O\\f��и��������HH�ς7�ͬk��������AA�70Y*���k��������//��џ��l1��������__�����!�tH��������JJ�_a#/иډ�����������?C�^v��*��������$$��iBI�K9�������������Vi�Ȅ�����������Q�0������������oS�j � b��������++������������������K"�b��?��������������s3�z�������������A�6���������))���x�Q�+4��������||��V�5���[��������II��1���`������������[V���������������z��"��������������59Sg����������;;�#��r��I������������g�)�ԓz���������������P�����������))��K c]�ѷ��������  ���wm6��+��������� � ��B/W���������������8���Q������������%�5�:*��������SS�碍w3�'������������ �p��������������w�������������,,�^Hk^���-��������--����EP±S���������> �'�o������������n��J��6�����������6�L�I��Y��������oo�v�X��͏���������mm��g7�Q�*K���������؍��Y�����������#�b��>������������spA�Se��������������ӱރ�����������90PW�\y������������w-Ɍ�}�������������=q�j(��������vv��E���"���������@@�S7ND4�2����������#�r�l�Q���������TT���J��O�����������^��M����������ns¶�j���������������c䏦^�������������!�+A������������������K��������������L�$z�������������Z�=�����������M9�+�m���������JJ����C:��B��������������4��������������^Tt'��&���������Z��طB��������ll��Ě�׎}�������������TFoΥ������������v�u�h�{"������������1�Q׊����������� � �>M*�͒?��������AA�Ƨ�Fy���������������M��V�J�����������w�[*����������SS��,���Ϥ���������11���FؼW������������/]B����������������քN��������&&�V���]�������������h�2_�*p���������F�-����������������!���������������u-7�#3�����������脨Zu��&���������(1�d޸��������������7�|��>����������]�h�4���������� � �_�Y���ՠ��������������b�������������H_פ��}������������N��r�����������`A�w����������yy��%Z��"W��������11�x��3�B���������� ��kv�B��������55������s��������((����k� ���������YY��E�S:�W���������HH�����܋��������,,�(O�e�������������x�5�*��������RR��~0�!T���������!�v���ox�����������I�I���1��������TT�1GYm�_q��������RR�٣e��� ��������KK�I� v���c���������D�u��]��������� � �e ƽ�i�������������Â͛����������OO���Z���t�����������'�Dy��������������g�rv�ٟ��������??��@�݆ӵ�������������Ĭ����������QQ�KH����J������������ b������������77�+?�$��&���������������?�P���������HH�A���f���������99�߳[:_�Gv���������緀���9&��������TT��o��H������������&�߄*�� ��������99���gY�����������n$�`���T��������������$�ϴe����������Nϳ� ���������CC����fp�p>������������ ?x�ly�������� ���}~ԙ,$��������YY��4#_���W��������,,�|P�*/�i8�����������\��Q3����������������eQ��������������l�8ۊ�b��������BB�������g����������޵(#���^�����������NIxw�������������q�ir�����������N�2YԃU���������xx�F}�E�[���������L L �^��b�������������f���R�����������B�����������**������� ��������44�;:��3�b���������� � ���5ܴ����������ss��t�E*�rr���������և.j ����������~~���󳮯0��������__������z��������>>�>�����i\�������������?-�����������V�����k��������ZZ����!�������������]����_��������������է��D����������]�������������������"���������qq�F�������������������:��������//��>��������������ma��Ź���������  ����%Š^��������33���KGޫK���������my?���������������/�y���b�����������_U�Iݞd���������~~��<�ީ��������������&�b�Ȅ�����������G�!0�������������O��Ɵ��������� � ��7r����������nn�X�E~�N�����������hTr���d������������`N����������������'v�C#��������������\r��W�����������0Xˮ���������UU�g���ט������������W;-_��������������[� ����l�����������ӝ�…�-�����������Y �T��������  �VdU��<���������gg�Ω�"���������������k�1�|>������������yIV�x��������&&�N��U��h��������,,��B�́������������h@�C��5�����������/L��y������������R̈́��;��������oo���l'�;�����������_#�Y�����������Khy�D�M�������������툒��H�����������lϮ���V���������t�q�ʏ�����������T(ͬ�Ň�����������d�W}�k/��������33����;������������??��o� ������������//�������P��������ZZ����������������6x D����������**�fd#xg�X%�����������^���;�2\��������SS�&�UX�-$����������� �����������99�fZ�Gy�6(��������CC�������G������������~���������������:�F�f��������))�vC�&L�� �����������v0 � �����������~R��,�h�������������6]��찀��������zz��돁m����������55�Vj��2������������N�h�v�����������88�>��gu��*���������VJH|A�L���������99��=cӬ����������BB��D���聊�������������J������������+���Q�������������N}��s������������x���v��������������ȗ�R������������''��fΥ �������������1P?��]q������������ڪ���`4��������II��L���~0�����������w*^⫕�����������[���P�Gf���������kbȨ���������������ό���dt�����������D��9��j������������6:V���������������������������������(ž�n�������������)7ά�P��������||��C��A���������%%���@������������**�Lnl����4������������=�ȁk8����������������q������������������������l׶�� R������������Y5&������������ � � 6�:<��%������������eb�O��������>>�o���D�jc����������m4]w��a��������YY���6���\���������ff��Y �Q�$���������n n �s�$!߇���������..��b��Ŵ�����������ky ة�L��������������|�e���������..������D���������77�/��x��/��������������_1���������������B���y��������**�4 @�I����������*�����������UU���}(����������  ��2���gd������������d�ǖ��������VV���.��������������� ��3��������������+JE�. �����������#�Y��Ʌ�����������,�e$ °���������rr�l�����yg������������f�������������XX��������������3e9H�=V��������YY���u�N���������HH��:H=�[1��������ZZ�,gqO�G`�����������F�n4��g��������>>��o���g��������������d�{�h���������TT�/os�g�E���������OO���ӝ͏��������dd�h%����VX��������99���F��_��������||�&�a�ݡae��������� ���t� ,��������99��a�{���������hh���\���vR��������//�O������<����������� �ƹeK��������ZZ���^��אz�������������]o��d��������UU�C�����-E��������FF����* � ���������NN�sQ��Ԛ��������NN�{d����������������͛�x������������A��EUǐM������������ޱ�����������77�x�7sn�f,��������%%����BM�������������[N�4N�i��������{{��h��9�Y��������AA��C� �i�������������]aQ��B�����������X�Ǻ������������������,0�����������`P� V��������������`�I`ˏ�������������x���Ќ�������������8�]`������������� � �����ۧ6��������tt��~�e^�,���������FF�@��������������||��:u�z���������33�(��C��s�������������Ԙ�]�zr�����������Z��{�����������TT��S��:�*�������� �����.�����������88�B�/�̢����������������׳���������11��L�i��E.����������4^/��)����������� ���H�8���������oo���yP�:���������������7�� ����������%�6f������������Z���"<��������  ����0f�-2�����������F���t̲���������,,�V�������������dd�V �e�X��������99���Ԝס"���������TT��c�Ș��`��������AA��<�.l�"������������\��5��>`������������$����}���������pp�@�97�qL������������&� � 3��������77�D dC�ԣ����������$�����������������D �4s�^@����������l%ց������������w�h�@���������99���\���_�����������LWT������������22�2�I:-�#�����������rcu�x�K������������M�>�����������55�"��Xߐ����������  ����0�������������xɑ��d4��������}}��� ĿC��������--�����VR�����������"e�%_����������NN��8/^.����������  ����>�b�������������� �q*��������__��>���fe����������� ]�IF�#w��������HH������s������������J�b��N��������E E �b]_;Ιr��������%%���Ԅh�_{��������==���O���@���������������{�Q`���������)QD�;��7��������������~F�5~�����������!��k��x��������y y ���uLSŐ���������mm��9?؅����������FF�9Z2�J�������������QZ?�呾2�����������9X�螬b�������������q������������9�E>�������������y ~&�H��������������($�����������E�x��ic�����������IxaG������������ �1��):�����������������l�wO�������������z޲���������[[����l��������������Q�yU5�/?��������99�1�Y���|����������j򳺵C<���������! ���r���������KK��������,��������ii����� ��������ii�ɦЎ�Ȫ����������AU!��Ѯt��������r r ��^�������������II�@�s3�~�����������������9l��������--��p���F$��������22�1��}Ћ��������  ��P�c�����������<<� ��l�L��������������_�!�����������N���L���������$$��T��t�����������rr��������������������������������..��!z7��t������������^��{�N/���������o[�iX�o���������x x �� �ή���������� � ��V���Ւ�����������_� ������������� � �'Cq�D�$(����������=�X�xI�����������?�΃��l������������k�������������D D �/�[z?�.�������������P~M�e������������>�>��"����������>�� 3͆������������7�����������������4��C��z�������������k���������������N���������������L�5f��c���������l���>��|�����������D��Sc�l���������<<�,u<��($�����������Tyj��5���������BB��IC� �2����������${�b���j��������AA�|��������������T�)���[����������m���̓�����������ݪ�S����������WW����l�2��������55��7ux������������rr���O=�ԇ�����������Ul�D�b���������PP���J� �bS��������''����S�~����������5Z��{�k�����������m�Ъ�����������%�K� ��������������%��ῢ��������22�\����G���������UM�ʳ|������������>�a���������������}I �����������PP�%��io�Z�������������Yd��_��������^^��;�^�ż���������������ȵ����������5H��M�2�����������5CAd`� �����������M�MsԬ����������((���4��5������������sɑ暄���������CC�}Ք<��o�����������iSԍ�������������hj�"�1�����������qa��!�������������Q�ў2�a������������ ��V�q�������������n�PY�������������s�����s��������HH�A���֖���������EE� �,�s�����������""� ��0弾�����������3$���������������l �,���������))��Rg����������������k��[���������RR��b�^��(����������<�C��dd��������dd�d�A��Ʊ���������3e��S�����������$a�����������������f���� �����������d&~���q��������VV� -�/�����������  �T��m��J������������\�,^˿����������>>��L�.��&�����������5�舄�����������䉸�V_�����������(Z��곈�����������8�b��G������������0h:�W�]R���������������淒��������NN�xq�7Zǀ���������xx�`��7ߥpC�����������hZ㍈܀^����������v�߃� ���������!!�rd��$Ό���������nn�be�����������YY���%K2�c���������pp�FY� V�������������deɗ����������HH��q)���du�����������ND�G9�ͻ������������O�̌r{�����������T��>�’��������77��⇯ ���������//����I���������HH��L柲�}��������~~� �m�ē������������DM:�����������������ީ��?������������_"�Y����������OO��t&��� ��������II�J],� ��~���������zD��t�P&��������77�z�Ϸ���c����������� y'���������������j�'����������������RzRݫ�7�������������5��D�����������A�I���:�������������A���������pp��u�W�7���������5|- ��������������<)!�������������<)�٢Y��������z z ����b:�,C��������--����H�������������ALГ/ѠT��������������矺��������^^��V���F��������<<�;�s�CV��������  ��t�����<��������VV�1� QD��m��������CC�Q����=��������99� ��޳����������~~��Ёܙ�h��������CC�/�V���������������Φ���������ww�o��jF�"6��������YY�K�6;�-���������ww�OQ]q��1���������������M�x������������4ij�S���������  ��:w�;��N�������������εq���������������z��{��������##�e<' �����������oo� �&O��$ ��������22�u�S�����������������D�������������m�D���������������UB�K&��O������������$�&��1��������GG�e�|��oM�����������+�ܐ�|�����������������j��������������F�%�������������=���������������xj��������������A��������������GG�IO��ܨ���������qq����t�LJ)�����������)��U����������������+w�b�������������۞��%����������i���������������[^��wk��������RR��܌D��Np�����������Q^��)ũ���������II�Y�e�ɑ������������> -�T��������JJ�Q{���F����������) n������������GG�Ijԍ��������������Y�W������������CC�lK-�ݱC}��������55���J��+���������cc��Ku �kU������������������������99� �!'c�������������v���������������p̈ �a����������ps��'�m���������++��H\$X��k��������==��������G��������((�RN\��� .������������|��y'��������;;���v����������55�ڑ����������������F�����*���������������UX��������RR�.#2iW��2�����������tK'�f��z�����������t���$��O���������������]� g��������%%��|Z��'����������`M��y��������9 9 �������W���������..�T�fm��G(��������>>�ꍈ"Ƥ�������������J:l�+�5y������������0U������������� � ��V�ǘ�S��������� � �zv(o�Е3����������t��/���������������𤫁��������������&�9�������� ��A·�a �����������e�"����������QQ���h��W���������~~�P�*�������������������?֮���������ss�?|4:p�z0��������XX�o85���G���������yy���-~����������77�s!sî�������������r��qx��������������E������������瞤��)����������5 n��4m��������CC�l�t���Va���������������l?�����������V۽�H������������u��Q���������BB��N�*� <��������vv�M�qo�7������������E��yN��+��������]]���� ��������������' R{�h������������YP9~���i��������==��u��螦�����������I���Ґ�b�����������1J[�R��������vv�yȶƲ�D��������22�)��9������������� � �9�jl���.��������������I�����������$ (:S�S�����������t���ٴB���������cc��|% ��\>��������\\����� ׮���������77��f}�0Z��������mm�pZՃ8�������������� �����������������#}��+������������Tx�P��%��������%%��!�}���=��������..�Ll&�O�Sn��������4 4 ���G�O�zz������������6����1���������pp�:9.�J� �����������!1����������������6�����������$��C_�n\�����������c�?��0u���������|�����:��������II�t���҄I�����������,S�ۡ�:*�����������h3 k��F���������//�����P�����������^A��L��K������������5F��m������������4 ����_��������������7׊b��������������]2x�O���������[[��W�Q��ԑ��������RR����=���I��������������c����������������/������������ff�����S����������g�|�*L���������������U6��������  ��� ������������mm��pI>iʁ������������E��+�W�����������Y�+�>���������{{��U�4��"����������� -�d� ]������������㿒����������� � �XCZ��/������������q��@�S������������8f�C�v���������yy���q�%���������}}���@wp�������������13��������������bvh"��O��������::�1��<Ž�/��������������h�KS����������T��O�# �����������1�:!�������������x<���a1�������������aW������������2�d�E�V����������(�:�{�������������P�bu�r����������� =Q� �����������)�N}?� ��������@@����;�� W��������� � �t�~���c��������''��Y�����������������4���>�2G������������b$��M��������ee� Y�-�������������M[U�nj����������VV�ܴ����������������\�PKp爥��������{{���S�#��c��������||�L���p�/U��������ZZ����a�A������������.ű���g������������<�\� }��������qq�YH�R��W���������''�x[��z �����������)Ϣ6�2U��������cc���u5�"P��������  ��i�n�t6�����������8U��������������� 0Q��=����������z9�������������zz��༕������������ّ��r�&l��������[[���1�~��������� � �LM+eR������������Iՙ ��J�����������}�n�������������`^ \��V������������D�;�hM������������}J��B����������z}�Y�M���������NN�!cF���������������z����Z������������(G��������������U�Gs��x��������cc��k�_h�B���������11���N������������//���B�V�D ��������22��a ��������������Eu�� T��������tt���!?ߞM����������������{o��������gg�^9������������66����Z�<��������!!��aQ����Z���������1��<�A@���������������4m�����������:b*���0�����������1� �[�<-��������==�!.�M)����������>>�ɆY��F���������MM����킍� �����������8�Ńj������������äJ���V�����������'I������������������8��|�F���������hh�g}tA�������������"T������������HH��&�%��������������X�) ��������������a�+�{�v6�����������i�%�����������MM�q<��Y�f�����������������=������������S(�:��������������[�z�����������y�w���P��������������D��9���������� � ��Ʃ�*���������99��C��˜T�������������� t�y�����������:��߶������������ț�?�$'�������������r��5���������� #��/�D�������������v��Z�K����������y�4��d��������22�j]��A�����������ɋ�d�@)�����������q`�,F�������������)����f���������QQ��-n�~�����������((��,�xD煌����������l�'�u������������)���������������__��U$3���?�������������4 ������������oo��ۮ���X����������� s�u�؃��������SS���T��ɾ���������TT�12❘���������11�`Z�}�:Q�������������������������z z ���2e������������CC�a�i��������������y\3uИ���������xx�!K��]�g\�����������q�2�b$����������my�v톀��������mm��%s 7��d������������()����������������w�6���Q��������^^�ӶoŰ���������������i?�~�bm��������dd�"N��ܦ z��������  ��_��N������������J�/�Ö���������ھ����]��������cc��Mp�������������TT�R�۫����������}}�J�v�_�"��������� �J^ǿ�R�����������"r�������������:t/-�{k�����������r;NU��2[��������tt��"��t�T���������VV�:�ɡ��� ��������>>�*�D����������  ���{9t�^���������nn���@a��C����������������� D��������KK�������`������������:yb5;�C����������ZY����������������t�����=���������z���������������{�d����������qq��є�ȵ/���������ʫ��Ώ���������==����㒡B���������YY��y�2}�'&�����������ʹ`�����������@@�*�����‘�����������JG4��*���������==�� �][��6�������������ҔU�tZ����������aHq�o������������Ę�ዼ��������q q ����z����������[[���;��'|��������FF�L\���4������������L��nl��������  �L����}��������������0��G������������$`�y��������������� ���Q��0��������ss� ��������������� � �4bD�U����������CC�,��u�D������������Dxg������������4J46׫1��������������@y�c���������r r �4\c�e�.�������������IY�������������6� [�����������dF���$`�����������l��_��G1�����������4�a�ڒ���������gg��F�ӛ�f�����������|���Qg��������22�|���G��������������4*�V$�S�������������.H{��L�����������4r�L�C��������q q ��� ���<������������lv��嬉��������**� �~������������Č�Vf�����������<<��� P�i���������|�w9r��d��������88��X����^�������������5'‹������������ ��������������� � ��l\ ��F��������JJ�}J9<��W�����������I�*�z���������������!��3��������55�]"�B��������������E�A3��������������ȭ� �]���������TT��&�Y~�~����������c��L塒�����������X������������QQ��Ng������������� � ��~ͻ��������������%��������������ؽ�,}���������N N �F�Wd��������������@���Ӥ�o��������SS���@��U ��������� � ���@��� ������������ �=�<���������������2f���Cy��������CC�Й�Ӑ�n������������(�7{����������������Ҧ��+��������������(K������������aEz��tV������������ԑ�&�V������������� �U���������} } ���y?���k�����������������8�������������;�� �������������f���l��������RR�o�A��@���������qq�Y�����#��������@@�A�Xj�u���������  ��� ���������������q�lMd�M��������>>� V���5���������  �aO�������������������i���������������i.�t�If��������II�IQy���OG��������""����֠�5����������ؿ8w�����������;;���A "�N���������oo�p�H���k��������55����N�Q���������''�����@���������������au�°������������crp�T��������@@����q�������������XF=n��J��������GG��3�z�@��������PP�X��ð��������������.�����V�����������8�PP�<��������������]�Rn������������6HV��������������XM��M�ض��������vv�0 ݨ%��������������C�̧W��������''��C �~�b��������%%�gS6#��6��������pp����W��L�������������,��Q��������  �_�c���t��������������1������������qq���H���y3�����������'�X(���m��������` ` �'�Ɋ����������..��A ���(��������  �7S��>���������EE�:��K�%u�����������ԙZυ�����������?��0�������������G ����V?����������㕊���������������<�g�mx��������55��&K��D������������/���l�r�������������Cr��K��������\\�7#R�_�V�������������S֩�,��X��������88�����֝.��������AA��O5��������������_���̈́����������))��W��ܡĠ�����������C�9�����������<<�g:q&����������XX��NL����t�����������h����������������׵d-�kR�����������Y�24ɻ��������KK�qf<���H������������8���IQ��������ff�� ���ue�����������9��H������������9��z�d���������� � ��� Yx����������������)�e������������_��JJ�������������W�*�������������������ZB�����������i��2X߮S���������I ����m%�����������9<��#��{��������..�)s�{��L+��������ww���=� ��������������ۇ�<��������22�q�"��m��������dd�y0��x�M����������)x[ʄ8��������� � �q{�ۡ��L��������44��tdٟ���������� ��O.��bK��������� � �����_����������**�A[�i��W��������RR�) ij֔0��������>>���u�u�������������!��܌IK������������� ��RR�����������3�e56������������ ��������������TT�r!,�Q�����������''�����XH��������������fš0�����������f�{��b���������]]�:#�G"��j���������b��å�k������������l�@ӥa������������)89x�/���������nn��1k2���v����������\��ݶ�B������������G���?�������������Q �d�.\���������$�T�y��.���������\W�+�����������rr�L����W�������������&�1�m��������oo�tOc �%���������������o�������������ț�H��������  �]�����Z���������cc�=sM{�����������tt��0T��0��������DD�]�>8�u���������cc�`#A�(������������ � �84h��H|�������� �8L'o��s(�����������0վ�eȅ��������������Ň����������..� ���?�]�����������y�j��N��������� � �ɅU�'�����������D D �A�M���G��������FF�x��������������{{��<�_̹f������������ ��d ��������������2�r� ������������h����������������Z��^���������������]ן!^������������(���������������K+���j������������D ����������������i`ɑ4�����������F�˲L!�����������?]dL)�WQ���������O��A���,�����������g��ڳq�����������^���3����������/�^��������������8ǰ������������zY�j�=���������22���� �Q(��������QQ�be��ú�����������lB�Ҋ��������^^��f�[]�N���������''��l�I�)�������������s�Ԟ���������@@��1����s�����������LBG�kB���������%0/=���T�����������0�\�/������������e9ꧬl����������p �*���������������䆺������������KK��(�Z<�&���������  �@�Jl�Q���������RR�HZu���C���������oo��.�9O��������������9��]�������������������������������)s��_þ����������Yh���/���������TT�)��0�Ÿ������������A�� ������������TT�p�u������������88�@l�42���������11�}�����������]]��Z���@��������33������6��������XX�'XDö�����������HH�oKݶҬ�*���������������� ���������66���:O#�w���������44�/�N>��<��������EE�_�.M �Φ�������������5待a������������'����������������O��^Γ���������gg���E�Ù%��������� � ��qQ*��0��������i i �oL����#������������ؑ5�̣�������������ڎ � ��������  �����F��������������h��Q���������AA�gZ�G�Ը�����������V%�0��<�����������S���O������������:��C��x���������@l���RL��������PP�a��*��?���������������1��G��������UU�rt���o�����������B���J˩���������OO���v���������������,'I��������������� \ۄ�r���������]]��I꾕�n�������� �d ��s�����������<<�Dû�V������������|Lb�j�H�����������m"5pf��f����������l���r��������� � ��y�ߦ����������55��q3%����������VV��r��Y�7�������������TO�a�5������������2�"����������hh������'{��������ww�1,E�����������������:�Uܒ���������������v��{��������������Ya�i����������wU|��P��������**��:��C���������������#V�����������WW�����+������������yv�r��5������������� �!*�`6��������99�e^a� �������������jfی�������������Rq�f�ܙ������������RAu�����������CC�$��欥�������������E樈��������ss�m�?,�`g������������]��}�b-��������CC��Ia↋������������������������BB��S�'�+�����������zZ2�}��������zz��Ir�e����������������D�w� ��������QQ��~���ߵ������������h�]t��U��������VV�`��a���������__�V�U��-��������������ߚ������������� 5�����������00�Oxx��9�����������/b����h�����������gg\��*���������� � �o�spo�Pm��������xx� \�G����������  �!O5���Y��������������r7�����������JJ�yvSs��)��������55�aܒ���������BB��^� Ĝo�����������Q�5\Pؖ���������YY�˗Vq�թ��������� � ��~g�ҭ�1�������������+"׀Q��������CC�*zx4������������ii�z� 6H�����������������w��,������������������T�����������(�M���t���������zz�����ҝ�����������x85KĊ����������������<�t����������?fq��[���������_�2�Y�� ��������;;�oIJ�ѫ�������������wh �R�ǯ�����������g�,�������������/}�����@��������������ȼ��������������!wŻ�������������� d��ڠ�������������u��"=��������;;�w��-̄��������������:�Z��K���������QQ���W��5�����������qu�n4��������������n������������''�<��2��������������4�n���}���������nn�%�98Ј���������KK��s-��������������Uge�b���������������(�UT������������ /I�����������TT��@{̌� ��������&&�7���_�����������GG�7#�8ׄ�6����������G}"�*���������tt��c��1��k�����������0V�Ǔ��������� � ��k�>��y�����������q@�A�14���������σ*���k������������oލ�����������CC�b�]؏R���������HH�DN$��s�����������@�~D��������\\���Iơ��,����������^J�����������HG�Eת� ���������L���������������H܊�����������JJ�8� Mۘ0���������t t �ϛ�"�����������TT��~���?���������L�O�iՌK�����������@�S����������@@�PAe�������������� � �H9_p�9J��������ZZ�‹p�����������������~ �0Ⱥ\����������� ������������������/�&�ϖ:�����������Gթ�e�pQ������������\��@���������������>NT0�$w�xp��������llN�{q=]�(���������iiN���*��}����������N\�������������RǠG��<+��������R/�˗i�Q�����������R��l����@��������FFR?�o��o�����������R7T1���D����������R����e.�������� V�~�0�p�����������V4��9�;����������W=�Ћ�ƈ����������Wop�[��b����������W�v��R�k�����������WF�e��Ls����������WO5�{��u��������99Wדs�]�k"����������W�B� ݛj�����������[�H���)��������CC[��zW���������  [�?न��m����������[�Z`';�I�����������\���]�7g����������\����Q�=�����������l窅��������������l�y\9�یS��������p��H������������  p��M��,�����������p����!���������p�yԛ�� ��������@@pƭ���������������t��>U�����������55t۾$>��H��������CCt�0�t�t���������t�]����P�����������t3z�ɒ������������v]y1ט6����������vm�)&=��M����������vM]q��P��������SSvP�?����������''vő ‡�&H��������v � ��B���������vM��_��F����������v�.քOե���������{{v�3'�j��?��������@@v��uLe�*e��������� � v]GPP/ʸ{��������w�dBň"&��������w���λ�������������wf�b� �������������w_�/���3��������w�吜.�{�������� w~{���������������z�,����|��������  z[,����y��������] ] z[aPx��q3����������|߇wa������������77|Or��{�J���������//|/���� ���������NN|?OW��5��������))|� J��G0��������PP|/�_�IZ��������tt}��E���m�����������}�\� ]��N����������}�sþ�}�����������}��z�Y���������00}Ӓ�l�R�����������!��W�%���������aa�6J�CB����������TT�vq,K�����������CC��u�v������������������V���������..��Z����� �����������a*8�d��-������������Ր�[�[���������FF���5=n�����������YY�yd���mH��������cc�q��d�����������ll��T���mZ��������qq�h�ʚ�������������ƃ��G��������xx�^l�KdzI�����������=G�������������99�~$���$o��������I I �θ���3;���������v�QV���.���������Ƀ|F��7Y�����������������������QQ��B��]�u)�����������Y��l?�������������Y�(̠�B��������{{�Y@Lp�Y���������;;�/��{;�˒���������g���7�nc���������/0H���+������������7�K#��:�����������Mw�_R���������.k�v��p�����������[ zQ��S������������ʆ�+��������� 2"n��-�����������;l�鯖K�������������H�pi��������&&�E�� s�Q��������xx�-7��ǀȃ��������??�U��ˬ����������mm�}�ڭ������������11���ڕ������������y���������������As������������x�=����������qq�>�,R"�Jr��������GG�~8��Y�cw��������yy��rr�v���������@@��Z;\�=������������6�������������������Ӭ�� ������������~�j�p�����������IbT��Rn���������p��f� ������������@�oh�(=��������bb�(Q�O��������� ����ڧ���������9['����������33��쩊$����������������n���������ؠ��ͮ�������� �(�lG�m�����������(T+�+�����������$$�NxO&9�+y��������&&�^4T��7������������G �C|�����������h$�P�����������P�2��Bn�����������FwV�o�D����������6.�eԚ}���������&&�V�+P�&'��������SS�^s����*���������f��\��W���������PP�&����� �����������f����Y��������00�Y"^�s�<7���������9s�l�����������22�� ��������������U�޺��A������������Lk6�|������������Gc3#��.���������00����\��v������������W��5�:��������&&���t������������hh���]�������������XX�.�[Y0܂��������������<�~"�����������v#n�\�2������������.�R�I�>^�����������`y �Ǭ���������ii�δ‘�������������֢��ʀ�������������FK�57̎7�����������Ft �-������������X�̢�ko��������ff��b�D�ĥH��������__�f�aˀ�ރ��������������^��]��������UU��ʑ�C�����������EE��� T)�9����������f� |R�f��������99�햚R���������=P�]���e������������� ��ӛR��������GG�m�&Sԕ�C������������ilɽ;�����������������C���������22� V�*�nI������������Y0���������������tK��I�����������ɚ��**��������@@�\/����K������������7���#���������jj�m�$�����������HH�-G������������� Sn͐������������I7��:������������m������������ww�J�������������� � �yq�T�f���������hh�AhjaT����������ww�qgz�ѻ��������������3<}J�E��������������S���������������i��(�������� ?L_�a�Ŧ����������?t�K��ՠ*����������?� �H������������77?��������������ccGؚXT�/���������..G(g�f�*7��������YYG� Cgŏs�����������N��7�p����������Nl�oM���}��������\\R�.;3��L��������||RO\�R`� m��������WWRװ��J�����������77VL�v�z�|���������  V��>񇡁����������V�g�I��ѐ����������W�j ��ӿ�����������W�#=����l����������[��-���$�����������\�n�s��n��������\֨ ����~����������l�rx�U�^[��������WWp���l� �����������p�d?m����������tsGB�6�S���������PPt� �N��A�����������t�$�t:�������������t�Cn%��[��������xxt�ּ�I��?��������TTv]��]�/�����������v]�T��$$��������v�� �Å6��������v�qj���������������wvy'y�����������66w����ٯ)����������|g/�ꥰ�@��������|��������������|w�\ �b{��������YY}u���@�����������}J�<�Fo���������֬�$4������������FTd���i���������������������������f��'��7��������YY�0 �P��������������y�9~��-������������!� t���K��������zz����ĕ&�����������A�*���C������������ۼ��������������Ε,쾖�����������!��f��������������r�����������j�v�����������C C ���ѕl��q��������55��c`<���������� � � \l�͔������������4Q`�ty�������������|8q��&����������� ����H@��������!!��+r|M�w@���������~�T��ϖ��������������o� ��4������������[��j��������88��2����g+�������������Ӣ�������������Y� ����������00��LX�@>��������\\���#��/����������_�|���������TT��2fe��`B�����������q��S��"������������i������������RR���Q}����������������|��J���������m m ��3x��G��������������n������������<<��ݲ�{�(���������11�y���J�Ay������������ O��F���������++�JX���������������I'������������џY\�����������������F��~������������E^��,���������~ ~ ��&������������RRN��"������������NTΛ�.�)��������**Rip��d�����������R��~���3����������V���Q`������������[z�&���.0��������//[�q�8����������&&[��:o��Z����������[���&r�����������\& �"����������  \n};H�������������\�}y�k�����������l�z��� @����������l�f�B�],��������QQp�N�F������������t㿑���>��������TTtӚ��I����������  vz~����I����������|�xM��̲����������|/ 0f��2I����������}����b-��������JJ�V̯��e����������V3��䪗���������Y{�tx�l�������������U�no��������99��^Tc�����������������ܺ�� ���������]]�X��ڶ�U������������%ŷ���g����������2�T֒l����������~k�N��m���������q��mЦ'|�������������nl�¬�������������_"E�g���������??��0q'�����������ZZ������?��������""��&q�}-��������II��ޜR$��������������#�%�B�����������a8,_,�/}��������qq��|�IY�I������������y�-������������))���}���������������L U�ȑ��������EE�aX���^���������0�)�pV��������SS�ȁ�������������oo���b������������ 6����X�x���������997���o��Չ��������g g G�pG��ma��������##N �z(��1)��������ooNd<{j�� ���������iiRǷx��췤��������  [�+�����������lg�*w �����������ddpF�n��~0����������t;�q������������vmHx�K�����������|?b�f��l���������FF}�}�t�����������""�1aA2�M)�����������qa�s�������������������dž6�������� ���~c��`���������%h=z��+�������������Ch�J�i�������������ޑU�����������~�G��J��������PP��vi���������������6�n�~*������������4��6�����������������z����������^���c��g��������66�N\0{O����������JJ�M�>U��7�������������f�����������kk�Y�����H��������,,�t�ж�X������������)�M���&���������ww�9������������ ����+�������������@���,����������zzG����b�����������V���� ����������W?��Gk������������\��x"}�����������))pq�� �����������w�t'�l^����������z��J���K����������|���z��b����������&�?�ك���������������w������������p p �ۻ��`�A��������22�N�9Z���3��������xx���Rדٲ��������55��*˶:����������� �������+E�����������6SS��ݪ���������55������0��������������1�N�sh�����������6٥;4���������TT�v�� x�pO��������DD���D�P��Y��������q0��R������� -�6*�,p/�1A4�8�AeD�N[Q�SA����Xeh�k8nwq}���Fv�x�!�"��H�9�ڔ��N�����ϱ��ɺe���}�.��M�G����������������g C��"���� 5���7%&)�,<4�6F8�:�=uA�D�F(O�T�W�a]ei�kpr�{A@�>�O�+�E���n���M�3��C��7���������[�}���>������i���'C + �o �����!�&�/�5<VDII�M5P`�cef�l�oteu`yr|�~�,��9�����}����3����T��Ԯ��>��?��T��l�N���.��C�}�D�o�����������_� s \�U��$m&�*3-�1�7�<�B�KO�W�Y�d�g�mm{a�w�C��t��p���������p���E�:���]B����O�n������,��p��������m���)�� ����P�D���H� �)���>+�/ z�.M�U���M4��rY�U1����M�6����\qi�t��pǹ�<�u����+�;�� d�$ �� ��[����2�.J)��@����+v�����0��־[U�9�w՚�kr�x�DC�'$Ot�5�џ#7<�@�/�'N}#�|�����/��(� �u�� jd�4̀��Deg �Fd����4}&] (p����ɋ�4�������Z���N8���i�7ˌ��:�� �{�s4���Xmk�H��_1�BZp�׻+���6m/ڂG)�YK+{iW�]�������J�Kri�lK�yy�gFy��>_���� �[ȍ>�P��L��P��^�`c��9�U�� \Af��̅K�d�t����/�H�+y���#��v^���᢮] p����� ��k��7�X%����z6���TH+2�����47���'����4]��L�`o�,K�$�y0?KC�B%�X����ֲ}�����Xi��Frvv�9�NNNN� <��'�@&4h�Q�eRS~=�t:� �$�I�wdy���t7��#���J}�!7�(�56M�$�"�ʤ�2m�*]zٕ� =0�'�������,%��2[INST] How do I check (in runtime) if a given class is a subclass of another given class? Let's say that I have a class Suit and four subclasses of suit: Heart, Spade, Diamond, Club. class Suit: ... class Heart(Suit): ... class Spade(Suit): ... class Diamond(Suit): ... class Club(Suit): ... I have a method which receives a suit as a parameter, which is a class object, not an instance. More precisely, it may receive only one of the four values: Heart, Spade, Diamond, Club. How can I make an assertion which ensures such a thing? Something like: def my_method(suit): assert(suit subclass of Suit) ... I'm using Python 3. [/INST] You can use issubclass() like this assert issubclass(suit, Suit). But why would you want to do such a thing? Python is not Java. [INST] Where is Python's "best ASCII for this Unicode" database? I have some text that uses Unicode punctuation, like left double quote, right single quote for apostrophe, and so on, and I need it in ASCII. Does Python have a database of these characters with obvious ASCII substitutes so I can do better than turning them all into "?" ? [/INST] Unidecode looks like a complete solution. It converts fancy quotes to ascii quotes, accented latin characters to unaccented and even attempts transliteration to deal with characters that don't have ASCII equivalents. That way your users don't have to see a bunch of ? when you had to pass their text through a legacy 7-bit ascii system. >>> from unidecode import unidecode >>> print unidecode(u"\u5317\u4EB0") Bei Jing http://www.tablix.org/~avian/blog/archives/2009/01/unicode%5Ftransliteration%5Fin%5Fpython/ [INST] How to enumerate an object's properties in Python? I C# we do it through reflection. In Javascript it is simple as: for(var propertyName in objectName) var currentPropertyValue = objectName[propertyName]; How to do it in Python? [/INST] for property, value in vars(theObject).iteritems(): print property, ": ", value Be aware that in some rare cases there's a __slots__ property, such classes often have no __dict__. [INST] How do you use pip, virtualenv and Fabric to handle deployment? What are your settings, your tricks, and above all, your workflow? These tools are great but there are still no best practices attached to their usage, so I don't know what is the most efficient way to use them. Do you use pip bundles or always download? Do you set up Apache/Cherokee/MySQL by hand or do you have a script for that? Do you put everything in virtualenv and use --no-site-packages? Do you use one virtualenv for several projects? What do you use Fabric for (which part of your deployment do you script)? Do you put your Fabric scripts on the client or the server? How do you handle database and media file migration? Do you ever need a build tool such as SCons? What are the steps of your deployment? How often do you perform each of them? etc. [/INST] "Best practices" are very context-dependent, so I won't claim my practices are best, just that they work for me. I work on mostly small sites, so no multiple-server deployments, CDNs etc. I do need to support Webfaction shared hosting deployment, as some clients need the cheapest hosting they can find. I do often have to deploy sites multiple times in different environments, so repeatable scripted deploys are critical. I don't use pip bundles, I install from a requirements.txt. I do run my own chishop server with sdists of everything I need, so there aren't multiple single points of failure in the build process. I also use PIP_DOWNLOAD_CACHE on my development machines to speed up bootstrapping project environments, since most of my projects' requirements overlap quite a bit. I have Fabric scripts that can automatically set up and configure nginx + Apache/mod_wsgi on an Ubuntu VPS, or configure the equivalent on Webfaction shared hosting, and then deploy the project. I do not use --no-site-packages with virtualenv, because I prefer having slow-moving compiled packages (Python Imaging Library, psycopg2) installed at the system level; too slow and troublesome to do inside every virtualenv. I have not had trouble with polluted system site-packages, because I generally don't pollute it. And in any case, you can install a different version of something in the virtualenv and it will take precedence. Each project has its own virtualenv. I have some bash scripts (not virtualenvwrapper, though a lot of people use that and love it) that automate deploying the virtualenv for a given project to a known location and installing that project's requirements into it. The entire deployment process, from a bare Ubuntu server VPS or Webfaction shared hosting account to a running website, is scripted using Fabric. Fabric scripts are part of the project source tree, and I run them from a local development checkout. I have no need for SCons (that I am aware of). Deployment At the moment a fresh deployment is split into these steps: fab staging bootstrap (server setup and initial code deploy) fab staging enable (enable the Apache/nginx config for this site) fab staging reload_server (reload Apache/nginx config). Those can of course be combined into a single command line fab staging bootstrap enable reload_server. Once these steps are done, updating the deployment with new code is just fab staging deploy. If I need to roll back an update, fab staging rollback. Nothing particularly magical in the rollback; it just rolls back the code to the last-deployed version and migrates the database to the previous state (this does require recording some metadata about the migration state of the DB post-deploy, I just do that in a text file). Examples I haven't used the Fabric scripts described in this answer for a few years, so they aren't maintained at all and I disclaim responsibility for their quality :-) But you can see them at https://bitbucket.org/carljm/django-project-template - in fabfile.py in the repo root, and in the deploy/ subdirectory. [INST] How to get instance variables in Python? Is there a built-in method in Python to get an array of all a class' instance variables? For example, if I have this code: class hi: def __init__(self): self.ii = "foo" self.kk = "bar" Is there a way for me to do this: >>> mystery_method(hi) ["ii", "kk"] Thanks guys! Edit: I originally had asked for class variables erroneously. Thanks to all who brought this to my attention! [/INST] Every object has a __dict__ variable containing all the variables and its values in it. Try this >>> hi_obj = hi() >>> hi_obj.__dict__.keys() [INST] Correct way to define Python source code encoding PEP 263 defines how to define Python source code encoding. Normally, the first 2 lines of a Python file should start with: #!/usr/bin/python # -*- coding: -*- But I have seen a lot of files starting with: #!/usr/bin/python # -*- encoding: -*- -> encoding instead of coding. So what is the correct way of declaring the file encoding ? Is encoding permitted because the regex used is lazy ? Or is it just another form of declaring the file encoding ? I'm asking this question because the PEP does not talk about encoding, it just talks about coding. [/INST] Check the docs here: "If a comment in the first or second line of the Python script matches the regular expression coding[=:]\s*([-\w.]+), this comment is processed as an encoding declaration" "The recommended forms of this expression are # -*- coding: -*- which is recognized also by GNU Emacs, and # vim:fileencoding= which is recognized by Bram Moolenaar’s VIM." So, you can put pretty much anything before the "coding" part, but stick to "coding" (with no prefix) if you want to be 100% python-docs-recommendation-compatible. More specifically, you need to use whatever is recognized by Python and the specific editing software you use (if it needs/accepts anything at all). E.g. the coding form is recognized (out of the box) by GNU Emacs but not Vim (yes, without a universal agreement, it's essentially a turf war). [INST] Is it pythonic for a function to return multiple values? In python, you can have a function return multiple values. Here's a contrived example: def divide(x, y): quotient = x/y remainder = x % y return quotient, remainder (q, r) = divide(22, 7) This seems very useful, but it looks like it can also be abused ("Well..function X already computes what we need as an intermediate value. Let's have X return that value also"). When should you draw the line and define a different method? [/INST] Absolutely (for the example you provided). Tuples are first class citizens in Python There is a builtin function divmod() that does exactly that. q, r = divmod(x, y) # ((x - x%y)/y, x%y) Invariant: div*y + mod == x There are other examples: zip, enumerate, dict.items. for i, e in enumerate([1, 3, 3]): print "index=%d, element=%s" % (i, e) # reverse keys and values in a dictionary d = dict((v, k) for k, v in adict.items()) # or d = dict(zip(adict.values(), adict.keys())) BTW, parentheses are not necessary most of the time. Citation from Python Library Reference: Tuples are constructed by the comma operator (not within square brackets), with or without enclosing parentheses, but an empty tuple must have the enclosing parentheses, such as a, b, c or (). A single item tuple must have a trailing comma, such as (d,). Functions should serve single purpose Therefore they should return a single object. In your case this object is a tuple. Consider tuple as an ad-hoc compound data structure. There are languages where almost every single function returns multiple values (list in Lisp). Sometimes it is sufficient to return (x, y) instead of Point(x, y). Named tuples With the introduction of named tuples in Python 2.6 it is preferable in many cases to return named tuples instead of plain tuples. >>> import collections >>> Point = collections.namedtuple('Point', 'x y') >>> x, y = Point(0, 1) >>> p = Point(x, y) >>> x, y, p (0, 1, Point(x=0, y=1)) >>> p.x, p.y, p[0], p[1] (0, 1, 0, 1) >>> for i in p: ... print(i) ... 0 1 [INST] python tuple comparison I have been reading the Core Python programming book and the author shows an example like: (4,5) < (3,5) # Equals false So I'm wondering, how/why does it equal false? How does python compare these two tuples? Btw, it's not explained in the book. [/INST] Tuples are compared position by position: the first item of first tuple is compared to the first item of the second tuple; if they are not equal, this is the result of the comparison, else the second item is considered, then the third and so on. See doc: Sequence types also support comparisons. In particular, tuples and lists are compared lexicographically by comparing corresponding elements. This means that to compare equal, every element must compare equal and the two sequences must be of the same type and have the same length. Also this: Tuples and lists are compared lexicographically using comparison of corresponding elements. This means that to compare equal, each element must compare equal and the two sequences must be of the same type and have the same length. If not equal, the sequences are ordered the same as their first differing elements. For example, cmp([1,2,x], [1,2,y]) returns the same as cmp(x,y). If the corresponding element does not exist, the shorter sequence is considered smaller (for example, [1,2] < [1,2,3] returns True). Note that < and > do not mean "smaller then" and "greater then" but "is before" and "is after": so (0, 1) "is before" (1, 0). Note 2: tuples are not coordinates in a n-dimensional space! [INST] How to drop into REPL (Read, Eval, Print, Loop) from Python code Is there a way to programmatically force a Python script to drop into a REPL at an arbitrary point in its execution, even if the script was launched from the command line? I'm writing a quick and dirty plotting program, which I want to read data from stdin or a file, plot it, and then drop into the REPL to allow for the plot to be customized. [/INST] I frequently use this: def interact(): import code code.InteractiveConsole(locals=globals()).interact() [INST] Retrieve list of tasks in a queue in Celery How can I retrieve a list of tasks in a queue that are yet to be processed? [/INST] You should look here: Celery Guide - Inspecting Workers Basically this: >>> from celery.task.control import inspect # Inspect all nodes. >>> i = inspect() >>> i.scheduled() or: >>> i.active() Depending on what you want [INST] Is it possible to go into ipython from code? For my debugging needs, pdb is pretty good. However, it would be much cooler (and helpful) if I could go into ipython. Is this thing possible? [/INST] There is an ipdb project which embeds iPython into the standard pdb, so you can just do: import ipdb; ipdb.set_trace() It's installable via the usual easy_install ipdb. ipdb is pretty short, so instead of easy_installing you can also create a file ipdb.py somewhere on your Python path and paste the following into the file: import sys from IPython.Debugger import Pdb from IPython.Shell import IPShell from IPython import ipapi shell = IPShell(argv=['']) def set_trace(): ip = ipapi.get() def_colors = ip.options.colors Pdb(def_colors).set_trace(sys._getframe().f_back) [INST] Open document with default application in Python I need to be able to open a document using its default application in Windows and Mac OS. Basically, I want to do the same thing that happens when you double click on the document icon in Explorer or Finder. What is the best way to do this in Python? [/INST] Use the subprocess module available on Python 2.4+, not os.system(), so you don't have to deal with shell escaping. import subprocess, os if sys.platform.startswith('darwin'): subprocess.call(('open', filepath)) elif os.name == 'nt': os.startfile(filepath) elif os.name == 'posix': subprocess.call(('xdg-open', filepath)) The double parentheses are because subprocess.call() wants a sequence as its first argument, so we're using a tuple here. On Linux systems with Gnome there is also a gnome-open command that does the same thing, but xdg-open is the Free Desktop Foundation standard and works across Linux desktop environments. [INST] argparse: require either of two arguments Given: import argparse pa = argparse.ArgumentParser() pa.add_argument('--foo') pa.add_argument('--bar') print pa.parse_args('--foo 1'.split()) how do I make at least one of "foo, bar" mandatory: --foo x, --bar y and --foo x --bar y are fine make at most one of "foo, bar" mandatory: --foo x or --bar y are fine, --foo x --bar y is not [/INST] I think you are searching for something like mutual exclusion (at least for the second part of your question). This way, only foo or bar will be accepted, not both. group = parser.add_mutually_exclusive_group(required=True) group.add_argument('--foo',action=.....) group.add_argument('--bar',action=.....) args = parser.parse_args() And you can indeed solve the first part of the question with Christian Witts's answer. By combining both, you should be able to achieve what you want. BTW, just found another question referring to the same kind of issue. Hope this helps *i[INST] Matplotlib different size subplots I need to add two subplots to a figure. One subplot needs to be about three times as wide as the second (same height). I accomplished this using GridSpec and the colspan argument but I would like to do this using figure so I can save to PDF. I can adjust the first figure using the figsize argument in the constructor, but I do not know how to change the size of the second plot. Any thoughts? [/INST] You can use gridspec and figure: import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec # generate some data x = np.arange(0, 10, 0.2) y = np.sin(x) # plot it fig = plt.figure(figsize=(8, 6)) gs = gridspec.GridSpec(1, 2, width_ratios=[3, 1]) ax0 = plt.subplot(gs[0]) ax0.plot(x, y) ax1 = plt.subplot(gs[1]) ax1.plot(y, x) plt.tight_layout() plt.savefig('grid_figure.pdf') [INST] Python: Why is this invalid syntax? Why can't you use a trailing comma with *args in Python? In other words, this works >>> f(1, 2, b=4,) But this does not >>> f(*(1, 2), b=4,) File "", line 1 f(*(1, 2), b=4,) ^ SyntaxError: invalid syntax This is the case with both Python 2 and Python 3. [/INST] Let's look at the language specification: call ::= primary "(" [argument_list [","] | expression genexpr_for] ")" argument_list ::= positional_arguments ["," keyword_arguments] ["," "*" expression] ["," keyword_arguments] ["," "**" expression] | keyword_arguments ["," "*" expression] ["," "**" expression] | "*" expression ["," "*" expression] ["," "**" expression] | "**" expression positional_arguments ::= expression ("," expression)* keyword_arguments ::= keyword_item ("," keyword_item)* keyword_item ::= identifier "=" expression Let's sift down to the parts we care about: call ::= primary "(" [argument_list [","]] ")" argument_list ::= positional_arguments ["," keyword_arguments] ["," "*" expression] ["," keyword_arguments] ["," "**" expression] positional_arguments ::= expression ("," expression)* keyword_arguments ::= keyword_item ("," keyword_item)* keyword_item ::= identifier "=" expression So, it looks like after any arguments to a function call, we're allowed an extra ,. So this looks like a bug in the cpython implementation. Something like: f(1, *(2,3,4), ) should work according to this grammar, but doesn't in CPython. In an earlier answer, Eric linked to the CPython grammar specification, which includes the CPython implementation of the above grammar. Here it is below: arglist: (argument ',')* ( argument [','] | '*' test (',' argument)* [',' '**' test] | '**' test ) Note, that this grammar is not the same as the one proposed by the language specification. I'd consider this an implementation bug. Note that there are additional issues with the CPython implementation. This should also be supported: f(*(1,2,3), *(4,5,6)) Oddly though, the specification does not allow f(*(1,2,3), *(4,5,6), *(7,8,9)) As I look at this more, I think this part of the specification needs some fixing. This is allowed: f(x=1, *(2,3)), but this isn't: f(x=1, 2, 3). And to perhaps be helpful to the original question, in CPython, you can have a trailing comma if you don't use the *args or the **kwargs feature. I agree that this is lame. [INST] Can't connect to local MySQL server through socket '/tmp/mysql.sock When I attempted to connect to a local MySQL server during my test suite, it fails with the error: OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)") However, I'm able to at all times, connect to MySQL by running the command line mysql program. A ps aux | grep mysql shows the server is running, and stat /tmp/mysql.sock confirm that the socket exists. Further, if I open a debugger in except clause of that exception, I'm able to reliably connect with the exact same parameters. This issue reproduces fairly reliably, however it doesn't appear to be 100%, because every once in a blue moon, my test suite does in fact run without hitting this error. When I attempted to run with sudo dtruss it did not reproduce. All the client code is in Python, though I can't figure how that'd be relevant. Switching to use host 127.0.0.1 produces the error: DatabaseError: Can't connect to MySQL server on '127.0.0.1' (61) [/INST] sudo /usr/local/mysql/support-files/mysql.server start This worked for me. However, if this doesnt work then make sure that mysqld is running and try connecting. [INST] How do I get the user agent with Flask? I'm trying to get access to the user agent with Flask, but I either can't find the documentation on it, or it doesn't tell me. [/INST] from flask import request request.headers.get('User-Agent') You can also use the request.user_agent object which contains the following attributes which are created based on the useragent string: platform (windows, linux, macos, etc.) browser (chrome, firefox, msie, etc.) version language string (== request.headers.get('User-Agent')) [INST] Can I serve multiple clients using just Flask app.run() as standalone? I know I can link Flask with Apache or other web servers. But, I was thinking of running Flask as a standalone server serving multiple clients simultaneously. Is this possible? Do I have to handle spawning multiple threads and managing them? [/INST] flask.Flask.run accepts additional keyword arguments (**options) that it forwards to werkzeug.serving.run_simple - two of those arguments are threaded (which you can set to True to enable threading) and processes (which you can set to a number greater than one to have werkzeug spawn more than one process to handle requests). So if you do: if __name__ == '__main__': app.run(threaded=True) # Alternately # app.run(processes=3) Flask will tell Werkzeug to use threading and to spawn three processes to handle incoming requests. That being said, Werkzeug's serving.run_simple wraps the standard library's wsgiref package - and that package contains a reference implementation of WSGI, not a production-ready web server. If you are going to use Flask in production (assuming that "production" is not a low-traffic internal application with no more than 10 concurrent users) make sure to stand it up behind a real web server (see the section of Flask's docs entitled Deployment Options for some suggested methods). [INST] Python argparse ignore unrecognised arguments Optparse, the old version just ignores all unrecognised arguments and carries on. In most situations, this isn't ideal and was changed in argparse. But there are a few situations where you want to ignore any unrecognised arguments and parse the ones you've specified. For example: parser = argparse.ArgumentParser() parser.add_argument('--foo', dest="foo") parser.parse_args() $python myscript.py --foo 1 --bar 2 error: unrecognized arguments: --bar Is there anyway to overwrite this? [/INST] Replace args = parser.parse_args() with args, unknown = parser.parse_known_args() For example, import argparse parser = argparse.ArgumentParser() parser.add_argument('--foo') args, unknown = parser.parse_known_args(['--foo', 'BAR', 'spam']) print(args) # Namespace(foo='BAR') print(unknown) # ['spam'] [INST] Display an image from a file in an IPython Notebook I would like to use an IPython notebook as a way to interactively analyze some genome charts I am making with Biopython's GenomeDiagram module. While there is extensive documentation on how to use matplotlib to get graphs inline in IPython notebook, GenomeDiagram uses the ReportLab toolkit which I don't think is supported for inline graphing in IPython. I was thinking, however, that a way around this would be to write out the plot/genome diagram to a file and then open the image inline which would have the same result with something like this: gd_diagram.write("test.png", "PNG") display(file="test.png") However, I can't figure out how to do this - or know if it's possible. So does anyone know if images can be opened/displayed in IPython? [/INST] Courtesy of this post, you can do the following: from IPython.display import Image Image(filename='test.png') [INST] What does enumerate mean? I am using tkinter in Python and came across the following code: for row_number, row in enumerate(cursor): I was wondering whether anyone could explain what enumerate means in this context? [/INST] The enumerate() function adds a counter to an iterable. So for each element in cursor, a tuple is produced with (counter, element); the for loop binds that to row_number and row, respectively. Demo: >>> elements = ('foo', 'bar', 'baz') >>> for elem in elements: ... print elem ... foo bar baz >>> for count, elem in enumerate(elements): ... print count, elem ... 0 foo 1 bar 2 baz By default, enumerate() starts counting at 0 but if you give it a second integer argument, it'll start from that number instead: >>> for count, elem in enumerate(elements, 42): ... print count, elem ... 42 foo 43 bar 44 baz [INST] 'pip' is not recognized as an internal or external command I'm running into a weird error trying to install Django on my computer. This is the sequence that I've typed into my command line: C:\Python34>python get-pip.py Requirement already up-to-date: pip in c:\python34\lib\site-packages Cleaning up... C:\Python34>pip install Django 'pip' is not recognized as an internal or external command, operable program or batch file. C:\Python34>lib\site-packages\pip install Django 'lib\site-packages\pip' is not recognized as an internal or external command, operable program or batch file. What could be causing this? EDIT ___________________ As requested this is what I get when I type in echo %PATH% C:\Python34>echo %PATH% C:\Program Files\ImageMagick-6.8.8-Q16;C:\Program Files (x86)\Intel\iCLS Client\ ;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\S ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ Windows Live\Shared;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Progr am Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Mana gement Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine C omponents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components \DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\P rogram Files (x86)\nodejs\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x 86)\git\cmd;C:\RailsInstaller\Ruby2.0.0\bin;C:\RailsInstaller\Git\cmd;C:\RailsIn staller\Ruby1.9.3\bin;C:\Users\Javi\AppData\Roaming\npm [/INST] You need to add the path of your pip installation to your PATH system variable. By default, pip is installed to C:\Python34\Scripts\pip (pip now comes bundled with new versions of python), so the path "C:\Python34\Scripts" needs to be added to your PATH variable. To check if it is already in your PATH variable, type echo %PATH% at the CMD prompt To add the path of your pip installation to your PATH variable, you can use the Control Panel or the setx command. For example: setx PATH "%PATH%;C:\Python34\Scripts" Note: According to the official documentation, "[v]ariables set with setx variables are available in future command windows only, not in the current command window". In particular, you will need to start a new cmd.exe instance after entering the above command in order to utilize the new environment variable. Thanks to Scott Bartell for pointing this out. [INST] Get Filename Without Extension in Python If I have a filename like one of these: 1.1.1.1.1.jpg 1.1.jpg 1.jpg How could I get only the filename, without the extension? Would a regex be appropriate? [/INST] In most cases, you shouldn't use a regex for that. os.path.splitext(filename)[0] This will also handle a filename like .bashrc correctly by keeping the whole name. [INST] Validating with an XML schema in Python I have an XML file and an XML schema in another file and I'd like to validate that my XML file adheres to the schema. How do I do this in Python? I'd prefer something using the standard library, but I can install a third-party package if necessary. [/INST] I am assuming you mean using XSD files. Surprisingly there aren't many python XML libraries that support this. lxml does however. Check Validation with lxml. The page also lists how to use lxml to validate with other schema types. a[INST] Anyone know of a good Python based web crawler that I could use? I'm half-tempted to write my own, but I don't really have enough time right now. I've seen the Wikipedia list of open source crawlers but I'd prefer something written in Python. I realize that I could probably just use one of the tools on the Wikipedia page and wrap it in Python. I might end up doing that - if anyone has any advice about any of those tools, I'm open to hearing about them. I've used Heritrix via its web interface and I found it to be quite cumbersome. I definitely won't be using a browser API for my upcoming project. Thanks in advance. Also, this is my first SO question! [/INST] Mechanize is my favorite; great high-level browsing capabilities (super-simple form filling and submission). Twill is a simple scripting language built on top of Mechanize BeautifulSoup + urllib2 also works quite nicely. Scrapy looks like an extremely promising project; it's new. [INST] What are the Python equivalents to Ruby's bundler / Perl's carton? I know about virtualenv and pip. But these are a bit different from bundler/carton. For instance: pip writes the absolute path to shebang or activate script pip doesn't have the exec sub command (bundle exec bar) virtualenv copies the Python interpreter to a local directory Does every Python developer use virtualenv/pip? Are there other package management tools for Python? [/INST] From what i've read about bundler — pip without virtualenv should work just fine for you. You can think of it as something between regular gem command and bundler. Common things that you can do with pip: Installing packages (gem install) pip install mypackage Dependencies and bulk-install (gemfile) Probably the easiest way is to use pip's requirements.txt files. Basically it's just a plain list of required packages with possible version constraints. It might look something like: nose==1.1.2 django<1.3 PIL Later when you'd want to install those dependencies you would do: $ pip install -r requirements.txt A simple way to see all your current packages in requirements-file syntax is to do: $ pip freeze You can read more about it here. Execution (bundler exec) All python packages that come with executable files are usually directly available after install (unless you have custom setup or it's a special package). For example: $ pip install gunicorn $ gunicorn -h Package gems for install from cache (bundler package) There is pip bundle and pip zip/unzip. But i'm not sure if many people use it. p.s. If you do care about environment isolation you can also use virtualenv together with pip (they are close friends and work perfectly together). By default pip installs packages system-wide which might require admin rights. [INST] Large, persistent DataFrame in pandas I am exploring switching to python and pandas as a long-time SAS user. However, when running some tests today, I was surprised that python ran out of memory when trying to pandas.read_csv() a 128mb csv file. It had about 200,000 rows and 200 columns of mostly numeric data. With SAS, I can import a csv file into a SAS dataset and it can be as large as my hard drive. Is there something analogous in pandas? I regularly work with large files and do not have access to a distributed computing network. [/INST] In principle it shouldn't run out of memory, but there are currently memory problems with read_csv on large files caused by some complex Python internal issues (this is vague but it's been known for a long time: http://github.com/pydata/pandas/issues/407). At the moment there isn't a perfect solution (here's a tedious one: you could transcribe the file row-by-row into a pre-allocated NumPy array or memory-mapped file--np.mmap), but it's one I'll be working on in the near future. Another solution is to read the file in smaller pieces (use iterator=True, chunksize=1000) then concatenate then with pd.concat. The problem comes in when you pull the entire text file into memory in one big slurp. [INST] Loading initial data with Django 1.7 and data migrations I recently switched from Django 1.6 to 1.7, and I began using migrations (I never used South). Before 1.7, I used to load initial data with a fixture/initial_data.json file, which was loaded with the python manage.py syncdb command (when creating the database). Now, I started using migrations, and this behavior is deprecated : If an application uses migrations, there is no automatic loading of fixtures. Since migrations will be required for applications in Django 2.0, this behavior is considered deprecated. If you want to load initial data for an app, consider doing it in a data migration. (https://docs.djangoproject.com/en/1.7/howto/initial-data/#automatically-loading-initial-data-fixtures) The official documentation does not have a clear example on how to do it, so my question is : What is the best way to import such initial data using data migrations : Write Python code with multiple calls to mymodel.create(...), Use or write a Django function (like calling loaddata) to load data from a JSON fixture file. I prefer the second option. I don't want to use South, as Django seems to be able to do it natively now. [/INST] Assuming you have a fixture file in /fixtures/initial_data.json Create your empty migration: In Django 1.7: python manage.py makemigrations --empty In Django 1.8+, you can provide a name: python manage.py makemigrations --empty --name load_intial_data Edit your migration file /migrations/0002_auto_xxx.py 2.1. Custom implementation, inspired by Django' loaddata (initial answer): import os from sys import path from django.core import serializers fixture_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../fixtures')) fixture_filename = 'initial_data.json' def load_fixture(apps, schema_editor): fixture_file = os.path.join(fixture_dir, fixture_filename) fixture = open(fixture_file, 'rb') objects = serializers.deserialize('json', fixture, ignorenonexistent=True) for obj in objects: obj.save() fixture.close() def unload_fixture(apps, schema_editor): "Brutally deleting all entries for this model..." MyModel = apps.get_model("yourapp", "ModelName") MyModel.objects.all().delete() class Migration(migrations.Migration): dependencies = [ ('yourapp', '0001_initial'), ] operations = [ migrations.RunPython(load_fixture, reverse_code=unload_fixture), ] 2.2. A simpler solution for load_fixture (per @juliocesar's suggestion): from django.core.management import call_command fixture_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../fixtures')) fixture_filename = 'initial_data.json' def load_fixture(apps, schema_editor): fixture_file = os.path.join(fixture_dir, fixture_filename) call_command('loaddata', fixture_file) Useful if you want to use a custom directory. 2.3. Simplest: calling loaddata with app_label will load fixtures from the 's fixtures dir automatically : from django.core.management import call_command fixture = 'initial_data' def load_fixture(apps, schema_editor): call_command('loaddata', fixture, app_label='yourapp') If you don't specify app_label, loaddata will try to load fixture filename from all apps fixtures directories (which you probably don't want). Run it python manage.py migrate [INST] Adding code to __init__.py I'm taking a look at how the model system in django works and I noticed something that I don't understand. I know that you create an empty __init__.py file to specify that the current directory is a package. And that you can set some variable in __init__.py so that import * works properly. But django adds a bunch of from ... import ... statements and defines a bunch of classes in __init__.py. Why? Doesn't this just make things look messy? Is there a reason that requires this code in __init__.py? [/INST] All imports in __init__.py are made available when you import the package (directory) that contains it. Example: ./dir/__init__.py: import something ./test.py: import dir # can now use dir.something EDIT: forgot to mention, the code in __init__.py runs the first time you import any module from that directory. So it's normally a good place to put any package-level initialisation code. EDIT2: dgrant pointed out to a possible confusion in my example. In __init__.py import something can import any module, not necessary from the package. For example, we can replace it with import datetime, then in our top level test.py both of these snippets will work: import dir print dir.datetime.datetime.now() and import dir.some_module_in_dir print dir.datetime.datetime.now() The bottom line is: all names assigned in __init__.py, be it imported modules, functions or classes, are automatically available in the package namespace whenever you import the package or a module in the package. [INST] How to get indices of a sorted array in Python I have a numerical list: myList = [1, 2, 3, 100, 5] Now if I sort this list to obtain [1, 2, 3, 5, 100]. What I want is the indices of the elements from the original list in the sorted order i.e. [0, 1, 2, 4, 3] --- ala MATLAB's sort function that returns both values and indices. [/INST] Something like next: >>> myList = [1, 2, 3, 100, 5] >>> [i[0] for i in sorted(enumerate(myList), key=lambda x:x[1])] [0, 1, 2, 4, 3] enumerate(myList) gives you a list containing tuples of (index, value): [(0, 1), (1, 2), (2, 3), (3, 100), (4, 5)] You sort the list by passing it to sorted and specifying a function to extract the sort key (the second element of each tuple; that's what the lambda is for. Finally, the original index of each sorted element is extracted using the [i[0] for i in ...] list comprehension. [INST] Read Specific Columns from csv file with Python csv I'm trying to parse through a csv file and extract the data from only specific columns. Example csv: ID | Name | Address | City | State | Zip | Phone | OPEID | IPEDS | 10 | C... | 130 W.. | Mo.. | AL... | 3.. | 334.. | 01023 | 10063 | I'm trying to capture only specific columns, say ID, Name, Zip and Phone. Code I've looked at has led me to believe I can call the specific column by its corresponding number, so ie: Name would correspond to 2 and iterating through each row using row[2] would produce all the items in column 2. Only it doesn't. Here's what I've done so far: import sys, argparse, csv from settings import * # command arguments parser = argparse.ArgumentParser(description='csv to postgres',\ fromfile_prefix_chars="@" ) parser.add_argument('file', help='csv file to import', action='store') args = parser.parse_args() csv_file = args.file # open csv file with open(csv_file, 'rb') as csvfile: # get number of columns for line in csvfile.readlines(): array = line.split(',') first_item = array[0] num_columns = len(array) csvfile.seek(0) reader = csv.reader(csvfile, delimiter=' ') included_cols = [1, 2, 6, 7] for row in reader: content = list(row[i] for i in included_cols) print content and I'm expecting that this will print out only the specific columns I want for each row except it doesn't, I get the last column only. [/INST] The only way you would be getting the last column from this code is if you don't include your print statement in your for loop. This is most likely the end of your code: for row in reader: content = list(row[i] for i in included_cols) print content You want it to be this: for row in reader: content = list(row[i] for i in included_cols) print content Now that we have covered your mistake, I would like to take this time to introduce you to the pandas module. Pandas is spectacular for dealing with csv files, and the following code would be all you need to read a csv and save an entire column into a variable: import pandas as pd df = pd.read_csv(csv_file) saved_column = df.column_name #you can also use df['column_name'] so if you wanted to save all of the info in your column Names into a variable, this is all you need to do: names = df.Names It's a great module and I suggest you look into it. If for some reason your print statement was in for loop and it was still only printing out the last column, which shouldn't happen, but let me know if my assumption was wrong. Your posted code has a lot of indentation errors so it was hard to know what was supposed to be where. Hope this was helpful! [INST] Numpy - array vs asarray What is the difference between Numpy's array() and asarray() functions? When should you use one rather than the other? They seem to generate identical output for all the inputs I can think of. [/INST] The definition of asarray is: def asarray(a, dtype=None, order=None): return array(a, dtype, copy=False, order=order) So it is like array, except it has fewer options, and copy = False. array has copy = True by default. I think the main difference is that array (by default) will make a copy of the object, while asarray will not unless necessary. [INST] Including non-Python files with setup.py How do I make setup.py include a file that isn't part of the code? (Specifically, it's a license file, but it could be any other thing.) I want to be able to control the location of the file. In the original source folder, the file is in the root of the package. (i.e. on the same level as the topmost __init__.py.) I want it to stay exactly there when the package is installed, regardless of operating system. How do I do that? [/INST] Probably the best way to do this is to use the setuptools package_data directive. This does mean using setuptools (or distribute) instead of distutils, but this is a very seamless "upgrade". Here's a full (but untested) example: from setuptools import setup, find_packages setup( name='your_project_name', version='0.1', description='A description.', packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']), package_data={'': ['license.txt']}, include_package_data=True, install_requires=[], ) Note the specific line that's critical here: package_data={'': ['license.txt']} This is a dict of package names (empty = all packages) to a list of patterns (can include globs). For example, if you want to only specify files within your package, you can do that too: package_data={'yourpackage': ['*.txt', 'path/to/resources/*.txt']} The solution here is definitely not to rename your non-py files with a .py extension. See Ian Bicking's presentation for more info. UPDATE: Another [Better] Approach Another approach that works well if you just want to control the contents of the source distribution (sdist) and have files outside of the package (e.g. top-level directory) is to add a MANIFEST.in file. See the Python documentation for the format of this file. Since writing this response, I have found that using MANIFEST.in is typically a less frustrating approach to just make sure your source distribution (tar.gz) has the files you need. For example, if you wanted to include the requirements.txt from top-level, recursively include the top-level "data" directory: include requirements.txt recursive-include data * [INST] Equivalent of Bash Backticks in Python What is the equivalent of the backticks found in Ruby and Perl in Python? That is, in Ruby I can do this: foo = `cat /tmp/baz` What does the equivalent statement look like in Python? I've tried os.system("cat /tmp/baz") but that puts the result to standard out and returns to me the error code of that operation. [/INST] The most flexible way is to use the subprocess module: import subprocess proc = subprocess.Popen(["cat", "/tmp/baz"], stdout=subprocess.PIPE) (out, err) = proc.communicate() print "program output:", out If you want to pass the call through the shell, for example to get file name expansion with *, you can use the shell=True parameter. If you do this, you have to provide the command as a string, quoted/... like you would type it in at a shell prompt: proc = subprocess.Popen('cat /tmp/ba* "s p a c e.txt"', shell=True, ...) [INST] How do I use the built in password reset/change views with my own templates For example I can point the url '^/accounts/password/reset/$' to django.contrib.auth.views.password_reset with my template filename in the context but I think need to send more context details. I need to know exactly what context to add for each of the password reset and change views. [/INST] If you take a look at the sources for django.contrib.auth.views.password_reset you'll see that it uses RequestContext. The upshot is, you can use Context Processors to modify the context which may allow you to inject the information that you need. The b-list has a good introduction to context processors. Edit (I seem to have been confused about what the actual question was): You'll notice that password_reset takes a named parameter called template_name: def password_reset(request, is_admin_site=False, template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html', password_reset_form=PasswordResetForm, token_generator=default_token_generator, post_reset_redirect=None): Check password_reset for more information. ... thus, with a urls.py like: from django.conf.urls.defaults import * from django.contrib.auth.views import password_reset urlpatterns = patterns('', (r'^/accounts/password/reset/$', password_reset, {'template_name': 'my_templates/password_reset.html'}), ... ) django.contrib.auth.views.password_reset will be called for URLs matching '/accounts/password/reset' with the keyword argument template_name = 'my_templates/password_reset.html'. Otherwise, you don't need to provide any context as the password_reset view takes care of itself. If you want to see what context you have available, you can trigger a TemplateSyntax error and look through the stack trace find the frame with a local variable named context. If you want to modify the context then what I said above about context processors is probably the way to go. In summary: what do you need to do to use your own template? Provide a template_name keyword argument to the view when it is called. You can supply keyword arguments to views by including a dictionary as the third member of a URL pattern tuple. [INST] Convert Python program to C/C++ code? is it possible to convert a Python program to C/C++? I need to implement a couple of algorithms, and I'm not sure if the performance gap is big enough to justify all the pain I'd go through when doing it in C/C++ (which I'm not good at). I thought about writing one simple algorithm and benchmark it against such a converted solution. If that alone is significantly faster than the Python version, then I'll have no other choice than doing it in C/C++. [/INST] If the C variant needs x hours less, then I'd invest that time in letting the algorithms run longer/again "invest" isn't the right word here. Build a working implementation in Python. You'll finish this long before you'd finish a C version. Measure performance with the Python profiler. Fix any problems you find. Change data structures and algorithms as necessary to really do this properly. You'll finish this long before you finish the first version in C. If it's still too slow, manually translate the well-designed and carefully constructed Python into C. Because of the way hindsight works, doing the second version from existing Python (with existing unit tests, and with existing profiling data) will still be faster than trying to do the C code from scratch. This quote is important. Thompson's Rule for First-Time Telescope Makers It is faster to make a four-inch mirror and then a six-inch mirror than to make a six-inch mirror. Bill McKeenan Wang Institute [INST] Is there a decorator to simply cache function return values? Consider the following: @property def name(self): if not hasattr(self, '_name'): # expensive calculation self._name = 1 + 1 return self._name I'm new, but I think the caching could be factored out into a decorator. Only I didn't find one like it ;) PS the real calculation doesn't depend on mutable values [/INST] Starting from Python 3.2 there is a built-in decorator: @functools.lru_cache(maxsize=100, typed=False) Decorator to wrap a function with a memoizing callable that saves up to the maxsize most recent calls. It can save time when an expensive or I/O bound function is periodically called with the same arguments. Example of an LRU cache for computing Fibonacci numbers: @lru_cache(maxsize=None) def fib(n): if n < 2: return n return fib(n-1) + fib(n-2) >>> print([fib(n) for n in range(16)]) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610] >>> print(fib.cache_info()) CacheInfo(hits=28, misses=16, maxsize=None, currsize=16) If you are stuck with Python 2.x, here's a list of other compatible memoization libraries: functools32 | PyPI | Source code repoze.lru | PyPI | Source code pylru | PyPI | Source code backports.functools_lru_cache | PyPI | Source code [INST] PIL and numpy Alright, I'm toying around with converting a PIL image object back and forth to a numpy array so I can do some faster pixel by pixel transformations than PIL's PixelAccess object would allow. I've figured out how to place the pixel information in a useful 3D numpy array by way of: pic = Image.open("foo.jpg") pix = numpy.array(pic.getdata()).reshape(pic.size[0], pic.size[1], 3) But I can't seem to figure out how to load it back into the PIL object after I've done all my awesome transforms. I'm aware of the putdata() method, but can't quite seem to get it to behave. Any thoughts? [/INST] You're not saying how exactly putdata() is not behaving. I'm assuming you're doing >>> pic.putdata(a) Traceback (most recent call last): File "...blablabla.../PIL/Image.py", line 1185, in putdata self.im.putdata(data, scale, offset) SystemError: new style getargs format but argument is not a tuple This is because putdata expects a sequence of tuples and you're giving it a numpy array. This >>> data = list(tuple(pixel) for pixel in pix) >>> pic.putdata(data) will work but it is very slow. As of PIL 1.1.6, the "proper" way to convert between images and numpy arrays is simply >>> pix = numpy.array(pic) although the resulting array is in a different format than yours (3-d array or rows/columns/rgb in this case). Then, after you make your changes to the array, you should be able to do either pic.putdata(pix) or create a new image with Image.fromarray(pix). [INST] How can you determine a point is between two other points on a line segment? Let's say you have a two dimensional plane with 2 points (called a and b) on it represented by an x integer and a y integer for each point. How can you determine if another point c is on the line segment defined by a and b? I use python most, but examples in any language would be helpful. [/INST] Check if the cross product of (b-a) and (c-a) is 0, as tells Darius Bacon, tells you if the points a, b and c are aligned. But, as you want to know if c is between a and b, you also have to check that the dot product of (b-a) and (c-a) is positive and is less than the square of the distance between a and b. In non-optimized pseudocode: def isBetween(a, b, c): crossproduct = (c.y - a.y) * (b.x - a.x) - (c.x - a.x) * (b.y - a.y) if abs(crossproduct) > epsilon : return False # (or != 0 if using integers) dotproduct = (c.x - a.x) * (b.x - a.x) + (c.y - a.y)*(b.y - a.y) if dotproduct < 0 : return False squaredlengthba = (b.x - a.x)*(b.x - a.x) + (b.y - a.y)*(b.y - a.y) if dotproduct > squaredlengthba: return False return True [INST] Why does "pip install" raise a SyntaxError? I'm trying to use pip to install a package. I try to run pip install from the Python shell, but I get a SyntaxError. Why do I get this error? How do I use pip to install the package? >>> pip install selenium ^ SyntaxError: invalid syntax [/INST] pip is run from the command line, not the Python interpreter. It is a program that installs modules, so you can use them from Python. Once you have installed the module, then you can open the Python shell and do import selenium. The Python shell is not a command line, it is an interactive interpreter. You type Python code into it, not commands. [INST] In Django, how do I check if a user is in a certain group? I created a custom group in Django's admin site. In my code, I want to check if a user is in this group. How do I do that? [/INST] Your User object is linked to the Group object through a ManyToMany relationship. You can thereby apply the filter method to user.groups. So, to check if a given User is in a certain group ("Member" for the example), just do this : def is_member(user): return user.groups.filter(name='Member').exists() If you want to check if a given user belongs to more than one given groups, use the __in operator like so : def is_in_multiple_groups(user): return user.groups.filter(name__in=['group1', 'group2']).exists() Note that those functions can be used with the @user_passes_test decorator to manage access to your views : from django.contrib.auth.decorators import login_required, user_passes_test @login_required @user_passes_test(is_member) # or @user_passes_test(is_in_multiple_groups) def myview(request): # Do your processing Hope this help [INST] Commenting code in Notepad++ I'm using Notepad++ as an editor to write programs in Python. It might sound daft but I looked around in the editor and could not find any means (not the manual way but something like in Emacs) to do a block comment in my code. Since so many language settings are supported in Notepad++, I'm curious to find a way to block comment code. [/INST] CTRL+Q Block comment/uncomment. More Notepad++ keyboard shortcuts. [INST] Python multiprocessing pickling error I am sorry that I can't reproduce the error with a simpler example, and my code is too complicated to post. If I run the program in IPython shell instead of the regular python, things work out well. I looked up some previous notes on this problem. They were all caused by using pool to call function defined within a class function. But this is not the case for me. Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.7/multiprocessing/pool.py", line 313, in _handle_tasks put(task) PicklingError: Can't pickle : attribute lookup __builtin__.function failed I would appreciate any help. UPDATE: The function I pickle is defined at the top level of the module. Though it calls a function that contains a nested function. i.e, f() calls g() calls h() which has a nested function i(), and I am calling pool.apply_async(f). f(), g(), h() are all defined at the top level. I tried simpler example with this pattern and it works though. [/INST] Here is a list of what can be pickled. In particular, functions are only picklable if they are defined at the top-level of a module. This piece of code: import multiprocessing as mp class Foo(): @staticmethod def work(self): pass pool = mp.Pool() foo = Foo() pool.apply_async(foo.work) pool.close() pool.join() yields an error almost identical to the one you posted: Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/python2.7/multiprocessing/pool.py", line 315, in _handle_tasks put(task) PicklingError: Can't pickle : attribute lookup __builtin__.function failed The problem is that the pool methods all use a queue.Queue to pass tasks to the worker processes. Everything that goes through the queue.Queue must be pickable, and foo.work is not picklable since it is not defined at the top level of the module. It can be fixed by defining a function at the top level, which calls foo.work(): def work(foo): foo.work() pool.apply_async(work,args=(foo,)) Notice that foo is pickable, since Foo is defined at the top level and foo.__dict__ is picklable. [INST] Understanding repr( ) function in Python repr(): evaluatable string representation of an object (can "eval()" it, meaning it is a string representation that evaluates to a Python object) In other words: >>> x = 'foo' >>> repr(x) "'foo'" Questions: Why do I get the double quotes when I do repr(x)? (I don't get them when I do str(x)) Why do I get 'foo' when I do eval("'foo'") and not x which is the object? [/INST] >>> x = 'foo' >>> x 'foo' So the name x is attached to 'foo' string. When you call for example repr(x) the iterpreter puts 'foo' instead of x and then calls repr('foo'). >>> repr(x) "'foo'" >>> x.__repr__() "'foo'" repr actually calls a magic method __repr__ of x, which gives the string containing the representation of the value 'foo' assigned to x. So it returns 'foo' inside the string "" resulting in "'foo'". The idea of repr is to give a string which contains a series of symbols which we can type in the interpreter and get the same value which was sent as an argument to repr. >>> eval("'foo'") 'foo' When we call eval("'foo'"), it's the same as we type 'foo' in the interpreter. It's as we directly type the contents of the outer string "" in the interpreter. >>> eval('foo') Traceback (most recent call last): File "", line 1, in eval('foo') File "", line 1, in NameError: name 'foo' is not defined If we call eval('foo'), it's the same as we type foo in the interpreter. But there is no foo variable an the exception is raised. >>> str(x) 'foo' >>> x.__str__() 'foo' >>> str is just the string representation of the object (remember, x variable refers to 'foo'), so this function returns string. >>> str(5) '5' String representation of integer 5 is '5'. >>> str('foo') 'foo' And string representation of string 'foo' is the same string 'foo'. [INST] How to check if an object is a generator object in python? In python, how do I check if an object is a generator object? Trying this - >>> type(myobject, generator) gives the error - Traceback (most recent call last): File "", line 1, in NameError: name 'generator' is not defined (I know I can check if the object has a next method for it to be a generator, but I want some way using which I can determine the type of any object, not just generators.) [/INST] You can use GeneratorType from types: >>> import types >>> types.GeneratorType >>> gen = (i for i in range(10)) >>> isinstance(gen, types.GeneratorType) True [INST] How does IPython's magic %paste work? I want to copy already indented Python code / whole functions and classes into IPython. Everytime I try the indentation is screwed up and I get following error message: IndentationError: unindent does not match any outer indentation level (, line 12) If you want to paste code into IPython, try the %paste and %cpaste magic functions. [/INST] You can't copy to IPython directly. This are the steps: Copy the lines you want to copy into IPython into the clipboard Enter %paste into IPython Press enter Profit! [INST] Change a django form field to a hidden field I have a django form with a RegexField (which is very similar to a normal text input field). In my view, under certain conditions I want to hide this from the user, and trying to keep the form as similar as possible. What's the best way to turn this field into a HiddenInput field? I know I can set attributes on the field with form['fieldname'].field.widget.attr['readonly'] = 'readonly', and I can set the desired initial value with form.initial['fieldname'] = 'mydesiredvalue'. However that won't change the form of the widget. What's the best/most django-y/least hacky way to make this field a [INST] How can I list the contents of a directory in Python? Can’t be hard, but I’m having a mental block. [/INST] import os os.listdir("path") # returns list [INST] Using try vs if in python Is there a rationale to decide which one of try or if constructs to use, when testing variable to have a value? For example, there is a function that returns either a list or doesn't return a value. I want to check result before processing it. Which of the following would be more preferable and why? result = function(); if (result): for r in result: #process items or result = function(); try: for r in result: #process items except TypeError: pass; Related discussion: Checking for member existence in Python [/INST] You often hear that Python encourages EAFP style ("it's easier to ask for forgiveness than permission") over LBYL style ("look before you leap"). To me, it's a matter of efficiency and readability. In your example (say that instead of returning a list or an empty string, the function were to return a list or None), if you expect that 99 % of the time result will actually contain something iterable, I'd use the try/except approach. It will be faster if exceptions really are exceptional. If result is None more than 50 % of the time, then using if is probably better. To support this with a few measurements: >>> import timeit >>> timeit.timeit(setup="a=1;b=1", stmt="a/b") # no error checking 0.06379691968322732 >>> timeit.timeit(setup="a=1;b=1", stmt="try:\n a/b\nexcept ZeroDivisionError:\n pass") 0.0829463709378615 >>> timeit.timeit(setup="a=1;b=0", stmt="try:\n a/b\nexcept ZeroDivisionError:\n pass") 0.5070195056614466 >>> timeit.timeit(setup="a=1;b=1", stmt="if b!=0:\n a/b") 0.11940114974277094 >>> timeit.timeit(setup="a=1;b=0", stmt="if b!=0:\n a/b") 0.051202772912802175 So, whereas an if statement always costs you, it's nearly free to set up a try/except block. But when an Exception actually occurs, the cost is much higher. Moral: It's perfectly OK (and "pythonic") to use try/except for flow control, but it makes sense most when Exceptions are actually exceptional. From the Python docs: EAFP Easier to ask for forgiveness than permission. This common Python coding style assumes the existence of valid keys or attributes and catches exceptions if the assumption proves false. This clean and fast style is characterized by the presence of many try and except statements. The technique contrasts with the LBYL style common to many other languages such as C. [INST] Python locale error: unsupported locale setting Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/locale.py", line 531, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting This works with other locales like fr or nl as well. I'm using Ubuntu 11.04. Update: Doing the following did not yield anything: dpkg-reconfigure locales perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = (unset) are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory [/INST] You probably do not have any de_DE locale available. You can view a list of available locales with the locale -a command. For example, on my machine: $ locale -a C C.UTF-8 en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZM en_ZM.utf8 en_ZW.utf8 it_CH.utf8 it_IT.utf8 POSIX Note that if you want to set the locale to it_IT you must also specify the .utf8: >>> import locale >>> locale.setlocale(locale.LC_ALL, 'it_IT') # error! Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/locale.py", line 539, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting >>> locale.setlocale(locale.LC_ALL, 'it_IT.utf8') 'it_IT.utf8' To install a new locale use: sudo apt-get install language-pack-id where id is the language code (taken from here) After you have installed the locale you should follow Julien Palard advice and reconfigure the locales with: sudo dpkg-reconfigure locales [INST] Sorting a Python list by two criteria I have the following list created from a sorted csv list1 = sorted(csv1, key=operator.itemgetter(1)) I would actually like to sort the list by two criteria: first by the value in field 1 and then by the value in field 2. How do I do this? [/INST] Replying to this dead thread for archive. No need to import anything when using lambda functions. The following sorts list by the first element, then by the second element. sorted(list, key=lambda x: (x[0], -x[1])) [INST] Is there a better way to iterate over two lists, getting one element from each list for each iteration? I have a list of Latitudes and one of Longitudes and need to iterate over the latitude and longitude pairs. Do you think it's be better to: A) (assume that equal lengths is already checked) for i in range(len(Latitudes): Lat,Long=(Latitudes[i],Longitudes[i]) *** EDIT .... or, B) for Lat,Long in [(x,y) for x in Latitudes for y in Longitudes]: .... **** EDIT (12/17) Note that B is incorrect. This gives me all the pairs, equivalent to itertools.product() Any thoughts on the relative merits of each. I'm still getting in the hang of being "pythonic" [/INST] This is as pythonic as you can get: for lat, long in zip(Latitudes, Longitudes): print lat, long [INST] Inserting the same value multiple times when formatting a string I have a string of this form s='arbit' string='%s hello world %s hello world %s' %(s,s,s) All the %s in string have the same value (i.e. s). Is there a better way of writing this? (Rather than listing out s three times) [/INST] You can use advanced string formatting, available in Python 2.6 and Python 3.x: incoming = 'arbit' result = '{0} hello world {0} hello world {0}'.format(incoming) [INST] Counting the Number of keywords in a dictionary in python I have a list of words in a dictionary with the value = the repetition of the keyword but I only want a list of distinct words so i wanted to count the number of keywords. Is there a to count the number of keywords or is there another way I should look for distinct words? [/INST] len(yourdict.keys()) or just len(yourdict) If you like to count unique words in the file, you could just use set and do like len(set(open(yourdictfile).read().split())) [INST] Python - How to declare and add items to an array? I'm trying to add items to an array in python. I run array = {} Then, I try to add something to this array by doing: array.append(valueToBeInserted) There doesn't seem to be a .append method for this. How do I add items to an array? [/INST] {} represents an empty dictionary What you are looking for for a list is [] To initialize an empty list do something like my_list = [] or my_list = list() To add elements to the standard python list you use append my_list.append(12) To extend the list to include the elements from another list use extend my_list.extend([1,2,3,4]) my_list --> [12,1,2,3,4] To remove an element from a list use remove my_list.remove(2) Dictionaries represent a collection of key/value pairs also known as an associative array or a map. To initialize an empty dictionary use {} or dict() Dictionaries have keys and values my_dict = {'key':'value', 'another_key' : 0} To extend a dictionary with the contents of another dictionary you may use the update method my_dict.update({'third_key' : 1}) To remove a value from a dictionary del my_dict['key'] [INST] How to: reduce number of ticks with matplotlib I have too many ticks on my graph and they are running into each other. How can I reduce the number of ticks? For example, I have ticks: 1E-6, 1E-5, 1E-4, ... 1E6, 1E7 and I only want: 1E-5, 1E-3, ... 1E5, 1E7 I've tried playing with the LogLocator, but I haven't been able to figure this out. Suggestions? Thanks! [/INST] Alternatively, if you want to simply set the number of ticks while allowing matplotlib to position them (currently only with MaxNLocator), there is pyplot.locator_params, pyplot.locator_params(nbins=4) You can specify specific axis in this method as mentioned below, default is both: pyplot.locator_params(axis='y',nbins=6)#to specify number of ticks on both or any single axes pyplot.locator_params(axis='x',nbins=10) [INST] How to find all positions of the maximum value in a list? I have a list: a = [32, 37, 28, 30, 37, 25, 27, 24, 35, 55, 23, 31, 55, 21, 40, 18, 50, 35, 41, 49, 37, 19, 40, 41, 31] max element is 55 (two elements on position 9 and 12) I need to find on which position(s) the maximum value is situated. Please, help. [/INST] a.index(max(a)) will tell you the index of the first instance of the largest valued element of list a. [INST] Check for duplicates in a flat list example 1: ['one', 'two', 'one'] should return True. example 2: ['one', 'two', 'three'] should return False. [/INST] Use set() to remove duplicates if all values are hashable: >>> your_list = ['one', 'two', 'one'] >>> len(your_list) != len(set(your_list)) True [INST] How to delete a record in Django models? I want to delete a particular record. Such as delete from table_name where id = 1; How can I do this in a django model? [/INST] There are a couple of ways: To delete it directly: SomeModel.objects.filter(id=id).delete() To delete it from an instance: instance = SomeModel.objects.get(id=id) instance.delete() �X[INST] Accepting email address as username in Django Is there a good way to do this in django without rolling my own authentication system? I want the username to be the user's email address instead of them creating a username. Please advise, thank you. [/INST] For anyone else wanting to do this, I'd recommend taking a look at django-email-as-username which is a pretty comprehensive solution, that includes patching up the admin and the createsuperuser management commands, amongst other bits and pieces. Edit: As of Django 1.5 onwards you should consider using a custom user model instead of django-email-as-username. [INST] Is there a HAML implementation for use with Python and Django I happened to stumble across HAML, an interesting and beautiful way to mark up contents and write templates for HTML. Since I use Python and Django for my web developing need, I would like to see if there is a Python implementation of HAML (or some similar concepts -- need not be exactly identical) that can be used to replace the Django template engine. [/INST] You might be interested in SHPAML: http://shpaml.com/ I am actively maintaining it. It is a simple preprocessor, so it is not tied to any other tools like Genshi. I happen to use it with Django, so there is a little bit of Django support, but it should not interfere with most other use cases. [INST] Function and class documentation best practices for Python I am looking for best practices for function/class/module documentation, i.e. comments in the code itself. Ideally I would like a comment template which is both human readable and consumable by Python documentation utilities. I have read the Python documentation on docstrings. I understand this part: The first line should always be a short, concise summary of the object’s purpose. For brevity, it should not explicitly state the object’s name or type, since these are available by other means (except if the name happens to be a verb describing a function’s operation). This line should begin with a capital letter and end with a period. If there are more lines in the documentation string, the second line should be blank, visually separating the summary from the rest of the description. This sentence needs a bit more explanation: The following lines should be one or more paragraphs describing the object’s calling conventions, its side effects, etc. Specifically, I am looking for examples of well-commented functions and classes. [/INST] You should use reStructuredText and check out the Sphinx markup constructs. All the cool kids are doing it. You should follow docstring conventions. i.e. It prescribes the function or method's effect as a command ("Do this", "Return that"). You should avoid repeating yourself unnecessarily or explaining the eminently obvious. Example of what not to do: def do_things(verbose=False): """Do some things. :param verbose: Be verbose (give additional messages). """ raise NotImplementedError If you wanted to describe something non-obvious it would be a different story; for example, that verbose causes messages to occur on stdout or a logging stream. This is not specific to Python, but follows from more hand-wavy ideals such as self-documenting code and code/documentation DRY. Try to avoid mentioning specific types if possible (abstract or interface-like types are generally okay). Mentioning protocols is typically more helpful from a duck typing perspective (i.e. "iterable" instead of set, or "mutable ordered sequence" instead of list). I've seen some code that is very literal and heavy WRT the :rtype: and the :type param: function-level documentation, which I've found to be at odds with the duck typing mentality. [INST] How do I find Wally with Python? Shamelessly jumping on the bandwagon :-) Inspired by How do I find Waldo with Mathematica and the followup How to find Waldo with R, as a new python user I'd love to see how this could be done. It seems that python would be better suited to this than R, and we don't have to worry about licenses as we would with Mathematica or Matlab. In an example like the one below obviously simply using stripes wouldn't work. It would be interesting if a simple rule based approach could be made to work for difficult examples such as this. I've added the [machine-learning] tag as I believe the correct answer will have to use ML techniques, such as the Restricted Boltzmann Machine (RBM) approach advocated by Gregory Klopper in the original thread. There is some RBM code available in python which might be a good place to start, but obviously training data is needed for that approach. At the 2009 IEEE International Workshop on MACHINE LEARNING FOR SIGNAL PROCESSING (MLSP 2009) they ran a Data Analysis Competition: Where's Wally?. Training data is provided in matlab format. Note that the links on that website are dead, but the data (along with the source of an approach taken by Sean McLoone and colleagues can be found here (see SCM link). Seems like one place to start. [/INST] Here's an implementation with mahotas from pylab import imshow import numpy as np import mahotas wally = mahotas.imread('DepartmentStore.jpg') wfloat = wally.astype(float) r,g,b = wfloat.transpose((2,0,1)) Split into red, green, and blue channels. It's better to use floating point arithmetic below, so we convert at the top. w = wfloat.mean(2) w is the white channel. pattern = np.ones((24,16), float) for i in xrange(2): pattern[i::4] = -1 Build up a pattern of +1,+1,-1,-1 on the vertical axis. This is wally's shirt. v = mahotas.convolve(r-w, pattern) Convolve with red minus white. This will give a strong response where the shirt is. mask = (v == v.max()) mask = mahotas.dilate(mask, np.ones((48,24))) Look for the maximum value and dilate it to make it visible. Now, we tone down the whole image, except the region or interest: wally -= .8*wally * ~mask[:,:,None] imshow(wally) And we get ! [INST] How to gracefully deal with failed future feature (__future__) imports due to old interpreter version? How do you gracefully handle failed future feature imports? If a user is running using Python 2.5 and the first statement in my module is: from __future__ import print_function Compiling this module for Python 2.5 will fail with a: File "__init__.py", line 1 from __future__ import print_function SyntaxError: future feature print_function is not defined I'd like to inform the user that they need to rerun the program with Python >= 2.6 and maybe provide some instructions on how to do so. However, to quote PEP 236: The only lines that can appear before a future_statement are: The module docstring (if any). Comments. Blank lines. Other future_statements. So I can't do something like: import __future__ if hasattr(__future__, 'print_function'): from __future__ import print_function else: raise ImportError('Python >= 2.6 is required') Because it yields: File "__init__.py", line 4 from __future__ import print_function SyntaxError: from __future__ imports must occur at the beginning of the file This snippet from the PEP seems to give hope of doing it inline: Q: I want to wrap future_statements in try/except blocks, so I can use different code depending on which version of Python I'm running. Why can't I? A: Sorry! try/except is a runtime feature; future_statements are primarily compile-time gimmicks, and your try/except happens long after the compiler is done. That is, by the time you do try/except, the semantics in effect for the module are already a done deal. Since the try/except wouldn't accomplish what it looks like it should accomplish, it's simply not allowed. We also want to keep these special statements very easy to find and to recognize. Note that you can import __future__ directly, and use the information in it, along with sys.version_info, to figure out where the release you're running under stands in relation to a given feature's status. Ideas? [/INST] "I'd like to inform the user that they need to rerun the program with Python >= 2.6 and maybe provide some instructions on how to do so." Isn't that what a README file is for? Here's your alternative. A "wrapper": a little blob of Python that checks the environment before running your target aop. File: appwrapper.py import sys major, minor, micro, releaselevel, serial = sys.version_info if (major,minor) <= (2,5): # provide advice on getting version 2.6 or higher. sys.exit(2) import app app.main() What "direct import" means. You can examine the contents of __future__. You're still bound by the fact the a from __future__ import print_function is information to the compiler, but you can poke around before importing the module that does the real work. import __future__, sys if hasattr(__future__, 'print_function'): # Could also check sys.version_info >= __future__. print_function.optional import app app.main() else: print "instructions for upgrading" �R[INST] What is the most efficent way to store a list in the Django models? Currently I have a lot of python objects in my code similar to the following: class MyClass(): def __init__(self, name, friends): self.myName = name self.myFriends = [str(x) for x in friends] Now I want to turn this into a Django model, where self.myName is a string field, and self.myFriends is a list of strings. from django.db import models class myDjangoModelClass(): myName = models.CharField(max_length=64) myFriends = ??? # what goes here? Since the list is such a common data structure in python, I sort of expected there to be a Django model field for it. I know I can use a ManyToMany or OneToMany relationship, but I was hoping to avoid that extra indirection in the code. Edit: I added this related question, which people may find useful. [/INST] "Premature optimization is the root of all evil." With that firmly in mind, let's do this! Once your apps hit a certain point, denormalizing data is very common. Done correctly, it can save numerous expensive database lookups at the cost of a little more housekeeping. To return a list of friend names we'll need to create a custom Django Field class that will return a list when accessed. David Cramer posted a guide to creating a SeperatedValueField on his blog. Here is the code: from django.db import models class SeparatedValuesField(models.TextField): __metaclass__ = models.SubfieldBase def __init__(self, *args, **kwargs): self.token = kwargs.pop('token', ',') super(SeparatedValuesField, self).__init__(*args, **kwargs) def to_python(self, value): if not value: return if isinstance(value, list): return value return value.split(self.token) def get_db_prep_value(self, value): if not value: return assert(isinstance(value, list) or isinstance(value, tuple)) return self.token.join([unicode(s) for s in value]) def value_to_string(self, obj): value = self._get_val_from_obj(obj) return self.get_db_prep_value(value) The logic of this code deals with serializing and deserializing values from the database to Python and vice versa. Now you can easily import and use our custom field in the model class: from django.db import models from custom.fields import SeparatedValuesField class Person(models.Model): name = models.CharField(max_length=64) friends = SeparatedValuesField() [INST] How to create a density plot in matplotlib? In R I can create the desired output by doing: data = c(rep(1.5, 7), rep(2.5, 2), rep(3.5, 8), rep(4.5, 3), rep(5.5, 1), rep(6.5, 8)) plot(density(data, bw=0.5)) In python (with matplotlib) the closest I got was with a simple histogram: import matplotlib.pyplot as plt data = [1.5]*7 + [2.5]*2 + [3.5]*8 + [4.5]*3 + [5.5]*1 + [6.5]*8 plt.hist(data, bins=6) plt.show() I also tried the normed=True parameter but couldn't get anything other than trying to fit a gaussian to the histogram. My latest attempts were around scipy.stats and gaussian_kde, following examples on the web, but I've been unsuccessful so far. [/INST] Sven has shown how to use the class gaussian_kde from Scipy, but you will notice that it doesn't look quite like what you generated with R. This is because gaussian_kde tries to infer the bandwidth automatically. You can play with the bandwidth in a way by changing the function covariance_factor of the gaussian_kde class. First, here is what you get without changing that function: However, if I use the following code: import matplotlib.pyplot as plt import numpy as np from scipy.stats import gaussian_kde data = [1.5]*7 + [2.5]*2 + [3.5]*8 + [4.5]*3 + [5.5]*1 + [6.5]*8 density = gaussian_kde(data) xs = np.linspace(0,8,200) density.covariance_factor = lambda : .25 density._compute_covariance() plt.plot(xs,density(xs)) plt.show() I get which is pretty close to what you are getting from R. What have I done? gaussian_kde uses a changable function, covariance_factor to calculate it's bandwidth. Before changing the function, the value returned by covariance_factor for this data was about .5. Lowering this lowered the bandwidth. I had to call _compute_covariance after changing that function so that all of the factors would be calculated correctly. It isn't an exact correspondence with the bw parameter from R, but hopefully it helps you get in the right direction. [INST] What is the best way to repeatedly execute a function every x seconds in Python? I want to repeatedly execute a function in Python every 60 seconds forever (just like an NSTimer in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user. In this question about a cron implemented in Python, the solution appears to effectively just sleep() for x seconds. I don't need such advanced functionality so perhaps something like this would work while True: # Code executed here time.sleep(60) Are there any foreseeable problems with this code? [/INST] Use the sched module, which implements a general purpose event scheduler. import sched, time s = sched.scheduler(time.time, time.sleep) def do_something(sc): print "Doing stuff..." # do your stuff s.enter(60, 1, do_something, (sc,)) s.enter(60, 1, do_something, (s,)) s.run() AK[INST] How to find a thread id in Python I have a multi-threading Python program, and a utility function, writeLog(message), that writes out a timestamp followed by the message. Unfortunately, the resultant log file gives no indication of which thread is generating which message. I would like writeLog() to be able to add something to the message to identify which thread is calling it. Obviously I could just make the threads pass this information in, but that would be a lot more work. Is there some thread equivalent of os.getpid() that I could use? [/INST] thread.get_ident() works, though thread is deprecated, or threading.current_thread() (or threading.currentThread() for Python < 2.6). [INST] Python Sets vs Lists In Python, which data structure is more efficient/speedy? Assuming that order is not important to me and I would be checking for duplicates anyway, is a Python set slower than a Python list? [/INST] It depends on what you are intending to do with it. Sets are significantly faster when it comes to determining if an object is present in the set (as in x in s), but are slower than lists when it comes to iterating over their contents. You can use the timeit module to see which is faster for your situation. [INST] How can I make one python file run another? How I can make one python file run the other? For example I have to two .py files. I want one file to be run, and then have it run the other .py file. [/INST] There are more than a few ways. I'll list them in order of inverted preference (i.e., best first, worst last): Treat it like a module: import file. This is good because it's secure, fast, and maintainable. Code gets reused as it's supposed to be done. Most Python libraries run using multiple methods stretched over lots of files. Highly recommended. Note that if your file is called file.py, your import should not include the .py extension at the end. The infamous (and unsafe) exec command: execfile('file.py'). Insecure, hacky, usually the wrong answer. Avoid where possible. Spawn a shell process: os.system('python file.py'). Use when desperate. [INST] Is there an easy way to pickle a python function (or otherwise serialize its code)? I'm trying to transfer a transfer a function across a network connection (using asyncore). Is there an easy way to serialize a python function (one that, in this case at least, will have no side affects) for transfer like this? I would ideally like to have a pair of functions similar to these: def transmit(func): obj = pickle.dumps(func) [send obj across the network] def receive(): [receive obj from the network] func = pickle.loads(s) func() [/INST] You could serialise the function bytecode and then reconstruct it on the caller. The marshal module can be used to serialise code objects, which can then be reassembled into a function. ie: import marshal def foo(x): return x*x code_string = marshal.dumps(foo.func_code) Then in the remote process (after transferring code_string): import marshal, types code = marshal.loads(code_string) func = types.FunctionType(code, globals(), "some_func_name") func(10) # gives 100 A few caveats: marshal's format (any python bytecode for that matter) may not be compatable between major python versions. Will only work for cpython implementation. If the function references globals (including imported modules, other functions etc) that you need to pick up, you'll need to serialise these too, or recreate them on the remote side. My example just gives it the remote process's global namespace. You'll probably need to do a bit more to support more complex cases, like closures or generator functions. [INST] python: urllib2 how to send cookie with urlopen request I am trying to use urllib2 to open url and to send specific cookie text to the server. E.g. I want to open site Solve chess problems, with a specific cookie, e.g. search=1. How do I do it? I am trying to do the following: import urllib2 (need to add cookie to the request somehow) urllib2.urlopen("http://chess-problems.prg") Thanks in advance [/INST] Cookie is just another HTTP header. import urllib2 opener = urllib2.build_opener() opener.addheaders.append(('Cookie', 'cookiename=cookievalue')) f = opener.open("http://example.com/") See urllib2 examples for other ways how to add HTTP headers to your request. There are more ways how to handle cookies. Some modules like cookielib try to behave like web browser - remember what cookies did you get previously and automatically send them again in following requests. [INST] The problem with installing PIL using virtualenv or buildout When I install PIL using easy_install or buildout it installs in such way, that I must do 'import Image', not 'from PIL import Image'. However, if I do "apt-get install python-imaging" or use "pip -E test_pil install PIL", all work fine. Here are examples of how I trying to install PIL using virtualenv: # virtualenv --no-site-packages test_pil # test_pil/bin/easy_install PIL # test_pil/bin/python Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PIL Traceback (most recent call last): File "", line 1, in ImportError: No module named PIL I see, that easy_install pack PIL into the Egg, and PIP does not. Same thing with buildbot, it uses eggs. How could I install PIL properly, using easy_install or buildout? [/INST] The PIL version packaged on pypi (by the author) is incompatible with setuptools and thus not easy_installable. People have created easy_installable versions elsewhere. Currently, you need to specify a find-links URL and use pip get a good package: pip install --no-index -f http://dist.plone.org/thirdparty/ -U PIL By using pip install with the --no-index you avoid running the risk of finding the PyPI (non-fixed) original of PIL. If you were to use easy_install, you must use a direct link to the source tarball of a corrected version; easy_install stubbornly still uses the PyPI link over the find-links URL: easy_install http://dist.plone.org/thirdparty/PIL-1.1.7.tar.gz To include PIL in a buildout, either specify the egg with the same version pin or use a versions section: [buildout] parts = find-links = http://dist.plone.org/thirdparty/ eggs = PIL versions = versions [versions] PIL = 1.1.7 Edit March 2011: Fixes to address the packaging issues have been merged into PIL's development tree now, so this workaround may soon be obsolete. Edit February 2013: Just use Pillow and be done with it. :-) Clearly waiting for the original package to be fixed has not paid off. [INST] Getting MAC Address I need a cross platform method of determining the MAC address of a computer at run time. For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output. I don't like using a package that only works on one OS, and parsing the output of another program doesn't seem very elegant not to mention error prone. Does anyone know a cross platform method (windows and linux) method to get the MAC address? If not, does anyone know any more elegant methods then those I listed above? [/INST] Python 2.5 includes an uuid implementation which (in at least one version) needs the mac address. You can import the mac finding function into your own code easily: from uuid import getnode as get_mac mac = get_mac() The return value is the mac address as 48 bit integer. [INST] Capture keyboardinterrupt in Python without try-except Is there some way in Python to capture KeyboardInterrupt event without putting all the code inside a try-except statement? I want to cleanly exit without trace if user presses ctrl-c. [/INST] Yes, you can install an interrupt handler using the signal module. import signal import sys import time def signal_handler(signal, frame): print 'You pressed Ctrl+C!' sys.exit(0) signal.signal(signal.SIGINT, signal_handler) print 'Press Ctrl+C' while True: time.sleep(1) [INST] Reloading module giving NameError: name 'reload' is not defined I'm trying to reload a module I have already imported in Python 3. I know that you only need to import once and executing the import command again won't do anything. Executing reload(foo) is giving this error: Traceback (most recent call last): File "(stdin)", line 1, in (module) ... NameError: name 'reload' is not defined What does the error mean? [/INST] reload is a builtin in Python 2, but not in Python 3, so the error you're seeing is expected. If you truly must reload a module in Python 3, you should use either: importlib.reload for Python 3.4 and above imp.reload for Python 3.0 to 3.3 (deprecated since Python 3.4 in favour of importlib) [INST] How to list only top level directories in Python? I want to be able to list only the directories inside some folder. This means I don't want filenames listed, nor do I want additional sub-folders. Let's see if an example helps. In the current directory we have: >>> os.listdir(os.getcwd()) ['cx_Oracle-doc', 'DLLs', 'Doc', 'include', 'Lib', 'libs', 'LICENSE.txt', 'mod_p ython-wininst.log', 'NEWS.txt', 'pymssql-wininst.log', 'python.exe', 'pythonw.ex e', 'README.txt', 'Removemod_python.exe', 'Removepymssql.exe', 'Scripts', 'tcl', 'Tools', 'w9xpopen.exe'] However, I don't want filenames listed. Nor do I want sub-folders such as \Lib\curses. Essentially what I want works with the following: >>> for root, dirnames, filenames in os.walk('.'): ... print dirnames ... break ... ['cx_Oracle-doc', 'DLLs', 'Doc', 'include', 'Lib', 'libs', 'Scripts', 'tcl', 'Tools'] However, I'm wondering if there's a simpler way of achieving the same results. I get the impression that using os.walk only to return the top level is inefficient/too much. [/INST] os.walk('.').next()[1] [INST] _csv.Error: field larger than field limit (131072) I have a script reading in a csv file with very huge fields: # example from http://docs.python.org/3.3/library/csv.html?highlight=csv%20dictreader#examples import csv with open('some.csv', newline='') as f: reader = csv.reader(f) for row in reader: print(row) However, this throws the following error on some csv files: _csv.Error: field larger than field limit (131072) [/INST] The csv file might contain very huge fields, therefore increase the field_size_limit: import sys import csv csv.field_size_limit(sys.maxsize) sys.maxsize works for Python 2.x and 3.x. sys.maxint would only work with Python 2.x (SO: what-is-sys-maxint-in-python-3) Update As Geoff pointed out, the code above might result in the following error: OverflowError: Python int too large to convert to C long. To circumvent this, you could use the following quick and dirty code: import sys import csv maxInt = sys.maxsize decrement = True while decrement: # decrease the maxInt value by factor 10 # as long as the OverflowError occurs. decrement = False try: csv.field_size_limit(maxInt) except OverflowError: maxInt = int(maxInt/10) decrement = True [INST] Format numbers to strings in Python I need to find out how to format numbers as strings. My code is here: return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm Hours and minutes are integers, and seconds is a float. the str() function will convert all of these numbers to the tenths (0.1) place. So instead of my string outputting "5:30:59.07 pm", it would display something like "5.0:30.0:59.1 pm". Bottom line, what library / function do I need to do this for me? [/INST] Formatting in Python is done via the string formatting (%) operator: "%02d:%02d:%02d" % (hours, minutes, seconds) /Edit: There's also strftime. [INST] How to loop backwards in python? I'm talking about doing something like: for(i=n; i>=1; --i) { //do something with i } I can think of some ways to do so in python (creating a list of range(1,n+1) and reverse it, using while and --i, ...) but I wondered if there's a more elegant way to do it. Is there? EDIT: Some suggested I use xrange() instead of range() since range returns a list while xrange returns an iterator. But in Python 3 (which I happen to use) range() returns an iterator and xrange doesn't exist. [/INST] range() and xrange() take a third parameter that specifies a step. So you can do the following. range(10, 0, -1) Which gives [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] But for iteration, you should really be using xrange instead. So, xrange(10, 0, -1) [INST] How to I disable and re-enable console logging in Python? I am using python logging module and I want to disable the console logging for some time but it doesn't work. #!/usr/bin/python import logging logger = logging.getLogger() # this gets the root logger # ... here I add my own handlers #logger.removeHandler(sys.stdout) #logger.removeHandler(sys.stderr) print logging.handlers # this will print [] # but I may have other handlers there that I want to keep logger.debug("bla bla") The above code displays the "bla bla" on stdout and I don't know how can I safely disable the console handler. How can I bu sure that I temporary remove the console streamhandler and not another one? [/INST] I found a solution for this: logger = logging.getLogger('my-logger') logger.propagate = False # now if you use logger it will not log to console. This will prevent logging from being send to the upper logger that includes the console logging. [INST] How to check whether a pandas DataFrame is empty? How to check whether a pandas DataFrame is empty? In my case I want to print some message in terminal if the DataFrame is empty. [/INST] You can use the attribute df.empty to check whether it's empty or not: if df.empty: print('DataFrame is empty!') Source: Pandas Documentation [INST] How to serialize SqlAlchemy result to JSON? Django has some good automatic serialization of ORM models returned from DB to JSON format. How to serialize SQLAlchemy query result to JSON format? I tried jsonpickle.encode but it encodes query object itself. I tried json.dumps(items) but it returns TypeError: is not JSON serializable Is it really so hard to serialize SQLAlchemy ORM objects to JSON /XML? Isn't there any default serializer for it? It's very common task to serialize ORM query results nowadays. What I need is just to return JSON or XML data representation of SQLAlchemy query result. SQLAlchemy objects query result in JSON/XML format is needed to be used in javascript datagird (JQGrid http://www.trirand.com/blog/) [/INST] You could just output your object as a dict: class User: def as_dict(self): return {c.name: getattr(self, c.name) for c in self.__table__.columns} And then you use User.as_dict() to serialize your object. As explained in Convert sqlalchemy row object to python dict [INST] Python - why use "self" in a class? How do these 2 classes differ? class A(): x=3 class B(): def __init__(self): self.x=3 Is there any significant difference? [/INST] A.x is a class variable. B's self.x is an instance variable. i.e. A's x is shared between instances. It would be easier to demonstrate the difference with something that can be modified like a list: #!/usr/bin/env python class A: x = [] def add(self): self.x.append(1) class B: def __init__(self): self.x = [] def add(self): self.x.append(1) x = A() y = A() x.add() y.add() print "A's x:",x.x x = B() y = B() x.add() y.add() print "B's x:",x.x Output A's x: [1, 1] B's x: [1] [INST] Update value of a nested dictionary of varying depth I'm looking for a way to update dict dictionary1 with the contents of dict update wihout overwriting levelA dictionary1={'level1':{'level2':{'levelA':0,'levelB':1}}} update={'level1':{'level2':{'levelB':10}}} dictionary1.update(update) print dictionary1 {'level1': {'level2': {'levelB': 10}}} I know that update deletes the values in level2 because it's updating the lowest key level1. How could I tackle this, given that dictionary1 and update can have any length? [/INST] @FM's answer has the right general idea, i.e., a recursive solution, but somewhat peculiar coding and at least one bug. I'd recommend, instead: Python 2: import collections def update(d, u): for k, v in u.iteritems(): if isinstance(v, collections.Mapping): r = update(d.get(k, {}), v) d[k] = r else: d[k] = u[k] return d Python 3: import collections def update(d, u): for k, v in u.items(): if isinstance(v, collections.Mapping): r = update(d.get(k, {}), v) d[k] = r else: d[k] = u[k] return d The bug shows up when the "update" has a k, v item where v is a dict and k is not originally a key in the dictionary being updated -- @FM's code "skips" this part of the update (because it performs it on an empty new dict which isn't saved or returned anywhere, just lost when the recursive call returns). My other changes are minor: there is no reason for the if/else construct when .get does the same job faster and cleaner, and isinstance is best applied to abstract base classes (not concrete ones) for generality. [INST] Is there a way to (pretty) print the entire Pandas Series / DataFrame? I work with Series and DataFrames on the terminal a lot. The default __repr__ for a Series returns a reducted sample, with some head and tail values, but the rest missing. Is there a builtin way to pretty-print the entire Series / DataFrame? Ideally, it would support proper alignment, perhaps borders between columns, and maybe even color-coding for the different columns. [/INST] You can also use the option_context, with one or more options: with pd.option_context('display.max_rows', 999, 'display.max_columns', 3): print df This will automatically return the options to their previous values. [INST] Overriding urllib2.HTTPError or urllib.error.HTTPError and reading response HTML anyway I receive a 'HTTP Error 500: Internal Server Error' response, but I still want to read the data inside the error HTML. With Python 2.6, I normally fetch a page using: import urllib2 url = "http://google.com" data = urllib2.urlopen(url) data = data.read() When attempting to use this on the failing URL, I get the exception urllib2.HTTPError: urllib2.HTTPError: HTTP Error 500: Internal Server Error How can I fetch such error pages (with or without urllib2), all while they are returning Internal Server Errors? Note that with Python 3, the corresponding exception is urllib.error.HTTPError. [/INST] The HTTPError is a file-like object. You can catch it and then read its contents. try: resp = urllib2.urlopen(url) contents = resp.read() except urllib2.HTTPError, error: contents = error.read() [INST] How to write the Fibonacci Sequence in Python I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 & 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening. startNumber = int(raw_input("Enter the start number here ")) endNumber = int(raw_input("Enter the end number here ")) def fib(n): if n < 2: return n return fib(n-2) + fib(n-1) print map(fib, range(startNumber, endNumber)) Someone pointed out in my Part II (which was closed for being a duplicate - http://stackoverflow.com/questions/504193/how-to-write-the-fibonacci-sequence-in-python-part-ii) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome. I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?). What I have so far is no actual coding but rather: Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence. I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well. [/INST] There is lots of information about the Fibonacci Sequence on wikipedia and on wolfram. A lot more than you may need. Anyway it is a good thing to learn how to use these resources to find (quickly if possible) what you need. Write Fib sequence formula to infinite In math, it's given in a recursive form: In programming, infinite doesn't exist. You can use a recursive form translating the math form directly in your language, for example in Python it becomes: def F(n): if n == 0: return 0 elif n == 1: return 1 else: return F(n-1)+F(n-2) Try it in your favourite language and see that this form requires a lot of time as n gets bigger. In fact, this is O(2n) in time. Go on on the sites I linked to you and will see this (on wolfram): This one is pretty easy to implement and very, very fast to compute, in Python: from math import sqrt def F(n): return ((1+sqrt(5))**n-(1-sqrt(5))**n)/(2**n*sqrt(5)) An other way to do it is following the definition (from wikipedia): The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, yielding the sequence 0, 1, 1, 2, 3, 5, 8, etc. If your language supports iterators you may do something like: def F(): a,b = 0,1 yield a yield b while True: a, b = b, a + b yield b Display startNumber to endNumber only from Fib sequence. Once you know how to generate Fibonacci Numbers you just have to cycle trough the numbers and check if they verify the given conditions. Suppose now you wrote a f(n) that returns the n-th term of the Fibonacci Sequence (like the one with sqrt(5) ) In most languages you can do something like: def SubFib(startNumber, endNumber): n = 0 cur = f(n) while cur <= endNumber: if startNumber <= cur: print cur n += 1 cur = f(n) In python I'd use the iterator form and go for: def SubFib(startNumber, endNumber): for cur in F(): if cur > endNumber: return if cur >= startNumber: yield cur for i in SubFib(10, 200): print i My hint is to learn to read what you need. Project Euler (google for it) will train you to do so :P Good luck and have fun! [INST] Best method for reading newline delimited files in Python and discarding the newlines? I am trying to determine the best way to handle getting rid of newlines when reading in newline delimited files in Python. What I've come up with is the following code, include throwaway code to test. import os def getfile(filename,results): f = open(filename) filecontents = f.readlines() for line in filecontents: foo = line.strip('\n') results.append(foo) return results blahblah = [] getfile('/tmp/foo',blahblah) for x in blahblah: print x Suggestions? [/INST] lines = open(filename).read().splitlines() [INST] Is there a Rake equivalent in Python? Rake is a software build tool written in Ruby (like ant or make), and so all its files are written in this language. Does something like this exist in Python? [/INST] Invoke — Fabric without the SSH dependencies. The Fabric roadmap discusses that Fabric 1.x will be split into three portions: Invoke — The non-SSH task execution. Fabric 2.x — The remote execution and deployment library that utilizes Invoke. Patchwork — The "common deployment/sysadmin operations, built on Fabric." Invoke is a Python (2.6+ and 3.3+) task execution tool & library, drawing inspiration from various sources to arrive at a powerful & clean feature set. Below are a few descriptive statements from Invoke's website: Invoke is a Python (2.6+ and 3.3+) task execution tool & library, drawing inspiration from various sources to arrive at a powerful & clean feature set. Like Ruby’s Rake tool and Invoke’s own predecessor Fabric 1.x, it provides a clean, high level API for running shell commands and defining/organizing task functions from a tasks.py file. [INST] Can I install Python 3.x and 2.x on the same computer? I'm running Windows and the shell/OS automatically runs Python based on the registry settings when you run a program on the command line. Will this break if I install a 2.x and 3.x version of Python on the same machine? I want to play with Python 3 while still being able to run 2.x scripts on the same machine. [/INST] The official solution for coexistence seems to be the Python Launcher for Windows, PEP 397 which was included in Python 3.3.0. Installing the release dumps py.exe and pyw.exe launchers into %SYSTEMROOT% (C:\Windows) which is then associated with py and pyw scripts, respectively. In order to use the new launcher (without manually setting up your own associations to it), leave the "Register Extensions" option enabled. I'm not quite sure why, but on my machine it left Py 2.7 as the "default" (of the launcher). Running scripts by calling them directly from the command line will route them through the launcher and parse the shebang (if it exists). You can also explicitly call the launcher and use switches: py -3 mypy2script.py. All manner of shebangs seem to work #!C:\Python33\python.exe #!python3 #!/usr/bin/env python3 as well as wanton abuses #! notepad.exe [INST] UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1 I'm having a few issues trying to encode a string to UTF-8. I've tried numerous things, including using string.encode('utf-8') and unicode(string), but I get the error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1: ordinal not in range(128) This is my string: (。・ω・。)ノ I don't see what's going wrong, any idea? Edit: The problem is that printing the string as it is does not show properly. Also, this error when I try to convert it: Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> s = '(\xef\xbd\xa1\xef\xbd\xa5\xcf\x89\xef\xbd\xa5\xef\xbd\xa1)\xef\xbe\x89' >>> s1 = s.decode('utf-8') >>> print s1 Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-5: ordinal not in range(128) [/INST] This is to do with the encoding of your terminal not being set to UTF-8. Here is my terminal $ echo $LANG en_GB.UTF-8 $ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> s = '(\xef\xbd\xa1\xef\xbd\xa5\xcf\x89\xef\xbd\xa5\xef\xbd\xa1)\xef\xbe\x89' >>> s1 = s.decode('utf-8') >>> print s1 (。・ω・。)ノ >>> On my terminal the example works with the above, but if I get rid of the LANG setting then it won't work $ unset LANG $ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> s = '(\xef\xbd\xa1\xef\xbd\xa5\xcf\x89\xef\xbd\xa5\xef\xbd\xa1)\xef\xbe\x89' >>> s1 = s.decode('utf-8') >>> print s1 Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-5: ordinal not in range(128) >>> Consult the docs for your linux variant to discover how to make this change permanent. [INST] Unit testing with django-celery? I am trying to come up with a testing methodology for our django-celery project. I have read the notes in the documentation, but it didn't give me a good idea of what to actually do. I am not worried about testing the tasks in the actual daemons, just the functionality of my code. Mainly I am wondering: How can we bypass task.delay() during the test (I tried setting CELERY_ALWAYS_EAGER = True but it made no difference)? How do we use the test settings that are recommended (if that is the best way) without actually changing our settings.py? Can we still use manage.py test or do we have to use a custom runner? Overall any hints or tips for testing with celery would be very helpful. [/INST] I like to use the override_settings decorator on tests which need celery results to complete. from django.test import TestCase from django.test.utils import override_settings from myapp.tasks import mytask class AddTestCase(TestCase): @override_settings(CELERY_EAGER_PROPAGATES_EXCEPTIONS=True, CELERY_ALWAYS_EAGER=True, BROKER_BACKEND='memory') def test_mytask(self): result = mytask.delay() self.assertTrue(result.successful()) If you want to apply this to all tests you can use the celery test runner as described at http://docs.celeryproject.org/en/2.5/django/unit-testing.html which basically sets these same settings except (BROKER_BACKEND = 'memory'). In settings: TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner' Look at the source for CeleryTestSuiteRunner and it's pretty clear what's happening. [INST] How to send a "multipart/form-data" with requests in python? How to send a multipart/form-data with requests in python? How to send a file, I understand, but how to send the form data by this method can not understand. [/INST] Basically, if you specify a files parameter (a dictionary), then requests will send a multipart/form-data POST instead of a application/x-www-form-urlencoded POST. You are not limited to using actual files in that dictionary, however: >>> import requests >>> response = requests.post('http://httpbin.org/post', files=dict(foo='bar')) >>> response.status_code 200 and httpbin.org lets you know what headers you posted with; in response.json() we have: >>> from pprint import pprint >>> pprint(response.json()['headers']) {u'Accept': u'*/*', u'Accept-Encoding': u'gzip, deflate, compress', u'Connection': u'close', u'Content-Length': u'141', u'Content-Type': u'multipart/form-data; boundary=33b4531a79be4b278de5f5688fab7701', u'Host': u'httpbin.org', u'User-Agent': u'python-requests/2.2.1 CPython/2.7.6 Darwin/13.2.0', u'X-Request-Id': u'eaf6baf8-fc3d-456b-b17d-e8219ccef1b1'} files can also be a list of two-value tuples, if you need ordering and/or multiple fields with the same name: requests.post('http://requestb.in/xucj9exu', files=(('foo', 'bar'), ('spam', 'eggs'))) If you specify both files and data, then it depends on the value of data what will be used to create the POST body. If data is a string, only it willl be used; otherwise both data and files are used, with the elements in data listed first. [INST] What is the pythonic way to detect the last element in a python 'for' loop? I'd like to know the best way (more compact and "pythonic" way) to do a special treatment for the last element in a for loop. There is a piece of code that should be called only between elements, being suppressed in the last one. Here is how I currently do it: for i, data in enumerate(data_list): code_that_is_done_for_every_element if i != len(data_list) - 1: code_that_is_done_between_elements Is there any better way? Note: I don't want to make it with hacks such as using reduce ;) [/INST] Most of the times it is easier (and cheaper) to make the first iteration the special case instead of the last one: first = True for data in data_list: if first: first = False else: between_items() item() This will work for any iterable, even for those that have no len(): file = open('/path/to/file') for line in file: process_line(line) # No way of telling if this is the last line! Apart from that, I don't think there is a generally superior solution as it depends on what you are trying to do. For example, if you are building a string from a list, it's naturally better to use str.join() than using a for loop “with special case”. Using the same principle but more compact: for i, line in enumerate(data_list): if i > 0: between_items() item() Looks familiar, doesn't it? :) For @ofko, and others who really need to find out if the current value of an iterable without len() is the last one, you will need to look ahead: def lookahead(iterable): """Pass through all values from the given iterable, augmented by the information if there are more values to come after the current one (True), or if it is the last value (False). """ # Get an iterator and pull the first value. it = iter(iterable) last = next(it) # Run the iterator to exhaustion (starting from the second value). for val in it: # Report the *previous* value (more to come). yield last, True last = val # Report the last value. yield last, False Then you can use it like this: >>> for i, has_more in lookahead(range(3)): ... print(i, has_more) 0 True 1 True 2 False [INST] Static files in Flask - robot.txt, sitemap.xml (mod_wsgi) Is there any clever solution to store static files in Flask's application root directory. robots.txt and sitemap.xml are expected to be found in /, so my idea was to create routes for them: @app.route('/sitemap.xml', methods=['GET']) def sitemap(): response = make_response(open('sitemap.xml').read()) response.headers["Content-type"] = "text/plain" return response There must be something more convenient :) [/INST] @vonPetrushev is right, in production you'll want to serve static files via nginx or apache, but for development it's nice to have your dev environment simple having your python app serving up the static content as well so you don't have to worry about changing configurations and multiple projects. To do that, you'll want to use the SharedDataMiddleware. from flask import Flask app = Flask(__name__) ''' Your app setup and code ''' if app.config['DEBUG']: from werkzeug import SharedDataMiddleware import os app.wsgi_app = SharedDataMiddleware(app.wsgi_app, { '/': os.path.join(os.path.dirname(__file__), 'static') }) This example assumes your static files are in the folder "static", adjust to whatever fits your environment. [INST] sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings Using SQLite3 in Python, I am trying to store a compressed version of a snippet of UTF-8 HTML code. Code looks like this: ... c = connection.cursor() c.execute('create table blah (cid integer primary key,html blob)') ... c.execute('insert or ignore into blah values (?, ?)',(cid, zlib.compress(html))) At which point at get the error: sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. If I use 'text' rather than 'blob' and don't compress the HTML snippet, it works all fine (db is to large though). When I use 'blob' and compress via Python zlib library, I get the above error message. I looked around but couldn't find a simple answer for this one. [/INST] If you want to use 8-bit strings instead of unicode string in sqlite3, set approptiate text_factory for sqlite connection: connection = sqlite3.connect(...) connection.text_factory = str A[INST] How to Customize the time format for Python logging? I am new to Python's logging package and plan to use it for my project. I would like to customize the time format to my taste. Here is a short code I copied from a tutorial: import logging # create logger logger = logging.getLogger("logging_tryout2") logger.setLevel(logging.DEBUG) # create console handler and set level to debug ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) # create formatter formatter = logging.Formatter("%(asctime)s;%(levelname)s;%(message)s") # add formatter to ch ch.setFormatter(formatter) # add ch to logger logger.addHandler(ch) # "application" code logger.debug("debug message") logger.info("info message") logger.warn("warn message") logger.error("error message") logger.critical("critical message") And here is the output: 2010-07-10 10:46:28,811;DEBUG;debug message 2010-07-10 10:46:28,812;INFO;info message 2010-07-10 10:46:28,812;WARNING;warn message 2010-07-10 10:46:28,812;ERROR;error message 2010-07-10 10:46:28,813;CRITICAL;critical message I would like to shorten the time format to just: '2010-07-10 10:46:28', dropping the mili-second suffix. I looked at the Formatter.formatTime, but confused. I appreciate your help to achieve my goal. Thank you. [/INST] From the official documentation regarding the Formatter class: The constructor takes two optional arguments: a message format string and a date format string. So change # create formatter formatter = logging.Formatter("%(asctime)s;%(levelname)s;%(message)s") to # create formatter formatter = logging.Formatter("%(asctime)s;%(levelname)s;%(message)s", "%Y-%m-%d %H:%M:%S") [INST] Pandas - how to get the data frame index as an array Do you know how to get the index column of an dataframe as an array? I have a list of accession numbers in the "Accession" column of a CSV file, which I imported into Pandas, and during the import, I set the index to the "Accession" column. Now, I need the "Accession" column to be a set of labels in a later step, but I don't know how to extract it standalone. [/INST] You should use the values attribute: In [1]: df = pd.DataFrame(index=['a', 'b']) In [2]: df.index.values Out[2]: array(['a', 'b'], dtype=object) This accesses how the data is already stored, so there's no need for a conversion. Note: This attribute is also available for many other pandas' objects. [INST] Parsing HTML using Python I'm looking for an HTML Parser module for Python that can help me get the tags in the form of Python lists/dictionaries/objects. If I have a document of the form: Heading
Something here
Something else
then it should give me a way to access the nested tags via the name or id of the HTML tag so that I can basically ask it to get me the content/text in the div tag with class='container' contained within the body tag, or something similar. If you've used Firefox's "Inspect element" feature (view HTML) you would know that it gives you all the tags in a nice nested manner like a tree. I'd prefer a built-in module but that might be asking a little too much. I went through a lot of questions on Stack Overflow and a few blogs on the internet and most of them suggest BeautifulSoup or lxml or HTMLParser but few of these detail the functionality and simply end as a debate over which one is faster/more efficent. [/INST] So that I can basically ask it to get me the content/text in the div tag with class='container' contained within the body tag, Or something similar. try: from BeautifulSoup import BeautifulSoup except ImportError: from bs4 import BeautifulSoup html = #the HTML code you've written above parsed_html = BeautifulSoup(html) print parsed_html.body.find('div', attrs={'class':'container'}).text You don't need performance descriptions I guess - just read how BeautifulSoup works. Look at its official documentation.
[INST] open file for both reading and writing? Is there a way to open a file for both reading and writing? I thought "r+" was for that. Because I'm working on binary files I tried the mode "r+b", but I get an error that the file is not open for reading. [/INST] Here's how you read a file, and then write to it (overwriting any existing data), without closing and reopening: with open(filename, "r+") as f: data = f.read() f.seek(0) f.write(output) f.truncate() [INST] List attributes of an object Is there a way to grab a list of attributes that exist on instances of a class? (This class is just an bland example, it is not my task at hand.) class new_class(): def __init__(self, number): self.multi = int(number) * 2 self.str = str(number) a = new_class(2) print(', '.join(a.SOMETHING)) The desired result is that "multi, str" will be output. I want this to see the current attributes from various parts of a script. I am using Python 3. [/INST] >>> class new_class(): ... def __init__(self, number): ... self.multi = int(number) * 2 ... self.str = str(number) ... >>> a = new_class(2) >>> a.__dict__ {'multi': 4, 'str': '2'} >>> a.__dict__.keys() dict_keys(['multi', 'str']) You may also find pprint helpful. [INST] Python: most idiomatic way to convert None to empty string? What is the most idiomatic way to do the following? def xstr(s): if s is None: return '' else: return s s = xstr(a) + xstr(b) update: I'm incorporating Tryptich's suggestion to use str(s), which makes this routine work for other types besides strings. I'm awfully impressed by Vinay Sajip's lambda suggestion, but I want to keep my code relatively simple. def xstr(s): if s is None: return '' else: return str(s) [/INST] def xstr(s): return '' if s is None else str(s) [INST] Python: TypeError: cannot concatenate 'str' and 'int' objects I have this python program that adds strings to integers: a = raw_input("Enter a: ") b = raw_input("Enter b: ") print "a + b as strings: " + a + b a = int(a) b = int(b) c = a + b str(c) print "a + b as integers: " + c I get this error: Python: TypeError: cannot concatenate 'str' and 'int' objects How can I add strings to integers? [/INST] There are two ways to fix the problem which is caused by the last print statement. You can assign the result of the str(c) call to c as correctly shown by @jamylak and then concatenate all of the strings, or you can replace the last print simply with this: print "a + b as integers: ", c # note the comma here in which case str(c) isn't necessary and can be deleted. Output of sample run: Enter a: 3 Enter b: 7 a + b as strings: 37 a + b as integers: 10 with: a = raw_input("Enter a: ") b = raw_input("Enter b: ") print "a + b as strings: " + a + b # + everywhere is ok since all are strings a = int(a) b = int(b) c = a + b print "a + b as integers: ", c [INST] jsonify a SQLAlchemy result set in Flask I'm trying to jsonify a SQLAlchemy result set in Flask/Python. The Flask mailing list suggested the following method http://librelist.com/browser//flask/2011/2/16/jsonify-sqlalchemy-pagination-collection-result/#04a0754b63387f87e59dda564bde426e : return jsonify(json_list = qryresult) However I'm getting the following error back: TypeError: is not JSON serializable What am I overlooking here? I have found this question: How to serialize SqlAlchemy result to JSON? which seems very similar however I didn't know whether Flask had some magic to make it easier as the mailing list post suggested. Edit: for clarification, this is what my model looks like class Rating(db.Model): __tablename__ = 'rating' id = db.Column(db.Integer, primary_key=True) fullurl = db.Column(db.String()) url = db.Column(db.String()) comments = db.Column(db.Text) overall = db.Column(db.Integer) shipping = db.Column(db.Integer) cost = db.Column(db.Integer) honesty = db.Column(db.Integer) communication = db.Column(db.Integer) name = db.Column(db.String()) ipaddr = db.Column(db.String()) date = db.Column(db.String()) def __init__(self, fullurl, url, comments, overall, shipping, cost, honesty, communication, name, ipaddr, date): self.fullurl = fullurl self.url = url self.comments = comments self.overall = overall self.shipping = shipping self.cost = cost self.honesty = honesty self.communication = communication self.name = name self.ipaddr = ipaddr self.date = date [/INST] It seems that you actually haven't executed your query. Try following: return jsonify(json_list = qryresult.all()) [Edit]: Problem with jsonify is, that usually the objects cannot be jsonified automatically. Even Python's datetime fails ;) What I have usually done, is to add an extra property (like serialize) to classes that need to be serialized: def dump_datetime(value): """Deserialize datetime object into string form for JSON processing.""" if value is None: return None return [value.strftime("%Y-%m-%d"), value.strftime("%H:%M:%S")] class Foo(db.Model): # ... SQLAlchemy defs here.. def __init__(self, ...): # self.foo = ... pass @property def serialize(self): """Return object data in easily serializeable format""" return { 'id' : self.id, 'modified_at': dump_datetime(self.modified_at), # This is an example how to deal with Many2Many relations 'many2many' : self.serialize_many2many } @property def serialize_many2many(self): """ Return object's relations in easily serializeable format. NB! Calls many2many's serialize property. """ return [ item.serialize for item in self.many2many] And now for views I can just do: return jsonify(json_list=[i.serialize for i in qryresult.all()]) Hope this helps ;) [INST] How do I reliably split a string in Python? In Perl I can do: my ($x, $y) = split /:/, $str; And it will work whether or not the string contains the pattern. In Python, however this won't work: a, b = "foo".split(":") # ValueError: not enough values to unpack What's the canonical way to prevent errors in such cases? [/INST] If you're splitting into just two parts (like in your example) you can use str.partition() to get a guaranteed argument unpacking size of 3: >>> a, sep, b = "foo".partition(":") >>> a, sep, b ('foo', '', '') str.partition() always returns a 3-tuple, whether the separator is found or not. Another alternative for Python 3 is to use extended unpacking, as described in @cdarke's answer: >>> a, *b = "foo".split(":") >>> a, b ('foo', []) This assigns the first split item to a and the list of remaining items (if any) to b. [INST] python: how to convert a string to utf-8 I have a browser which sends utf-8 characters to my python server, but when I retrieve it from the query string, the encoding that python returns is ascii I think, how can I convert the plain string to utf-8? NOTE: the string passed from the web is already UTF-8 encoded, I just want to make python to treat it as UTF-8 not ascii(otherwise there are some errors pop up) [/INST] >>> plain_string = "Hi!" >>> unicode_string = u"Hi!" >>> type(plain_string), type(unicode_string) (, ) ^ This is the difference between a byte string (plain_string) and a unicode string. >>> s = "Hello!" >>> u = unicode(s, "utf-8") ^ Converting to unicode and specifying the encoding. [INST] Python: how to add the contents of an iterable to a set? What is the "one [...] obvious way" to add all items of an iterable to an existing set? [/INST] by set, do you mean set? >>> foo = set(range(0, 4)) >>> foo set([0, 1, 2, 3]) >>> foo.update(range(2, 6)) >>> foo set([0, 1, 2, 3, 4, 5]) [INST] How do I read image data from a URL in Python? What I'm trying to do is fairly simple when we're dealing with a local file, but the problem comes when I try to do this with a remote URL. Basically, I'm trying to create a PIL image object from a file pulled from a URL. Sure, I could always just fetch the URL and store it in a temp file, then open it into an image object, but that feels very inefficient. Here's what I have: Image.open(urlopen(url)) It flakes out complaining that seek() isn't available, so then I tried this: Image.open(urlopen(url).read()) But that didn't work either. Is there a Better Way to do this, or is writing to a temporary file the accepted way of doing this sort of thing? [/INST] you could try using a StringIO import urllib, cStringIO file = cStringIO.StringIO(urllib.urlopen(URL).read()) img = Image.open(file) [INST] Execute code when Django starts ONCE only? I'm writing a Django Middleware class that I want to execute only once at startup, to initialise some other arbritary code. I've followed the very nice solution posted by sdolan here, but the "Hello" message is output to the terminal twice. E.g. from django.core.exceptions import MiddlewareNotUsed from django.conf import settings class StartupMiddleware(object): def __init__(self): print "Hello world" raise MiddlewareNotUsed('Startup complete') and in my Django settings file, I've got the class included in the MIDDLEWARE_CLASSES list. But when I run Django using runserver and request a page, I get in the terminal Django version 1.3, using settings 'config.server' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Hello world [22/Jul/2011 15:54:36] "GET / HTTP/1.1" 200 698 Hello world [22/Jul/2011 15:54:36] "GET /static/css/base.css HTTP/1.1" 200 0 Any ideas why "Hello world" is printed twice? Thanks. [/INST] Update: Django 1.7 now has a hook for this file: myapp/apps.py from django.apps import AppConfig class MyAppConfig(AppConfig): name = 'myapp' verbose_name = "My Application" def ready(self): pass # startup code here file: myapp/__init__.py default_app_config = 'myapp.apps.MyAppConfig' For Django < 1.7 The number one answer does not seem to work anymore, urls.py is loaded upon first request. What has worked lately is to put the startup code in any one of your INSTALLED_APPS init.py e.g. myapp/__init__.py def startup(): pass # load a big thing startup() When using ./manage.py runserver ... this gets executed twice, but that is because runserver has some tricks to validate the models first etc ... normal deployments or even when runserver auto reloads, this is only executed once. [INST] python nan and inf values Is it possible to set an element of an array to NaN in Python? Additionally, is it possible to set a variable to +/- infinity? If so, is there any function to check whether a number is infinity or not? [/INST] Cast from string using float(): >>> float('NaN') nan >>> float('Inf') inf >>> -float('Inf') -inf >>> float('Inf') == float('Inf') True >>> float('Inf') == 1 False [INST] Python - 'ascii' codec can't decode byte I'm really confused. I tried to encode but the error said can't decode.... What is Python doing under the hood? >>> "你好".encode("utf8") Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128) [/INST] "你好".encode('utf-8') encode converts a unicode object to a string object. But here you have invoked it on a string object (because you don't have the u). So python has to convert the string to a unicode object first. So it does the equivalent of "你好".decode().encode('utf-8') But the decode fails because the string isn't valid ascii. That's why you get a complaint about not being able to decode. [INST] Instance variables vs. class variables in Python I have Python classes, of which I need only one instance at runtime, so it would be sufficient to have the attributes only once per class and not per instance. If there would be more than one instance (what won't happen), all instance should have the same configuration. I wonder which of the following options would be better or more "idiomatic" Python. Class variables: class MyController(Controller): path = "something/" children = [AController, BController] def action(self, request): pass Instance variables: class MyController(Controller): def __init__(self): self.path = "something/" self.children = [AController, BController] def action(self, request): pass [/INST] If you have only one instance anyway, it's best to make all variables per-instance, simply because they will be accessed (a little bit) faster (one less level of "lookup" due to the "inheritance" from class to instance), and there are no downsides to weigh against this small advantage. [INST] Check if string matches pattern How do I check if a string matches this pattern? Uppercase letter, number(s), uppercase letter, number(s)... Example, These would match: A1B2 B10L1 C1N200J1 These wouldn't ('^' points to problem) a1B2 ^ A10B ^ AB400 ^ [/INST] import re pattern = re.compile("^([A-Z][0-9]+)+$") pattern.match(string) [INST] Redirecting stdout to "nothing" in python I have a large project consisting of sufficiently large number of modules, each printing something to the standard output. Now as the project has grown in size, there are large no. of print statements printing a lot on the std out which has made the program considerably slower. So, I now want to decide at runtime whether or not to print anything to the stdout. I cannot make changes in the modules as there are plenty of them. (I know I can redirect the stdout to a file but even this is considerably slow.) So my question is how do I redirect the stdout to nothing ie how do I make the print statement do nothing? # I want to do something like this. sys.stdout = None # this obviously will give an error as Nonetype object does not have any write method. Currently the only idea I have is to make a class which has a write method (which does nothing) and redirect the stdout to an instance of this class. class DontPrint(object): def write(*args): pass dp = DontPrint() sys.stdout = dp Is there an inbuilt mechanism in python for this? Or is there something better than this? [/INST] Cross-platform: import os import sys f = open(os.devnull, 'w') sys.stdout = f On Windows: f = open('nul', 'w') sys.stdout = f On Linux: f = open('/dev/null', 'w') sys.stdout = f [INST] Python Unicode Encode Error I'm reading and parsing an Amazon XML file and while the XML file shows a ' , when I try to print it I get the following error: 'ascii' codec can't encode character u'\u2019' in position 16: ordinal not in range(128) From what I've read online thus far, the error is coming from the fact that the XML file is in UTF-8, but Python wants to handle it as an ASCII encoded character. Is there a simple way to make the error go away and have my program print the XML as it reads? [/INST] Likely, your problem is that you parsed it okay, and now you're trying to print the contents of the XML and you can't because theres some foreign Unicode characters. Try to encode your unicode string as ascii first: unicodeData.encode('ascii', 'ignore') the 'ignore' part will tell it to just skip those characters. From the python docs: >>> u = unichr(40960) + u'abcd' + unichr(1972) >>> u.encode('utf-8') '\xea\x80\x80abcd\xde\xb4' >>> u.encode('ascii') Traceback (most recent call last): File "", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode character '\ua000' in position 0: ordinal not in range(128) >>> u.encode('ascii', 'ignore') 'abcd' >>> u.encode('ascii', 'replace') '?abcd?' >>> u.encode('ascii', 'xmlcharrefreplace') 'ꀀabcd޴' You might want to read this article: http://www.joelonsoftware.com/articles/Unicode.html, which I found very useful as a basic tutorial on what's going on. After the read, you'll stop feeling like you're just guessing what commands to use (or at least that happened to me). [INST] What is the proper way to comment functions in python? Is there a generally accepted way to do this? Is this acceptable: ######################################################### # Create a new user ######################################################### def add(self): [/INST] The correct way to do it is to provide a docstring. That way, help(add) will also spit out your comment. def add(self): """Create a new user. Line 2 of comment... And so on... """ That's three double quotes to open the comment and another three double quotes to end it. You can also use any valid Python string. It doesn't need to be multiline and double quotes can be replaced by single quotes. See: PEP 257 [INST] Fail during installation of Pillow (Python module) in Linux I'm trying to install Pillow (Python module) using pip, but it throws this error: ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting So as the error says, I tried: pip install pillow --global-option="--disable-jpeg" But it fails with: error: option --disable-jpeg not recognized Any hints how to deal with it? [/INST] There is a bug reported for Pillow here, which indicates that libjpeg and zlib are now required as of Pillow 3.0.0. The installation instructions for Pillow on Linux give advice of how to install these packages. Note that not all of the following packages may be missing on your machine (comments suggest that only libjpeg8-dev is actually missing). Ubuntu 12.04 LTS or Raspian Wheezy 7.0 sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk Ubuntu 14.04 sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk Fedora 20 The Fedora 20 equivalent of libjpeg8-dev is libjpeg-devel. sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel Mac OS X (via Homebrew) On Mac OS X with Homebrew this can be fixed using: brew install libjpeg zlib You may also need to force-link zlib using the following: brew link zlib --force Thanks to Panos Angelopoulous and nelsonvarela in the comments. Update 5th July 2016: In current versions of Homebrew the above may no longer work, as there is no longer a formula for zlib available in the main repository (Homebrew will prompt you to install lzlib which is a different library and will not solve this problem). There is a formula available in the dupes repository. You can either tap this repository, and install as normal: brew tap homebrew/dupes brew install zlib Or you can install zlib via xcode instead, as follows: xcode-select --install Thanks to benjaminz in the comments and Kal's answer below After these are installed the pip installation of Pillow should work normally. [INST] Authenticating against active directory using python + ldap How do I authenticate against AD using Python + LDAP. I'm currently using the python-ldap library and all it is producing is tears. I can't even bind to perform a simple query: import sys import ldap Server = "ldap://my-ldap-server" DN, Secret, un = sys.argv[1:4] Base = "dc=mydomain,dc=co,dc=uk" Scope = ldap.SCOPE_SUBTREE Filter = "(&(objectClass=user)(sAMAccountName="+un+"))" Attrs = ["displayName"] l = ldap.initialize(Server) l.protocol_version = 3 print l.simple_bind_s(DN, Secret) r = l.search(Base, Scope, Filter, Attrs) Type,user = l.result(r,60) Name,Attrs = user[0] if hasattr(Attrs, 'has_key') and Attrs.has_key('displayName'): displayName = Attrs['displayName'][0] print displayName sys.exit() Running this with myusername@mydomain.co.uk password username gives me one of two errors: Invalid Credentials - When I mistype or intentionally use wrong credentials it fails to authenticate. ldap.INVALID_CREDENTIALS: {'info': '80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 52e, vece', 'desc': 'Invalid credentials'} Or ldap.OPERATIONS_ERROR: {'info': '00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece', 'desc': 'Operations error'} What am I missing out to bind properly? I am getting the same errors on fedora and windows. [/INST] I was missing l.set_option(ldap.OPT_REFERRALS, 0) From the init. �8[INST] Why the Global Interpreter Lock? What is exactly the function of Python's Global Interpreter Lock? Do other languages that are compiled to bytecode employ a similar mechanism? [/INST] In general, for any thread safety problem you will need to protect your internal data structures with locks. This can be done with various levels of granularity. You can use fine-grained locking, where every separate structure has its own lock. You can use coarse-grained locking where one lock protects everything (the GIL approach). There are various pros and cons of each method. Fine-grained locking allows greater parallelism - two threads can execute in parallel when they don't share any resources. However there is a much larger administrative overhead. For every line of code, you may need to acquire and release several locks. The coarse grained approach is the opposite. Two threads can't run at the same time, but an individual thread will run faster because its not doing so much bookkeeping. Ultimately it comes down to a tradeoff between single-threaded speed and parallelism. There have been a few attempts to remove the GIL in python, but the extra overhead for single threaded machines was generally too large. Some cases can actually be slower even on multi-processor machines due to lock contention. Do other languages that are compiled to bytecode employ a similar mechanism? It varies, and it probably shouldn't be considered a language property so much as an implementation property. For instance, there are Python implementations such as Jython and IronPython which use the threading approach of their underlying VM, rather than a GIL approach. Additionally, the next version of Ruby looks to be moving towards introducing a GIL. [INST] Inserting image into IPython notebook markdown I am starting to depend heavily on the IPython notebook app to develop and document algorithms. It is awesome; but there is something that seems like it should be possible, but I can't figure out how to do it: I would like to insert a local image into my (local) IPython notebook markdown to aid in documenting an algorithm. I know enough to add something like to the markdown, but that is about as far as my knowledge goes. I assume I could put the image in the directory represented by 127.0.0.1:8888 (or some subdirectory) to be able to access it, but I can't figure out where that directory is. (I'm working on a mac.) So, is it possible to do what I'm trying to do without too much trouble? [/INST] Files inside the notebook dir are available under a "files/" url. So if it's in the base path, it would be , and subdirs etc. are also available: , etc. Update: starting with IPython 2.0, the files/ prefix is no longer needed (cf. release notes). So now the solution simply works as expected. [INST] Sending mail from Python using SMTP I'm using the following method to send mail from Python using SMTP. Is it the right method to use or are there gotchas I'm missing ? from smtplib import SMTP import datetime debuglevel = 0 smtp = SMTP() smtp.set_debuglevel(debuglevel) smtp.connect('YOUR.MAIL.SERVER', 26) smtp.login('USERNAME@DOMAIN', 'PASSWORD') from_addr = "John Doe " to_addr = "foo@bar.com" subj = "hello" date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" ) message_text = "Hello\nThis is a mail from your server\n\nBye\n" msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s" % ( from_addr, to_addr, subj, date, message_text ) smtp.sendmail(from_addr, to_addr, msg) smtp.quit() [/INST] The script I use is quite similar; I post it here as an example of how to use the email.* modules to generate MIME messages; so this script can be easily modified to attach pictures, etc. I rely on my ISP to add the date time header. My ISP requires me to use a secure smtp connection to send mail, I rely on the ssmtplib module (downloadable at http://www1.cs.columbia.edu/~db2501/ssmtplib.py) As in your script, the username and password, (given dummy values below), used to authenticate on the SMTP server, are in plain text in the source. This is a security weakness; but the best alternative depends on how careful you need (want?) to be about protecting these. ======================================= #! /usr/local/bin/python SMTPserver = 'smtp.att.yahoo.com' sender = 'me@my_email_domain.net' destination = ['recipient@her_email_domain.com'] USERNAME = "USER_NAME_FOR_INTERNET_SERVICE_PROVIDER" PASSWORD = "PASSWORD_INTERNET_SERVICE_PROVIDER" # typical values for text_subtype are plain, html, xml text_subtype = 'plain' content="""\ Test message """ subject="Sent from Python" import sys import os import re from smtplib import SMTP_SSL as SMTP # this invokes the secure SMTP protocol (port 465, uses SSL) # from smtplib import SMTP # use this for standard SMTP protocol (port 25, no encryption) # old version # from email.MIMEText import MIMEText from email.mime.text import MIMEText try: msg = MIMEText(content, text_subtype) msg['Subject']= subject msg['From'] = sender # some SMTP servers will do this automatically, not all conn = SMTP(SMTPserver) conn.set_debuglevel(False) conn.login(USERNAME, PASSWORD) try: conn.sendmail(sender, destination, msg.as_string()) finally: conn.quit() except Exception, exc: sys.exit( "mail failed; %s" % str(exc) ) # give a error message [INST] Python: What's a correct and good way to implement __hash__()? What's a correct and good way to implement __hash__()? I am talking about the function that returns a hashcode that is then used to insert objects into hashtables aka dictionaries. As __hash__() returns an integer and is used for "binning" objects into hashtables I assume that the values of the returned integer should be uniformly distributed for common data (to minimize collisions). What's a good practice to get such values? Are collisions a problem? In my case I have a small class which acts as a container class holding some ints, some floats and a string. [/INST] An easy, correct way to implement __hash__() is to use a key tuple. It won't be as fast as a specialized hash, but if you need that then you should probably implement the type in C. Here's an example of using a key for hash and equality: class A(object): def __key(self): return (self.attr_a, self.attr_b, self.attr_c) def __eq__(x, y): return x.__key() == y.__key() def __hash__(self): return hash(self.__key()) Also, the documentation of __hash__ has more information, that may be valuable in some particular circumstances. [INST] filename.whl is not supported wheel on this platform I would like to install scipy-0.15.1-cp33-none-win_amd64.whl that I have saved to local drive. I am using: pip 6.0.8 from C:\Python27\Lib\site-packages python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] when I run: pip install scipy-0.15.1-cp33-none-win_amd64.whl I get the following error: scipy-0.15.1-cp33-none-win_amd64.whl.whl is not supported wheel on this platform I would like to know where is the problem? [/INST] cp33 means CPython 3.3 you need scipy‑0.15.1‑cp27‑none‑win_amd64.whl instead. [INST] Local variables in Python nested functions Okay, bear with me on this, I know it's going to look horribly convoluted, but please help me understand what's happening. from functools import partial class Cage(object): def __init__(self, animal): self.animal = animal def gotimes(do_the_petting): do_the_petting() def get_petters(): for animal in ['cow', 'dog', 'cat']: cage = Cage(animal) def pet_function(): print "Mary pets the " + cage.animal + "." yield (animal, partial(gotimes, pet_function)) funs = list(get_petters()) for name, f in funs: print name + ":", f() Gives: cow: Mary pets the cat. dog: Mary pets the cat. cat: Mary pets the cat. So basically, why am I not getting three different animals? Isn't the cage 'packaged' into the local scope of the nested function? If not, how does a call to the nested function look up the local variables? I know that running into these kind of problems usually means one is 'doing it wrong', but I'd like to understand what happens. [/INST] The nested function looks up variables from the parent scope when executed, not when defined. The function body is compiled, and the 'free' variables (not defined in the function itself by assignment), are verified, then bound as closure cells to the function, with the code using an index to reference each cell. pet_function thus has one free variable (cage) which is then referenced via a closure cell, index 0. The closure itself points to the local variable cage in the get_petters function. When you actually call the function, that closure is then used to look at the value of cage in the surrounding scope at the time you call the function. Here lies the problem. By the time you call your functions, the get_petters function is already done computing it's results. The cage local variable at some point during that execution was assigned each of the 'cow', 'dog', and 'cat' strings, but at the end of the function, cage contains that last value 'cat'. Thus, when you call each of the dynamically returned functions, you get the value 'cat' printed. The work-around is to not rely on closures. You can use a partial function instead, create a new function scope, or bind the variable as a default value for a keyword parameter. Partial function example, using functools.partial(): from functools import partial def pet_function(cage=None): print "Mary pets the " + cage.animal + "." yield (animal, partial(gotimes, partial(pet_function, cage=cage))) Creating a new scope example: def scoped_cage(cage=None): def pet_function(): print "Mary pets the " + cage.animal + "." return pet_function yield (animal, partial(gotimes, scoped_cage(cage))) Binding the variable as a default value for a keyword parameter: def pet_function(cage=cage): print "Mary pets the " + cage.animal + "." yield (animal, partial(gotimes, pet_function)) There is no need to define the pet_function or scoped_cage function in the loop, compilation only takes place once, not on each iteration of the loop. [INST] Set value for particular cell in pandas DataFrame I've created a pandas DataFrame df=DataFrame(index=['A','B','C'], columns=['x','y']) and got this x y A NaN NaN B NaN NaN C NaN NaN Then I want to assign value to particular cell, for example for row 'C' and column 'x'. I've expected to get such result: x y A NaN NaN B NaN NaN C 10 NaN with this code: df.xs('C')['x']=10 but contents of df haven't changed. It's again only Nan's in dataframe. Any suggestions? [/INST] RukTech's answer, df.set_value('C', 'x', 10), is far and away faster than the options I've suggested below. Warning: It is sometimes difficult to predict if an operation returns a copy or a view. For this reason the docs recommend avoiding using "chained indexing". Why df.xs('C')['x']=10 does not work: df.xs('C') by default, returns a new dataframe with a copy of the data, so df.xs('C')['x']=10 modifies this new dataframe only. df['x'] returns a view of the df dataframe, so df['x']['C'] = 10 modifies df itself. Alternatively, df.xs('C', copy = False)['x']=10 does modify df. df.set_value('C', 'x', 10) is the fastest: In [18]: %timeit df.set_value('C', 'x', 10) 100000 loops, best of 3: 2.9 µs per loop In [20]: %timeit df['x']['C'] = 10 100000 loops, best of 3: 6.31 µs per loop In [19]: %timeit df.ix['C','x'] = 10 10000 loops, best of 3: 104 µs per loop In [32]: %timeit df.xs('C', copy=False)['x'] = 10 10000 loops, best of 3: 89.2 µs per loop [INST] Running single test from unittest.TestCase via command line In our team, we define most test cases like this: One "framework" class ourtcfw.py: import unittest class OurTcFw(unittest.TestCase): def setUp: # something # other stuff that we want to use everywhere and a lot of test cases like testMyCase.py: import localweather class MyCase(OurTcFw): def testItIsSunny(self): self.assertTrue(localweather.sunny) def testItIsHot(self): self.assertTrue(localweather.temperature > 20) if __name__ == "__main__": unittest.main() When I'm writing new test code and want to run it often, and save time, what I do is that I put "__" in front of all other tests. But it's cumbersome, distracts me from the code I 'm writing and the commit noise this creates is plain annoying. So e.g. when making changes to testItIsHot(), I want to be able to do this: $ python testMyCase.py testItIsHot and have unittest run only testItIsHot() How can I achieve that? I tried to rewrite the if __name__ == "__main__": part, but since I'm new to Python, I'm feeling lost and keep bashing into everything else than the methods. [/INST] This works as you suggest - you just have to specify the class name as well: python testMyCase.py MyCase.testItIsHot [INST] Convert a python dict to a string and back I am writing a program that stores data in a dictionary object, but this data needs to be saved at some point during the program execution and loaded back into the dictionary object when the program is run again. How would I convert a dictionary object into a string that can be written to a file and loaded back into a dictionary object? This will hopefully support dictionaries containing dictionaries. [/INST] If your dictionary isn't too big maybe str + eval can do the work: dict1 = {'one':1, 'two':2, 'three': {'three.1': 3.1, 'three.2': 3.2 }} str1 = str(dict1) dict2 = eval(str1) print dict1==dict2 You can use ast.literal_eval instead of eval for additional security if the source is untrusted. [INST] How does Django Know the Order to Render Form Fields? If I have a Django form such as: class ContactForm(forms.Form): subject = forms.CharField(max_length=100) message = forms.CharField() sender = forms.EmailField() And I call the as_table() method of an instance of this form, Django will render the fields as the same order as specified above. My question is how does Django know the order that class variables where defined? (Also how do I override this order, for example when I want to add a field from the classe's init method?) [/INST] [NOTE: this answer is now somewhat outdated - please see the discussion below it]. If f is a form, its fields are f.fields, which is a django.utils.datastructures.SortedDict (it presents the items in the order they are added). After form construction f.fields has a keyOrder attribute, which is a list containing the field names in the order they should be presented. You can set this to the correct ordering (though you need to exercise care to ensure you don't omit items or add extras). Here's an example I just created in my current project: class PrivEdit(ModelForm): def __init__(self, *args, **kw): super(ModelForm, self).__init__(*args, **kw) self.fields.keyOrder = [ 'super_user', 'all_districts', 'multi_district', 'all_schools', 'manage_users', 'direct_login', 'student_detail', 'license'] class Meta: model = Privilege [INST] How to get the parent dir location this code is get the templates/blog1/page.html in b.py: path = os.path.join(os.path.dirname(__file__), os.path.join('templates', 'blog1/page.html')) but i want to get the parent dir location: aParent |--a | |---b.py | |---templates | |--------blog1 | |-------page.html |--templates |--------blog1 |-------page.html and how to get the aParent location thanks updated: this is right: dirname=os.path.dirname path = os.path.join(dirname(dirname(__file__)), os.path.join('templates', 'blog1/page.html')) or path = os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) [/INST] You can apply dirname repeatedly to climb higher: dirname(dirname(file)). This can only go as far as the root package, however. If this is a problem, use os.path.abspath: dirname(dirname(abspath(file))). [INST] Python: Get relative path from comparing two absolute paths Say, I have two absolute paths. I need to check if the location referring to by one of the paths is a descendant of the other. If true, I need to find out the relative path of the descendant from the ancestor. What's a good way to implement this in Python? Any library that I can benefit from? [/INST] os.path.commonprefix() and os.path.relpath() are your friends: >>> print os.path.commonprefix(['/usr/var/log', '/usr/var/security']) '/usr/var' >>> print os.path.commonprefix(['/tmp', '/usr/var']) # No common prefix: the root is the common prefix '/' You can thus test whether the common prefix is one of the paths, i.e. if one of the paths is a common ancestor: paths = […, …, …] common_prefix = os.path.commonprefix(list_of_paths) if common_prefix in paths: … You can then find the relative paths: relative_paths = [os.path.relpath(path, common_prefix) for path in paths] You can even handle more than two paths, with this method, and test whether all the paths are all below one of them. PS: depending on how your paths look like, you might want to perform some normalization first (this is useful in situations where one does not know whether they always end with '/' or not, or if some of the paths are relative). Relevant functions include os.path.abspath() and os.path.normpath(). PPS: as Peter Briggs mentioned in the comments, the simple approach described above can fail: >>> os.path.commonprefix(['/usr/var', '/usr/var2/log']) '/usr/var' even though /usr/var is not a common prefix of the paths. Forcing all paths to end with '/' before calling commonprefix() solves this (specific) problem. PPPS: as bluenote10 mentioned, adding a slash does not solve the general problem. Here is his followup question: How to circumvent the fallacy of Python's os.path.commonprefix? PPPPS: starting with Python 3.4, we have pathlib, a module that provides a saner path manipulation environment. I guess that the common prefix of a set of paths can be obtained by getting all the prefixes of each path (with PurePath.parents()), taking the intersection of all these parent sets, and selecting the longest common prefix. PPPPPS: Python 3.5 introduced a proper solution to this question: os.path.commonpath(), which returns a valid path. [INST] Constantly print Subprocess output while process is running To launch programs from my Python-scripts, I'm using the following method: def execute(command): process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output = process.communicate()[0] exitCode = process.returncode if (exitCode == 0): return output else: raise ProcessException(command, exitCode, output) So when i launch a process like Process.execute("mvn clean install"), my program waits until the the process is finished, and only then i get the complete output of my program. This is annoying if i'm running a process that takes a while to finish. Can i let my program write the process output line by line, by polling the process output before it finishes in a loop or something? *[EDIT] Sorry i didn't search very well before posting this question. Threading is actually the key. Found an example here which shows how to do it: * Python Subprocess.Popen from a thread [/INST] There is a pattern using iter that yields lines as soon as the command generates them: lines = iter(fd.readline, ""). A full example: from __future__ import print_function # Python 2.x import subprocess def execute(cmd): popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, universal_newlines=True) stdout_lines = iter(popen.stdout.readline, "") for stdout_line in stdout_lines: yield stdout_line popen.stdout.close() return_code = popen.wait() if return_code != 0: raise subprocess.CalledProcessError(return_code, cmd) for path in execute(["find"]): print(path, end="") [INST] Python: zip-like function that pads to longest length? Is there a built-in function that works like zip() but that will pad the results so that the length of the resultant list is the length of the longest input rather than the shortest input? >>> a=['a1'] >>> b=['b1','b2','b3'] >>> c=['c1','c2'] >>> zip(a,b,c) [('a1', 'b1', 'c1')] >>> What command goes here? [('a1', 'b1', 'c1'), (None, 'b2', 'c2'), (None, 'b3', None)] [/INST] You can either use itertools.izip_longest (Python 2.6+), or you can use map with None. It is a little known feature of map (but map changed in Python 3.x, so this only works in Python 2.x). >>> map(None, a, b, c) [('a1', 'b1', 'c1'), (None, 'b2', 'c2'), (None, 'b3', None)] [INST] How does Django's Meta class work? I am using Django which allows people to add extra parameters to a class by using class Meta. class FooModel(models.Model): ... class Meta: ... The only thing I found in Python's documentation was: class FooMetaClass(type): ... class FooClass: __metaclass__ = FooMetaClass However, I don't think this is the same thing. [/INST] You are asking a question about two different things: Meta inner class in Django models: This is just a class container with some options (metadata) attached to the model. It defines such things as available permissions, associated database table name, whether the model is abstract or not, singular and plural versions of the name etc. Short explanation is here: Django docs: Models: Meta options List of available meta options is here: Django docs: Model Meta options Metaclass in Python: The best description is here: What is a metaclass in Python? [INST] Send file using POST from a Python script Is there a way to send a file using POST from a Python script? [/INST] From http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file Requests makes it very simple to upload Multipart-encoded files: >>> r = requests.post('http://httpbin.org/post', files={'report.xls': open('report.xls', 'rb')}) That's it. I'm not joking - this is one line of code. File was sent. Let's check: >>> r.text { "origin": "179.13.100.4", "files": { "report.xls": "" }, "form": {}, "url": "http://httpbin.org/post", "args": {}, "headers": { "Content-Length": "3196", "Accept-Encoding": "identity, deflate, compress, gzip", "Accept": "*/*", "User-Agent": "python-requests/0.8.0", "Host": "httpbin.org:80", "Content-Type": "multipart/form-data; boundary=127.0.0.1.502.21746.1321131593.786.1" }, "data": "" } [INST] Django Setup Default Logging I can't seem to figure out how to setup a "default" logger for my Django installation. I would like to use Django 1.3's new LOGGING setting in settings.py. I've looked at the Django Logging Doc's example, but it looks to me like they only setup handlers which will do logging for particular loggers. In the case of their example they setup handler for the loggers named 'django','django.request', and 'myproject.custom'. All I want to do is setup a default logging.handlers.RotatingFileHandler which will handle all loggers by default. i.e., if I make a new module somewhere in my project and it is denoted by something like: my_app_name.my_new_module, I should be able to do this and have all logging goto the rotating file logs. # In file './my_app_name/my_new_module.py' import logging logger = logging.getLogger('my_app_name.my_new_module') logger.debug('Hello logs!') # <-- This should get logged to my RotatingFileHandler that I setup in `settings.py`! [/INST] Figured it out... You set the 'catch all' logger by referencing it with the empty string: ''. As an example, in the following setup I have the all log events getting saved to logs/mylog.log, with the exception of django.request log events which will be saved to logs/django_request.log. Because 'propagate' is set to False for my django.request logger, the log event will never reach the the 'catch all' logger. LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'standard': { 'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s' }, }, 'handlers': { 'default': { 'level':'DEBUG', 'class':'logging.handlers.RotatingFileHandler', 'filename': 'logs/mylog.log', 'maxBytes': 1024*1024*5, # 5 MB 'backupCount': 5, 'formatter':'standard', }, 'request_handler': { 'level':'DEBUG', 'class':'logging.handlers.RotatingFileHandler', 'filename': 'logs/django_request.log', 'maxBytes': 1024*1024*5, # 5 MB 'backupCount': 5, 'formatter':'standard', }, }, 'loggers': { '': { 'handlers': ['default'], 'level': 'DEBUG', 'propagate': True }, 'django.request': { 'handlers': ['request_handler'], 'level': 'DEBUG', 'propagate': False }, } } [INST] retrieve links from web page using python and BeautifulSoup How can I retrieve the links of a webpage and copy the url address of the links using Python? [/INST] Here's a short snippet using the SoupStrainer class in BeautifulSoup: import httplib2 from BeautifulSoup import BeautifulSoup, SoupStrainer http = httplib2.Http() status, response = http.request('http://www.nytimes.com') for link in BeautifulSoup(response, parseOnlyThese=SoupStrainer('a')): if link.has_attr('href'): print link['href'] The BeautifulSoup documentation is actually quite good, and covers a number of typical scenarios: http://www.crummy.com/software/BeautifulSoup/documentation.html Edit: Note that I used the SoupStrainer class because it's a bit more efficient (memory and speed wise), if you know what you're parsing in advance. [INST] foggy on asterisk in python I'm using itertools.chain to "flatten" a list of lists in this fashion: uniqueCrossTabs = list(itertools.chain(*uniqueCrossTabs)) how is this different than saying: uniqueCrossTabs = list(itertools.chain(uniqueCrossTabs)) [/INST] * is the "splat" operator: It takes a list as input, and expands it into actual positional arguments in the function call. So if uniqueCrossTabs was [ [ 1, 2 ], [ 3, 4 ] ], then itertools.chain(*uniqueCrossTabs) is the same as saying itertools.chain([ 1, 2 ], [ 3, 4 ]) This is obviously different from passing in just uniqueCrossTabs. In your case, you have a list of lists that you wish to flatten; what itertools.chain() does is return an iterator over the concatenation of all the positional arguments you pass to it, where each positional argument is iterable in its own right. In other words, you want to pass each list in uniqueCrossTabs as an argument to chain(), which will chain them together, but you don't have the lists in separate variables, so you use the * operator to expand the list of lists into several list arguments. As Jochen Ritzel has pointed out in the comments, chain.from_iterable() is better-suited for this operation, as it assumes a single iterable of iterables to begin with. Your code then becomes simply: uniqueCrossTabs = list(itertools.chain.from_iterable(uniqueCrossTabs)) [INST] How to execute Python scripts in Windows? I have a simple script blah.py (using Python 2): import sys print sys.argv[1] If I execute my script by: python c:/..../blah.py argument It prints argument but if I execute script by: blah.py argument error occurs: IndexError... So arguments do not pass to script. python.exe in PATH. Folder with blah.py also in PATH. python.exe is default program to execute *.py files. What is the problem? [/INST] When you execute a script without typing "python" in front, you need to know two things about how Windows invokes the program. First is to find out what kind of file Windows thinks it is: C:\>assoc .py .py=Python.File Next, you need to know how Windows is executing things with that extension. It's associated with the file type "Python.File", so this command shows what it will be doing: C:\>ftype Python.File Python.File="c:\python26\python.exe" "%1" %* So on my machine, when I type "blah.py foo", it will execute this exact command, with no difference in results than if I had typed the full thing myself: "c:\python26\python.exe" "blah.py" foo If you type the same thing, including the quotation marks, then you'll get results identical to when you just type "blah.py foo". Now you're in a position to figure out the rest of your problem for yourself. (Or post more helpful information in your question, like actual cut-and-paste copies of what you see in the console. Note that people who do that type of thing get their questions voted up, and they get reputation points, and more people are likely to help them with good answers.) Brought In From Comments: Even if assoc and ftype display the correct information, it may happen that the arguments are stripped off. What may help in that case is directly fixing the relevant registry keys for Python. Set the HKEY_CLASSES_ROOT\Applications\python26.exe\shell\open\command key to: "C:\Python26\python26.exe" "%1" %* Likely, previously, %* was missing. Similarly, set HKEY_CLASSES_ROOT\py_auto_file\shell\open\command to the same value. See http://eli.thegreenplace.net/2010/12/14/problem-passing-arguments-to-python-scripts-on-windows/ [INST] Getting command-line password input in Python You know how in Linux when you try some Sudo stuff it tells you to enter the password and, as you type, nothing is shown in the terminal window (the password is not shown)? Is there a way to do that in Python? I'm working on a script that requires so sensitive info and would like for it to be hidden when I'm typing it. In other words, I want to get the password from the user without showing the password. Thanks. [/INST] Use getpass.getpass(). [INST] How do I merge dictionaries together in Python? d3 = dict(d1, **d2) I understand that this merges the dictionary. But, is it unique? What if d1 has the same key as d2 but different value? I would like d1 and d2 to be merged, but d1 has priority if there is duplicate key. [/INST] You can use the .update() method if you don't need the original d2 any more: Update the dictionary with the key/value pairs from other, overwriting existing keys. Return None. E.g.: >>> d1 = {'a': 1, 'b': 2} >>> d2 = {'b': 1, 'c': 3} >>> d2.update(d1) >>> d2 {'a': 1, 'c': 3, 'b': 2} Update: Of course you can copy the dictionary first in order to create a new merged one. This might or might not be necessary. In case you have objects in your dictionary, copy.deepcopy should also be considered. [INST] What version of Visual Studio is Python on my computer compiled with? I am trying to find out the version of Visual Studio that is used to compile the Python on my computer It says Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 What I do not understand is this MSC V.1500 designation. Does it mean it is compiled with Visual Studio 2005? I cannot find this information on http://python.org. [/INST] For this version of Visual C++ Use this compiler version Visual C++ 4.x MSC_VER=1000 Visual C++ 5 MSC_VER=1100 Visual C++ 6 MSC_VER=1200 Visual C++ .NET MSC_VER=1300 Visual C++ .NET 2003 MSC_VER=1310 Visual C++ 2005 (8.0) MSC_VER=1400 Visual C++ 2008 (9.0) MSC_VER=1500 Visual C++ 2010 (10.0) MSC_VER=1600 Visual C++ 2012 (11.0) MSC_VER=1700 Visual C++ 2013 (12.0) MSC_VER=1800 Visual C++ 2015 (14.0) MSC_VER=1900 [INST] Using an SSH keyfile with Fabric How do you configure fabric to connect to remote hosts using SSH keyfiles (for example, Amazon EC2 instances)? [/INST] Finding a simple fabfile with a working example of SSH keyfile usage isn't easy for some reason. I wrote a blog post about it (with a matching gist). Basically, the usage goes something like this: from fabric.api import * env.hosts = ['host.name.com'] env.user = 'user' env.key_filename = '/path/to/keyfile.pem' def local_uname(): local('uname -a') def remote_uname(): run('uname -a') The important part is setting the env.key_filename environment variable, so that the Paramiko configuration can look for it when connecting. [INST] How Big can a Python Array Get? In Python, how big can an array/list get? I need an array of about 12000 elements. Will I still be able to run array/list methods such as sorting, etc? [/INST] According to the source code, the maximum size of a list is PY_SSIZE_T_MAX/sizeof(PyObject*). PY_SSIZE_T_MAX is defined in pyport.h to be ((size_t) -1)>>1 On a regular 32bit system, this is (4294967295 / 2) / 4 or 536870912. Therefore the maximum size of a python list on a 32 bit system is 536,870,912 elements. As long as the number of elements you have is equal or below this, all list functions should operate correctly. [INST] python tuple to dict For the tuple, t = ((1, 'a'),(2, 'b')) dict(t) returns {1: 'a', 2: 'b'} Is there a good way to get {'a': 1, 'b': 2} (keys and vals swapped)? I'm wanting to be able to return 1 given 'a' or 2 given 'b', perhaps converting to a dict is not the best way. [/INST] Try: >>> t = ((1, 'a'),(2, 'b')) >>> dict((y, x) for x, y in t) {'a': 1, 'b': 2} [INST] Count number of occurrences of a given substring in a string Possible Duplicate: Basic indexing recurrences of a substring within a string (python) How can I count the number of times a given substring is present within a string in Python? For example: >>> 'foo bar foo'.numberOfOccurrences('foo') 2 [/INST] string.count(substring), like in: >>> "abcdabcva".count("ab") 2 update: as pointed up in the comments, this is the way to do it for non overlapping occurrences. If you need to count overlapping ocurrences, you'd better check the answers at: "Python regex find all overlapping matches?", or just check my other answer bellow. [INST] You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application I am working on Django project with virtualenv and connect it to local postgres database. when i run the project is says, ImportError: No module named psycopg2.extensions then i used this command to install pip install psycopg2 then during the installation it gives following error. Downloading/unpacking psycopg2==2.4.4 Downloading psycopg2-2.4.4.tar.gz (648kB): 648kB downloaded Running setup.py (path:/home/muhammadtaqi/Projects/MyProjects/OnlineElectionCampaign/venv/build/psycopg2/setup.py) egg_info for package psycopg2 Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info/psycopg2.egg-info writing pip-egg-info/psycopg2.egg-info/PKG-INFO writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. ---------------------------------------- Cleaning up... Command python setup.py egg_info failed with error code 1 in /home/muhammadtaqi/Projects/MyProjects/OnlineElectionCampaign/venv/build/psycopg2 Storing debug log for failure in /home/muhammadtaqi/.pip/pip.log [/INST] Use these following commands, this will solve the error: sudo apt-get install postgresql then fire: sudo apt-get install python-psycopg2 and last: sudo apt-get install libpq-dev [INST] What's a standard way to do a no-op in python? I often find myself writing if / elif / else constructs in python, and I want to include options which can occur, but for which the corresponding action is to do nothing. I realise I could just exclude those if statements, but for readability I find it helps to include them all, so that if you are looking through the code you can see what happens as a result of each option. How do I code the no-op? Currently, I'm doing it like this: no_op = 0 if x == 0: y = 2 * a elif x == 1: z = 3 * b elif x == 3: no_op (The code is actually quite a bit longer than that, and more complicated. This is just to illustrate the structure). I don't like using a variable as a no-op, but it's the neatest way I could think of. Is there a better way? [/INST] Use pass for no-op: if x == 0: pass else: print "x not equal 0" And here's another example: def f(): pass Or: class c: pass [INST] numpy: most efficient frequency counts for unique values in an array In numpy / scipy, is there an efficient way to get frequency counts for unique values in an array? Something along these lines: x = array( [1,1,1,2,2,2,5,25,1,1] ) y = freq_count( x ) print y >> [[1, 5], [2,3], [5,1], [25,1]] ( For you, R users out there, I'm basically looking for the table() function ) [/INST] As of Numpy 1.9, the easiest and fastest method is to simply use numpy.unique, which now has a return_counts keyword argument: import numpy as np x = np.array([1,1,1,2,2,2,5,25,1,1]) unique, counts = np.unique(x, return_counts=True) print np.asarray((unique, counts)).T Which gives: [[ 1 5] [ 2 3] [ 5 1] [25 1]] A quick comparison with scipy.stats.itemfreq: In [4]: x = np.random.random_integers(0,100,1e6) In [5]: %timeit unique, counts = np.unique(x, return_counts=True) 10 loops, best of 3: 31.5 ms per loop In [6]: %timeit scipy.stats.itemfreq(x) 10 loops, best of 3: 170 ms per loop [INST] Python division Can somebody explain this to me? I was trying to normalize a set of numbers from -100 to 0 to a range of 10-100 and was having problems only to notice that even with no variables at all, this does not evaluate the way I would expect it to: >>> (20-10) / (100-10) 0 EDIT: float division doesn't work either: >>> float((20-10) / (100-10)) 0.0 EDIT: if either side of the division is cast to a float it will work >>> (20-10) / float((100-10)) 0.1111111111111111 Each side in the first example is evaluating as an int which means the final answer will be cast to an int. Since 0.111 is less than .5, it rounds to 0. Not transparent in my opinion but I guess that's the way it is. [/INST] You're using Python 2.x, where integer divisions will truncate instead of becoming a floating point number. >>> 1 / 2 0 You should make one of them a float: >>> float(10 - 20) / (100 - 10) -0.1111111111111111 or from __future__ import division, which the forces / to adopt Python 3.x's behavior that always returns a float. >>> from __future__ import division >>> (10 - 20) / (100 - 10) -0.1111111111111111 %0[INST] How do threads work in Python, and what are common Python-threading specific pitfalls? I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation isn't very thorough on the subject, and I haven't been able to find a good write-up. From what I can tell, only one thread can be running at once, and the active thread switches every 10 instructions or so? Where is there a good explanation, or can you provide one? It would also be very nice to be aware of common problems that you run into while using threads with Python. [/INST] Yes, because of the Global Interpreter Lock (GIL) there can only run one thread at a time. Here are some links with some insights about this: http://www.artima.com/weblogs/viewpost.jsp?thread=214235 http://smoothspan.wordpress.com/2007/09/14/guido-is-right-to-leave-the-gil-in-python-not-for-multicore-but-for-utility-computing/ From the last link an interesting quote: Let me explain what all that means. Threads run inside the same virtual machine, and hence run on the same physical machine. Processes can run on the same physical machine or in another physical machine. If you architect your application around threads, you’ve done nothing to access multiple machines. So, you can scale to as many cores are on the single machine (which will be quite a few over time), but to really reach web scales, you’ll need to solve the multiple machine problem anyway. If you want to use multi core, pyprocessing defines an process based API to do real parallelization. The PEP also includes some interesting benchmarks. �*[INST] How to create Python egg file I have questions about egg files in Python. I have much Python code organized by package and I'm trying to create egg files. I'm following instructions, but they are very common. According to that, it seems I need to have a setup.py file. Would you please tell me what I need to put into setup.py file and where it should reside? I suppose it's enough to create setup.py and then start "setup.py bdist_egg" for getting egg file. Could you please confirm? Is it possible to include only .pyc files into egg file? Having .egg file how I can just start the code from it without unpacking like java -jar does? [/INST] You are reading the wrong documentation. You want this: http://peak.telecommunity.com/DevCenter/setuptools Creating setup.py is covered in the distutils documentation in Python's standard library documentation here. The main difference (for python eggs) is you import setup from setuptools, not distutils. Yep. That should be right. I don't think so. pyc files can be version and platform dependent. You might be able to open the egg (they should just be zip files) and delete .py files leaving .pyc files, but it wouldn't be recommended. I'm not sure. That might be “Development Mode”. Or are you looking for some “py2exe” or “py2app” mode? [INST] NumPy array initialization (fill with identical values) I need to create a NumPy array of length n, each element of which is v. Is there anything better than: a = empty(n) for i in range(n): a[i] = v I know zeros and ones would work for v = 0, 1. I could use v * ones(n), but it won't work when v is None, and also would be much slower. [/INST] Updated for Numpy 1.7.0:(Hat-tip to @Rolf Bartstra.) a=np.empty(n); a.fill(5) is fastest. In descending speed order: %timeit a=np.empty(1e4); a.fill(5) 100000 loops, best of 3: 5.85 us per loop %timeit a=np.empty(1e4); a[:]=5 100000 loops, best of 3: 7.15 us per loop %timeit a=np.ones(1e4)*5 10000 loops, best of 3: 22.9 us per loop %timeit a=np.repeat(5,(1e4)) 10000 loops, best of 3: 81.7 us per loop %timeit a=np.tile(5,[1e4]) 10000 loops, best of 3: 82.9 us per loop [INST] how do I parallelize a simple python loop? this is probably a trivial question, but how do I parallelize the following loop in python? # setup output lists output1 = list() output2 = list() output3 = list() for j in range(0, 10): # calc individual parameter value parameter = j * offset # call the calculation out1, out2, out3 = calc_stuff(parameter = parameter) # put results into correct output list output1.append(out1) output2.append(out2) output3.append(out3) I know how to start single threads in python but I don't know how to "collect" the results. Therefore my question: what's the easiest way to parallelize this code? [/INST] Using multiple threads on CPython won't give you better performance for pure-Python code due to the global interpreter lock (GIL). I suggest using the multiprocessing module instead: pool = multiprocessing.Pool(4) out1, out2, out3 = zip(*pool.map(calc_stuff, range(0, 10 * offset, offset))) Note that this won't work in the interactive interpreter. To avoid the usual FUD around the GIL: There wouldn't be any advantage to using threads for this example anyway. You want to use processes here, not threads, because they avoid a whole bunch of problems. [INST] Why do list comprehensions write to the loop variable, but generators don't? If I do something with list comprehensions, it writes to a local variable: i = 0 test = any([i == 2 for i in xrange(10)]) print i This prints "9". However, if I use a generator, it doesn't write to a local variable: i = 0 test = any(i == 2 for i in xrange(10)) print i This prints "0". Is there any good reason for this difference? Is this a design decision, or just a random byproduct of the way that generators and list comprehensions are implemented? Personally, it would seem better to me if list comprehensions didn't write to local variables. [/INST] Python’s creator, Guido van Rossum, mentions this when he wrote about generator expressions that were uniformly built into Python 3: (emphasis mine) We also made another change in Python 3, to improve equivalence between list comprehensions and generator expressions. In Python 2, the list comprehension "leaks" the loop control variable into the surrounding scope: x = 'before' a = [x for x in 1, 2, 3] print x # this prints '3', not 'before' This was an artifact of the original implementation of list comprehensions; it was one of Python's "dirty little secrets" for years. It started out as an intentional compromise to make list comprehensions blindingly fast, and while it was not a common pitfall for beginners, it definitely stung people occasionally. For generator expressions we could not do this. Generator expressions are implemented using generators, whose execution requires a separate execution frame. Thus, generator expressions (especially if they iterate over a short sequence) were less efficient than list comprehensions. However, in Python 3, we decided to fix the "dirty little secret" of list comprehensions by using the same implementation strategy as for generator expressions. Thus, in Python 3, the above example (after modification to use print(x) :-) will print 'before', proving that the 'x' in the list comprehension temporarily shadows but does not override the 'x' in the surrounding scope. So in Python 3 you won’t see this happen anymore. Interestingly, dict comprehensions in Python 2 don’t do this either; this is mostly because dict comprehensions were backported from Python 3 and as such already had that fix in them. There are some other questions that cover this topic too, but I’m sure you have already seen those when you searched for the topic, right? ;) Python list comprehension rebind names even after scope of comprehension. Is this right? Why the list comprehension variable is accessible after the operation is done? �"[INST] Best way to remove an item from a Python dictionary? What is the best way to remove an item from a dictionary when the item's key is unknown? Here's a simple approach: for key, item in some_dict.items(): if item is item_to_remove: del some_dict[key] Are there better ways? Is there anything wrong with mutating (deleting items) from the dictionary while iterating it? [/INST] >>> dic = {'a':1, 'b':2} >>> dic {'a': 1, 'b': 2} >>> dic.pop('c', 0) 0 >>> dic.pop('a', 0) 1 >>> dic {'b': 2} [INST] Comparing two dictionaries in Python I have two dictionaries, but for simplification, I will take these two: >>> x = dict(a=1, b=2) >>> y = dict(a=2, b=2) Now, I want to compare whether each key, value pair in x has the same corresponding value in y. So I wrote this: >>> for x_values, y_values in zip(x.iteritems(), y.iteritems()): if x_values == y_values: print 'Ok', x_values, y_values else: print 'Not', x_values, y_values And it works since a tuple is returned and then compared for equality. My questions: Is this correct? Is there a better way to do this? Better not in speed, I am talking about code elegance. UPDATE: I forgot to mention that I have to check how many key, value pairs are equal. [/INST] What you want to do is simply x==y What you do is not a good idea, because the items in a dictionary are not supposed to have any order. You might be comparing [('a',1),('b',1)] with [('b',1), ('a',1)] (same dictionaries, different order). For example, see this: >>> x = dict(a=2, b=2,c=3, d=4) >>> x {'a': 2, 'c': 3, 'b': 2, 'd': 4} >>> y = dict(b=2,c=3, d=4) >>> y {'c': 3, 'b': 2, 'd': 4} >>> zip(x.iteritems(), y.iteritems()) [(('a', 2), ('c', 3)), (('c', 3), ('b', 2)), (('b', 2), ('d', 4))] The difference is only one item, but your algorithm will see that all items are different [INST] round() in Python doesn't seem to be rounding properly The documentation for the round() function states that you pass it a number, and the positions past the decimal to round. Thus it should do this: n = 5.59 round(n, 1) # 5.6 But, in actuality, good old floating point weirdness creeps in and you get: 5.5999999999999996 For the purposes of UI, I need to display 5.6. I poked around the Internet and found some documentation that this is dependent on my implementation of Python. Unfortunately, this occurs on both my Windows dev machine and each Linux server I've tried. See here also. Short of creating my own round library, is there any way around this? [/INST] Formatting works correctly even without having to round: "%.1f" % n [INST] How do I find an element that contains specific text in Selenium Webdriver (Python)? I'm trying to test a complicated javascript interface with Selenium (using the Python interface, and across multiple browsers). I have a number of buttons of the form:
My Button
I'd like to be able to search for buttons based on "My Button" (or non-case-sensitive, partial matches such as "my button" or "button") I'm finding this amazingly difficult, to the extent to which I feel like I'm missing something obvious. The best thing I have so far is: driver.find_elements_by_xpath('//div[contains(text(), "' + text + '")]') This is case-sensitive, however. The other thing I've tried is iterating through all the divs on the page, and checking the element.text property. However, every time you get a situation of the form:
My Button
div.outer also has "My Button" as the text. To fix THAT, I've tried looking to see if div.outer is the parent of div.inner, but couldn't figure out how to do that (element.get_element_by_xpath('..') returns an element's parent, but it tests not equal to div.outer). Also, iterating through all the elements on the page seems to be really slow, at least using the Chrome webdriver. Ideas? Edit: This question came out a little vague. Asked (and answered) a more specific version here: How to get text of an element in Selenium WebDriver (via the Python api) without including child element text? [/INST] Try the following: driver.find_elements_by_xpath("//*[contains(text(), 'My Button')]")
[INST] matplotlib: format axis offset-values to whole numbers or specific number I have a matplotlib figure which I am plotting data that is always referred to as nanoseconds(1e-9). On the y-axis, if I have data that is tens of nanoseconds, ie. 44e-9, the value on the axis shows as 4.4 with a +1e-8 as an offset. Is there anyway to force the axis to show 44 with a +1e-9 offset? The same goes for my x-axis where the axis is showing +5.54478e4, where I would rather it show an offset of +55447 (whole number, no decimal - the value here is in days). I've tried a couple things like this: p = axes.plot(x,y) p.ticklabel_format(style='plain') for the x-axis, but this doesn't work, though I'm probably using it incorrectly or misinterpreting something from the docs, can someone point me in the correct direction? Thank, Jonathan See the link for a visual example: http://ubuntuone.com/p/FVq/ Tried doing something with formatters but haven't found any solution yet...: myyfmt = ScalarFormatter(useOffset=True) myyfmt._set_offset(1e9) axes.get_yaxis().set_major_formatter(myyfmt) and myxfmt = ScalarFormatter(useOffset=True) myxfmt.set_portlimits((-9,5)) axes.get_xaxis().set_major_formatter(myxfmt) On a side note, I'm actually confused as to where the 'offset number' object actually resides...is it part of the major/minor ticks? [/INST] I had exactly the same problem, and these two lines fixed the problem: y_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False) ax.yaxis.set_major_formatter(y_formatter) [INST] How can I read inputs as integers in Python? Why does this code not input integers? Everything on the web says to use raw_input(), but I read on Stack Overflow (on a thread that did not deal with integer input) that raw_input() was renamed to input() in Python 3.x. play = True while play: x = input("Enter a number: ") y = input("Enter a number: ") print(x + y) print(x - y) print(x * y) print(x / y) print(x % y) if input("Play again? ") == "no": play = False [/INST] Python 2.x There were two functions to get user input, called input and raw_input. The difference between them is, raw_input doesn't evaluate the data and returns as it is, in string form. But, input will evaluate whatever you entered and the result of evaluation will be returned. For example, >>> import sys >>> sys.version '2.7.6 (default, Mar 22 2014, 22:59:56) \n[GCC 4.8.2]' >>> data = input("Enter a number: ") Enter a number: 5 + 17 >>> data, type(data) (22, ) The data 5 + 17 is evaluated and the result is 22. When it evaluates the expression 5 + 17, it detects that you are adding two numbers and so the result will also be of the same int type. So, the type conversion is done for free and 22 is returned as the result of input and stored in data variable. You can think of input as the raw_input composed with an eval call. >>> data = eval(raw_input("Enter a number: ")) Enter a number: 5 + 17 >>> data, type(data) (22, ) Note: you should be careful when you are using input in Python 2.x. I explained why one should be careful when using it, in this answer. But, raw_input doesn't evaluate the input and returns as it is, as a string. >>> import sys >>> sys.version '2.7.6 (default, Mar 22 2014, 22:59:56) \n[GCC 4.8.2]' >>> data = raw_input("Enter a number: ") Enter a number: 5 + 17 >>> data, type(data) ('5 + 17', ) Python 3.x Python 3.x's input and Python 2.x's raw_input are similar and raw_input is not available in Python 3.x. >>> import sys >>> sys.version '3.4.0 (default, Apr 11 2014, 13:05:11) \n[GCC 4.8.2]' >>> data = input("Enter a number: ") Enter a number: 5 + 17 >>> data, type(data) ('5 + 17', ) Solution To answer your question, since Python 3.x doesn't evaluate and convert the data type, you have to explicitly convert to ints, with int, like this x = int(input("Enter a number: ")) y = int(input("Enter a number: ")) You can accept numbers of any base and convert them directly to base-10 with the int function, like this >>> data = int(input("Enter a number: "), 8) Enter a number: 777 >>> data 511 >>> data = int(input("Enter a number: "), 16) Enter a number: FFFF >>> data 65535 >>> data = int(input("Enter a number: "), 2) Enter a number: 10101010101 >>> data 1365 The second parameter tells what is the base of the numbers entered and then internally it understands and converts it. If the entered data is wrong it will throw a ValueError. >>> data = int(input("Enter a number: "), 2) Enter a number: 1234 Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for int() with base 2: '1234' Apart from that, your program can be changed a little bit, like this while True: ... ... if input("Play again? ") == "no": break You can get rid of the play variable by using break and while True. PS: Python doesn't expect ; at the end of the line :) [INST] Are lists thread-safe I notice that it is often suggested to use queues with multiple treads, instead of lists and .pop(). Is this because lists are not thread-safe, or for some other reason? [/INST] Lists themselves are thread-safe. In CPython the GIL protects against concurrent accesses to them, and other implementations take care to use a fine-grained lock or a synchronized datatype for their list implementations. However, while lists themselves can't go corrupt by attempts to concurrently access, the lists's data is not protected. For example: L[0] += 1 is not guaranteed to actually increase L[0] by one if another thread does the same thing, because += is not an atomic operation. (Very, very few operations in Python are actually atomic, because most of them can cause arbitrary Python code to be called.) You should use Queues because if you just use an unprotected list, you may get or delete the wrong item because of race conditions. [INST] Copy file or directory in Python Python seems to have functions for copying files (e.g. shutil.copy) and functions for copying directories (e.g. shutil.copytree) but I haven't found any function that handles both. Sure, it's trivial to check whether you want to copy a file or a directory, but it seems like a strange omission. Is there really no standard function that works like the unix "cp" command, i.e. supports both directories and files? What would be the most elegant way to work around this problem in Python? edit: When I say "cp" I mean "cp -r". Sorry about that. And I want to copy any directories recursively (like "cp -r" and shutil.copytree does). [/INST] I suggest you first call shutil.copytree, and if an exception is thrown, then retry with shutil.copy. import shutil, errno def copyanything(src, dst): try: shutil.copytree(src, dst) except OSError as exc: # python >2.5 if exc.errno == errno.ENOTDIR: shutil.copy(src, dst) else: raise [INST] Matplotlib plots: removing axis, legends and white spaces I'm new to Python and Matplotlib, I would like to simply apply colormap to an image and write the resulting image, without using axes, labels, titles or anything usually automatically added by matplotlib. Here is what I did: def make_image(inputname,outputname): data = mpimg.imread(inputname)[:,:,0] fig = plt.imshow(data) fig.set_cmap('hot') fig.axes.get_xaxis().set_visible(False) fig.axes.get_yaxis().set_visible(False) plt.savefig(outputname) It successfully removes the axis of the figure, but the figure saved presents a white padding and a frame around the actual image. How can I remove them (at least the white padding)? Thanks [/INST] I think that the command axis('off') takes care of one of the problems more succinctly than changing each axis and the border separately. It still leaves the white space around the border however. Adding bbox_inches='tight' to the savefig command almost gets you there, you can see in the example below that the white space left is much smaller, but still present. from numpy import random import matplotlib.pyplot as plt data = random.random((5,5)) img = plt.imshow(data, interpolation='nearest') img.set_cmap('hot') plt.axis('off') plt.savefig("test.png", bbox_inches='tight') [INST] Case insensitive 'in' - Python I love using the expression if 'MICHAEL89' in USERNAMES: ... where USERNAMES is a list Is there any way to match items with case insensitivity or do I need to use a custom method? Just wondering if there is need to write extra code for this. Thanks to everyone! [/INST] if 'MICHAEL89' in (name.upper() for name in USERNAMES): ... Alternatively: if 'MICHAEL89' in map(str.upper, USERNAMES): ... Or, yes, you can make a custom method. [INST] Python Pandas - Re-ordering columns in a dataframe based on column name I have a dataframe with over 200 columns (don't ask why). The issue is as they were generated the order is ['Q1.3','Q6.1','Q1.2','Q1.1',......] I need to re-order the columns as follows: ['Q1.1','Q1.2','Q1.3',.....'Q6.1',......] Is there some way for me to do this within python? [/INST] You can also do more succinctly: df.sort_index(axis=1) [INST] Relative paths in Python I'm building a simple helper script for work that will copy a couple of template files in our code base to the current directory. I don't, however, have the absolute path to the directory where the templates are stored. I do have a relative path from the script but when I call the script it treats that as a path relative to the current working directory. Is there a way to specify that this relative url is from the location of the script instead? [/INST] In the file that has the script, you want to do something like this: import os dir = os.path.dirname(__file__) filename = os.path.join(dir, '/relative/path/to/file/you/want') This will give you the absolute path to the file you're looking for. Note that if you're using setuptools, you should probably use its package resources API instead. UPDATE: I'm responding to a comment here so I can paste a code sample. :-) Am I correct in thinking that __file__ is not always available (e.g. when you run the file directly rather than importing it)? I'm assuming you mean the __main__ script when you mention running the file directly. If so, that doesn't appear to be the case on my system (python 2.5.1 on OS X 10.5.7): #foo.py import os print os.getcwd() print __file__ #in the interactive interpreter >>> import foo /Users/jason foo.py #and finally, at the shell: ~ % python foo.py /Users/jason foo.py However, I do know that there are some quirks with __file__ on C extensions. For example, I can do this on my Mac: >>> import collections #note that collections is a C extension in Python 2.5 >>> collections.__file__ '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- dynload/collections.so' However, this raises an exception on my Windows machine. [INST] How to store data frame using PANDAS, Python Right now I'm importing a fairly large CSV as a dataframe every time I run the script. Is there a good solution for keeping that dataframe constantly available in between runs so I don't have to spend all that time waiting for the script to run? [/INST] The easiest way is to pickle it using to_pickle: df.to_pickle(file_name) # where to save it, usually as a .pkl Then you can load it back using: df = pd.read_pickle(file_name) Note: before 0.11.1 save and load were the only way to do this (they are now deprecated in favor of to_pickle and read_pickle respectively). Another popular choice is to use HDF5 (pytables) which offers very fast access times for large datasets: store = HDFStore('store.h5') store['df'] = df # save it store['df'] # load it More advanced strategies are discussed in the cookbook. Since 0.13 there's also msgpack which may be be better for interoperability, as a faster alternative to JSON, or if you have python object/text-heavy data (see this question). [INST] Python list iterator behavior and next(iterator) Consider: >>> lst = iter([1,2,3]) >>> next(lst) 1 >>> next(lst) 2 So, advancing the iterator is, as expected, handled by mutating that same object. This being the case, I would expect: a = iter(list(range(10))) for i in a: print(i) next(a) to skip every second element: the call to next should advance the iterator once, then the implicit call made by the loop should advance it a second time - and the result of this second call would be assigned to i. It doesn't. The loop prints all of the items in the list, without skipping any. My first thought was that this might happen because the loop calls iter on what it is passed, and this might give an independent iterator - this isn't the case, as we have iter(a) is a. So, why does next not appear to advance the iterator in this case? [/INST] What you see is the interpreter echoing back the return value of next() in addition to i being printed each iteration: >>> a = iter(list(range(10))) >>> for i in a: ... print(i) ... next(a) ... 0 1 2 3 4 5 6 7 8 9 So 0 is the output of print(i), 1 the return value from next(), echoed by the interactive interpreter, etc. There are just 5 iterations, each iteration resulting in 2 lines being written to the terminal. If you assign the output of next() things work as expected: >>> a = iter(list(range(10))) >>> for i in a: ... print(i) ... _ = next(a) ... 0 2 4 6 8 or print extra information to differentiate the print() output from the interactive interpreter echo: >>> a = iter(list(range(10))) >>> for i in a: ... print('Printing: {}'.format(i)) ... next(a) ... Printing: 0 1 Printing: 2 3 Printing: 4 5 Printing: 6 7 Printing: 8 9 In other words, next() is working as expected, but because it returns the next value from the iterator, echoed by the interactive interpreter, you are led to believe that the loop has its own iterator copy somehow. [INST] Python, opposite function urllib.urlencode How can I convert data after processing urllib.urlencode to dict? urllib.urldecode does not exist. [/INST] As the docs for urlencode say, The urlparse module provides the functions parse_qs() and parse_qsl() which are used to parse query strings into Python data structures. (In older Python releases, they were in the cgi module). So, for example: >>> import urllib >>> import urlparse >>> d = {'a':'b', 'c':'d'} >>> s = urllib.urlencode(d) >>> s 'a=b&c=d' >>> d1 = urlparse.parse_qs(s) >>> d1 {'a': ['b'], 'c': ['d']} The obvious difference between the original dictionary d and the "round-tripped" one d1 is that the latter has (single-item, in this case) lists as values -- that's because there is no uniqueness guarantee in query strings, and it may be important to your app to know about what multiple values have been given for each key (that is, the lists won't always be single-item ones;-). As an alternative: >>> sq = urlparse.parse_qsl(s) >>> sq [('a', 'b'), ('c', 'd')] >>> dict(sq) {'a': 'b', 'c': 'd'} you can get a sequence of pairs (urlencode accepts such an argument, too -- in this case it preserves order, while in the dict case there's no order to preserve;-). If you know there are no duplicate "keys", or don't care if there are, then (as I've shown) you can call dict to get a dictionary with non-list values. In general, however, you do need to consider what you want to do if duplicates are present (Python doesn't decide that on your behalf;-). [INST] How do I access the command history from IDLE? On bash or Window's Command Prompt, we can press the up arrow on keyboard to get the last command, and edit it, and press ENTER again to see the result. But in Python's IDLE 2.6.5 or 3.1.2, it seems if our statement prints out 25 lines, we need to press the up arrow 25 times to that last command, and press ENTER for it to be copied? Or use the mouse to pinpoint that line and click there, and press ENTER to copy? Is there a faster way? [/INST] I think you are looking for the history-previous action, which is bound to alt+p by default. You can remap it in Options->Configure IDLE->Keys Incidentally, why don't you try a better (less ugly, for starters) shell like bpython or ipython? [INST] python nested list comprehension I have a this list: l = [['40', '20', '10', '30'], ['20', '20', '20', '20', '20', '30', '20'], ['30', '20', '30', '50', '10', '30', '20', '20', '20'], ['100', '100'], ['100', '100', '100', '100', '100'], ['100', '100', '100', '100']] Now, what I want to do is convert each element in a list to float. My solution is this: newList = [] for x in l: for y in x: newList.append(float(y)) But can this be done using nested list comprehension, right? what I've done is: [float(y) for y in x for x in l] But then the result is bunch of 100's with the sum of 2400. any solution, an explanation would be much appreciated. Thanks! [/INST] Here is how you would do this with a nested list comprehension: [[float(y) for y in x] for x in l] This would give you a list of lists, similar to what you started with except with floats instead of strings. If you want one flat list then you would use [float(y) for x in l for y in x]. [INST] BeautifulSoup Grab Visible Webpage Text Basically, I want to use BeautifulSoup to grab strictly the visible text on a webpage. For instance, this webpage is my test case. And I mainly want to just get the body text (article) and maybe even a few tab names here and there. I have tried the suggestion in this SO question that returns lots of