re:c++ÈçºÎÏòpythonµÄœÅ±ŸŽ«µÝÒ»žöÀà×÷Ϊ²ÎÊý¡£

2005-07-18 Thread Hua
Hi, you should write in English, otherwise there is nobody understand your question. ` -- http://mail.python.org/mailman/listinfo/python-list

Out of Office AutoReply: Returned mail: Data format error

2005-07-18 Thread Romascanu, Dan (Dan)
Title: Out of Office AutoReply: Returned mail: Data format error I am out-of-office, on a business trip, untill July 23, 2005, and may be able to read your e-mail only after this date. If you need to contact me urgently, please call the mobile phone number +1-917-957-0270. Regards, Dan

Re: main window in tkinter app

2005-07-18 Thread Eric Brunel
On Mon, 18 Jul 2005 16:57:51 GMT, William Gill <[EMAIL PROTECTED]> wrote: > A short while ago someone posted that(unlike the examples) you should > use Tk as the base for your main window in tkinter apps, not Frame. Thus : > >class MyMain(Frame): >def __init__(self, master): >

Re: retrieving https pages

2005-07-18 Thread ncf
It might be checking the browser's User-agent. My best bet for you would to be to use something to record the headers your browser sends out, and mimic those in Python. If you look at the source code for urlopener (I think you can press Alt+M and type in "urlopener"), under the FancyURLopener defi

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Malcolm
"John Bokma" <[EMAIL PROTECTED]> wrote > A typical Xah Lee posting... wake me up when he is able to write a single > post that makes and sense, and doesn't contain fuck or similar words. > Obscene language isn't acceptable on comp.lang.c. It is an international group, and what might be acceptable

Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router?

2005-07-18 Thread Chris
Could anyone write a small program to log the Signal-to-Noise figures for a Netgear DG834 router? I have been getting very variable SNR readings - and I would like to collect some evidence to analyse. What is needed is a program that logs into the router's html page every minute, and then extr

Re: Python IDE

2005-07-18 Thread ncf
Honestly, I'm just using Python's own IDLE to do it all. It works rather well for my tastes :) -- http://mail.python.org/mailman/listinfo/python-list

WG: creating new process with pipes under win xp ->troubles

2005-07-18 Thread Michael Lieschnegg
hello! I wrote a python parent script which starts a separate script in a new process (under Windows XP Pro SP2, Python 2.4.1).  Through anonymous pipes I have a bidirectional communication to the child. Now I embedded the parent script in a CPP program, but when I start the cpp dummy appl

Re: Ordering Products

2005-07-18 Thread Kay Schluehr
Ron Adam wrote: > Kay Schluehr wrote: > > Here might be an interesting puzzle for people who like sorting > > algorithms ( and no I'm not a student anymore and the problem is not a > > students 'homework' but a particular question associated with a > > computer algebra system in Python I'm currentl

Re: What is your favorite Python web framework?

2005-07-18 Thread Dave Cook
On 2005-07-17, Admin <[EMAIL PROTECTED]> wrote: > I favor speed of development, intensive OO development, performance under > heavy load, short learning curve, good documentation and community. I like the design of nevow (nevow.com), but I don't have any practical experiences with other framewo

Python IDE

2005-07-18 Thread linuxfreak
Hi guys, Got going with python...and i must say its a pretty cool language. Been using Xemacs to write me programs. But I want an IDE that would give me auto-completion, online help and the like... Tried SPE and Dr.Pyhton but the former crashes regulary and the latter is quite unweildy and does

Re: Filtering out non-readable characters

2005-07-18 Thread Robert Kern
Michael Ströder wrote: > Peter Hansen wrote: > >''.join(chr(c) for c in range(65, 91)) >> >>'ABCDEFGHIJKLMNOPQRSTUVWXYZ' > > Wouldn't this be a candidate for making the Python language stricter? > > Do you remember old Python versions treating l.append(n1,n2) the same > way like l.append((n1

Re: os.path.expanduser on Windows: UnicodeEncodeError

2005-07-18 Thread Neil Hodgson
Bob Swerdlow wrote: > My application is getting this error on Windows XP (works fine on Mac OS > X) when it calls os.path.expanduser: >UnicodeEncodeError: 'ascii' codec can't encode characters in position > 52-56: ordinal not in range(128) What does your environment look like? You can fi

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Steve Sobol
Cong Wang wrote: > M$ is evil! Not as evil as off-topic rants posted to c.l.j.programmer. -- JustThe.net - Steve Sobol / [EMAIL PROTECTED] / PGP: 0xE3AE35ED Coming to you from Southern California's High Desert, where the temperatures are as high as the gas prices! / 888.480.4NET (4638) "Life'

Re: goto

2005-07-18 Thread Steven Bethard
Fernando Perez wrote: > Steven Bethard wrote: > >>Download the goto module: >> http://www.entrian.com/goto/ >>And you can use goto to your heart's content. And to the horror of all >>your friends/coworkers. ;) > > That is actually a _really_ cool piece of code, in terms of showing off the > k

Re: goto

2005-07-18 Thread rbt
10 PRINT "YOU'RE NOT RIGHT IN THE HEAD." 20 GOTO 10 On Tue, 2005-07-19 at 02:33 +, Leif K-Brooks wrote: > rbt wrote: > > IMO, most of the people who deride goto do so because they heard or read > > where someone else did. > > 1 GOTO 17 > 2 mean,GOTO 5 > 3 couldGOTO 6 > 4

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread edgrsprj
"Bob Officer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 11 Jul 2005 08:31:31 GMT, in sci.geo.earthquakes, "edgrsprj" > <[EMAIL PROTECTED]> wrote: > > >PROPOSED EARTHQUAKE FORECASTING > >COMPUTER PROGRAM DEVELOPMENT EFFORT > demand that public monies be giving to him to

Re: How do I send keystrokes to a console window in Windows XP?

2005-07-18 Thread Benji York
[EMAIL PROTECTED] wrote: > This gives me hope, but what I really need to do is to send keystrokes > to an <<>> console window. That's exactly what the code does. Try it out, you'll see how it works quickly enough. -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: goto

2005-07-18 Thread Leif K-Brooks
rbt wrote: > IMO, most of the people who deride goto do so because they heard or read > where someone else did. 1 GOTO 17 2 mean,GOTO 5 3 couldGOTO 6 4 with GOTO 7 5 what GOTO 3 6 possibly GOTO 24 7 you! GOTO 21 8 that GOTO 18 9 really,

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Cong Wang
M$ is evil! -- http://mail.python.org/mailman/listinfo/python-list

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Luis M. Gonzalez
Luis M. Gonzalez wrote: > As I said, "it is not python" (Peter Hansen, please don't jump to my > jugular...) Hey Pete, I was joking on that one! Here's the missing smiley ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with images

2005-07-18 Thread Peter Hansen
Chad wrote: > I have installed a TWAIN module(from > http://twainmodule.sourceforge.net) today and figured out how to > acquire an image. The only problem is that the image is way too large > in terms of filesize. It is over 1MB. > > I can do either one of two things. Try to figure out how to m

Re: Threads: Issue and suggestion required

2005-07-18 Thread Peter Hansen
Sandeep Arya wrote: > My query is. Is this possible that my main thread and my newly born > thread will execute their task simultaneously/parallel. (I read that > Python interpretor allows only one thread execution at a time. Using its > global lock. And switch among active thread based on time

Re: Ordering Products

2005-07-18 Thread Ron Adam
Kay Schluehr wrote: > Here might be an interesting puzzle for people who like sorting > algorithms ( and no I'm not a student anymore and the problem is not a > students 'homework' but a particular question associated with a > computer algebra system in Python I'm currently developing in my > spare

Re: Help with images

2005-07-18 Thread Chad Best
"max" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Chad" <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> I have installed a TWAIN module(from >> http://twainmodule.sourceforge.net) today and figured out how to >> acquire an image. The only problem is that the image

retrieving https pages

2005-07-18 Thread Eric
I'm using Linux - Manriva LE2005, python 2.3 (or i can also use python 2.4 on my other system just as well). Anyways... I want to get a web page containing my stock grants. The initial page is an https and there is a form on it to fill in your username and password and then click "login" I played w

Re: goto

2005-07-18 Thread D H
Mike Meyer wrote: > rbt <[EMAIL PROTECTED]> writes: > >>Many of the world's most profitable software companies (MS for example) >>have thousands of goto statements in their code... oh the horror of it >>all. Why aren't these enlightened-by-the-gods know-it-alls as profitable >>as these obviously i

Re: Help with images

2005-07-18 Thread max
"Chad" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > I have installed a TWAIN module(from > http://twainmodule.sourceforge.net) today and figured out how to > acquire an image. The only problem is that the image is way too > large in terms of filesize. It is over 1MB. > > I can do eit

Re: What is your favorite Python web framework?

2005-07-18 Thread bbangert
Admin wrote: > I am doing some research for a Python framework to build web applications. > I have discarted Zope because from what I've read, the learning curve is > too steep, and it takes more time to build applications in general with > Zope. I've heard many good things about Zope 3, although

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
On Mon, 18 Jul 2005 19:56:24 -0400, Mike Meyer wrote: > "Thomas Bartkus" <[EMAIL PROTECTED]> writes: >>> > Re-train on a new platform, >>> > and re-write from scratch? >> >> What do you do when an open source project you were using gets >> abandoned? > > cvs import -m "sources for orphaned projec

Re: Filtering out non-readable characters

2005-07-18 Thread Peter Hansen
Michael Ströder wrote: > Peter Hansen wrote: > >''.join(chr(c) for c in range(65, 91)) >> >>'ABCDEFGHIJKLMNOPQRSTUVWXYZ' > > > Wouldn't this be a candidate for making the Python language stricter? Why would that be true? I believe str.join() takes any iterable, and a generator (as returne

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Jürgen Exner
Xah Lee wrote: > Dear Joe, > > It is well known that you are an avid hater of Microsoft, from their [...] Just for the records at Google et.al. in case someone stumbles across Xah's masterpieces in the future: Xah is very well known as the resident troll in many NGs and his 'contributions' are les

Help with images

2005-07-18 Thread Chad
I have installed a TWAIN module(from http://twainmodule.sourceforge.net) today and figured out how to acquire an image. The only problem is that the image is way too large in terms of filesize. It is over 1MB. I can do either one of two things. Try to figure out how to manupilate the image with

Threads: Issue and suggestion required

2005-07-18 Thread Sandeep Arya
Hello I am developing an application using PyQT. My application scenario is:: "At any instance one socket is open in my application. Now if user wants to execute some command on another machine/IP address, then i need to make another socket and execute task." My query is. Is this possible tha

Re: goto

2005-07-18 Thread Fernando Perez
Steven Bethard wrote: > Hayri ERDENER wrote: >> what is the equivalent of C languages' goto statement in python? > > Download the goto module: > http://www.entrian.com/goto/ > And you can use goto to your heart's content. And to the horror of all > your friends/coworkers. ;) > > STeVe Tha

Re: How to send broadcast message over network and collect all the IP address?

2005-07-18 Thread Sandeep Arya
Hello I got one reply two days back regarding this from Francesco. Thanks. I came to know that inorder to run any ARP request one need to be superuser. Is this correct? And also I came to know that on some OS like Win XP with SP2 does not go for ARP requests. Again Is this correct? In this cas

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Mike Meyer
"Thomas Bartkus" <[EMAIL PROTECTED]> writes: >> > Re-train on a new platform, >> > and re-write from scratch? > > What do you do when an open source project you were using gets abandoned? cvs import -m "sources for orphaned project" > Hard to see much difference here. Doing support for objec

Re: Python to C++ translation?

2005-07-18 Thread szymon . rozga
Ok so here's what you have: A a(42); B b(23.0); a is now of type A, and b is now of type B. Right? The constructor for class C takes in two arguments. The first one _has_ to be of type A and the second one _has_ to be of type B. This is how you defined it. This is why C(a,b) works fine. But C(b,a

Re: goto

2005-07-18 Thread Mike Meyer
rbt <[EMAIL PROTECTED]> writes: > Many of the world's most profitable software companies (MS for example) > have thousands of goto statements in their code... oh the horror of it > all. Why aren't these enlightened-by-the-gods know-it-alls as profitable > as these obviously ignorant companies? Bec

Cursor navigation

2005-07-18 Thread TA
Hi, This might be a silly question, but I was wondering how you would navigate backwards in a PostgreSQL cursor when the Python DB-API 2.0 allows records to be fetched in a forward-only manner? I have tried different solutions - two of which are included here. The first solution uses the cursor d

Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Nick Vargish wrote: > windozbloz <[EMAIL PROTECTED]> writes: > >> It now works from the command line like you said. Shouldn't I also be >> able to 'click' an icon that has been set to executable and launch the >> whole process that way? > > You'll need to put an interpreter line at the beginnin

Re: Make a .WAV file come out of the left speaker in Windows

2005-07-18 Thread Alan Green
Alan Green wrote: > I am writing a Python script that uses the win32all winsound package to > play a .wav file. I [need] the sound come out of the left hand speaker, but > not the right hand speaker. I eventually got out ctypes and used it to access the Windows multi-media libraries. ctypes is co

Re: Windows command line problem

2005-07-18 Thread [EMAIL PROTECTED]
does it matter? Have it key off both "\x96" and "-". -- http://mail.python.org/mailman/listinfo/python-list

Re: Java RMI-like services in Python

2005-07-18 Thread Maurice LING
Thank you Harald and Alan, Pyro seems to be used widely in this area but PyLinda is much cleaner and simpler to use. However, given that the object or class to be executed by execution machines are not known at development time, I wish to seek you advice on remote class loading. Can an object

Re: goto

2005-07-18 Thread Steven D'Aprano
On Mon, 18 Jul 2005 16:37:57 -0400, rbt wrote: > Shouldn't that be "to the horror of all your goto-snob friends." > > IMO, most of the people who deride goto do so because they heard or read > where someone else did. Or because they actually programmed in languages that used goto for flow contr

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread John Bokma
Steve Sobol <[EMAIL PROTECTED]> wrote: > Xah Lee wrote: >> Dear Joe, >> >> It is well known that you are an avid hater of Microsoft, from their >> technologies to their leader to their business practices. I have now >> and then seen your impassioned expression of this hatred, scattered >> among y

Re: Python to C++ translation?

2005-07-18 Thread George Sakkis
"Mangabasi" <[EMAIL PROTECTED]> wrote: > Hi there, > > I need to translate the following code (rather something similar) to > C++. I have been studying C++ for the last two days but I could not > find an easy way to do the following Python snippet. > > > class A: > def __init__(self, x): >

Re: Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Steve Sobol
Xah Lee wrote: > Dear Joe, > > It is well known that you are an avid hater of Microsoft, from their > technologies to their leader to their business practices. I have now > and then seen your impassioned expression of this hatred, scattered > among your newsgroup posts. This has ZERO to do with a

Re: goto

2005-07-18 Thread Steven Bethard
rbt wrote: > Steven Bethard wrote: > >>Download the goto module: >> http://www.entrian.com/goto/ >>And you can use goto to your heart's content. And to the horror of all >>your friends/coworkers. ;) > > Shouldn't that be "to the horror of all your goto-snob friends." > > IMO, most of the pe

Re: goto

2005-07-18 Thread Dan Bishop
rbt wrote: > On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: > > Hayri ERDENER wrote: > > > what is the equivalent of C languages' goto statement in python? > > > > Download the goto module: > > http://www.entrian.com/goto/ > > And you can use goto to your heart's content. And to the

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread chuck
"common wisdom" interesting. The value of the closed attribute is "False" when tested from within the service. Still digging -- http://mail.python.org/mailman/listinfo/python-list

Re: J-Integra for COM (Java COM interoperability)

2005-07-18 Thread F. Petitjean
Le 18 Jul 2005 13:39:41 -0700, [EMAIL PROTECTED] a écrit : snip > > J-Integra for COM Features: snip > > For a free evaluation, visit our website at > http://j-integra.intrinsyc.com/ > > Regards, > > Shane Sauer Q: What are the Vikings singing in the background ? A: Spam, spam, spam ! -- htt

Xah's edu corner: on Microsoft hatred

2005-07-18 Thread Xah Lee
Dear Joe, It is well known that you are an avid hater of Microsoft, from their technologies to their leader to their business practices. I have now and then seen your impassioned expression of this hatred, scattered among your newsgroup posts. Personally, i have an inherent distrust toward big or

Re: Efficiently Split A List of Tuples

2005-07-18 Thread Ron Adam
Simon Dahlbacka wrote: > Oooh.. you make my eyes bleed. IMO that proposal is butt ugly (and > looks like the C++.NET perversions.) I haven't had the displeasure of using C++.NET fortunately. point = [5,(10,20,5)] size,t = point x,y,z = t size,x,y,z = point[0], point[1][0], poi

Re: Efficiently Split A List of Tuples

2005-07-18 Thread Ron Adam
Raymond Hettinger wrote: > [Ron Adam] > >>Currently we can implicitly unpack a tuple or list by using an >>assignment. How is that any different than passing arguments to a >>function? Does it use a different mechanism? > > > It is the same mechanism, so it is also only appropriate for low > v

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Bob Officer
On Wed, 13 Jul 2005 23:39:46 GMT, in sci.geo.earthquakes, "Hank Oredson" <[EMAIL PROTECTED]> wrote: >"edgrsprj" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> "Hank Oredson" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> "edgrsprj" <[EMAIL PROTECTED]> wrote in

Re: smtplib

2005-07-18 Thread Bill Mill
On 7/18/05, Alberto Vera <[EMAIL PROTECTED]> wrote: > > Hello: > > Do you know If the smtplib routine have been changed in last releases? > > I used this script: > > http://docs.python.org/lib/SMTP-example.html > > but it didn't work with the last release. > > Do you know any

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Luis M. Gonzalez
I'd suggest you take another path: Since we're in a python mailing list, I assume you like python, so instead of Kylix (or Object Pascal), you could try Boo (boo.codehaus.org) . Boo is not python, but it is very similar. It could be described as a statically typed version of python for the .NET fra

J-Integra for COM (Java COM interoperability)

2005-07-18 Thread j-integra_support
Looking for Java/COM interoperability tools? Thousands of companies world-wide are using J-Integra for COM for interoperability between Java and Microsoft COM applications. J-Integra for COM is a pure Java implementation of the DCOM protocol, making it several times faster than Web Services. J-Int

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
"windozbloz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bye Bye Billy Bob... > > I'm back with one more question, then I'll chill. I have scoured the news > and net for info about Borlands KYLIX 3 and have found little technical > info about it. Their screen shots are very impr

Re: goto

2005-07-18 Thread Steven Bethard
Hayri ERDENER wrote: > what is the equivalent of C languages' goto statement in python? Download the goto module: http://www.entrian.com/goto/ And you can use goto to your heart's content. And to the horror of all your friends/coworkers. ;) STeVe -- http://mail.python.org/mailman/listinfo

Re: What is your favorite Python web framework?

2005-07-18 Thread Jeff Shell
Zope 3, far and away. There's great documentation, quite a few load handling options (different types of caching and ZEO to distribute ZODB caches to multiple machines). Zope 3 aggressively favors small cooperating objects (Zope 2 was inheritance heavy, making customization, extension, etc, a big c

Re: Frankenstring

2005-07-18 Thread Thomas Lotze
Peter Otten wrote: > I hope you'll let us know how much faster your > final approach turns out to be OK, here's a short report on the current state. Such code as there is can be found at , with a Python mock-up in the same directory. Thi

Python to C++ translation?

2005-07-18 Thread Mangabasi
Hi there, I need to translate the following code (rather something similar) to C++. I have been studying C++ for the last two days but I could not find an easy way to do the following Python snippet. class A: def __init__(self, x): self.x = x def methodA(): pass # Ignore

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Bob Officer
On Mon, 11 Jul 2005 08:31:31 GMT, in sci.geo.earthquakes, "edgrsprj" <[EMAIL PROTECTED]> wrote: >PROPOSED EARTHQUAKE FORECASTING >COMPUTER PROGRAM DEVELOPMENT EFFORT here we go again... EDG is not a computer programmer, nor is he a geologist... The best guess seems to be that he is he is crac

Re: What is your favorite Python web framework?

2005-07-18 Thread Admin
On Mon, 18 Jul 2005 16:21:37 -0300, Jeff Shell <[EMAIL PROTECTED]> wrote: > Don't discard Zope 3 becaue of what you've heard about Zope 2. Zope 3 > is a very different animal. Are Zope 3's learning curve + speed of development a lot faster than previous versions? -- Thanks, Admin. Want to

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Ivan Van Laningham
Hi All-- Bob Officer wrote: > > On Mon, 11 Jul 2005 08:31:31 GMT, in sci.geo.earthquakes, "edgrsprj" > <[EMAIL PROTECTED]> wrote: > > >PROPOSED EARTHQUAKE FORECASTING > >COMPUTER PROGRAM DEVELOPMENT EFFORT > > here we go again... > > EDG is not a computer programmer, nor is he a geologist...

Re: Python scripts wont run - HELP

2005-07-18 Thread Nick Vargish
windozbloz <[EMAIL PROTECTED]> writes: > It now works from the command line like you said. Shouldn't I also be able > to 'click' an icon that has been set to executable and launch the whole > process that way? You'll need to put an interpreter line at the beginning of your script, as other poste

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Thomas Bartkus
> Jeff Epler wrote: > > > I honestly don't know why anyone would spend money for a development > > environment, no matter how fancy. I don't knowdefinitelye would develop > > software in a language that doesn't have at least one open > > implementation. It's called (ROI) Return On Investment. If

Re: What is your favorite Python web framework?

2005-07-18 Thread Colin J. Williams
Luis M. Gonzalez wrote: > Peter Hansen wrote: > >>Gerhard Haering wrote: >> >>>On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: >>> I'm not familiar with this expression. What do you mean by "black horse"? >>> >>>Maybe "the Ferrari of pythonic frameworks" (black horse on yellow >

smtplib

2005-07-18 Thread Alberto Vera
Hello:   Do you know If the smtplib routine have been changed in last releases?   I used this script:   http://docs.python.org/lib/SMTP-example.html   but it didn't work with the last release.   Do you know any idea about this change?   Regards   -- http://mail.python.org/mailman/listinfo/py

Re: Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread Michael Ströder
rh0dium wrote: > > ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs) You are already using the synchronous search method which indeed return the search results. So this should read: result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs) > result_typ

Re: goto

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: > Hayri ERDENER wrote: > > what is the equivalent of C languages' goto statement in python? > > Download the goto module: > http://www.entrian.com/goto/ > And you can use goto to your heart's content. And to the horror of all > your f

Re: What is your favorite Python web framework?

2005-07-18 Thread Scott David Daniels
Luis M. Gonzalez wrote: > I read the expression "Dark horse contender" many times, and i guess it > has some reminiscence from medieval times and the cavalry stories. > It meaning is something like the "unknown that could be the new champ", > someone intriguing and mysterious who doesn't unveil its

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Caleb Hattingh
Hi Doug Not only was Kylix a letdown, there is talk also of it being discontinued. To be fair though, it is easy to see the difficulty for Borland to deploy a Linux IDE of the same quality as Delphi when so much in different Linux distributions is variable, the widget set being a prime ex

Re: How do I send keystrokes to a console window in Windows XP?

2005-07-18 Thread GoogleGroups
Thank you, Benji. This gives me hope, but what I really need to do is to send keystrokes to an <<>> console window. Any help there? (P.S. Sorry that I wasn't more specific.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Earthquake Forecasting Program July 11, 2005

2005-07-18 Thread Terry Reedy
"Bob Officer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip over 100 lines that should have been snipped before] >>In particular I am interested in the EM dataset. > > There isn't any "data set" > > There are no "formula"... > > There is only EGD > > Crackpot. > > http://www

Re: Python scripts wont run - HELP

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 17:22 +0100, John Abel wrote: > windozbloz wrote: > > >Bye Bye Billy Bob... > > > >Hello All, > >I'm a fairly literate windoz amateur programmer mostly in visual basic. I > >have switched to SuSE 9.2 Pro and am trying to quickly come up to speed > >with Python 2.3.4. I can r

Re: python certification

2005-07-18 Thread Rocco Moretti
[EMAIL PROTECTED] wrote: > i want to get a small certificate or diploma in python. > it should be online cuz i live in pakistan and wont have teast centers > near me. > it should be low cost as i am not rich. > and hopefully it would be something like a a begginer certification cuz > i am new to py

Re: What is your favorite Python web framework?

2005-07-18 Thread Luis M. Gonzalez
Peter Hansen wrote: > Gerhard Haering wrote: > > On Mon, Jul 18, 2005 at 09:06:21AM -0400, Peter Hansen wrote: > >>I'm not familiar with this expression. What do you mean by "black horse"? > > > > Maybe "the Ferrari of pythonic frameworks" (black horse on yellow > > background being the symbol of

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh popen stalling on password redirect output?

2005-07-18 Thread [EMAIL PROTECTED]
Thanks for the help, this gives me a few options. I think the best way to do it is using the public/private key authentication. -- http://mail.python.org/mailman/listinfo/python-list

Re: Image orientation and color information with PIL?

2005-07-18 Thread Jeff Epler
On Mon, Jul 18, 2005 at 10:55:42AM -0600, Ivan Van Laningham wrote: > How are you going to determine the orientation of an image without > sophisticated image analysis? There is research on automatic image > orientation detection. [...] > If you write it I'll use it;-) There's research going on in

Re: Image orientation and color information with PIL?

2005-07-18 Thread Simon Dahlbacka
if you mean that you want to figure out which way the image is depending on the actual data in the image, then you'll most likely get to do the image processing yourself, on the other hand, if you are talking jpegs from a relatively new camera then I suppose that you should be able to get that info

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread windozbloz
Jeff Epler wrote: > I honestly don't know why anyone would spend money for a development > environment, no matter how fancy. I don't knowdefinitelye would develop > software in a language that doesn't have at least one open > implementation. > > It's a great way to get screwed when Borland goes

Re: Image orientation and color information with PIL?

2005-07-18 Thread Jeff Epler
>>> i = Image.open("blue.jpg") >>> i.size (3008, 2000) >>> i.mode 'RGB' 'RGB' is the value for color jpeg images. I believe that for black&white images, i.mode is 'L' (luminosity). If you want to determine whether an existing image is landscape or portrait, then just compare i.size[0] (width) an

main window in tkinter app

2005-07-18 Thread William Gill
A short while ago someone posted that(unlike the examples) you should use Tk as the base for your main window in tkinter apps, not Frame. Thus : class MyMain(Frame): def __init__(self, master): self.root = master self.master=master self

Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Damjan wrote: > >> I'm a fairly literate windoz amateur programmer mostly in visual basic. I >> have switched to SuSE 9.2 Pro and am trying to quickly come up to speed >> with Python 2.3.4. I can run three or four line scripts from the command >> line but have not been able to execute a script f

Re: Image orientation and color information with PIL?

2005-07-18 Thread Ivan Van Laningham
Hi All-- [EMAIL PROTECTED] wrote: > > Does anyone know if it is possible to determine if an image is > horizontal/vertical and color or black & white using the python image > library? I have been searching this news group and the information was > not all clear on this. > How are you going to

Image orientation and color information with PIL?

2005-07-18 Thread tvmaly
Does anyone know if it is possible to determine if an image is horizontal/vertical and color or black & white using the python image library? I have been searching this news group and the information was not all clear on this. Best Regards Ty -- http://mail.python.org

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread Jeff Epler
I honestly don't know why anyone would spend money for a development environment, no matter how fancy. I don't know why anyone would develop software in a language that doesn't have at least one open implementation. It's a great way to get screwed when Borland goes under or decides they only want

Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread windozbloz
Bye Bye Billy Bob... I'm back with one more question, then I'll chill. I have scoured the news and net for info about Borlands KYLIX 3 and have found little technical info about it. Their screen shots are very impressive, similar to Visual Basic. I have sent several emails to Borlands Sales and

Re: Python scripts wont run - HELP

2005-07-18 Thread Damjan
> I'm a fairly literate windoz amateur programmer mostly in visual basic. I > have switched to SuSE 9.2 Pro and am trying to quickly come up to speed > with Python 2.3.4. I can run three or four line scripts from the command > line but have not been able to execute a script from a file. > > I ha

Re: Python scripts wont run - HELP

2005-07-18 Thread John Abel
windozbloz wrote: >Bye Bye Billy Bob... > >Hello All, >I'm a fairly literate windoz amateur programmer mostly in visual basic. I >have switched to SuSE 9.2 Pro and am trying to quickly come up to speed >with Python 2.3.4. I can run three or four line scripts from the command >line but have not be

Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Bye Bye Billy Bob... Hello All, I'm a fairly literate windoz amateur programmer mostly in visual basic. I have switched to SuSE 9.2 Pro and am trying to quickly come up to speed with Python 2.3.4. I can run three or four line scripts from the command line but have not been able to execute a scrip

Re: goto

2005-07-18 Thread Gerhard Haering
On Mon, Jul 18, 2005 at 08:40:16AM -0700, Kay Schluehr wrote: > Hayri ERDENER schrieb: > > hi, > > what is the equivalent of C languages' goto statement in python? > > best regards > > No, but some of goto's use cases can be covered by unconditional jumps > provided by exceptions. [...] I like t

Re: Windows command line problem

2005-07-18 Thread Jeff Epler
I don't exactly know what is going on, but '\x96' is the encoding for u'\N{en dash}' (a character that looks like the ASCII dash, u'\N{hyphen-minus}', u'\x45') in the following windows code pages: cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp874 Windows is clearly doing

Re: Filtering out non-readable characters

2005-07-18 Thread Michael Ströder
Peter Hansen wrote: ''.join(chr(c) for c in range(65, 91)) > 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' Wouldn't this be a candidate for making the Python language stricter? Do you remember old Python versions treating l.append(n1,n2) the same way like l.append((n1,n2)). I'm glad this is forbidden now. C

Re: goto

2005-07-18 Thread Kay Schluehr
Hayri ERDENER schrieb: > hi, > what is the equivalent of C languages' goto statement in python? > best regards No, but some of goto's use cases can be covered by unconditional jumps provided by exceptions. Here is a C function using goto: void main() { int i, j; for ( i = 0; i < 10;

Re: stdin/stdout fileno() always returning -1 from windows service

2005-07-18 Thread Jeff Epler
It seems to simply be common wisdom. e.g., http://mail.python.org/pipermail/python-win32/2004-September/002332.html http://mail.mems-exchange.org/pipermail/quixote-users/2004-March/002743.html http://twistedmatrix.com/pipermail/twisted-python/2001-December/000644.html etc If you can find chapter

  1   2   >