matplotlib under Zope

2005-03-03 Thread fabian
i develop an application under zope with windows 2000 and i would like integrate graphs. the problem is that the installation of matplotlib doesn't find the python of zope and so i can't make graph. Maybe a problem of register? could you help me? thanks -- http://mail.python.org/mailman/listi

variables exist

2005-04-11 Thread fabian
how testing if a variable exists in python as isset in php?? thanks -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Python-list Digest, Vol 106, Issue 1

2012-07-01 Thread Fabian Doerfler
(a2 + b2 = c2) = (e < | > P a P b P c) Beschreibt eine Disonanz in Genese. -- Weitergeleitete Nachricht -- Von: Datum: 30.06.2012 23:09 Betreff: Python-list Digest, Vol 106, Issue 1 An: Send Python-list mailing list submissions to python-list@python.org To subscribe or

Re: Problem when scraping the 100 Movie titles.

2022-09-22 Thread Fabian Joseph
#Try using, it's save in json format of the website: import json import requests from bs4 import BeautifulSoup url = "https://www.empireonline.com/movies/features/best-movies-2/"; soup = BeautifulSoup(requests.get(url).content, "html.parser") data = json.loads(soup.select_one("#__NEXT_DATA__").

Re: How to test for type or instance of dict_values?

2018-12-11 Thread fabian . becker87
Very late to the party, but I just encountered a very similar problem and found a solution: ``` import collections obj = {"foo": "bar"} isinstance(obj.values(), collections.abc.ValuesView) # => True ``` Hope that helps someone out there :) On Thursday, November 17, 2016 at 9:09:23 AM UTC-8, Te

COM error Access is denied

2005-09-22 Thread Fabian Skivee
turn self._get_good_object_(self._oleobj_.Invoke(*allAr defaultDispatchName,None) com_error: (-2147024891, 'Access is denied.', None, None) --- Thanks Fabian Skivée -- http://mail.python.org/mailman/listinfo/python-list

extending class static members and inheritance

2013-04-02 Thread Fabian PyDEV
ish this? I was thinking on accomplishing this as follows: class Derived(Base): __mylist__ = Base.__mylist__ + ["value3", "value4"] def anothermethod(self): pass Is there a better way? Perhaps a decorator? Thanks in advance and regards, Fabian -- http://mail.python.org/mailman/listinfo/python-list

Different cache filename

2013-04-19 Thread Fabian PyDEV
could tell python to generate the bycode file as mymodule.ext.cpython-33.pyc? Regards, Fabian -- http://mail.python.org/mailman/listinfo/python-list

getsockopt

2005-12-15 Thread Fabian Deutsch
Hello, my name is fabian and i'm a student from northern germany. right now i try to create som kind of decapsulation of esp-udp packets using python. therefor i need to use the socket.getsockopt (SOL_IP, IP_OPTIONS, 20) method. But al i get is some empty value. Nothin. Does someone kn

Re: getsockopt

2005-12-15 Thread Fabian Deutsch
Forgot: > The lines: > s = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) > s.bind(('',4500)) > while 1:# Run until cancelled > message, client = s.recvfrom(1400) # <=256 byte datagram > hdr = s.getsockopt (SOL_IP, IP_OPTIONS, 20) > print "Client connected:", client > pri

Re: getsockopt

2005-12-16 Thread Fabian Deutsch
> --- Ursprüngliche Nachricht --- > Von: Steve Holden <[EMAIL PROTECTED]> > An: python-list@python.org > Betreff: Re: getsockopt > Datum: Fri, 16 Dec 2005 08:29:08 + > > Fabian Deutsch wrote: > > Hello, > > > > my name is fabian and i'm a stu

Re: getsockopt

2005-12-16 Thread Fabian Deutsch
Stave Holde wrote: > Fabian Deutsch wrote: > >>--- Ursprüngliche Nachricht --- > >>Von: Steve Holden <[EMAIL PROTECTED]> > >>An: python-list@python.org > >>Betreff: Re: getsockopt > >>Datum: Fri, 16 Dec 2005 08:29:08 + > >> &

Re: Re: getsockopt

2005-12-16 Thread Fabian Deutsch
Steve Holden wrote: > Fabian Deutsch wrote: > >>--- Ursprüngliche Nachricht --- > >>Von: Steve Holden <[EMAIL PROTECTED]> > >>An: python-list@python.org > >>Betreff: Re: getsockopt > >>Datum: Fri, 16 Dec 2005 08:29:08 + > >> &

Starting a GUI application out of an console application

2006-07-17 Thread Fabian Steiner
Hello! I am currently working on an alternative for the gnome-volume-manager for multiseat systems based on HAL and DBus. Whenever the signal 'DeviceAdded' is received I would like to start a GUI-Interface where the user can choose from different options. But now I am wondering how I should st

Recursive function returning a list

2006-07-17 Thread Fabian Steiner
Hello! I have got a Python "Device" Object which has got a attribute (list) called children which my contain several other "Device" objects. I implemented it this way in order to achieve a kind of parent/child relationship. Now I would like to get all children of a given "Device" object and t

install python on cdrom

2006-07-29 Thread Fabian Braennstroem
way? I would be glad to read some hints about the way doing it... Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: install python on cdrom

2006-08-03 Thread Fabian Braennstroem
Hi Martin, * Martin v. Löwis <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem schrieb: >> I look for an easy way to use the newest scipy, pyvtk, matplotlib, >> f2py, numpy, paraview/vtk,... on a entreprise redhat machine >> without administration rights. >> My

email client like mutt

2006-08-05 Thread Fabian Braennstroem
Hi, I am looking for a python email client for the terminal... something like mutt; maybe, so powerfull ;-) Would be nice, if anybody has an idea! Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

access abook addressbook with curses

2006-08-05 Thread Fabian Braennstroem
Hi, I want to get access to my abook address file with python. Does anyone have some python lines to achive this using curses? If not, maybe anybody has small python program doing it with a gui!? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: access abook addressbook with curses

2006-08-06 Thread Fabian Braennstroem
Hi Ben, * Ben C <[EMAIL PROTECTED]> wrote: > On 2006-08-05, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I want to get access to my abook address file with python. >> Does anyone have some python lines to achive this using >> curses? I

Re: email client like mutt

2006-08-07 Thread Fabian Braennstroem
Hi to both, * cga2000 <[EMAIL PROTECTED]> wrote: > On Mon, Aug 07, 2006 at 08:34:16PM EDT, Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> cga2000 <[EMAIL PROTECTED]> wrote: >> >On Sun, Aug 06, 2006 at 04:15:08PM EDT, Aahz wrote: >> >> In

Re: access abook addressbook with curses

2006-08-07 Thread Fabian Braennstroem
Hi Ben, * Ben C <[EMAIL PROTECTED]> wrote: > On 2006-08-06, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi Ben, >> >> * Ben C <[EMAIL PROTECTED]> wrote: >>> On 2006-08-05, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >>>>

Re: access abook addressbook with curses

2006-08-13 Thread Fabian Braennstroem
Hi Ben, * Ben C <[EMAIL PROTECTED]> wrote: > On 2006-08-08, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi Ben, >> >> * Ben C <[EMAIL PROTECTED]> wrote: >>> On 2006-08-06, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >>>>

radio buttons in curses

2006-08-20 Thread Fabian Braennstroem
ven better, how I can create radio and check buttons with the 'ordinary' curses module? Would be nice... Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: radio buttons in curses

2006-08-22 Thread Fabian Braennstroem
Sorry, me again... Does nobody have an idea or is it to stupid? * Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I want to add some radio and check buttons to my curses > script. As I understand it, there are no buttons in the > 'basic' curses module

extract certain values from file with re

2006-10-06 Thread Fabian Braennstroem
7;U-Mom' row using grep and print a certain column (e.g. 'Max Res') to a file and print it with gnuplot. Maybe I have to remove those '|' using sed before... Do you have an idea, how I can do this completely using python? Thanks for your help! Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: extract certain values from file with re

2006-10-07 Thread Fabian Braennstroem
Hi to all, thanks a lot! I am pretty sure your ideas help :-) Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific computing and data visualization.

2006-10-07 Thread Fabian Braennstroem
> very powerful and PyRoot is really a pleasure to work with. It sounds interesting. Right now, I use matplotlib for 2D plotting and vtk for 3D. Do you have any experience and can give some recommendations? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific computing and data visualization.

2006-10-08 Thread Fabian Braennstroem
or >> 2D plotting and vtk for 3D. Do you have any experience and >> can give some recommendations? > > Hi Fabian! > > I recommend using matplotlib for data visualization, because the usage > of the plotting commands is much(!!!) more convenient. In ROOT you have > to

change directory when closing curses program

2006-10-09 Thread Fabian Braennstroem
? lfm uses a bash-function for this purpose , which does not work in tcsh ... :-( Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread Fabian Braennstroem
sleep(5) > ss.Close(False) # close the workbook and don't save > xl.Application.Quit() # quit Excel > > if __name__=='__main__': > excel() > > hope this helps! Does there exist something similar for powerpoint? Would be nice, if anybody can direct me to more examples... Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: 3D Vector Type Line-Drawing Program

2006-10-13 Thread Fabian Braennstroem
- > point placed, and the tweak the POV-ray code to get pretty output. > > --Scott David Daniels > [EMAIL PROTECTED] > -- > http://mail.python.org/mailman/listinfo/python-list > Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding Worksheets to an Excel Workbook

2006-10-13 Thread Fabian Braennstroem
Hi Wesley, * wesley chun <[EMAIL PROTECTED]> wrote: >> just a small OT question coming from a linux openoffice >> system... >> >> Does there exist something similar for powerpoint? Would be >> nice, if anybody can direct me to more examples... > > >

Flushing standard input

2006-10-18 Thread Fabian Steiner
Is there any way to flush the stdin buffer so that 'test1' is _not_ regarded as input? How could one solve this issue? Cheers, Fabian -- http://mail.python.org/mailman/listinfo/python-list

change keybindings for pygtk treeview

2006-10-27 Thread Fabian Braennstroem
j' to move to the next row (just like in vim) and to use a 'Ctrl' key combination to search for a certain word beginning with the typed key stroke. Is it anyhow possible with pygtk? Would be nice, if somebody can point my to a small example. Greetings! Fabian -- http://mail.python.

Re: change keybindings for pygtk treeview

2006-10-28 Thread Fabian Braennstroem
Hi, * Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I am just testing pygtk/glade out and wonder, if I am able > to change the keybindings. E.g. the treeview searches by > default for the entries beginning with the typed keystroke; > moving to the next row work

small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
I do something completely wrong? Maybe, you have a different webserver script? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
Hi, * ArdPy <[EMAIL PROTECTED]> wrote: > > Fabian Braennstroem wrote: >> Hi, >> >> I am looking for a small python script, which starts a small >> web server with python cgi support on a linux machine. >> >> I tried: >> >> >> #!

Re: small python cgi webserver

2006-11-04 Thread Fabian Braennstroem
Hi Norbert, * Norbert Kaufmann <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem wrote: > [...] >> >> Maybe, I understood something wrong, but I thought that the >> above 'webserver' script would replace apache in my case; at >> least I hoped!? >&

regex module, or don't work as expected

2006-07-04 Thread Fabian Holler
Howdy, i have the following regex "iface lo[\w\t\n\s]+(?=(iface)|$)" If "iface" don't follow after the regex "iface lo[\w\t\n\s]" the rest of the text should be selected. But ?=(iface) is ignored, it is always the whole texte selected. What is wrong? many

Re: regex module, or don't work as expected

2006-07-04 Thread Fabian Holler
Hello Marc, thank you for your answer. Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Fabian Holler wrote: >> i have the following regex "iface lo[\w\t\n\s]+(?=(iface)|$)" >> >> If "iface" don't follow after the regex &

Re: radio buttons in curses

2006-08-24 Thread Fabian Braennstroem
Hi Steve, * Steve Holden <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem wrote: >> Sorry, me again... >> Does nobody have an idea or is it to stupid? >> >> * Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> >>>Hi, >>> >>>

Re: radio buttons in curses

2006-08-24 Thread Fabian Braennstroem
Hi Fredrik, * Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem wrote: > >> Does nobody have an idea or is it to stupid? > > have you looked at: > > http://excess.org/urwid/ Thanks! I found this too and it seems to be helpful... Greetings! Fabi

latex openoffice converter

2006-09-14 Thread Fabian Braennstroem
Hi, I would like to use python to convert 'simple' latex documents into openoffice format. Maybe, anybody has done something similar before and can give me a starting point!? Would be nice to hear some hints! Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: latex openoffice converter

2006-09-16 Thread Fabian Braennstroem
Hi to both, thanks! I'll try them ... * Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use python to convert 'simple' latex > documents into openoffice format. Maybe, anybody has done > something similar before and can give me a star

python gtk based file manager

2006-09-25 Thread Fabian Braennstroem
Hi, I am looking for a file manager based on pygtk. It seems that there does not exist any!? Maybe, someone has a hint or already some starting code lines for such a 'thing'!? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: python gtk based file manager

2006-09-25 Thread Fabian Braennstroem
thon version ... python seems to me a lot easier than C, esp. for adjusting and adding some functions for my daily use. I found wxPyAtol, which could be a good base, but unfortunately there is no wx installed at my office machine :-( > > Fabian Braennstroem wrote: >> Hi, >> >>

Splitting device addresses into parts

2006-09-26 Thread Fabian Steiner
I often have to deal with strings like "PCI:2:3.0" or "PCI:3.4:0" and need the single numbers as tuple (2, 3, 0) or (3, 4, 0). Is there any simple way to achieve this? So far I am using regular expressions but I would like to avoid them ... Regards, Fabian Steiner -- ht

Re: Splitting device addresses into parts

2006-09-26 Thread Fabian Steiner
Bruno Desthuilliers wrote: > Fabian Steiner wrote: >> I often have to deal with strings like "PCI:2:3.0" or "PCI:3.4:0" and >> need the single numbers as tuple (2, 3, 0) or (3, 4, 0). Is there any >> simple way to achieve this? So far I am using regular

Re: Splitting device addresses into parts

2006-09-26 Thread Fabian Steiner
int the rest. > Alternatively, if the delimiters can really be anything, and if there > are no numbers in the first space ("PCI"), then maybe this approach: Thank you, this solution seems to be quite satisfying :-) Regards, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

python 2.5 install from source problem

2006-12-01 Thread Fabian Braennstroem
k' installation which needs the python libraries I am not able to find a file like 'libpython2.5.so.*', which I think should be produced (at least at my office's machine (redhat) it is there). I just can find a 'libpython2.5.a' file ... Do I do something wrong? Greetings

Re: python 2.5 install from source problem

2006-12-02 Thread Fabian Braennstroem
Hi Martin, * Martin v. Löwis <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem schrieb: >> I just tried to install python 2.5 from source on my >> ScienticLinux (Redhat Clone) machine. It seems to work >> without any problem, at least I am able to run some of my >>

General Type Checks (int, str, tuple, etc.)

2006-01-28 Thread Fabian Steiner
Hello! So far, I am using something like »if isinstance(var, int):« to determine, whether var's value is an integer. Now I would like to know if there is any better possibility to do such general checks or may a construct with isinstance() even fail in certain cases? Cheers, Fabian --

Re: PyQt: QListView how to retrieve selected items?

2006-02-02 Thread Fabian Steiner
Hi! Sorry for adopting your post for my own question, but since it is related to PyQT I think it's ok: Does anybody of you know where the openbook »GUI Programming with Python: QT Edition« has gone? It's not available any more: http://www.opendocs.org/pyqt/ points now to a non-existing site.

PyQt and Threading to update a dialog?

2006-02-20 Thread Fabian Steiner
achieve this aim, but so far I didn't succeed in doing it because I couldn't find any examples. Could anyone give me some hints or a piece of code? Cheers, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

PyQT: QDialog and QMainWindow interacting with each other

2006-02-27 Thread Fabian Steiner
sed? Thank you for any input! Cheers, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

Printing a file

2006-02-28 Thread Fabian Steiner
gest? Which format should the template have? (XML, etc.?) Any hints appreciated! Cheers, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT: QDialog and QMainWindow interacting with each other

2006-02-28 Thread Fabian Steiner
Hi Kai! Kai Teuber wrote: > Hi Fabian, > > override the accept() method and call self.showListViewItems() there. > But remember to call QDialog.accept() at the end. > > def accept( self ): > self.showListViewItems() > QDialog.accept( self ) Thank you ver

Re: Printing a file

2006-03-01 Thread Fabian Steiner
sk myself whether it is necessary that in order to write text on the paper, I always have to pass the proper x, y values to QPainter.drawText(). Isn't there any other possibility? How do I get these values? Thanks in advance, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing a file

2006-03-02 Thread Fabian Steiner
ere with which I can write those special HTML files? I am quite familiar with HTML and CSS but I don't want to waste my time with that. Regards, Fabian Steiner -- http://mail.python.org/mailman/listinfo/python-list

chmod directories recursively

2007-07-17 Thread Fabian Steiner
Hello! As far as I can see os.chmod() doesn't adjust permissions on directories recusively. Is there any other possibility to achieve this aim except for calling os.system('chmod -R /dir') directly? Thanks, Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: chmod directories recursively

2007-07-17 Thread Fabian Steiner
Jennifer Thacher wrote: > Fabian Steiner wrote: >> As far as I can see os.chmod() doesn't adjust permissions on directories >> recusively. Is there any other possibility to achieve this aim except for >> calling os.system('chmod -R /dir') directly? >

help with Python C-API, tuple object

2007-05-11 Thread fabian . conrad
Hi, sorry for the rather basic question but I've searched everywhere and don't find an answer. I want to call PyObject_CallObject from the Python C-API and pass a tuple I've created from a C-array How can I pass the tuple as an object rather then having to declare the python function with the numb

Re: help with Python C-API, tuple object

2007-05-11 Thread fabian . conrad
On May 12, 2:49 pm, "Carsten Haese" <[EMAIL PROTECTED]> wrote: > On 11 May 2007 21:11:06 -0700, fabian.conrad wrote > > > Hi, > > sorry for the rather basic question but I've searched everywhere and > > don't find an answer. > > I want to call PyObject_CallObject from the Python C-API and pass a >

track cpu usage of linux application

2007-05-14 Thread Fabian Braennstroem
a more elegant way to do that? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: track cpu usage of linux application

2007-05-15 Thread Fabian Braennstroem
Hi, thanks to both! I will take a look at the proc files! * James T. Dennis <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi, > >>I would like to track the cpu usage of a couple of >>programs using python. Maybe it

vte examples and installation

2007-05-28 Thread Fabian Braennstroem
am a little bit confused!? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

extract text from log file using re

2007-09-13 Thread Fabian Braennstroem
ne 36, binary. 1232141 nodes, binary. 1232141 node flags, binary. Done. # ---end writing information --- Does anyone know, how I can this 'writing' stuff too? The matchingIt occurs a lot :-( Regards! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: extract text from log file using re

2007-09-13 Thread Fabian Braennstroem
-04 9.8395e-05 1.4865e-04 8.3913e-04 3.8545e-03 1.3315e-01 11:14:10 500 501 1.0086e-03 2.4608e-04 9.8589e-05 1.4908e-04 8.3956e-04 3.8560e-03 4.8384e-02 11:40:01 499 as field values. Fabian Braennstroem schrieb am 09/13/2007 09:09 PM: > Hi, > > I would like to delete a region on a log f

pattern search

2007-03-27 Thread Fabian Braennstroem
tterns just like using 'ls' in bash. E.g. the entry 'car*.pdf' should select all pdf files with a beginning 'car'. Does anyone have an idea, how to do it? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: pattern search

2007-03-27 Thread Fabian Braennstroem
Hi to all, Wojciech Mu?a schrieb am 03/27/2007 03:34 PM: > Fabian Braennstroem wrote: >> Now, I would like to improve it by searching for different 'real' >> patterns just like using 'ls' in bash. E.g. the entry >> 'car*.pdf' should select all pd

Re: pattern search

2007-03-28 Thread Fabian Braennstroem
Hi, Gabriel Genellina schrieb am 03/27/2007 10:09 PM: > En Tue, 27 Mar 2007 18:42:15 -0300, Diez B. Roggisch <[EMAIL PROTECTED]> > escribió: > >> Paul McGuire schrieb: >>> On Mar 27, 10:18 am, "Diez B. Roggisch" <[EMAIL PROTEC

Re: pattern search

2007-03-29 Thread Fabian Braennstroem
Hi Paul, Paul McGuire schrieb am 03/27/2007 07:19 PM: > On Mar 27, 3:13 pm, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi to all, >> >> Wojciech Mu?a schrieb am 03/27/2007 03:34 PM: >> >>> Fabian Braennstroem wrote: >>>> Now, I wou

Re: extract text from log file using re

2007-09-15 Thread Fabian Braennstroem
Hi to all, thanks for your help. The approach print '\r\n'.join([x.strip() for x in open('c:/flutest.txt') if 'e-0' in x]) works quite well :-) Greetings! Fabian Fabian Braennstroem schrieb am 09/13/2007 09:09 PM: > Hi, > > I would like to delet

open remote terminal

2007-10-17 Thread Fabian Braennstroem
Hi, I would like to use python to start an terminal, e.g. xterm, and login on a remote machine using rsh or ssh. This could be done using 'xterm -e ssh machine', but after the login I would like to jump to a given directory. Does anyone have an idea how to do this with python? Regar

pyparsing batch file

2007-10-17 Thread Fabian Braennstroem
in logEntry.searchString(data): print print "no idea=\t "+ tokens.threadname print "Data File=\t "+ tokens.rd print for x in tokens.condition:    print x print 50*"-" Unfortunately, it does not parse the whole file names with the undersc

Re: open remote terminal

2007-10-20 Thread Fabian Braennstroem
Hi Steve, Steve Holden wrote: > Fabian Braennstroem wrote: >> Hi, >> >> I would like to use python to start an terminal, e.g. xterm, and login on >> a remote machine using rsh or ssh. This could be done using 'xterm -e ssh >> machine', but afte

Re: pyparsing batch file

2007-10-20 Thread Fabian Braennstroem
Hi Paul, Paul McGuire wrote: > On Oct 17, 4:47 pm, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > >> Unfortunately, it does not parse the whole file names with >> the underscore and I do not know yet, how I can access the >> line with 'define/boundary-condi

Re: open remote terminal

2007-10-20 Thread Fabian Braennstroem
Fabian Braennstroem wrote: > Hi Steve, > > Steve Holden wrote: > >> Fabian Braennstroem wrote: >>> Hi, >>> >>> I would like to use python to start an terminal, e.g. xterm, and login >>> on a remote machine using rsh or ssh. This could b

ignoring chinese characters parsing xml file

2007-10-22 Thread Fabian López
the characters less these ones. So, could anyone help me? I suppose that I can catch an exception that ignores it or maybe use any function that detects this chinese characters and after that ignore them. Thanks!! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: ignoring chinese characters parsing xml file

2007-10-22 Thread Fabian López
ot;], elem.attrib["rssUrl"] And the xml file like: http://weblogli.com " when="4" /> 22 Oct 2007 20:20:16 GMT, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]>: > > On Mon, 22 Oct 2007 21:24:40 +0200, Fabian López wrote: > > > I am parsing

Re: ignoring chinese characters parsing xml file

2007-10-23 Thread Fabian López
here, but it's a good idea for next goals. Thanks a lot! Fabian 2007/10/23, limodou <[EMAIL PROTECTED]>: > > On 10/23/07, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Fabian López wrote: > > > Thanks Mark, the code is like this. The attrib name is

Re: open remote terminal

2007-10-23 Thread Fabian Braennstroem
Hi Rafael, Rafael Sachetto wrote: > Take a look at this documentation: > > http://pexpect.sourceforge.net/pxssh.html thanks for the link, but it actually looks to me almost like my little example... I somehow don't get it!? Any more hints? Fabian > >> >>>

How to test whether a host is reachable?

2007-02-22 Thread Fabian Steiner
ICMP packets. However, I don't know what the code has to look like then. Any ideas or suggestions? Thanks, Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: How to test whether a host is reachable?

2007-02-22 Thread Fabian Steiner
Hello! Chris Mellon wrote: > On 2/22/07, Fabian Steiner <[EMAIL PROTECTED]> wrote: >> [...] >> Now I am wondering if there isn't any better method which would be more >> general. In fact, I think of something like a python version of ping >> which only tries

crawler in python and mysql

2007-11-12 Thread Fabian López
Which libraries would you recommend me? Thanks!! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Efficient: put Content of HTML file into mysql database

2007-11-19 Thread Fabian López
sentence. What happens if the html file is very big? Thanks! FAbian -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient: put Content of HTML file into mysql database

2007-11-19 Thread Fabian López
with this text. Is it enough? it is such an easy web crawler. Maybe I can save it without downloading the file, can I? Thanks Fabian 2007/11/19, Jesse Jaggars <[EMAIL PROTECTED]>: > > Fabian López wrote: > > Hi colegues, > > do you know the most efficient way to put the

regex problem with re and fnmatch

2007-11-20 Thread Fabian Braennstroem
same matching problem like above. Does anyone have any suggestions about the regex problem? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: regex problem with re and fnmatch

2007-11-21 Thread Fabian Braennstroem
Hi John, John Machin schrieb am 11/20/2007 09:40 PM: > On Nov 21, 8:05 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I would like to use re to search for lines in a files with >> the word "README_x.org", where x is any number.

lotus nsf to mbox

2007-12-15 Thread Fabian Braennstroem
Hi, I am wondering, if anyone tried to convert lotus nsf mails to a mbox format using python!? It would be nice, if anyone has an idea, how to do it on a linux machine. Regards! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: lotus nsf to mbox

2007-12-15 Thread Fabian Braennstroem
Hi to both, Dan Poirier schrieb am 12/15/2007 02:00 PM: > On Dec 15, 5:18 am, Fabian Braennstroem <[EMAIL PROTECTED]> wrote: >> I am wondering, if anyone tried to convert lotus nsf mails >> to a mbox format using python!? It would be nice, if anyone >> has an idea, how

Re: lotus nsf to mbox

2007-12-18 Thread Fabian Braennstroem
Hi to all, thanks, I'll try your suggestions... Regards! Fabian Brian Munroe schrieb am 12/15/2007 07:10 PM: > On Dec 15, 11:04 am, Fabian Braennstroem <[EMAIL PROTECTED]> > wrote: > >> thanks for your ideas! I actually thought of something like >> a python par

problem with array and for loop

2006-05-10 Thread Fabian Braennstroem
wert1[i]= probe1.GetOutput().GetPointData().GetScalars().GetTuple1(i); m=m+1; l=l+1; It works for the 1D 'wert1'. Does anyone have an idea? Greetings! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with array and for loop

2006-05-10 Thread Fabian Braennstroem
Hi Robert, * Robert Kern <[EMAIL PROTECTED]> wrote: > Fabian Braennstroem wrote: >> Hi, >> >> I have a 'simple' problem with a multidimension array in a >> for loop. It looks like this: >> >> wert= zeros([127,2]) >> wert1= zeros(127)

Re: hidden file detection

2006-05-20 Thread Fabian Steiner
Lenny G. wrote: > What's the best way to do cross-platform hidden file detection? I want > to do something like weed-out the files that should be 'hidden' from > os.listdir() (which would be files that start with '.' under Unix, > files that have the hidden attribute set on windows, and whatever i

Selecting multiple directories (TKinter)

2008-10-31 Thread Fabian Svara
alogs better suited for my purpose? Thanks! Fabian -- http://mail.python.org/mailman/listinfo/python-list

Measuring time of a telnet connect

2009-04-15 Thread Fabian Lanze
Hi! I want to realize the following: I want to measure the time it takes to build up a telnet connection to a known host (ip/port). I tried to use subprocess.Popen to build the telnet connection and then to catch the "Trying to connect..." and "Connection established" output. But this didn't work

Re: Measuring time of a telnet connect

2009-04-15 Thread Fabian Lanze
Jack diederich schrieb: Has anyone an idea how to solve this? import time import telnetlib start = time.time() conn = telnetlib.Telnet('localhost', 80) print time.time() - start Perfect! Thank you.. -- http://mail.python.org/mailman/listinfo/python-list

C-API: A beginner's problem

2006-03-19 Thread Fabian Steiner
List_SetItem(newseq, i, list[i]); } return newseq; bubblesort(int list[], int seqlen) is doing the actual job and it is working. What did I do wrong? As I am quite new to C, I probably made many mistakes, so please feel free to correct me. Cheers, Fabian --

  1   2   >