Re: getting source code line of error?

2021-11-20 Thread Paolo G. Cantore
Am 20.11.21 um 20:15 schrieb Ulli Horlacher: Stefan Ram wrote: r...@zedat.fu-berlin.de (Stefan Ram) writes: except Exception as inst: print( traceback.format_exc() ) More to the point of getting the line number: As I wrote in my initial posting: I already have the line number. I am

Re: How to create an Excel app that runs Python?

2020-03-28 Thread Paolo G. Cantore
Am 25.03.20 um 15:21 schrieb farayao...@gmail.com: Hello Paolo, Thanks for your reply, indeed now I'm thinking on building a web app, do you have any suggestions for this? I am thinking of using Tkinter, the method that you describe using HTML is also using Javascript? Kind Regards Felipe

Re: How to create an Excel app that runs Python?

2020-03-24 Thread Paolo G. Cantore
On Tue, Mar 24, 2020, 4:45 PM wrote: I have the following scenario: I have created lots of python files that I use to calculate a Cashflow model, when I run these files I get a beautiful pandas DataFrame that contains my final model. My mission is to show this table to the rest of the compan

Re: Python help needed

2019-08-08 Thread Paolo G. Cantore
Am 08.08.19 um 01:18 schrieb MRAB: On 2019-08-07 21:36, Kuyateh Yankz wrote: #trying to write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example, passing the previous sp

Re: How to turn a variable name into a string?

2005-03-11 Thread Paolo G. Cantore
Hi Stewart, what about the other way, string -> var and not var -> string? My suggestion: mylist = ["a", "b", "c"] for my in mylist: if locals()[my] == None: print "you have a problem with %s" % my Paolo Stewart Midwinter wrote: I'd like to do something like the following: a = 1; b = 2; c