Re: Windows vs. Linux

2006-08-04 Thread Gerhard Fiedler
On 2006-08-03 04:53:11, Sybren Stuvel wrote: >> Pretty much every production cost increase gets in the end paid by >> the consumer. With some localized changes, you may be lucky and >> don't buy any products that are affected, but with such a widespread >> change as this would be, it is more like

Re: Windows vs. Linux

2006-08-04 Thread Duncan Booth
Bryan Olson wrote: > Duncan Booth wrote: >> [EMAIL PROTECTED] wrote: >> >>> >From a WinXP command prompt: >>> >>> C:\> >>> C:\>cd /windows/system32 >>> >>> C:\WINDOWS\system32> >>> >>> >> Not from my Windows XP command prompt it doesn't. Do you have anything >> strange installed on y

PyWeek #3 in September!

2006-08-04 Thread Richard Jones
PyWeek 3 is coming up. I've scheduled it for the first week of September. The exact dates are 00:00UTC Sunday 3rd September to 00:00UTC Sunday 10th September. REGISTRATION IS NOW OPEN Visit the PyWeek website to sign up: http://www.pyweek.org/ THE PYWEEK CHALLENGE: - Invites all Python pr

Re: Thread Question

2006-08-04 Thread Ritesh Raj Sarraf
Gerhard Fiedler wrote: > Rather than downloading and zipping in the same thread, you could run > multiple threads like you're doing that only download files, and one > zip-it-all-up thread. After downloading a file, the download threads place > a message in a queue that indicates the file they hav

Re: Thread Question

2006-08-04 Thread Ritesh Raj Sarraf
Carl Banks wrote: > If you have multiple threads trying to access the same ZIP file at the > same time, whether or not they use the same ZipFile object, you'll have > trouble. You'd have to change download_from_web to protect against > simultaneous use. A simple lock should suffice. Create the

software thuriam

2006-08-04 Thread [EMAIL PROTECTED]
Thuriam Software Services >From solution design and offshore software development to outsourcing application support and improvement, Thuriam's offers a compelling alternative to minimize software development costs, and improve the quality of your software solutions and compress software developme

Re: non-blocking PIPE read on Windows

2006-08-04 Thread Paul Du Bois
placid wrote: > What i need to do is, create a process using subprocess.Popen, where > the subprocess outputs information on one line (but the info > continuesly changes and its always on the same line) and read this > information without blocking, so i can retrieve other data from the > line i rea

platform independent process check

2006-08-04 Thread s99999999s2003
hi is there any Python modules that can list the processes that are running on a machine? I don't wish to shell out using the "ps" command because the "ps" command is not available in Windows.. thanks? -- http://mail.python.org/mailman/listinfo/python-list

Re: non-blocking PIPE read on Windows

2006-08-04 Thread Durumdara
Hi !Sorry, but I want to share my experiences. I hope this help to you.I think that specialized MSWindows based services too complicated. They have to many bug possibilites.So I trying with normal, "in python accessable" pipes. I see that with flush(), and some of the bintotext tricks I can use the

Re: Are there any AOP project in python community?

2006-08-04 Thread Alexandre Fayolle
Le 02-08-2006, steve <[EMAIL PROTECTED]> nous disait: > I mean Aspect-Oriented Programming. > If any please give me some of links. > Thanks a lot. You may want to look at http://www.logilab.org/projects/aspects -- Alexandre Fayolle LOGILAB, Paris (France) Formations

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Phil Thompson
On Friday 04 August 2006 2:24 am, Vincent Delporte wrote: > On Thu, 3 Aug 2006 22:07:04 +0100, Phil Thompson > > <[EMAIL PROTECTED]> wrote: > >PyQt4 has QTableWidget... > > Thx for the two pointers. Are those widgets more than just tables, ie. > can I edit the contents, including displaying a combo

Re: Running queries on large data structure

2006-08-04 Thread H J van Rooyen
"Christoph Haas" <[EMAIL PROTECTED]> wrote" | On Wednesday 02 August 2006 22:24, Christoph Haas wrote: | > I have written an application in Perl some time ago (I was young and | > needed the money) that parses multiple large text files containing | > nested data structures and allows the user to

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote: | Alex Martelli wrote: | > H J van Rooyen <[EMAIL PROTECTED]> wrote: | > | > | >> "Paul Rubin" Writes: | >> | >> | "H J van Rooyen" <[EMAIL PROTECTED]> writes: | >> | > *grin* - Yes of course - if the WDT was enabled - i

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Bruno Desthuilliers" <[EMAIL PROTECTED]>wrote: | H J van Rooyen wrote: | > "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote: | (snip) | > |> If my original post was unclear I am sorry - the point I want answered, if | > |> possible, is how to make the client code effectively updateable on the

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 09:17:41 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > Can I not use the ssl module for encrypting the connections? - Please also | > understand that the system is aimed at smal

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 14:05:19 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > What I mean by this is that the server does stuff that I think belongs on the | > client - | > like getting involved in th

Re: Windows vs. Linux

2006-08-04 Thread Bryan Olson
Duncan Booth wrote: > Bryan Olson wrote: > >> Duncan Booth wrote: >>> [EMAIL PROTECTED] wrote: >>> >From a WinXP command prompt: C:\> C:\>cd /windows/system32 C:\WINDOWS\system32> >>> Not from my Windows XP command prompt it doesn't. Do you have

RE: encoding of a file

2006-08-04 Thread Tim Golden
[Thomas Thomas] | how can I find the encoding to use to open a file.. I have a | file with "£" chararcter.. | is there some utility function in python that I can use | | how can I know which encoding to use [This is going to be a longer answer than you really want. The short answer is "probabl

Which KDE IDE for Python?

2006-08-04 Thread Bart Ogryczak
Hi, Rigth now I'm using two IDEs for Python, KDevelop and Eric. Both have drawbacks. KDevelop is a multilanguage IDE, and doesn't really have anything special for Python. There's no Python debugger, no PyDOC integration, it's class browser doesn't display attributes. On the other side there's Eric,

Re: Windows vs. Linux

2006-08-04 Thread Duncan Booth
Bryan Olson wrote: > Not quite. The first slash is ambiguous and apparently ignored, > but latter slashes are taken as a path separators. I'm not sure ambiguity enters into it. I think perhaps the bad detection of the option happens because the CD command can ignore spaces in its argument. Sinc

Re: Windows vs. Linux

2006-08-04 Thread Bryan Olson
Duncan Booth wrote: > Bryan Olson wrote: > >> Not quite. The first slash is ambiguous and apparently ignored, >> but latter slashes are taken as a path separators. > > I'm not sure ambiguity enters into it. I think perhaps the bad detection of > the option happens because the CD command can igno

Re: Which KDE IDE for Python?

2006-08-04 Thread Diez B. Roggisch
Bart Ogryczak schrieb: > Hi, > Rigth now I'm using two IDEs for Python, KDevelop and Eric. Both have > drawbacks. KDevelop is a multilanguage IDE, and doesn't really have > anything special for Python. There's no Python debugger, no PyDOC > integration, it's class browser doesn't display attributes

Re: karrigell and multi-threading

2006-08-04 Thread jdec
You have a specific discussion group for all Karrigell topics: http://groups.google.com/group/karrigell?lnk=li It's active and followed by the author of Karrigell. Shalyd wrote: > Hello, > Here is my problem :-) : > i am actually using karrigell, and i use Karrigell.py server, i have a > page run

Re: Windows vs. Linux

2006-08-04 Thread andrew clarke
On Tue, Aug 01, 2006 at 05:31:01PM +0200, Sybren Stuvel wrote: > James Stroud enlightened us with: > > its better to use: > > > >os.path.join('my', 'favorite', 'dir') > > > > than > > > >"\\".join(['my', 'favorite', 'dir']) > > > > because the latter will bonk on linux. > > Ehm... replace

Re: regex question

2006-08-04 Thread taleinat
Gabriel Murray gmail.com> writes: > > Hello, I'm looking for a regular expression which will match strings as follows: if there are symbols a, b, c and d, then any pattern is valid if it begins with a and ends with d and proceeds in order through the symbols. However, at any point the pattern ma

Re: Windows vs. Linux

2006-08-04 Thread Duncan Booth
Bryan Olson wrote: > Duncan Booth wrote: >> I'm not sure ambiguity enters into it. I think perhaps the bad >> detection of the option happens because the CD command can ignore >> spaces in its argument. Since it is ignoring spaces they don't >> actually require a space after the option strings. >

Re: help - iter & dict

2006-08-04 Thread taleinat
mappi.helsinki.fi> writes: > CDSitdict = {28.473823598317392: "'2.48699832'", 40.06163037274758: > "'0.2912'", 27.756248559438422: "'2.83499964'", > 33.2299196586726: "'1.12499962'", 29.989685187220061: > "'1.91399677'", 31.502319473614037: "'1.490

Re: help - iter & dict

2006-08-04 Thread Alistair King
Simon Forman wrote: > [EMAIL PROTECTED] wrote: > >> Dear Python people, >> >> im a newbie to python and here...so hello! >> > > Hi Ali, and welcome. > > >> Im trying to iterate through values in a dictionary so i can find the >> closest value and then extract the key for that valuewh

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote: | On 2006-08-03 06:07:31, H J van Rooyen wrote: | | > Thanks - will check it out - seems a lot of money for 555 functionality | > though | > | > Especially if like I, you have to pay for it with Rand - I have started | > to call the local currency

Re: Nested function scope problem

2006-08-04 Thread Slawomir Nowaczyk
On Thu, 03 Aug 2006 17:27:26 -0300 Gerhard Fiedler <[EMAIL PROTECTED]> wrote: #> But seriously, for my comment this seems off-topic. Well, you wrote "but it's not really understandable with a C++ concept of variable". It is perfectly understandable to me. That's all I said (or, at least, all I wa

Re: help - iter & dict

2006-08-04 Thread Alistair King
taleinat wrote: > mappi.helsinki.fi> writes: > > >> CDSitdict = {28.473823598317392: "'2.48699832'", 40.06163037274758: >> "'0.2912'", 27.756248559438422: "'2.83499964'", >> 33.2299196586726: "'1.12499962'", 29.989685187220061: >> "'1.91399677'", 31.

Re: threads, file access and stuff

2006-08-04 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > Hi, > i'm trying to make a download manager (getright, flashget, etc..) for > linux (pygtk), i'm using pyCurl, so the thing is.. > the app need to be able to use mirrors, like : i download the first 400 > kb from X, and the second 200 kb from Y and the rest from Z. > i've

Re: Which KDE IDE for Python?

2006-08-04 Thread Bart Ogryczak
Diez B. Roggisch wrote: > Bart Ogryczak schrieb: > > Hi, > > Rigth now I'm using two IDEs for Python, KDevelop and Eric. Both have > > drawbacks. KDevelop is a multilanguage IDE, and doesn't really have > > anything special for Python. There's no Python debugger, no PyDOC > > integration, it's cla

Re: Is there an obvious way to do this in python?

2006-08-04 Thread Bruno Desthuilliers
H J van Rooyen wrote: > "Bruno Desthuilliers" <[EMAIL PROTECTED]>wrote: > | H J van Rooyen wrote: (snip) > | > so if Pyro is for 'moving the scripts around' - Then that is what I must > look at > | > very hard... > | > | It's not for "moving the scripts around", it's for remote objects - kind > |

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Dave Cook
On 2006-08-04, Vincent Delporte <[EMAIL PROTECTED]> wrote: > Thx for the two pointers. Are those widgets more than just tables, ie. > can I edit the contents, including displaying a combo box, can items > be grouped or hierarchized, or are they just basic, read-only tables > to display results? Y

Web Crawling/Threading and Things That Go Bump in the Night

2006-08-04 Thread Remarkable
Hello all I am trying to write a reliable web-crawler. I tried to write my own using recursion and found I quickly hit the "too many sockets" open problem. So I looked for a threaded version that I could easily extend. The simplest/most reliable I found was called Spider.py (see attached). At

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
From: "Bryan Olson" <[EMAIL PROTECTED]> | H J van Rooyen wrote: | [...] | > This is broadly what I had in mind, yes - but sort of down to | a transaction | > level - this user does invoicing, this one enters cheques, | this one does credit | > notes, and their supervisor can do all three, and

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote: | Hendrik, | | ---snip--- | Now part of the reason I would like to go the transaction type route | instead of the "per user" route is robustness and maintainability, and | the ability it would give me to introduce new transaction types easily | - as

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 16:50:15 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | > Now part of the reason I would like to go the transaction type route instead of | > the "per user" route is robustness and

Re: Enhanced Listbox

2006-08-04 Thread H J van Rooyen
"drodrig" <[EMAIL PROTECTED]> | My apologies if this question has been asked an answered. | | I am looking for a tkinter grid control or enhanced listbox that can | act as a "receipt" for a cash register program. I would like the widget | to contain a visible grid of columns and rows. I've trie

Re: Is there an obvious way to do this in python?

2006-08-04 Thread H J van Rooyen
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote: | On Thu, 3 Aug 2006 16:50:15 +0200, "H J van Rooyen" | <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: | | > | > This is broadly what I had in mind, yes - but sort of down to a transaction | > level - this user does invoicing, th

Re: Thread Question

2006-08-04 Thread Carl Banks
Ritesh Raj Sarraf wrote: > Carl Banks wrote: > > Then change the zipping part of download_from_web to acquire and > > release this lock; do zipfile operations only between them. > > > > ziplock.acquire() > > try: > > do_all_zipfile_stuff_here() > > finally: > > ziplock.release() > > I hope

Re: Which KDE IDE for Python?

2006-08-04 Thread Phil Thompson
On Friday 04 August 2006 11:52 am, Bart Ogryczak wrote: > Diez B. Roggisch wrote: > > Bart Ogryczak schrieb: > > > Hi, > > > Rigth now I'm using two IDEs for Python, KDevelop and Eric. Both have > > > drawbacks. KDevelop is a multilanguage IDE, and doesn't really have > > > anything special for Pyt

Re: Problem reading/writing files

2006-08-04 Thread smeenehan
> What platform? What version of Python? Have you opened the > file in binary mode i.e. open('thefile', 'rb') ?? Show us the relevant > parts of your code, plus what caused you to conclude that read() > changed data on the fly in an undocumented fashion. Yes, I've been reading and writing everyt

Re: Thread Question

2006-08-04 Thread Ritesh Raj Sarraf
Carl Banks wrote: > > Exactly. Only one thread can hold a lock at a time. If a thread tries > to acquire a lock that some other thread has, it'll wait until the > other thread releases it. You need locks to do this stuff because most > things (such as zipfile objects) don't wait for other threa

Re: Running queries on large data structure

2006-08-04 Thread Christoph Haas
On Friday 04 August 2006 01:39, John Machin wrote: > Christoph Haas wrote: > > I assume that XQuery can't to weird queries like IP ranges, or can it? > > That's twice now you've indicated that IP ranges are causing you some > problems. What's the big deal? > > (a) If you don't have a specialised da

Re: Windows vs. Linux

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 05:30:00, Sybren Stuvel wrote: >> Besides, you probably don't know whether it's not one of your direct >> suppliers who's affected. You're sure you don't buy from anybody >> running a Windows system? I'd bet against that, and I only bet when >> I know I win :) > > Good point. I don'

Re: Which KDE IDE for Python?

2006-08-04 Thread Diez B. Roggisch
> Actually I doubt it. For example on question why doesn't Eric use > katepart as editor, he responded: > "Because it is actually written using PyQt and is meant to work on > Win... and Mac OS X as well. Therefore it must not depend on KDE (or > any other non-portable or non-ported toolkit)." That

Re: How to force a thread to stop

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 02:33:07, H J van Rooyen wrote: > The next step above the 555 is a PIC... then you can steal power from the > RS-232 line - and its a small step from "PIC" to "PIG"... I see... you obviously know what to do, if you want to :) But I'm not sure such a device alone is of much help in

Re: regex question

2006-08-04 Thread John Machin
taleinat wrote: > Gabriel Murray gmail.com> writes: > > > > > Hello, I'm looking for a regular expression which will match strings as > follows: if there are symbols a, b, c and d, then any pattern is valid if it > begins with a and ends with d and proceeds in order through the symbols. > However

Re: Nested function scope problem

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 07:36:25, Slawomir Nowaczyk wrote: > #> The address operator is probably for a C programmer the closest to > #> what the id() function is to a Python programmer. > > I disagree. At least in my understanding, which, up to now, was > perfectly enough to explain everything about how Py

Re: Running queries on large data structure

2006-08-04 Thread Amit Khemka
On 8/3/06, Christoph Haas <[EMAIL PROTECTED]> wrote: > On Wednesday 02 August 2006 22:24, Christoph Haas wrote: > > I have written an application in Perl some time ago (I was young and > > needed the money) that parses multiple large text files containing > > nested data structures and allows the u

Pydev with Eclipse on OSX Q

2006-08-04 Thread Michiel Sikma
Hey guys. I'm trying to run Pydev on Eclipse on OSX, but I've got a problem that prevents me from making new projects in it. It seems that I cannot add my Python interpreter to the list of interpreters (it seems to do _something_ when I select it, but then ends up not adding it to the list)

Re: Problem reading/writing files

2006-08-04 Thread smeenehan
Ok, now I'm very confused, even though I just solved my problem. I copied the entire contents of the original file (evil2.gfx) from my hex editor and pasted it into a text file. When I read from *this* file using my original code, everything worked fine. When I read the 21st byte, it came up as the

Re: What is the best way to print the usage string ?

2006-08-04 Thread Sion Arrowsmith
There's been a good lot of response to the problem originally stated, but no-one's pointed out that: >print reduce(lambda x, y: x + ':' + y, sys.argv[1:]) is a confusing (and slow) way of writing: print ':'.join(sys.argv[1:]) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___

Re: SWIG Python Extension winth C++ Problematic

2006-08-04 Thread skip
>> I have been working getting my C++ code to be used in Python ( >> Basically Extending ) This is the problem i am facing rite now. >> >> I have a function that returns a Pointer to a class in my C++ Code >> >> It looks like this ... >> I have used SWIG to get th

Re: regex question

2006-08-04 Thread Slawomir Nowaczyk
On Thu, 03 Aug 2006 22:10:55 +0100 Gabriel Murray <[EMAIL PROTECTED]> wrote: #> Hello, I'm looking for a regular expression Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Z

Re: Need a compelling argument to use Django instead of Rails

2006-08-04 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > Paul Rubin wrote: > > A typical shared hosting place might > > support 1000's of users with ONE apache/php instance (running in a > > whole bunch of threads or processes, to be sure). > > You just need to run multiple apache > instances, which is advisable anyway. > The h

Re: Problem reading/writing files

2006-08-04 Thread Roel Schroeven
[EMAIL PROTECTED] schreef: > f = open('evil2.gfx','rb') > i1 = open('img1.jpg','wb') > i2 = open('img2.png','wb') > i3 = open('img3.gif','wb') > i4 = open('img4.png','wb') > i5 = open('img5.jpg','wb') > > > for i in range(0,67575,5): > i1.write(f.read(1)) > i2.write(f.read(1)) > i3.wr

Re: Using Python for my web site

2006-08-04 Thread Ben Sizer
Cliff Wells wrote: > On Mon, 2006-07-31 at 22:25 -0700, Luis M. González wrote: > > IMHO the best way of using mod_python is with its publisher handler. > > It let's you code your applications in a MVC (model view controller) > > style. > > While I agree (or at least consider the point moot) that t

Re: Running queries on large data structure

2006-08-04 Thread Christoph Haas
On Friday 04 August 2006 15:23, Amit Khemka wrote: > Though some sugggested maintaining data in some XML structures, I was > wondering that > if you considered using some native XML database like BDB XML. > > 1. It allows you to retain hierarchical structure of data. > 2. It also has support for pr

wxPython font color

2006-08-04 Thread Kiran
hey everybody, i cant seem to find a way to create a font with a non-default color using the wx.Font constructor. anybody know how to change hte color? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: programming is hard

2006-08-04 Thread John Salerno
placid wrote: > [EMAIL PROTECTED] wrote: >> placid wrote: >>> Alas, all good arguments. >>> >>> I rest my case. >> After you've just been proven wrong? >> >> I wouldn't want you for my lawyer. > > Aha, lucky i wont be a lawyer. > lawyering is hard too ;) -- http://mail.python.org/mailman/listin

Re: Nested function scope problem

2006-08-04 Thread Slawomir Nowaczyk
On Fri, 04 Aug 2006 10:10:45 -0300 Gerhard Fiedler <[EMAIL PROTECTED]> wrote: #> On 2006-08-04 07:36:25, Slawomir Nowaczyk wrote: #> #> > #> The address operator is probably for a C programmer the closest to #> > #> what the id() function is to a Python programmer. #> > #> > I disagree. At least

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Philippe Martin
jean-michel bain-cornu wrote: > Hi, >> Thx for the two pointers. Are those widgets more than just tables, ie. >> can I edit the contents, including displaying a combo box, can items >> be grouped or hierarchized, or are they just basic, read-only tables >> to display results? >> >> I need this ki

Re: Need a compelling argument to use Django instead of Rails

2006-08-04 Thread aaronwmail-usenet
Ben Sizer wrote: > [EMAIL PROTECTED] wrote: > > Paul Rubin wrote: > > > A typical shared hosting place might > > > support 1000's of users with ONE apache/php instance (running in a > > > whole bunch of threads or processes, to be sure). > > > > You just need to run multiple apache > > instances, w

Re: Problem reading/writing files

2006-08-04 Thread smeenehan
Well, now I tried running the script and it worked fine with the .gfx file. Originally I was working using the IDLE, which I wouldn't have thought would make a difference, but when I ran the script on its own it worked fine and when I ran it in the IDLE it didn't work unless the data was in a text

Re: Problem reading/writing files

2006-08-04 Thread Roel Schroeven
[EMAIL PROTECTED] schreef: > Well, now I tried running the script and it worked fine with the .gfx > file. Originally I was working using the IDLE, which I wouldn't have > thought would make a difference, but when I ran the script on its own > it worked fine and when I ran it in the IDLE it didn't

Re: Nested function scope problem

2006-08-04 Thread Antoon Pardon
On 2006-08-04, Slawomir Nowaczyk <[EMAIL PROTECTED]> wrote: > On Fri, 04 Aug 2006 10:10:45 -0300 > Gerhard Fiedler <[EMAIL PROTECTED]> wrote: > > #> You can hardly claim that what gets printed is the "id" of the variable c. > #> (Well, you can claim, but few C programmers would follow you.) > > Tha

Re: wxPython font color

2006-08-04 Thread Avizoa
Fonts don't have colors. You need to either change the text color in whatever widget the test is going or change the wx.Brush in your Paint method. Kiran wrote: > hey everybody, > i cant seem to find a way to create a font with a non-default color > using the wx.Font constructor. anybody know

new Python release date (Sept. 12)

2006-08-04 Thread John Salerno
just in case you don't check the PEP obsessively like i do (i'm really excited for 2.5!), the new release dates are: rc 1:August 18, 2006 [planned] final: September 12, 2006 [planned] although in the Abstract it still shows August 19...where can that be reported? -- http://mail.python.or

Re: [Linux] What toolkit for a good grid/spreadsheet widget?

2006-08-04 Thread Vincent Delporte
On Fri, 04 Aug 2006 10:58:42 GMT, Dave Cook <[EMAIL PROTECTED]> wrote: >But both pyqt and wxpython also offer that. Try running the demos for each. Thx everyone! -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.5 (beta 3)

2006-08-04 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANNOUNCE] Thirty-fourth release of PythonCAD now available

2006-08-04 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWeek #3 in September!

2006-08-04 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: python-dev Summary for 2006-06-16 through 2006-06-30

2006-08-04 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: How to force a thread to stop

2006-08-04 Thread H J van Rooyen
"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote: | On 2006-08-04 02:33:07, H J van Rooyen wrote: | | > The next step above the 555 is a PIC... then you can steal power from the | > RS-232 line - and its a small step from "PIC" to "PIG"... | | I see... you obviously know what to do, if you want to :)

Re: Windows vs. Linux

2006-08-04 Thread andrew clarke
On Fri, Aug 04, 2006 at 02:01:58PM +0200, Sybren Stuvel wrote: > > OS/2 (and eComStation) also uses the backslash as the path > > separator. > > You mean OS/2 is still in actual use? 'fraid so. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python open a named pipe == hanging?

2006-08-04 Thread Rochester
Thank you for your advise. So, it turns out that fifos are quite useless in Python programming then, which is quite disappointing to me :-( I am not saying that I _have to_ use fifo, afterall it is a rather odd thingy not in fasion since the last iceage... I am just disappointed by the fact

web searching scripts

2006-08-04 Thread julien . lord
Does anyone know of a freely available script that can take a given URL and follow every link within it? Ideally, I would like to start with this to build a quick application to grab all the content off a website to publish it to a CD. Thanks, jul -- http://mail.python.org/mailman/listinfo/pyt

Re: Python open a named pipe == hanging?

2006-08-04 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Rochester <[EMAIL PROTECTED]> wrote: > I just found out that the general open file mechanism doesn't work > for named pipes (fifo). Say I wrote something like this and it > simply hangs python: > > #!/usr/bin/python > > import os > > os.mkfifo('m

Re: What is the best way to print the usage string ?

2006-08-04 Thread Steven Bethard
Ben Finney wrote: > "Leonel Gayard" <[EMAIL PROTECTED]> writes: > >> import sys >> args = sys.argv[1:] >> if args == []: >> print """Concat: concatenates the arguments with a colon (:) between >> them >> Usage: concat arg1 [arg2...] >> Example: concat a b c prints \"a.jar:b.jar:c/\ >>

Re: web searching scripts

2006-08-04 Thread Avell Diroll
[EMAIL PROTECTED] wrote: > Does anyone know of a freely available script that can take a given URL > and follow every link within it? > > Ideally, I would like to start with this to build a quick application > to grab all the content off a website to publish it to a CD. > > Thanks, > > jul >

Re: Windows vs. Linux

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 09:58:34, Sybren Stuvel wrote: >> They all (well, most of them) use computers in their administration; >> /that's/ the cost I was talking about, not the cost for the software >> industry :) > > Good point. Time more people started using Open Source :) Definitely. But don't hold you

Re: Nested function scope problem

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 12:12:44, Antoon Pardon wrote: >> That's possible. I wouldn't expect too many C programmers to have any >> notion of "id of a variable". I, for example, never thought about such >> thing before this thread. > > But even in Python we don't speak of "id of a variable". It is not the >

Re: web searching scripts

2006-08-04 Thread Jorgen Grahn
On Fri, 04 Aug 2006 18:11:18 +0200, Avell Diroll <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> Does anyone know of a freely available script that can take a given URL >> and follow every link within it? >> >> Ideally, I would like to start with this to build a quick application >> to gr

Need help building boost python on mac os x.

2006-08-04 Thread KraftDiner
Could someone point me to step by step instructions on building boost python on mac os x? I have bjam running.. I have the boost source... but the tests are failing.. Probably something to do with environement variables... Anyone with time? -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows vs. Linux

2006-08-04 Thread Jorgen Grahn
On Tue, 1 Aug 2006 14:47:59 -0300, Gerhard Fiedler <[EMAIL PROTECTED]> wrote: > On 2006-08-01 12:31:01, Sybren Stuvel wrote: ... > Is that really true? From what I know, it's more like this: > > - Unix-type systems: '/' > - Windows-type systems: '\' > - Mac OS: ':' > - OpenVMS: '.' > - ... > > Mayb

Re: Nested function scope problem

2006-08-04 Thread Gerhard Fiedler
On 2006-08-04 11:41:03, Slawomir Nowaczyk wrote: > #> > I disagree. At least in my understanding, which, up to now, was > #> > perfectly enough to explain everything about how Python variables > #> > behave: > #> > > #> > The address operator in C is what textual representation (i.e. what > #> >

Re: Nested function scope problem

2006-08-04 Thread Antoon Pardon
On 2006-08-04, Gerhard Fiedler <[EMAIL PROTECTED]> wrote: > On 2006-08-04 12:12:44, Antoon Pardon wrote: > >>> That's possible. I wouldn't expect too many C programmers to have any >>> notion of "id of a variable". I, for example, never thought about such >>> thing before this thread. >> >> But ev

Re: Need a compelling argument to use Django instead of Rails

2006-08-04 Thread Bruno Desthuilliers
Paul Rubin wrote: > "Ben Sizer" <[EMAIL PROTECTED]> writes: >> Another perfectly good reason is that PHP pages are much simpler to >> deploy than any given Python application server. Just add the code into >> your HTML pages as required and you're done. Python could come close to >> this if somethi

Re: Python open a named pipe == hanging?

2006-08-04 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Rochester <[EMAIL PROTECTED]> wrote: > Thank you for your advise. So, it turns out that fifos are quite useless > in Python programming then, which is quite disappointing to me :-( > > I am not saying that I _have to_ use fifo, afterall it is a rather odd > t

Why do I require an "elif" statement here?

2006-08-04 Thread Jim
Could somebody tell me why I need the "elif char == '\n'" in the following code? This is required in order the pick up lines with just spaces in them. Why doesn't the "else:" statement pick this up? OLD_INDENT = 5 # spaces NEW_INDENT = 4 # spaces print 'Reindent.py:' print '\nFrom file %s' % in

Re: Pydev with Eclipse on OSX Q

2006-08-04 Thread Fabio Zadrozny
On 8/4/06, Michiel Sikma <[EMAIL PROTECTED]> wrote: Hey guys. I'm trying to run Pydev on Eclipse on OSX, but I've got aproblem that prevents me from making new projects in it. It seemsthat I cannot add my Python interpreter to the list of interpreters(it seems to do _something_ when I select it, bu

Re: Python open a named pipe == hanging?

2006-08-04 Thread Antoon Pardon
On 2006-08-04, Rochester <[EMAIL PROTECTED]> wrote: > Thank you for your advise. So, it turns out that fifos are quite useless > in Python programming then, which is quite disappointing to me :-( > > I am not saying that I _have to_ use fifo, afterall it is a rather odd > thingy not in fasion

An interesting way to implement an abstract base class

2006-08-04 Thread olsongt
This one made me smile. From: http://aima.cs.berkeley.edu/python/utils.html#Queue class Queue: """Queue is an abstract class/interface. There are three types: Stack(): A Last In First Out Queue. FIFOQueue(): A First In First Out Queue. PriorityQueue(lt): Queue where i

Re: Why do I require an "elif" statement here?

2006-08-04 Thread Tim Chase
> Could somebody tell me why I need the "elif char == '\n'" in > the following code? > > This is required in order the pick up lines with just spaces > in them. > Why doesn't the "else:" statement pick this up? Following through with the below code: if the line consists of only a newline, it get

Re: Why do I require an "elif" statement here?

2006-08-04 Thread [EMAIL PROTECTED]
Jim, what you wrote should work correctly. I'm curious as to why you are doing it this way though. An easier way would be to take out all this character processing and use the builtin string processing. See this code: --- whitespace = " " old_indent = 3 new_indent = 5

Re: Web Crawling/Threading and Things That Go Bump in the Night

2006-08-04 Thread [EMAIL PROTECTED]
Rem, what OS are you trying this on? Windows XP SP2 has a limit of around 40 tcp connections per second... Remarkable wrote: > Hello all > > I am trying to write a reliable web-crawler. I tried to write my own > using recursion and found I quickly hit the "too many sockets" open > problem. So I lo

using an already running COM object with Dispatch

2006-08-04 Thread jiccab
Greetings. with the following code, olApp = Dispatch("Outlook.Application") I am capable of getting a new instance of Outlook running. I would like to be able to use the instance that is already running, if exists, otherwise open a new one. Has anyone being able to do this? -- http://mail.py

  1   2   >