Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76173

Re: Python in financial services

Newsgroups comp.lang.python
Date 2014-08-12 23:43 -0700
References <d61fbee7-4404-4924-8793-4e65c15e81be@googlegroups.com>
Message-ID <6232be8e-0438-4936-b257-828f0bb3e1c2@googlegroups.com> (permalink)
Subject Re: Python in financial services
From wxjmfauth@gmail.com

Show all headers | View raw


Le mardi 12 août 2014 09:33:11 UTC+2, Rustom Mody a écrit :
> Ive been asked to formulate a python course for financial services folk.
> 
> 
> 
> If I actually knew about the subject, I'd have fatter pockets!
> 
> Anyway heres some thoughts. What I am missing out?
> 
> 
> 
> [Apart from basic python -- contents typically needs tailoring to the audience] the following:
> 
> 
> 
> - Libraries -- Decimal?
> 
> - scripts -- philosophy and infrastructure eg argparse, os.path
> 
> - Pandas
> 
> - Numpy Scipy (which? how much?)
> 
> - ipython + matplotlib + ??
> 
> - Database interfacing
> 
> - Excel interfacing (couple of libraries.. which?)
> 
> - C(C++?) interfacing paradigms -- ranging from ctypes, cython to classic lo-level

I recommend to toy intensively with the 'EURO SIGN' in
strings manipulations.

Py3: It may luckily work, Python may crash or fails (it raises
unicode errors on valid string!).

Py2: It is safer and solid. There is however a subtility. 3rd
party tools may consider the Euro as byte or as unicode and/or
are missinterpreting it, leading to a huge missmatch.

Example: IDLE

>>> print 'EURO' * 10
EURO  EURO  EURO  EURO  EURO  EURO  EURO  EURO  EURO  EURO
>>> print u'EURO' * 10
          
>>> # result: nothing!
>>> 


This is not specific to the Euro. I let as an
exercise to *understand* which chars are suffering
from this issue. (Py2 and Py3)

jmf

PS Go, Ruby, C#, TeX (unicode engines): never meet a problem.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python in financial services Rustom Mody <rustompmody@gmail.com> - 2014-08-12 00:33 -0700
  Re: Python in financial services Johann Hibschman <jhibschman@gmail.com> - 2014-08-12 11:35 -0400
    Re: Python in financial services Rustom Mody <rustompmody@gmail.com> - 2014-08-12 10:44 -0700
  Re: Python in financial services Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-12 15:50 +0000
    Re: Python in financial services Rustom Mody <rustompmody@gmail.com> - 2014-08-12 10:48 -0700
      Re: Python in financial services Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-12 18:54 +0000
        Re: Python in financial services Rustom Mody <rustompmody@gmail.com> - 2014-08-12 12:05 -0700
  Re: Python in financial services Larry Martell <larry.martell@gmail.com> - 2014-08-12 17:07 -0400
  Re: Python in financial services wxjmfauth@gmail.com - 2014-08-12 23:43 -0700
    Re: Python in financial services Laurent Pointal <laurent.pointal@laposte.net> - 2014-08-19 18:35 +0200
      Re: Python in financial services Terry Reedy <tjreedy@udel.edu> - 2014-08-19 17:59 -0400
      Re: Python in financial services Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-20 00:00 +0100

csiph-web