Re: invoke user's standard mail client

2007-05-05 Thread Gabriel Genellina
En Fri, 04 May 2007 05:07:44 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > the simplest way to launch the user's standard mail client from a > Python program is by creating a mailto: URL and launching the > webbrowser: > But this method is limited: you cannot specify a file to be atta

Re: DiffLib Question

2007-05-05 Thread Gabriel Genellina
En Fri, 04 May 2007 06:46:44 -0300, whitewave <[EMAIL PROTECTED]> escribió: > Thanks! It works fine but I was wondering why the result isn't > consistent. I am comparing two huge documents with several paragraphs > in it. Some parts in the paragraph returns the diff perfectly but > others aren't.

Re: Init style output with python?

2007-05-05 Thread Tina I
Maxim Veksler wrote: > Is there are frame work or something in python that would allow me to > do this (quickly) ? > If not, ideas how I should I be getting this boring task of: > 1. get screen width You can look into the 'curses' module and do something like: screen = curses.initscreen(

Re: Python Binding

2007-05-05 Thread Stefan Behnel
Georg Grabler wrote: > There's a C library which i'd like to have python bindings for. I havn't > known anything before about how to write python bindings for a C library. > > I succeeded now by using distutils to write the first bindings for functions > and similar. > > Now, it seems as somethin

Re: change of random state when pyc created??

2007-05-05 Thread Steven D'Aprano
On Sun, 06 May 2007 00:20:04 +, Alan Isaac wrote: >> Should you not expect to get the same result each time? Is that not >> the point of setting a constant seed each time you run the script? > > Yes. That is the problem. > If I delete module2.pyc, > I do not get the same result. I think yo

Re: My newbie annoyances so far

2007-05-05 Thread John Nagle
[EMAIL PROTECTED] wrote: > On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: > >>The CPython implementation is unreasonably slow compared >>to good implementations of other dynamic languages such >>as LISP and JavaScript. > > > Why do you say CPython is slower than JavaScript? Please pro

Emacs and pdb after upgrading to Ubuntu Feisty

2007-05-05 Thread levander
I've been using pdb under emacs on an Ubuntu box to debug python programs. I just upgraded from Ubuntu Edgy to Feisty and this combo has stopped working. Python is at 2.5.1 now, and emacs is at 21.41.1. It used to be I could just "M-x pdb RET pdb RET" and be presented with a prompt where I coul

Weekly Python Patch/Bug Summary

2007-05-05 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 360 open ( +4) / 3760 closed ( +4) / 4120 total ( +8) Bugs: 971 open ( +3) / 6683 closed (+10) / 7654 total (+13) RFE : 257 open ( +3) / 282 closed ( +0) / 539 total ( +3) New / Reopened Patches __ test_1686

Re: File names and file objects [was Re: My Python annoyances]

2007-05-05 Thread Alex Martelli
Steven D'Aprano <[EMAIL PROTECTED]> wrote: ... > What do people think about functions that accept either a file name or a > file object? > > def handle_file(obj): > if type(obj) == str: > need_to_close = True > obj = file(obj, 'r') > else: > need_to_close = Fals

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 10:44 pm, John Machin <[EMAIL PROTECTED]> wrote: > "UTF-8 Unicode" is meaningless. Python has internal unicode string > objects, with comprehensive support for converting to/from str (8-bit) > string objects. The re module supports unicode patterns and strings. > PCRE "supports" patterns

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 10:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > -1 on this from me. In the past 10 years as a professional > programmer, I've used the wierd extended "regex" features maybe 5 > times total, whether it be in Perl or Python. In contrast, I've had > to work around the slowness o

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 6:28 pm, [EMAIL PROTECTED] wrote: > I'm not sure what your skill level is, but I would suggest studying the > code, starting in on a patch for one or more of these features, and then > corresponding with the module's maintainers to improve your patch to the > point where it can be accept

Re: module console

2007-05-05 Thread castironpi
On May 5, 7:29 pm, [EMAIL PROTECTED] wrote: > Can I get the console to behave like it's in a module? > > So far I have inspect.getsource() working by setting the filename and > linenumbers of the return from compiler.parse(). I'm looking too. -me This at least gets a instance loaded; we'll see.

Re: change of random state when pyc created??

2007-05-05 Thread Dustan
On May 5, 6:30 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > "John Machin" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > You can't say that you have "documented" the behaviour when you > > haven't published files that exhibit the alleged behaviour. > > Fine. I have "observ

Re: Problem with inspect.getfile

2007-05-05 Thread Gabriel Genellina
En Wed, 02 May 2007 11:46:29 -0300, elventear <[EMAIL PROTECTED]> escribió: > On May 2, 1:12 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> En Wed, 02 May 2007 02:53:55 -0300, elventear <[EMAIL PROTECTED]> >> escribió: >> >> > Found the offending code. I was importing between files that w

module console

2007-05-05 Thread castironpi
Can I get the console to behave like it's in a module? So far I have inspect.getsource() working by setting the filename and linenumbers of the return from compiler.parse(). I'm looking too. -me -- http://mail.python.org/mailman/listinfo/python-list

Re: change of random state when pyc created??

2007-05-05 Thread Alan Isaac
"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > (a) module1 imports random and (MyClass from module2) Right. > It's a bit of a worry that you call the first file "module1" and not > "the_script". Does module2 import module1, directly or indirectly? No. I call a module

Re: FIXED: [EMAIL PROTECTED]

2007-05-05 Thread John Machin
On 6/05/2007 9:11 AM, Aahz wrote: > In article <[EMAIL PROTECTED]>, Aahz <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> Carsten Haese <[EMAIL PROTECTED]> wrote: >>> I just tried sending an email to [EMAIL PROTECTED] to request a >>> website change, and the email bounced back with

Re: Init style output with python?

2007-05-05 Thread John Machin
On May 6, 9:27 am, "Maxim Veksler" <[EMAIL PROTECTED]> wrote: > Hi list, > > I'm working on writing sanity check script, and for aesthetic reasons > I would like the output be in the formatted like the gentoo init > script output, that is: > """ > Check for something ...

Re: High resolution sleep (Linux)

2007-05-05 Thread Tim Roberts
John <[EMAIL PROTECTED]> wrote: > >The table below shows the execution time for this code snippet as >measured by the unix command `time': > >for i in range(1000): > time.sleep(inter) > >inter execution time ideal >0 0.02 s0 s >1e-44.

Re: change of random state when pyc created??

2007-05-05 Thread John Machin
On May 5, 1:48 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > This may seem very strange, but it is true. > If I delete a .pyc file, my program executes with a different state! > > In a single directory I have > module1 and module2. > > module1 imports random and MyClass from module2. That's rather

Re: change of random state when pyc created??

2007-05-05 Thread Alan Isaac
"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You can't say that you have "documented" the behaviour when you > haven't published files that exhibit the alleged behaviour. Fine. I have "observed" this behavior. The files are not appropriate for posting. I do not yet

Init style output with python?

2007-05-05 Thread Maxim Veksler
Hi list, I'm working on writing sanity check script, and for aesthetic reasons I would like the output be in the formatted like the gentoo init script output, that is: """ Check for something .. [OK] Check for something else ..[FAIL] """ Is

Re: problem with py2exe and microsoft speech SDK 5.1

2007-05-05 Thread [EMAIL PROTECTED]
Hi Dave, I can't help you but maybe you'll have more luck if you try also the dedicated py2exe mailing list: https://lists.sourceforge.net/lists/listinfo/py2exe-users francois On May 4, 7:36 am, Dave Lim <[EMAIL PROTECTED]> wrote: > >On May 3, 1:29 pm, Dave Lim > wrote: > >> Hello, this is m

FIXED: [EMAIL PROTECTED]

2007-05-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Aahz <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, >Carsten Haese <[EMAIL PROTECTED]> wrote: >> >>I just tried sending an email to [EMAIL PROTECTED] to request a >>website change, and the email bounced back with this excerpt from the >>delivery failure

Re: change of random state when pyc created??

2007-05-05 Thread John Machin
On May 6, 9:00 am, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > I have documented this behavior > on two completely different systems > (Win 2000 and Win XP SP2), using Python 2.5.1. You can't say that you have "documented" the behaviour when you haven't published files that exhibit the alleged beh

Re: change of random state when pyc created??

2007-05-05 Thread Alan Isaac
I have documented this behavior on two completely different systems (Win 2000 and Win XP SP2), using Python 2.5.1. It two modules where this happens, as described before. If it should not happen, there is a bug. I am looking for potential explanation, since I realize that finding bugs is unlikely

Re: Cannot execute Windows commands via Python in 64-bit

2007-05-05 Thread Tim Roberts
minitotoro <[EMAIL PROTECTED]> wrote: > >Upon further investigation it turned out to be a windohs 64-bit issue >(which is what I was afraid of). I did however find an asinine work >around. > >Make a copy of defrag.exe from the system32 folder and paste it in the >same directory as the python script

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread John Machin
On May 6, 1:52 am, Wiseman <[EMAIL PROTECTED]> wrote: > On May 5, 5:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > > I believe the current Python re module was written to replace the Python > > wrapping of pcre in order to support unicode. > > I don't know how PCRE was back then, but right now

Re: My newbie annoyances so far

2007-05-05 Thread igouy2
On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: > The CPython implementation is unreasonably slow compared > to good implementations of other dynamic languages such > as LISP and JavaScript. Why do you say CPython is slower than JavaScript? Please provide examples. -- http://mail.pytho

Re: progress

2007-05-05 Thread half . italian
On May 5, 1:46 am, Merrigan <[EMAIL PROTECTED]> wrote: > Hi All, > > I have posted yesterday about an ftplib issue, this has been resolved. > > I actually want to ask something here... > > The script that that ftplib error was from...I was wondering - What do > I need to do to print the stats (spee

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread [EMAIL PROTECTED]
Wiseman wrote: > I'm kind of disappointed with the re regular expressions module. In > particular, the lack of support for recursion ( (?R) or (?n) ) is a > major drawback to me. There are so many great things that can be > accomplished with regular expressions this way, such as validating a > math

Re: How do I use the config parser?

2007-05-05 Thread Fuzzyman
On May 5, 8:13 pm, [EMAIL PROTECTED] wrote: > Hi, > I need a specific example. I have seen the docs, but I don't all the > stuffs there. > > So basically, I need my config file to be created and read by my > script. > > Here is a snippet > > # read old actions > from ConfigParser import ConfigParse

Re: How do I use the config parser?

2007-05-05 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: > Hi, > I need a specific example. I have seen the docs, but I don't all the > stuffs there. > > from ConfigParser import ConfigParser > Now I want to know how to read a section, a section attribute's value, > and to write thoses back aft

Re: behavior difference for mutable and immutable variable in function definition

2007-05-05 Thread jianbing . chen
On May 4, 5:14 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Fri, 2007-05-04 at 14:30 -0700, [EMAIL PROTECTED] wrote: > > Hi, > > > Can anyone explain the following: > > > Python 2.5 (r25:51908, Apr 9 2007, 11:27:23) > > [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2 > > Type "help", "copyri

Python Binding

2007-05-05 Thread Georg Grabler
Hello everybody. There's a C library which i'd like to have python bindings for. I havn't known anything before about how to write python bindings for a C library. I succeeded now by using distutils to write the first bindings for functions and similar. Now, it seems as something is blocking my

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Martin v. Löwis
> Are there any plans to support these features in re? This question is impossible to answer. I don't have such plans, and I don't know of any, but how could I speak for the hundreds of contributors to Python world-wide, including those future contributors which haven't contributed *yet*. Do you

Re: What happened to [EMAIL PROTECTED]

2007-05-05 Thread Aahz
In article <[EMAIL PROTECTED]>, Carsten Haese <[EMAIL PROTECTED]> wrote: > >I just tried sending an email to [EMAIL PROTECTED] to request a >website change, and the email bounced back with this excerpt from the >delivery failure report: Oops! I've informed the appropriate people. For now, eithe

Re: OT somewhat: Do you telecommute? What do you wish the boss understood about it?

2007-05-05 Thread estherschindler
Oh! what a lovely response -- and I agree with almost all of it. I just handed in the article, and hadn't seen your message, but you'll be glad to know that I ended up with a whole sidebar about the costs that a telecommuter may bear. That didn't include the travel and hotel outlay, though it migh

How do I use the config parser?

2007-05-05 Thread noagbodjivictor
Hi, I need a specific example. I have seen the docs, but I don't all the stuffs there. So basically, I need my config file to be created and read by my script. Here is a snippet # read old actions from ConfigParser import ConfigParser fp = open(makepath('App\qt_actions.conf')) configdict = Conf

Re: File names and file objects [was Re: My Python annoyances]

2007-05-05 Thread Steven Howe
Steven D'Aprano wrote: On Fri, 04 May 2007 07:55:25 -0700, Alex Martelli wrote: What about the case where I have an array of objects that represent some particular binary file format. If the object is a file, then I want to copy its contents. If the object is a string, th

Re: change of random state when pyc created??

2007-05-05 Thread Dustan
On May 4, 10:48 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > This may seem very strange, but it is true. > If I delete a .pyc file, my program executes with a different state! > > In a single directory I have > module1 and module2. > > module1 imports random and MyClass from module2. > module2 doe

Re: Object interfaces and capabilities [was Re: File names and file objects [was Re: My Python annoyances]]

2007-05-05 Thread Paul Boddie
Steven D'Aprano wrote: > > What do people think about functions that accept either a file name or a > file object? > > > def handle_file(obj): > if type(obj) == str: > need_to_close = True > obj = file(obj, 'r') > else: > need_to_close = False > do_something_with

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread dustin
On Sat, May 05, 2007 at 08:52:15AM -0700, Wiseman wrote: > > I believe the current Python re module was written to replace the Python > > wrapping of pcre in order to support unicode. > > I don't know how PCRE was back then, but right now it supports UTF-8 > Unicode patterns and strings, and Unico

File names and file objects [was Re: My Python annoyances]

2007-05-05 Thread Steven D'Aprano
On Fri, 04 May 2007 07:55:25 -0700, Alex Martelli wrote: >> What about the case where I have an array of objects that represent some >> particular binary file format. If the object is a file, then I want to >> copy its contents. If the object is a string, then I want to write the >> string. And

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 7:19 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Wiseman wrote: > > Note: I know there are LALR parser generators/parsers for Python, but > > the very reason why re exists is to provide a much simpler, more > > productive way to parse or validate simp

Re: Non blocking sockets with select.poll() ?

2007-05-05 Thread Jean-Paul Calderone
On Sat, 5 May 2007 15:37:31 +0300, Maxim Veksler <[EMAIL PROTECTED]> wrote: >On 5/4/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >> >""" >> >#!/usr/bin/env python >> >import socket >> >import select >> > >> >class PollingSocket(socket.socket): >> > Usually there's no particularly good reason

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 5:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > I believe the current Python re module was written to replace the Python > wrapping of pcre in order to support unicode. I don't know how PCRE was back then, but right now it supports UTF-8 Unicode patterns and strings, and Unicode cha

Re: Lisp for the C21

2007-05-05 Thread Raffael Cavallaro
On 2007-05-04 11:32:14 -0400, Paul Rubin said: > Anyone who didn't love lisp in the 20th century has no heart. > Anyone who still loves it in the 21st, has no head. By the same logic we should all be conservative Republicans. Given this implication, I'll stick with lis

Re: What happened to [EMAIL PROTECTED]

2007-05-05 Thread jim-on-linux
On Friday 04 May 2007 22:19, Carsten Haese wrote: > Hiya, > > I just tried sending an email to > [EMAIL PROTECTED] to request a website > change, and the email bounced back with this > excerpt from the delivery failure report: > > """ > Reporting-MTA: dns; bag.python.org > [...] > Final-Recipient:

Re: Looping over lists

2007-05-05 Thread Alex Martelli
Dustan <[EMAIL PROTECTED]> wrote: > On May 5, 3:15 am, kaens <[EMAIL PROTECTED]> wrote: > > I think the for i in range() is more readable (Maybe because I'm > > coming from a c-style syntax language background) - but what would > > the benefits of using enumerate be (other that being more . . . >

Ezanb.com New Technology Forums - Register Now and Win!!!

2007-05-05 Thread Shaine
Hi there, We have just launched a new Technology Forums - http://www.ezanb.com. Our aim is to create such a knowledge base where anybody can find the solution to any 'technology related problems'. So, in this regard we are seeking your co-operation. We want you to share your valuable knowledge wit

Re: Looping over lists

2007-05-05 Thread Paul Rubin
Dustan <[EMAIL PROTECTED]> writes: > > I think the for i in range() is more readable (Maybe because I'm > > coming from a c-style syntax language background) - but what would > > the benefits of using enumerate be (other that being more . . . > > pythonesque?) > > It doesn't create a whole new li

Re: BUSTED!!! 100% VIDEO EVIDENCE that WTC7 was controlled demolition!! NEW FOOTAGE!!! Ask yourself WHY havn't I seen this footage before?

2007-05-05 Thread Dotan Cohen
I missed the relevancy to Python in this thread. Could someone, preferably the OP, please quote it? Thanks in advance. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: BUSTED!!! 100% VIDEO EVIDENCE that WTC7 was controlled demolition!! NEW FOOTAGE!!! Ask yourself WHY havn't I seen this footage before?

2007-05-05 Thread quasi
On Sat, 05 May 2007 07:54:50 +0100, Eeyore <[EMAIL PROTECTED]> wrote: > > >quasi wrote: > >> Gib Bogle wrote: >> >> >Ah, so the firefighters were in on the conspiracy! >> >> No, but the firefighters are very much aware that there is more to >> 9/11 than has been officially revealed. >> >> This is

Re: How do I get type methods?

2007-05-05 Thread Carsten Haese
On Sat, 2007-05-05 at 01:19 -0700, [EMAIL PROTECTED] wrote: > On May 4, 7:13 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > The OPs problem is, there is no access to the class or type because > > there is no name. > > Exactly :-( > > > You can get just instances from a factory functi

Re: Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up."

2007-05-05 Thread James Stroud
[EMAIL PROTECTED] wrote: > In article <[EMAIL PROTECTED]>, >MooseFET <[EMAIL PROTECTED]> wrote: >> On May 4, 8:19 pm, James Stroud <[EMAIL PROTECTED]> wrote: >>> MooseFET wrote: >> Groucho Marx. > > Give that man a cigar. > > /BAH > Please take note aspiring humorists, we have here an actua

Re: Non blocking sockets with select.poll() ?

2007-05-05 Thread Maxim Veksler
On 5/4/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > >""" > >#!/usr/bin/env python > >import socket > >import select > > > >class PollingSocket(socket.socket): > > > > > >def __init__(self, port_number): > >self.__poll = select.poll() > >self.tcp_port_number = port_number

Re: Problem with Closing TCP connection

2007-05-05 Thread malkarouri
On 5 May, 12:18, Madhur <[EMAIL PROTECTED]> wrote: [...] > as a sink to pump TCP messages. During which i have observed that the > TCP close interface provided by Python is not closing the connection. > This i confirmed by looking at the ethereal logs, which show proper 3 > way FIN ACK Handshake. B

Re: Do I have to quit python to load a module?

2007-05-05 Thread Carsten Haese
On Sat, 2007-05-05 at 05:33 +, wang frank wrote: > Hi, > > When I edit a module, I have to quit python and then restart python and > then import the module. Are there any way to avoid quit python to load an > updated module? When I am debugging a module code, I need to constantly > make cha

Re: Problems Drawing Over Network

2007-05-05 Thread paul
Andrew schrieb: > Hello Everyone [snipped stuff] Sorry not being helpful, but I suggest you post a minimal sample of your code demonstrating your program. cheers Paul -- http://mail.python.org/mailman/listinfo/python-list

Problem with Closing TCP connection

2007-05-05 Thread Madhur
Dear All, I am currently developing a tool using Python 2.4.2 which will be used as a sink to pump TCP messages. During which i have observed that the TCP close interface provided by Python is not closing the connection. This i confirmed by looking at the ethereal logs, which show proper 3 way FIN

Re: Looping over lists

2007-05-05 Thread Dustan
On May 5, 3:15 am, kaens <[EMAIL PROTECTED]> wrote: > I think the for i in range() is more readable (Maybe because I'm > coming from a c-style syntax language background) - but what would > the benefits of using enumerate be (other that being more . . . > pythonesque?) It doesn't create a whole n

Re: Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up."

2007-05-05 Thread jmfbahciv
In article <[EMAIL PROTECTED]>, MooseFET <[EMAIL PROTECTED]> wrote: >On May 4, 8:19 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> MooseFET wrote: >> > On May 4, 12:32 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> > [] >> >> >>The Marxist contribution to western thought is that it put every

Re: High resolution sleep (Linux)

2007-05-05 Thread Nick Craig-Wood
John <[EMAIL PROTECTED]> wrote: > > The table below shows the execution time for this code snippet as > measured by the unix command `time': > > for i in range(1000): > time.sleep(inter) > > inter execution time ideal > 0 0.02 s0 s > 1e-4

Re: My Python annoyances

2007-05-05 Thread Ben Collver
Terry Reedy wrote: > You don't need an invitation to disagree with another person's tracker > comment. I assumed you knew this and took non-response as acquiesence. > That (closing no response by item submitter) is a fairly typical pattern , > by the way. I wish it were otherwise. I (incorrec

Re: Newbie and Page Re-Loading

2007-05-05 Thread mosscliffe
Alex, Thanks for the help. Richard On May 5, 3:42 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > Miki <[EMAIL PROTECTED]> wrote: > >... > > > > Is there a lightweight Https Server I could run locally (WINXP), which > > > would run .py scripts, without lots of installation modifications ? > >

Re: Newbie and Page Re-Loading

2007-05-05 Thread mosscliffe
Miki, Thank you very much for your helpful reply. A simple example is the best way of getting started, I have found. I have no excuses now - to not get it working. I recently tried Visual Studio with Visual Basic. Nice for five minutes, but then all the helping bits got in the way, so then you

progress

2007-05-05 Thread Merrigan
Hi All, I have posted yesterday about an ftplib issue, this has been resolved. I actually want to ask something here... The script that that ftplib error was from...I was wondering - What do I need to do to print the stats (speed/s, percentage done) of the upload that is running on the monitor.

Re: Calling Exe from Python

2007-05-05 Thread kaens
I've been using subprocess.call(['name','arg1','arg2']) Works fine. On 2 May 2007 03:48:19 -0700, M Abbas <[EMAIL PROTECTED]> wrote: > Hello Folks, > > This is what i am required to do. > Call an executable from my python script, and when the executable is > fininshed running, i should continue wi

Re: My Python annoyances

2007-05-05 Thread Ross Ridge
Ben Collver <[EMAIL PROTECTED]> wrote: >It is problem report #1678102. I understand the problem: that a 32 bit >number looks different in a 32 bit signed int than in a 64 bit signed >int. However, the workaround of dropping a bit seems to defeat the >purpose of using a CRC. The workaround do

Re: How do I get type methods?

2007-05-05 Thread yavannadil
On May 4, 7:13 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > The OPs problem is, there is no access to the class or type because > there is no name. Exactly :-( > You can get just instances from a factory function. Worse, if I call localContext.ServiceManage I'll get something with

Re: Looping over lists

2007-05-05 Thread kaens
I think the for i in range() is more readable (Maybe because I'm coming from a c-style syntax language background) - but what would the benefits of using enumerate be (other that being more . . . pythonesque?) On 5/5/07, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Fri, 4 May 2007 19:26:17 -

Re: How do I get type methods?

2007-05-05 Thread yavannadil
On May 5, 1:17 am, Fuzzyman <[EMAIL PROTECTED]> wrote: > dir(type(localContext)) > Perhaps ? It gives ['__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__'] while import sys di

Re: BUSTED!!! 100% VIDEO EVIDENCE that WTC7 was controlled demolition!! NEW FOOTAGE!!! Ask yourself WHY havn't I seen this footage before?

2007-05-05 Thread Tonico
On May 4, 2:08 am, quasi <[EMAIL PROTECTED]> wrote: > On Fri, 04 May 2007 09:37:37 +1200, Gib Bogle > > <[EMAIL PROTECTED]> wrote: > >Ah, so the firefighters were in on the conspiracy! > > No, but the firefighters are very much aware that there is more to > 9/11 than has been officially revealed. >

Re: Why stay with lisp when there are python and perl?

2007-05-05 Thread kaens
Yes there is. On 5/3/07, Markus E Leypold <[EMAIL PROTECTED]> wrote: > > Xah Lee <[EMAIL PROTECTED]> writes: > > > (if there is some demand, i will add a concrept, little programing > > No. There ain't. > > - M > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.o