PEP 572 -- Assignment Expressions

2018-11-27 Thread Ivo Shipkaliev
signment! Can't it all just be a "="? Thank you very much! Kind Regards Ivo Shipkaliev -- https://mail.python.org/mailman/listinfo/python-list

Re: Python.NET question?

2017-03-21 Thread Ivo Bellin Salarin
IronPython? Le mar. 21 mars 2017 08:52, Tristan B. Kildaire a écrit : > Is Python.NET a version of Python that compiles Python source code to > Microsoft's IR for running by a MS runtime? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/p

Python doesn't catch exceptions ?

2017-02-01 Thread Ivo Bellin Salarin
Hi all, I have a curious problem with Python exceptions. The following code doesn't catch HttpError: ``` from server.libs.googleapiclient.errors import HttpError [..] try: OAuth.backoffExec(request) return True except HttpError as e: return e.resp.status == 404

Python-2.3.4 on OSF1 V4.0?

2008-08-28 Thread Ivo Raisr
Hi Edmond and any interested reader, I've successfully patched _socket extension of python 2.5.1 to build on OSF1 V4.0 with gcc 4.1.2. The following construct is put right after #include "Python.h" and #include "structmember.h": #define _POSIX_PII_SOCKET #define _LIBC_POLLUTION_H_ Ivosh Raisr -- h

Re: python without while and other "explosive" statements

2008-05-12 Thread ivo talvet
thanks for the tips, pam limits and http://codepad.org/ are both interesting tracks. Ivo 2008/5/12 Matt Nordhoff <[EMAIL PROTECTED]>: > > ivo talvet wrote: > > Hello, > > > > Is it possible to have a python which not handle the execution of > > "whi

python without while and other "explosive" statements

2008-05-11 Thread ivo talvet
uot;secure python" (you can guess what i mean by "secure" in my case) or must i touch myself the source disable some code lines ? If last solution, which modifications in which files should i do ? (sorry for my bad english) Thanks. Ivo -- http://mail.python.org/mailman/listinfo/python-list

Re: interested????

2008-02-05 Thread Ivo
no -- http://mail.python.org/mailman/listinfo/python-list

Re: polling for output from a subprocess module

2008-02-05 Thread Ivo
Thomas Bellman wrote: > [EMAIL PROTECTED] wrote: > >> try: >> test = Popen(test_path, >> stdout=PIPE, >> stderr=PIPE, >> close_fds=True, >> env=

Re: Simple HTML template engine?

2007-10-15 Thread Ivo
> >> I'm sure I could build something myself, but I'm sure this has already >> been done quite a few times. Why re-invent the wheel, right? >> >> >> Thank you, >> Allen I concur completely! My site http://IvoNet.nl is completely written in python and based on a very early release of cherrypy. gr, Ivo. -- http://mail.python.org/mailman/listinfo/python-list

Re: Resolving windows shortcut to url

2007-09-21 Thread Ivo
Ivo wrote: > Richard Townsend wrote: >> If I have a windows shortcut to a URL, is there a way to get the URL >> in a Python app? >> >> I found some code that uses pythoncom to resolve shortcuts to local >> files, but I haven't found any examples for URL

Re: Resolving windows shortcut to url

2007-09-21 Thread Ivo
Ivo wrote: > Richard Townsend wrote: >> If I have a windows shortcut to a URL, is there a way to get the URL >> in a Python app? >> >> I found some code that uses pythoncom to resolve shortcuts to local >> files, but I haven't found any examples for URL

Re: Resolving windows shortcut to url

2007-09-21 Thread Ivo
Richard Townsend wrote: > If I have a windows shortcut to a URL, is there a way to get the URL > in a Python app? > > I found some code that uses pythoncom to resolve shortcuts to local > files, but I haven't found any examples for URLs. > > The PyWin32 help mentions the PyIUniformResourceLocator

Re: elementtree question

2007-09-21 Thread Ivo
Tim Arnold wrote: > Hi, I'm using elementtree and elementtidy to work with some HTML files. For > some of these files I need to enclose the body content in a new div tag, > like this: > > >original contents... > > > > I figure there must be a way to do it by creating a 'div' SubEleme

Re: Remote Command a Python Script

2007-09-21 Thread Ivo
Ulysse wrote: > Hello, > > I've installed Python 2.5 on my WRT54G Linksys Router. On this router > a script is executed. This script write a little Pickle database in > the router memory. > > I would like to write another Python script which will be able to : > > 1. Stop and start the remote scr

Re: Python Regex Question

2007-09-21 Thread Ivo
t compiled expression (costs less) re.search(expr, string) compiles and searches every time. This can potentially be more expensive in calculating power. especially if you have to use the expression a lot of times. The way you use it it doesn't matter. do: pattern = re.compile('[0-9]*\.[0-9]*') result = pattern.findall(your tekst here) Now you can reuse pattern. Cheers, Ivo. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Database Apps

2007-09-11 Thread Ivo
it performs great. The whole database is less than 1Mb including the SQLite module for python. No 50Mb install needed if you just want a simple database. It makes my website very portable and easy to install. MySQL works great to. I have used it a lot and it is very available. Just about

Re: Relative paths in mod_python

2006-03-20 Thread Ivo van der Sangen
On 2006-03-19, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Ivo van der Sangen a écrit : >> I was wondering if I could use relative paths in a mod_python script. At >> the moment I am defining a constant string >> "/path/to/dir/where/script/resides". Th

Relative paths in mod_python

2006-03-19 Thread Ivo van der Sangen
I was wondering if I could use relative paths in a mod_python script. At the moment I am defining a constant string "/path/to/dir/where/script/resides". The problem with this is that when I move the script including files I use to get metadata I have to change this variable. The same problem occurs

Re: subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-26 Thread Ivo Woltring
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ivo, my initial thought would be, you need to know how much text you > will get back from popen. My Python reference has the following > example: > > import os > dir = os.popen('ls -al', 'r'

subprocess.Popen() redirecting to TKinter or WXPython textwidget???

2005-01-26 Thread Ivo Woltring
f progress-status. Thanx, Ivo Woltring -- http://mail.python.org/mailman/listinfo/python-list

Reading raw data from disc

2004-12-13 Thread Ivo Woltring
in the right direction thankx Ivo. -- http://mail.python.org/mailman/listinfo/python-list

Re: MP3 - VBR - Frame length in time

2004-12-12 Thread Ivo Woltring
"Florian Schulze" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> > wrote: > > > mmpython will help but not always. > > Lets put it this way. I will ALWAYS read throug

Re: MP3 - VBR - Frame length in time

2004-12-11 Thread Ivo Woltring
n't mind evaluating each frame. The thing I don't seem to be able to find is the timelength-constants for frames for the different mp3 versions, bitrates and layers. Can anybody help me? Thnaks, Ivo -- http://mail.python.org/mailman/listinfo/python-list

MP3 - VBR - Frame length in time

2004-12-08 Thread Ivo Woltring
nical information on VBR and MP3. Can anybody tell me the length in time of the different bitrates in all the versions of mp3 and all the layers. Tooling or links also really welcome. My own googling has helped me some but on the subject of VBR I get stuck. Thanks a lot, Ivo. --