Re: SAS Transport FIle

2005-08-26 Thread Tim Churches
Jeff wrote: > Does anyone know of a python module to read a SAS Transport (XPORT) > file? I am not aware of any native Python module to read SAS portable transport (XPORT) files (but that doesn't mean you shouldn't search for one using Google etc). However, the format of the XPORT files is publica

Re: Python library/module for MSAccess

2005-08-26 Thread Stephen Prinster
Jonathon Blake wrote: > [ Editing/creating msaccess databases on a Linux Box, and WINE _not_ > installed.] I'm pretty sure I don't understand what you are wanting to do. You say you have "msaccess databases on a Linux Box" and you are not using the Jet Database engine. As far as I know, MS A

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > If you want an exception from your code when 'w' isn't in the string > you should consider using index() rather than find. The idea is you expect w to be in the string. If w isn't in the string, your code has a bug, and programs with bugs should fail as

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > Of course. But onc you (sensibly) decide to use an "if" then there > really isn't much difference between -1, None, () and sys.maxint as > a sentinel value, is there? Of course there is. -1 is (under Python's perverse semantics) a valid subscript. sys.m

SAS Transport FIle

2005-08-26 Thread Jeff
Does anyone know of a python module to read a SAS Transport (XPORT) file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread Andrew Thompson
On Fri, 26 Aug 2005 22:33:22 GMT, Rich Teer wrote: > On Fri, 26 Aug 2005, John Bokma wrote: > >> ..My partner can check her email when I had her over the computer. ... > ...The idea of my wife checking her > email while I'm "doing her" over my computer is most amusing! :-) It does raise the qu

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Robert Kern
Steve Holden wrote: > Of course. But onc you (sensibly) decide to use an "if" then there > really isn't much difference between -1, None, () and sys.maxint as > a sentinel value, is there? Sure there is. -1 is a valid index; None is not. -1 as a sentinel is specific to str.find(); None is used a

Re: overload builtin operator

2005-08-26 Thread Robert Kern
Shaun wrote: > Thanks for your replies, obviously this isn't a simple thing to do so > I'll take a different tack. > > The exact problem I am trying to solve here is to avoid the > ZeroDivisionError in division. > I have c++ code which delegates to python to calculate expressions on > table cells.

Re: Jargons of Info Tech industry

2005-08-26 Thread Randy Bush
i left the usenet in the latter half of the '80s. a few weeks ago i decided i wanted to do a new project with a new language, and chose python. so i joined this mailing list, which is gated to the usenet. i am impressed that the s:n has not gotten significantly worse than when i left, about 0.25

Re: overload builtin operator

2005-08-26 Thread Shaun
Thanks for your replies, obviously this isn't a simple thing to do so I'll take a different tack. The exact problem I am trying to solve here is to avoid the ZeroDivisionError in division. I have c++ code which delegates to python to calculate expressions on table cells. The values of the table ce

Re: Python library/module for MSAccess

2005-08-26 Thread Jonathon Blake
Scott wrote: > the Jet Database engine. Easiest access for me is through the win32 module > 'odbc'. Thanks That is going to make my job a lot rougher than I expected. [ Editing/creating msaccess databases on a Linux Box, and WINE _not_ installed.] xan jonathon -- Does your Office Suite conf

Re: Python library/module for MSAccess

2005-08-26 Thread Scott David Daniels
Jonathon Blake wrote: > I thought I had seen a python library/module that easily enabled one > to read / write / create MSAccess databases a couple of years ago. > [My impression is that the Jet Database engine was _not_ required.] Access is a generalized I/O to databases. THe normal default DB

Re: Language translation possible in python?

2005-08-26 Thread Terry Hancock
On Friday 26 August 2005 04:15 pm, Terry Reedy wrote: > "Jon Monteleone" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >I have a program that currently displays all of its messages and > >instructions in only > > English. My boss wants me to change it all to Korean. Is there a

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Steve Holden
Bryan Olson wrote: > Steve Holden wrote: > > Bryan Olson wrote: > >> Antoon Pardon wrote: > > >> > It probably is too late now, but I always felt, find should > >> > have returned None when the substring isn't found. > >> > >> None is certainly a reasonable candidate. > [...] > >> The rea

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Steve Holden
Torsten Bronger wrote: > Hallöchen! > > "Terry Reedy" <[EMAIL PROTECTED]> writes: > > >>"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message >>news:[EMAIL PROTECTED] >> >> >>>"Terry Reedy" <[EMAIL PROTECTED]> writes: >>> >>> Str.find is redundant with the Pythonic exception-raisin

Re: Embedding Python in other programs

2005-08-26 Thread Steve Holden
Gregory Piñero wrote: > How do I get it into VB6? Now that's an answer that would save my life > many times over. > Use IronPython? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/l

Re: Closing programs that use sockets

2005-08-26 Thread Steve Holden
billiejoex wrote: > Hi all. I got a problem when using socket modules. > By using them I can't stop my program by pressing ctrl+c. > The only way to doit is by killing the python.exe process manually. > Is there a solution to avoid this? > > Regards > > You may find that CTRL/Break works even w

Re: global interpreter lock

2005-08-26 Thread Mike Meyer
Paul Rubin writes: > [EMAIL PROTECTED] (phil hunt) writes: >> >Let's see. Reality is that writing correct programs is hard. Writing >> >correct programs that use concurrency is even harder, because of the >> >exponential explosion of the order that operations can happen

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Mike Meyer <[EMAIL PROTECTED]> wrote: > John Bokma <[EMAIL PROTECTED]> writes: >> It's time consuming because there is (yet) no need for it. When I >> started to use Usenet there where only a handful of clients (IIRC), nn >> and another one (rn?) are the only ones that I can recall. > > By the t

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Mike Meyer <[EMAIL PROTECTED]> wrote: > John Bokma <[EMAIL PROTECTED]> writes: > >> Paul Rubin wrote: >> >>> Mike Meyer <[EMAIL PROTECTED]> writes: > Another advantage is that evewry internet-enabled computer today > already comes with an HTML renderer (AKA br

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Rich Teer <[EMAIL PROTECTED]> wrote: > On Fri, 26 Aug 2005, John Bokma wrote: > >> And workplaces. Some people have more then one computer in the house. My >> partner can check her email when I had her over the computer. When I > > I know this is entirely inappropriate and OT, but am I th eonly

Re: Licensing and Other Questions

2005-08-26 Thread David MacQuigg
On Sat, 27 Aug 2005 01:35:58 +0300, Christos Georgiou <[EMAIL PROTECTED]> wrote: >Your method is/will_not be free (as in beer), as hinted in >http://www.ece.arizona.edu/~edatools/home/email/registry/Form-Sender01.htm >. *That* is a drawback similar to the licensing of the Microsoft's >Sender/Call

Re: Fighting Spam with Python

2005-08-26 Thread David MacQuigg
On Fri, 26 Aug 2005 10:36:28 -0400, François Pinard <[EMAIL PROTECTED]> wrote: >[David MacQuigg] > >> Getting these methods widely and effectively used is our big >> challenge, and one that I hope to accomplish with my efforts. > >I wish one of these methods, either yours or one of these few other

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > It's time consuming because there is (yet) no need for it. When I > started to use Usenet there where only a handful of clients (IIRC), nn > and another one (rn?) are the only ones that I can recall. By the time nn was out, there were a number of radically

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > "Terry Reedy" <[EMAIL PROTECTED]> writes: >> The try/except pattern is a pretty basic part of Python's design. One >> could say the same about clutter for *every* function or method that >> raises >> an exce

Re: global interpreter lock

2005-08-26 Thread phil hunt
On 26 Aug 2005 14:35:03 -0700, Paul Rubin wrote: >[EMAIL PROTECTED] (phil hunt) writes: >> >Let's see. Reality is that writing correct programs is hard. Writing >> >correct programs that use concurrency is even harder, because of the >> >exponential explosion of the order

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Chris Head <[EMAIL PROTECTED]> wrote: >> I mean, the way >> Webmail works, you're at the message list and click on a message to >> view. This causes a whole new page, user-interface and all, to be >> loaded. In comparison, that's like shutting down and re-op

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
Ulrich Hobelmann <[EMAIL PROTECTED]> writes: > No, the few sites where I actually have to log in to do anything > useful, when they're well-coded, tell me that they need cookies, and > if I think I like that website I make an exception entry for that > site, allowing cookies. Most sites just bomba

Is there any module to play mp3 or wav format files?

2005-08-26 Thread el chupacabra
Is there any module to play mp3 or wav format files? any sample code available somewhere? thanks, el chupacabra --= Posted using GrabIt = --= Binary Usenet downloading made easy =- -= Get GrabIt for free from http://www.shemes.com/ =- -- http://mai

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
[EMAIL PROTECTED] (Gordon Burditt) writes: >>HTML is designed to degrade gracefully (never mind that most web >>authors and many browser developers don't seem to comprehend this), so >>you don't really need a "subset" html to get the safety features you >>want. All you need to do is disable the ap

Re: Converting from Microsoft Binary Format floats to Python Float

2005-08-26 Thread Bengt Richter
On 26 Aug 2005 07:55:26 -0700, [EMAIL PROTECTED] wrote: >In the '80's, Microsoft had a proprietary binary structure to handle >floating point numbers, In a previous thread, Bengt Richter posted >some example code in how to convert these to python floats; > >http://groups.google.com/group/comp.lan

Re: Jargons of Info Tech industry

2005-08-26 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: > >> Mike Meyer <[EMAIL PROTECTED]> writes: >>> > Another advantage is that evewry internet-enabled computer today >>> > already comes with an HTML renderer (AKA browser) >>> >>> No, they don't. Minimalist Unix

Re: variable hell

2005-08-26 Thread Mike Meyer
[The context is totally hosed by top posting and failure to mark quoted text. I gave up on recovering it.] "Adriaan Renting" <[EMAIL PROTECTED]> writes: > Not in my Python. > for count in range(0, 10): > ... value = count > ... exec("'a%s=%s' % (count, value)") You left in the extra

MySQLdb install

2005-08-26 Thread daiwei
Hi, I installed the MySQLdb on my BSD, but when I import it I got following errors. Any idea how to fix it? import MySQLdb Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 27, in ? import _mysql ImportError: /usr

Python library/module for MSAccess

2005-08-26 Thread Jonathon Blake
All: I thought I had seen a python library/module that easily enabled one to read / write / create MSAccess databases a couple of years ago. [My impression is that the Jet Database engine was _not_ required.] Now, I can't find it, or any reference to such a library or module. [I used google, a

Re: Fighting Spam with Python

2005-08-26 Thread John J. Lee
David MacQuigg writes: [...] > I haven't used Spambayes, but my experience with Spamnix (an offshoot > of Spam Assassin) is that statistical filters always have a few false > rejects. In my case, that's about two per week. [...] That is precisely the problem that Bayesian filtering was designed

Re: Decline and fall of scripting languages ?

2005-08-26 Thread Christos Georgiou
On 16 Aug 2005 01:32:16 -0700, rumours say that Paul Rubin might have written: >Erlang apparently uses microthreads, >probably allocating every call frame on the heap like SML/NJ did, so >they showed it with 80,000 connections open. This is 8 TCP/IP v4 connections o

Re: Jargons of Info Tech industry

2005-08-26 Thread Brian Raiter
> I know this is entirely inappropriate and OT, [...] Yeah -- unlike the rest of this misbegotten thread, which is right bang on-topic for all five newsgroups and is not suffering at all from topic drift, no not in the least. b -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Raymond Hettinger
Bryan Olson wrote: > The conclusion is inescapable: Python's handling of negative > subscripts is a wart. Indexing from the high end is too useful > to give up, but it should be specified by the slicing/indexing > operation, not by the value of the index expression. > > > PPEP (Proposed Python Enha

Re: Fighting Spam with Python

2005-08-26 Thread Christos Georgiou
On Wed, 24 Aug 2005 22:46:28 -0700, rumours say that David MacQuigg might have written: >I'm writing some scripts to check incoming mail against a registry of >reputable senders, using the new authentication methods. Python is >ideal for this because it will give mail-system admins the ability t

Re: Jargons of Info Tech industry

2005-08-26 Thread Rich Teer
On Fri, 26 Aug 2005, John Bokma wrote: > And workplaces. Some people have more then one computer in the house. My > partner can check her email when I had her over the computer. When I I know this is entirely inappropriate and OT, but am I th eonly person who reads that sentence with a grin? The

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-26 Thread Raymond Hettinger
[Raymond Hettinger] > > With respect to > > distribution, it should be noted that string hash values are decidely > > non-random and your variable names likely congested consecutive spaces > > in a nearly full table (resulting in seven times as many search probes > > to find a global value). > > >

Re: Jargons of Info Tech industry

2005-08-26 Thread Ulrich Hobelmann
John Bokma wrote: [cookies] > Delete them after each session automatically, except the ones on the > exception list. But why? I simply don't even take them, except my exception list ;) Some people have all cookies turned off. > You are clearly not an average user, so your usage pattern > prob

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Chris Head <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> Chris Head <[EMAIL PROTECTED]> wrote: [HTML] >> It can be made much faster. There will always be a delay since >> messages have to be downloaded, but with a fast connection and a good >> design, the delay will be very very small and th

Re: How to know if connection is active when using telnetlib?

2005-08-26 Thread Wojciech Halicki-Piszko
> If open() doesn't throw an exception then you should have a connection you can > start reading/writing with. Unless you have some special meaning for > 'active'? > > I'm just basing this on reading telnetlib.py. > > Eddie Well, in fact what I meant is: I won't to check wether established conn

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Ulrich Hobelmann <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >>> I have cookies off, with explicit exception for sites where >>> I want cookies. When the crappy website doesn't bother to MENTION >>> that it wants cookies, i.e. give me an error page, how am I to know >>> that it needs cookies?

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
"T Beck" <[EMAIL PROTECTED]> wrote: > > John Bokma wrote: >> "T Beck" <[EMAIL PROTECTED]> wrote: >> >> > If we argue that people are evolving the way e-mail is handled, and >> > adding entire new feature sets to something which has been around >> > since the earliest days of the internet, then th

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Denis Kasak <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote: >> >>> John Bokma wrote: http://www.phpbb.com/mods/ >>> >>> Great. How can I, the user, choose, how to use a mod on a given web >>> server? >> >> Ask the admin? > > And that is, in y

Re: Command Line arguments

2005-08-26 Thread Martin v. Löwis
Trent Mick wrote: >>I used the python2.4.MSI from python.org site (dated 3-6-05). I think this >>was the first time they went to MSI verses an exe based installer. >> >>it says Python 2.4 (#60 November 30th, 2004) when I start it. > > > I think Martin has been doing MSIs for a little bit longer t

Re: Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Leif K-Brooks
Kenneth McDonald wrote: > I'm curious about this because, quite aside their function as web > browsers, it is now possible to build some very useable interfaces > using browsers with HTML, CSS, and JavaScript. (The biggest problem is > still the lack of a decent text widget.) However, JavaScript

Re: Language translation possible in python?

2005-08-26 Thread James
As Terry, mentioned BabelFish should be a good resource. I have used Google Language tools in the past. It worked reasonably well with French and German. Now they included English to Korean BETA. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Denis Kasak <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> >> You can't be sure: errors in the handling of threads can cause a >> buffer overflow, same for spelling checking :-D > > Yes, they can, provided they are not properly coded. However, those > things only interact locally with the us

Re: Why does min(A, B) not raise an error if A, B actually can't be compared?

2005-08-26 Thread Raymond Hettinger
[Claudio Grondi] > The still open question for me then is: > Why does min() not raise an error in case > there is no comparison function definition > for the feeded objects available? Actually, there is a comparison function for class instances. Unfortunately, the default method is not very usefu

Re: global interpreter lock

2005-08-26 Thread Paul Rubin
[EMAIL PROTECTED] (phil hunt) writes: > >Let's see. Reality is that writing correct programs is hard. Writing > >correct programs that use concurrency is even harder, because of the > >exponential explosion of the order that operations can happen > >in. Personally, I'm willing to use anything I can

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Rich Teer <[EMAIL PROTECTED]> wrote: > On Fri, 26 Aug 2005, John Bokma wrote: > >> people from www to Usenet or vice versa is beyond me. If 80% of the >> current Usenet users stop posting, Usenet is not going to die :-D > > Heh. Quite the opposite, I reckon: it would get much better (higher > S

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Denis Kasak <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >> >> so use Lynx :-) >> >> One forum I visit is about scorpions. And really, it talks a bit >> easier about scorpions if you have an image to look at :-D. >> >> In short: Usenet = Usenet, and www = www. Why some people want to >> move p

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > The try/except pattern is a pretty basic part of Python's design. One > could say the same about clutter for *every* function or method that raises > an exception on invalid input. Should more or even all be duplicated? Why > just this one? Someone

Re: Python Light Revisted?

2005-08-26 Thread Berlin Brown
"Let's suppose I decided to take your bait and build a python-lite distribution (fyi, I'm not biting). " Of course not, that is the point, everybody is always right. What I want is the option to distribute something to light my users. I have done with java, lisp and other languages. But. I can'

Re: global interpreter lock

2005-08-26 Thread phil hunt
On Thu, 25 Aug 2005 00:56:10 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote: >> The issue here is whether to confuse reality with what one might >> wish reality to be. > >Let's see. Reality is that writing correct programs is hard. Writing >correct programs that use concurrency is even harder, because

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Torsten Bronger
Hallöchen! "Terry Reedy" <[EMAIL PROTECTED]> writes: > "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message > news:[EMAIL PROTECTED] > >> "Terry Reedy" <[EMAIL PROTECTED]> writes: >> >>> Str.find is redundant with the Pythonic exception-raising >>> str.index and I think it should be re

Re: Problem with Pythoncard

2005-08-26 Thread Steve M
There are some Python packages that I prefer to get from the developer instead of from my Linux distribution (Debian). Usually it is because I intend to upgrade the package before, or more often than, my distribution releases a new version. (A likely scenario if you use Debian - zing!) So I downlo

Re: Language translation possible in python?

2005-08-26 Thread Terry Reedy
"Jon Monteleone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a program that currently displays all of its messages and >instructions in only > English. My boss wants me to change it all to Korean. Is there a python > module that will > automatically translate my Englis

Re: overload builtin operator

2005-08-26 Thread Bengt Richter
On Thu, 25 Aug 2005 16:12:20 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Shaun wrote: >> Hi, >> >> I'm trying to overload the divide operator in python for basic arithmetic. >> eg. 10/2 ... no classes involved. >> >> I am attempting to redefine operator.__div__ as follows: >> >>

Re: classes and list as parameter, whats wrong?

2005-08-26 Thread Terry Reedy
"Dirk Zimmermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But still, it is not absolutely clear for me, what is going on. So, at > least just for my understanding: The parameter LL is created just once > for the whole class and not for the object (because I del the object >

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Terry Reedy
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message news:[EMAIL PROTECTED] > "Terry Reedy" <[EMAIL PROTECTED]> writes: >>Str.find is >> redundant with the Pythonic exception-raising str.index >> and I think it should be removed in Py3. > > I like having it available so you don't have t

posting 20050826

2005-08-26 Thread clovis_q
"Now wait a minute," I said. "If you can't make tendrils anymore, how did yo u make the call earlier today?" "I don't think that would be very helpful," Miranda said. Posted by john at 11:45 PM Best Screenplay (Adapted): Connie Reiser & Larry Card, from the book Hard Me mories by Rachel Spiegelman

Re: Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Kenneth McDonald
On Aug 26, 2005, at 3:04 PM, Paul Rubin wrote:Python isn't a good choice as a browser language because it doesn't have enough security.  Hostile scripts can take over the interpreter too easily.   There was a Python-based browser effort called Grail which I don't think got very far. Personally I

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-26 Thread Benjamin Niemann
Raymond Hettinger wrote: > > Mark Dickinson wrote: >> I have a simple 192-line Python script that begins with the line: >> >> dummy0 = 47 >> >> The script runs in less than 2.5 seconds. The variable dummy0 is never >> referenced again, directly or indirectly, by the rest of the script. >> >> Her

Re: Any projects to provide Javascript-style client-side browser accessvia Python?

2005-08-26 Thread Do Re Mi chel La Si Do
Hi ! >>> So anyone know if there are projects underway on this? Yes, I work on this way. But it's a long work, because I have few time... But there are certainly other projects. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does min(A, B) not raise an error if A, B actually can't be compared?

2005-08-26 Thread Claudio Grondi
Thanks to Raymond for his reply. If I understand him right, there is no problem with min() as such, but with the definition of the class, which when used in min() should define at least __cmp__(). I have attached code with another class PythonObject_classWithDefined__cmp__: where the behaviour

Re: MacPython 2.2 on Mac OS X 10.3.8 - configurePython error

2005-08-26 Thread Paul Miller
Robert Kern wrote: > Paul Miller wrote: > >>Robert Kern wrote: > > >>>MacPython 2.2 has been long abandoned. The >>>official OS X binary for Python 2.4.1 can be found here: >>> >>>http://www.python.org/ftp/python/2.4.1/MacPython-OSX-2.4.1-1.dmg >> >>I realize that, but I have an application that

Re: Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Paul Rubin
Kenneth McDonald <[EMAIL PROTECTED]> writes: > I'm curious about this because, quite aside their function as web > browsers, it is now possible to build some very useable interfaces > using browsers with HTML, CSS, and JavaScript. (The biggest problem > is still the lack of a decent text widget.) H

Any projects to provide Javascript-style client-side browser access via Python?

2005-08-26 Thread Kenneth McDonald
I'm curious about this because, quite aside their function as web browsers, it is now possible to build some very useable interfaces using browsers with HTML, CSS, and JavaScript. (The biggest problem is still the lack of a decent text widget.) However, JavaScript isn't really a good langua

Re: Socket Support When Compiling Python 2.3.5 On Cygwin

2005-08-26 Thread tom
Thanks for the response Jason. I re-ran make and noticed the following: building '_socket' extension gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -I. -I/tmp/Python-2.3.5/./Include -I/usr/local/include -I/tmp/Python-2.3.5/Include -I/tmp/Python-2.3.5 -c /tmp/Python-2.3.5/Modul

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Paul Rubin
"Terry Reedy" <[EMAIL PROTECTED]> writes: > I agree in this sense: the use of any int as an error return is an > unPythonic *nix-Cism, which I believe was copied therefrom. Str.find is > redundant with the Pythonic exception-raising str.index and I think it > should be removed in Py3. I like h

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-26 Thread Terry Reedy
"Bryan Olson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The double-meaning of -1, as both an exclusive stopping bound > and an alias for the highest valid index, is just plain whacked. I agree in this sense: the use of any int as an error return is an unPythonic *nix-Cism, w

Re: Why does min(A,B) behave different for lists and for classes?

2005-08-26 Thread Raymond Hettinger
Claudio Grondi wrote: > Is there any deeper reason I don't understand > explaining why does min(A,B) behave different > for classes than for lists? Yes, the sort order for lists is determined by their contents. With your example, the lists have identical contents, so min() returns the first minim

Re: minimalist regular expression

2005-08-26 Thread [EMAIL PROTECTED]
Whenever I ask a match in a string for(a{3,}b and match for (a{1,}, the first is implicit second: ab is implicit in a.*;automatically -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-08-26 Thread [EMAIL PROTECTED]
Mike Meyer wrote: > Bryan Olson <[EMAIL PROTECTED]> writes: > > The issue here is whether to confuse reality with what one might > > wish reality to be. > > Let's see. Reality is that writing correct programs is hard. Writing > correct programs that use concurrency is even harder, because of the >

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Reinhold Birkenfeld
Bryan Olson wrote: > Steve Holden wrote: > > Bryan Olson wrote: > >> Antoon Pardon wrote: > > >> > It probably is too late now, but I always felt, find should > >> > have returned None when the substring isn't found. > >> > >> None is certainly a reasonable candidate. > [...] > >> The rea

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Bryan Olson
Steve Holden wrote: > Bryan Olson wrote: >> Antoon Pardon wrote: >> > It probably is too late now, but I always felt, find should >> > have returned None when the substring isn't found. >> >> None is certainly a reasonable candidate. [...] >> The really broken part is that unsuccessful se

Closing programs that use sockets

2005-08-26 Thread billiejoex
Hi all. I got a problem when using socket modules. By using them I can't stop my program by pressing ctrl+c. The only way to doit is by killing the python.exe process manually. Is there a solution to avoid this? Regards -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket Support When Compiling Python 2.3.5 On Cygwin

2005-08-26 Thread Jason Tishler
Tom, On Thu, Aug 25, 2005 at 10:39:47AM -0500, [EMAIL PROTECTED] wrote: > What do I need to do to make sure that this file will be created with > I compile Python 2.3.5? Are there any error messages when the socket module is built during the Python build? If so, then post them to the list. Jaso

Why does min(A,B) behave different for lists and for classes?

2005-08-26 Thread Claudio Grondi
Trying to understand the outcome of the recent thread (called later reference thread): "Speed quirk: redundant line gives six-fold speedup" I have put following piece of Python code together: class PythonObject_class: pass PythonObject_class_instanceA = PythonObject_class() PythonObject_class_

Re: Embedding Python in other programs

2005-08-26 Thread Gregory Piñero
Oh, by the way, here's the VB code I'm using: http://www.blendedtechnologies.com/wp-content/VB_uses_Python.zip I wonder if this question should go to some kind of VB list instead? -Greg On 8/26/05, Gregory Piñero <[EMAIL PROTECTED]> wrote: Hey guys, This question inpsired me to try this in VB

Re: reportlab and custom fonts

2005-08-26 Thread Reinhold Birkenfeld
Reinhold Birkenfeld wrote: > Hi, > > I'm trying to get reportlab working together with the Tahoma font > (by Microsoft ;) > > So far it's up and running (converted the ttf with ttf2pt1), but the > Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to > show up in the final PDF. >

Re: Does any1 use pcapy module on win32 platforms?

2005-08-26 Thread billiejoex
The problem was my winpcap version. I was using the 3.1. Now, with the 3.0 it works. Really thanks. :-) > For what it's worth, I can run that on my XP Professional SP2 machine and > it works perfectly: > pcapy.findalldevs() > [u'\\Device\\NPF_{15310604-FCFC-4016-9D36-14DAA948A600}', > u'\\D

reportlab and custom fonts

2005-08-26 Thread Reinhold Birkenfeld
Hi, I'm trying to get reportlab working together with the Tahoma font (by Microsoft ;) So far it's up and running (converted the ttf with ttf2pt1), but the Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to show up in the final PDF. I investigated a bit and saw that in the afm

Re: Email client in Pyhton

2005-08-26 Thread Gregory K. Johnson
On Thu, Aug 25, 2005 at 11:28:33PM -0700, Oren Tirosh wrote: > The mailbox module has recently been upgraded for full read-write > access by a student participating in google's Summer of Code. It is > currently under review for inclusion in the standard library. Yeah. I'm the student. :-) The OP

Python Active Scripting

2005-08-26 Thread darrick
I am very very new to python. I implemented an application to run vbscript using IActiveScriptSite and others. It works well in vbscript. I want to include python script and run into problems. The way i setup my application, I create the script language engine, call AddNamedItem("XXX", SCRIPTIT

Re: same menu point is activated

2005-08-26 Thread OllieZ
Thx a lot, i'll try that asap :) OllieZ -- http://mail.python.org/mailman/listinfo/python-list

Re: telnet.read_until() from telnetlib

2005-08-26 Thread [EMAIL PROTECTED]
after doing some research, I would suggest trying self.telnet.expect(). This will give you more data about the cause of the failures. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to know if connection is active when using telnetlib?

2005-08-26 Thread [EMAIL PROTECTED]
Well, running this code: -- >>> import telnetlib >>> c = telnetlib.Telnet("blah") -- throws this exception: -- socket.gaierror: (11001, 'getaddrinfo failed') -- note that this is the same as your "telnetlib.Telnet.open". So, you will want to use TRY: and EXCEPT: to

Re: Command Line arguments

2005-08-26 Thread Trent Mick
[michael wrote] > >> I wonder why this was needed for 2.4 and not 2.2? I don't think it was > >> lingering things from old installs because it happened on a persons > >> computer that had never had any python installed before 2.4. > > [Trent] > > It might be due to a bug in the Python 2.4 install

Re: telnet.read_until() from telnetlib

2005-08-26 Thread [EMAIL PROTECTED]
Czesc Jacek: Please post the minimum code necessary to duplicate the problem. Dzieki, Derek Wilson -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread Chris Head
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Bokma wrote: > Chris Head <[EMAIL PROTECTED]> wrote: > > >>John Bokma wrote: > > Additionally, a user interface operating inside an HTML renderer can NEVER be as fast as a native-code user interface with only the e-mail message its

Re: classes and list as parameter, whats wrong?

2005-08-26 Thread Scott David Daniels
Dirk Zimmermann wrote: > But still, it is not absolutely clear for me, what is going on. So, at > least just for my understanding: The parameter LL is created just once > for the whole class and not for the object (because I del the object > explicitly, which should destroy the object)? del does no

Re: Embedding Python in other programs

2005-08-26 Thread Gregory Piñero
Hey guys, This question inpsired me to try this in VB6.  I did a search and copied what I saw at http://forums.devshed.com/t158692/s.html However I'm running into the same problem they are.  When I try to run: res = Python.PyRun_SimpleString("5+7") I get the error message: Bad DLL calling conv

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Steve Holden
Bryan Olson wrote: > Antoon Pardon wrote: > > Bryan Olson schreef: > > > >>Steve Holden asked: > >>>And what are you proposing that > >>>find() should return if the substring isn't found at all? please don't > >>>suggest it should raise an exception, as index() exists to provide that > >>>fu

Re: minimalist regular expression

2005-08-26 Thread Paul Lalli
Brian McCauley wrote: > Paul Lalli wrote: > > > > m//; > > > > it matches everything. > > Not in Perl it doesn't. :-) Sure it does provided you haven't tried matching anything else beforehand... Paul Lalli -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >