Re: [SOLVED] Re: Firebird 1.5 and Python 3.4 - is this possible?

2017-08-10 Thread Ben Finney
Nagy László Zsolt writes: > Problem solved! Congratulations. And thank you for reporting the succesful resolution :-) -- \ “It is clear that thought is not free if the profession of | `\ certain opinions makes it impossible to earn a living.” | _o__) —Bertrand Russell, _

[SOLVED] Re: Firebird 1.5 and Python 3.4 - is this possible?

2017-08-09 Thread Nagy László Zsolt
To answer my own question: - You can convert a firebird 1.5 database into 2.5 with this tool: http://gsbelarus.com/gs/fdbconvert/fdbconvert_eng.html - You can install firebird 2.5 instead of 1.5. Old BDE based program will still work with it, because the Firebird 2.5 server can talk with a 1.5 c

Firebird 1.5 and Python 3.4 - is this possible?

2017-08-07 Thread Nagy László Zsolt
Hi! I have an old HIS program written in Delphi. It uses Firebird 1.5 database. I need to make an interface to exchange data with other healthcare providers. I do not want to do this in Delphi, that is ancient code. It is also not an option to rewrite the whole program from scratch. I just need

Re: is this possible (getting info off web page)

2009-04-10 Thread Esmail
bruce wrote: Hi Esmail. I've not looked at the site. however, i can give you some general pointers that might help you in solving your issue. Excellent advice, thanks for pointing me in those directions. I am not familiar with curl but will take this as an opportunty to learn about it. I think

RE: is this possible (getting info off web page)

2009-04-09 Thread bruce
douglas=earthlink@python.org]on Behalf Of Esmail Sent: Thursday, April 09, 2009 2:47 PM To: python-list@python.org Subject: is this possible (getting info off web page) Hi, I am trying to keep track of two flight bookings on the kayak.com web site, and would like to automate my query using Pyth

is this possible (getting info off web page)

2009-04-09 Thread Esmail
Hi, I am trying to keep track of two flight bookings on the kayak.com web site, and would like to automate my query using Python. If I enter the url below myself into the browser, a form gets filled out and the site searches for flights. I would love to be able to have a simple python script whi

Re: Is this possible ....

2008-07-23 Thread Stef Mientki
thanks Paul, your solution works very well. cheers, Stef Paul Hankin wrote: On Jul 23, 9:58 am, Stef Mientki <[EMAIL PROTECTED]> wrote: You could use version() instead of module.version(), and just declare 'version' in one place. Presumably you already have a module for getting the m

Re: Is this possible ....

2008-07-23 Thread Paul Hankin
On Jul 23, 9:58 am, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I'm looking for a way to remove duplicate code. > The problem is this: > In all my modules I've version information, > containing version information, date, author, testconditions etc, > something like this: > > Version_Text =

Is this possible ....

2008-07-23 Thread Stef Mientki
hello, I'm looking for a way to remove duplicate code. The problem is this: In all my modules I've version information, containing version information, date, author, testconditions etc, something like this: Version_Text = [ [ 0.2, '10-02-2008', 'Stef Mientki', 'Test Conditions:', (1,2), _(0, """

Re: Is this possible in Python?

2006-03-14 Thread alainpoint
Steven D'Aprano wrote: > > Doesn't work for me either: > > >>> def magic(arg): > ... import inspect > ... return inspect.stack()[1][4][0].split("magic")[-1][1:-1] > ... > >>> magic(3+4) > Traceback (most recent call last): > File "", line 1, in ? > File "", line 3, in magic > TypeErro

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Steven D'Aprano
On Tue, 14 Mar 2006 13:33:01 -0800, alainpoint wrote: > > Kay Schluehr wrote: >> [EMAIL PROTECTED] wrote: >> > jalanb wrote: >> > > You might like the version here: >> > > http://www.jorendorff.com/toys/out.html >> > > >> > > Especially the "need to know" presentation, which is cute >> > > >> > >

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint
Kay Schluehr wrote: > [EMAIL PROTECTED] wrote: > > jalanb wrote: > > > You might like the version here: > > > http://www.jorendorff.com/toys/out.html > > > > > > Especially the "need to know" presentation, which is cute > > > > > > -- > > > Alan > > > http://aivipi.blogspot.com > > > > Thank you f

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > jalanb wrote: > > You might like the version here: > > http://www.jorendorff.com/toys/out.html > > > > Especially the "need to know" presentation, which is cute > > > > -- > > Alan > > http://aivipi.blogspot.com > > Thank you for the tip. > Meanwhile, I found a shorter s

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint
jalanb wrote: > You might like the version here: > http://www.jorendorff.com/toys/out.html > > Especially the "need to know" presentation, which is cute > > -- > Alan > http://aivipi.blogspot.com Thank you for the tip. Meanwhile, I found a shorter solution to my problem: def magic(arg): i

Re: Is this possible in Python?

2006-03-14 Thread Fredrik Lundh
"jalanb" wrote: > You might like the version here: > http://www.jorendorff.com/toys/out.html which only works if 1) you're using a Python implementation that supports those attributes, 2) the source code is available, 3) the expression is written on a single line, and 4) you don't use confusing c

Re: Is this possible in Python?

2006-03-14 Thread jalanb
You might like the version here: http://www.jorendorff.com/toys/out.html Especially the "need to know" presentation, which is cute -- Alan http://aivipi.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this possible in Python?

2006-03-13 Thread Grant Edwards
On 2006-03-13, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello again, > I am disappointed. Yea, life's like that. Sucks, eh? -- Grant Edwards grante Yow! ... The waitress's at UNIFORM sheds TARTAR SAUCE

Re: Is this possible in Python?

2006-03-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I don't want a better way, i just want a solution to the problem as > described! any special reason you cannot use Python to write Python programs, instead of demanding that someone else wastes time inventing a non- portable solution to a braindead problem? what's wron

Re: Is this possible in Python?

2006-03-13 Thread Paul Rubin
[EMAIL PROTECTED] writes: > I don't want a better way, i just want a solution to the problem as > described! I once did something like: try: raise ValueError except ValueError, e: pass then get the traceback object out of e, and snarf the relevant source line as mentioned before. --

Re: Is this possible in Python?

2006-03-13 Thread alainpoint
Hi Kent, My intention is to be able to retrieve any line of code in a running program, in the following way: def magic_funct(s): for line in file(s.gi_frame.f_code.co_filename): print line magic_funct(i for i in [1,2,3]) I just find it stupid to be obliged to use a generato

Re: Is this possible in Python?

2006-03-13 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hello again, > I am disappointed. You are the experts, you've got to try harder ;-) > What i want is a generalisation of this tiny function: Why? Maybe we can find a better way... Kent -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this possible in Python?

2006-03-13 Thread alainpoint
Hello again, I am disappointed. You are the experts, you've got to try harder ;-) What i want is a generalisation of this tiny function: import tokenize import token def magic_function(s): readline = open(s.gi_frame.f_code.co_filename).readline for t in tokenize.generate_tokens(open

Re: Is this possible in Python?

2006-03-13 Thread Caleb Hattingh
Hi I don't think this is what you want (a string representation of the argument passed to a function as that argument is at runtime is way beyond my abilities), but this can retrieve the literal text in the function call as it appears in the .py file, assuming you have the .py file available a

Re: Is this possible in Python?

2006-03-13 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I wonder if Python is capable of the following: define a function which > returns its argument. > I mean: > def magic_function(arg): >.. some magic code ... > > that behaves the following way: > > assert magic_functi

Re: Is this possible in Python?

2006-03-13 Thread Ron Garret
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hi > > I wonder if Python is capable of the following: define a function which > returns its argument. > I mean: > def magic_function(arg): > .. some magic code ... > > that behaves the following way: > > assert magic_funct

Re: Is this possible in Python?

2006-03-13 Thread alainpoint
Kay Schluehr wrote: > Storing arguments away before they are evaluated doesn't work in > Python. You have to hack the compiler in order to access the parsetree. > You might take a look at the compiler package of the standard library > that enables access to ASTs. Thus you could define lazy evaluat

Re: Is this possible in Python?

2006-03-13 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > Hi > > I wonder if Python is capable of the following: define a function which > returns its argument. > I mean: > def magic_function(arg): > .. some magic code ... > > that behaves the following way: > > assert magic_function(3+4)=="3+4" > assert magic_funct

Re: Is this possible in Python?

2006-03-13 Thread Azolex
Paul Rubin wrote: > [EMAIL PROTECTED] writes: >> assert magic_function(3+4)=="3+4" >> assert magic_function([i for i in range(10)])=="i for i in range(10)]" >> >> It is not trivial at all and might require some bytecode hacking that i >> am unable to do myself BUT you are the experts ;-) > > Guhhh

Re: Is this possible in Python?

2006-03-13 Thread Paul Rubin
[EMAIL PROTECTED] writes: > assert magic_function(3+4)=="3+4" > assert magic_function([i for i in range(10)])=="i for i in range(10)]" > > It is not trivial at all and might require some bytecode hacking that i > am unable to do myself BUT you are the experts ;-) Guhhh... you'd want to use the tr

Is this possible in Python?

2006-03-13 Thread alainpoint
Hi I wonder if Python is capable of the following: define a function which returns its argument. I mean: def magic_function(arg): .. some magic code ... that behaves the following way: assert magic_function(3+4)=="3+4" assert magic_function([i for i in range(10)])=="i for i in range(

Re: is this possible?

2005-07-23 Thread Terry Hancock
On Saturday 23 July 2005 03:26 am, Steven D'Aprano wrote: > On Fri, 22 Jul 2005 07:59:42 -0700, scrimp wrote: > As others have suggested, if you have to deal with PDF files without > Acrobat, you could use ghostscript. Also pre-installed on many versions > of Linux, and probably other Unixes as wel

Re: is this possible?

2005-07-23 Thread Steven D'Aprano
On Fri, 22 Jul 2005 07:59:42 -0700, scrimp wrote: > I am using reportlab not to generate PDF files, Isn't that amazing! I'm also using reportlab not to generate PDF files too! I installed the program, and it just sits there, not generating as many PDF files as I don't want for as long as I don't

Re: is this possible?

2005-07-22 Thread Robert Kern
scrimp wrote: > I am using reportlab not to generate PDF files, but I want to be able > to print them without having to install acrobat reader. I looked > through the users guide and found nothing about printing to a printer > (programmatically). I want to be able to automate the printing of > repo

Re: is this possible?

2005-07-22 Thread scrimp
I am using reportlab not to generate PDF files, but I want to be able to print them without having to install acrobat reader. I looked through the users guide and found nothing about printing to a printer (programmatically). I want to be able to automate the printing of reports when they are availa

Re: is this possible?

2005-07-22 Thread Rob Cowie
Yeah, Acrobat Reader is for viewing PDF's, not creating them. See http://www.reportlab.org/ for a couple of mature PDF libraries. -- http://mail.python.org/mailman/listinfo/python-list

Re: is this possible?

2005-07-22 Thread Terry Hancock
On Friday 22 July 2005 08:26 am, scrimp wrote: > Is it possible to print a PDF file using python without having acrobat > reader installed on the machine?? Sure, there are several free-licensed PDF readers. Perhaps the most obvious is Ghostscript ("gs") which can interpret PDF as well as Postscri

is this possible?

2005-07-22 Thread scrimp
Is it possible to print a PDF file using python without having acrobat reader installed on the machine?? -- http://mail.python.org/mailman/listinfo/python-list