[ANN] PyScript 0.5 released

2005-01-10 Thread Paul Cochrane
PyScript is a python module for producing high quality postscript graphics. Rather than use a GUI to draw a picture, the picture is programmed using python and the PyScript objects. Some of the key features are: * All scripting is done in python, which is a high level, easy to learn,

Python unicode

2005-01-10 Thread Michel Claveau - abstraction mta-galactique non triviale en fuite perptuelle.
Hi !If Python is Ok with Unicode, why the next script not run ? # -*- coding: utf-8 -*- def (toto): return(toto*3) aret = (4) @-salutations-- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: C structure in the Python extension

2005-01-10 Thread Craig Ringer
Dave win wrote: Howdy: When I was writting interface functions of the extending python, I meet a question. As I using the PyArg_ParseTuple(args,arg_type,...) function call, if I wanna use the personal defined argument, such as the C structure which I made. How to make it? static

Re: Writing huve ge Sets() to disk

2005-01-10 Thread Tim Peters
[Tim Peters] As I mentioned before, if you store keys in sorted text files, you can do intersection and difference very efficiently just by using the Unix `comm` utiltity. [Martin MOKREJ] Now I got your point. I understand the comm(1) is written in C, but it still has to scan file1 once and

Re: static compiled python modules

2005-01-10 Thread Thomas Linden
Nick Coghlan wrote: http://www.python.org/dev/doc/devel/api/importing.html Take a look at the last three entries about registering builtin modules. Thanks a lot, it works! regards, Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: Old Paranoia Game in Python

2005-01-10 Thread McBooCzech
Newbie in Python. I did copy the whole script form the web and save it as para1.py. I did download pyparsing module and save it to C:\\Python23\\Lib\\pyparsing122. I did run following script: import sys sys.path.append('C:\\Python23\\Lib\\pyparsing122') from pyparsing import * extraLineBreak =

Re: complex numbers

2005-01-10 Thread It's me
For those of us that works with complex numbers, having complex number as a natively supported data type is a big advantage. Non-native add-ons are not sufficient and lead to very awkward program code. Jürgen Exner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED]

Re: Writing huge Sets() to disk

2005-01-10 Thread Scott David Daniels
Martin MOKREJ wrote: But I don't think I can use one-way hashes, as I need to reconstruct the string later. I have to study hard to get an idea what the proposed code really does. Scott David Daniels wrote: Tim Peters wrote: Call the set of all English words E; G, C, and P similarly.

Re: time module precision

2005-01-10 Thread Peter Hansen
[EMAIL PROTECTED] wrote: Peter Hansen wrote: _Why_ do you want to wait such brief amounts of time? What I am trying to do is sending binary data to a serial port. Since the device attached to the port cannot handle a continous in-flow of data, I need to make an artificial tiny delay in-between

Re: Python Operating System???

2005-01-10 Thread Paul Rubin
Roose [EMAIL PROTECTED] writes: Well, then of course you know I have to say: An OS does not run inside a browser. There's a sentence I never thought I'd utter in my lifetime. So that is an irrelevant example, since it obviously isn't a task scheduler in the context of this thread. Huh?

Re: Writing huge Sets() to disk

2005-01-10 Thread John Lenton
On Tue, Jan 11, 2005 at 12:33:42AM +0200, Simo Melenius wrote: John Lenton [EMAIL PROTECTED] writes: you probably want to look into building set-like objects ontop of tries, given the homogeneity of your language. You should see imrpovements both in size and speed. Ternary search trees

Re: Writing huge Sets() to disk

2005-01-10 Thread Paul Rubin
Martin MOKREJ¦ [EMAIL PROTECTED] writes: I have sets.Set() objects having up to 20E20 items, just imagine, you want to compare how many words are in English, German, Czech, Polish disctionary. You collect words from every language and record them in dict or Set, as you wish. Once you

Re: exceptions and items in a list

2005-01-10 Thread Peter Hansen
rbt wrote: Andrey Tatarinov wrote: # skip bad object and continue with others for object in objects: try: #do something to object except Exception: pass Thanks Andrey. That's a great example of how to do it. Actually, it's not really a great example, since it catches _all_

Re: Port blocking

2005-01-10 Thread Steve Holden
Mark Carter wrote: Paul Rubin wrote: Mark Carter [EMAIL PROTECTED] writes: Supposing I decide to write a server-side application using something like corba or pyro. Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly

Re: Port blocking

2005-01-10 Thread Paul Rubin
Mark Carter [EMAIL PROTECTED] writes: Also, is there a good tool for writing database UIs? Yes, quite a few. Ah yes, but is there really? For example, I did a search of the TOC of GTK+ Reference Manual: Try looking on freshmeat or sourceforge instead. --

Re: Writing huge Sets() to disk

2005-01-10 Thread Paul Rubin
=?windows-1252?Q?Martin_MOKREJ=8A?= [EMAIL PROTECTED] writes: Yes, I'm. I still don't get what that acronym CLRS stands for ... :( CLRS = the names of the authors, Cormen, Leiserson, Rivest, and Stein, if I spelled those correctly. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Port blocking

2005-01-10 Thread Ed Leafe
On Jan 10, 2005, at 8:00 PM, Steve Holden wrote: Ah yes, but is there really? For example, I did a search of the TOC of GTK+ Reference Manual: http://developer.gnome.org/doc/API/2.0/gtk/index.html for the word data, and there's apparently no widget which is explicitly tied to databases. So in

Re: Chicago Python Users Group: Thu 13 Jan Meeting

2005-01-10 Thread Steve Holden
Ian Bicking wrote: The Chicago Python User Group, ChiPy, will have its next meeting on Thursday, 13 January 2005, starting at 7pm. For more information on ChiPy see http://chipy.org [...] About ChiPy --- We meet once a month, on the second Thursday of the month. If you can't come this

Re: Writing huve ge Sets() to disk

2005-01-10 Thread Martin MOKREJ
Tim Peters wrote: [Tim Peters] As I mentioned before, if you store keys in sorted text files, you can do intersection and difference very efficiently just by using the Unix `comm` utiltity. [Martin MOKREJ] Now I got your point. I understand the comm(1) is written in C, but it still has to scan

Re: Port blocking

2005-01-10 Thread Aldo Cortesi
Thus spake Steve Holden ([EMAIL PROTECTED]): I teach the odd security class, and what you say is far from true. As long as the service is located behind a firewall which opens up the correct holes for it, it's most unlikely that corporate firewalls would disallow client connections to such a

Re: why not datetime.strptime() ?

2005-01-10 Thread Joshua Spoerri
Skip Montanaro skip at pobox.com writes: josh Shouldn't datetime have strptime? If someone wants to get their feet wet with extension module programming this might be a good place to start. Mostly, I think nobody who has needed/wanted it so far has the round tuits available to spend on the

Re: Securing a future for anonymous functions in Python

2005-01-10 Thread Tim Peters
... [Anna] BTW - I am *quite* happy with the proposal for where: syntax - I think it handles the problems I have with lambda quite handily. [Steve Holden] Whereas I find it to be an excrescence, proving (I suppose) that one man's meat is another person's poison, or something. I've been

Re: Writing huge Sets() to disk

2005-01-10 Thread Tim Peters
[Istvan Albert] #- I think that you need to first understand how dictionaries work. #- The time needed to insert a key is independent of #- the number of values in the dictionary. [Batista, Facundo] Are you sure? I think that is true while the hashes don't collide. If you have

fetching method names from a class, and the parameter list from a method

2005-01-10 Thread Philippe C. Martin
Is this possible ? I am trying to have auto-completion working in a shell I wrote but I currently have the method lists done by hand (ie; if I add/subtract a method from that class, then my auto-completion is out of date). Same issue with method parameters. I have parsed through many of the

OT: MoinMoin and Mediawiki?

2005-01-10 Thread Paul Rubin
I need to set up a wiki for a small group. I've played with MoinMoin a little bit and it's reasonably straightforward to set up, but limited in capabilities and uses BogusMarkupConventions. I want to use it anyway because I need something running right away and I don't want to spend a whole lot

Re: Old Paranoia Game in Python

2005-01-10 Thread SPK
You can download the code from the web directly now at: http://homepage.mac.com/spkane/python/ Thanks for all the code suggestions. This is what I was hoping for, but was honestly suprised to actually get it all, although I did get at least one emotional blast, so I don't feel like Usenet has

Re: Writing huve ge Sets() to disk

2005-01-10 Thread Mike C. Fletcher
Martin MOKREJ wrote: Tim Peters wrote: ... I was really hoping I'll get an answer how to alter the indexes for dictionaries in python. Sorry, I don't have a guess for what that might mean. I'm not an expert, mysql for example givs you ability to index say first 10 characters of a text column,

unicode mystery

2005-01-10 Thread Sean McIlroy
I recently found out that unicode(\347, iso-8859-1) is the lowercase c-with-cedilla, so I set out to round up the unicode numbers of the extra characters you need for French, and I found them all just fine EXCEPT for the o-e ligature (oeuvre, etc). I examined the unicode characters from 0 to 900

Re: why not datetime.strptime() ?

2005-01-10 Thread David M. Cooke
Joshua Spoerri [EMAIL PROTECTED] writes: Skip Montanaro skip at pobox.com writes: josh Shouldn't datetime have strptime? If someone wants to get their feet wet with extension module programming this might be a good place to start. Mostly, I think nobody who has needed/wanted it so far has

Re: Python3: on removing map, reduce, filter

2005-01-10 Thread David M. Cooke
Steven Bethard [EMAIL PROTECTED] writes: Some timings to verify this: $ python -m timeit -s def square(x): return x*x map(square, range(1000)) 1000 loops, best of 3: 693 usec per loop $ python -m timeit -s [x*x for x in range(1000)] 1000 loops, best of 3: 0.0505 usec per loop Maybe you

shutil.move has a mind of its own

2005-01-10 Thread Daniel Bickett
Hello, I'm writing an application in my pastime that moves files around to achieve various ends -- the specifics aren't particularly important. The shutil module was chosen as the means simply because that is what google and chm searches returned most often. My problem has to do with shutil.move

Re: fetching method names from a class, and the parameter list from a method

2005-01-10 Thread John Lenton
On Mon, Jan 10, 2005 at 08:29:40PM +0100, Philippe C. Martin wrote: Is this possible ? I am trying to have auto-completion working in a shell I wrote but I currently have the method lists done by hand (ie; if I add/subtract a method from that class, then my auto-completion is out of date).

Re: OT: MoinMoin and Mediawiki?

2005-01-10 Thread Eric Pederson
Paul Rubin wrote: What I'm getting at is I might like to install MoinMoin now and migrate to Mediawiki sometime later. Anyone have any thoughts about whether that's a crazy plan? Disclaimer, I am neither using Moinmoin nor Mediawiki, and don't really have your answer. From what I read,

Re: OT: MoinMoin and Mediawiki?

2005-01-10 Thread Paul Rubin
Brion Vibber [EMAIL PROTECTED] writes: MediaWiki should run with PHP configured in CGI handler mode, but these days mod_php has got its claws just about everywhere anyway. If you control your own server and don't have multi-user security worries, mod_php is simple enough to install and will

RE: shutil.move has a mind of its own

2005-01-10 Thread Delaney, Timothy C (Timothy)
Daniel Bickett wrote: shutil.move( C:\omg.txt , C:\folder\subdir ) ^ ^^ ^ The problem is that backslash is the escape character. In particular, '\f' is a form feed. '\o' '\\o' '\f' '\x0c' '\s' '\\s' Notice how for '\o' and '\s' it doubles-up the

Re: unicode mystery

2005-01-10 Thread John Lenton
On Mon, Jan 10, 2005 at 07:48:44PM -0800, Sean McIlroy wrote: I recently found out that unicode(\347, iso-8859-1) is the lowercase c-with-cedilla, so I set out to round up the unicode numbers of the extra characters you need for French, and I found them all just fine EXCEPT for the o-e

PyChecker messages

2005-01-10 Thread Frans Englich
Hello, I take PyChecker partly as an recommender of good coding practice, but I cannot make sense of some of the messages. For example: runner.py:878: Function (main) has too many lines (201) What does this mean? Cannot functions be large? Or is it simply an advice that functions should be

Re: exceptions and items in a list

2005-01-10 Thread vincent wehren
Steve Holden wrote: vincent wehren wrote: rbt wrote: If I have a Python list that I'm iterating over and one of the objects in the list raises an exception and I have code like this: try: do something to object in list except Exception: pass Does the code just skip the bad object and

Re: shutil.move has a mind of its own

2005-01-10 Thread drs
Delaney, Timothy C (Timothy) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Daniel Bickett wrote: shutil.move( C:\omg.txt , C:\folder\subdir ) ^ ^^ ^ The problem is that backslash is the escape character. In particular, '\f' is a form

reference or pointer to some object?

2005-01-10 Thread Torsten Mohr
Hi, i'd like to pass a reference or a pointer to an object to a function. The function should then change the object and the changes should be visible in the calling function. In perl this would be something like: sub func { $ref = shift; $$ref += 123; # change } $a = 1; func(\$a); is

Re: reference or pointer to some object?

2005-01-10 Thread Paul Rubin
Torsten Mohr [EMAIL PROTECTED] writes: i'd like to pass a reference or a pointer to an object to a function. The function should then change the object and the changes should be visible in the calling function. Normally you would pass a class instance or boxed object, and let the function

Re: Python3: on removing map, reduce, filter

2005-01-10 Thread Steven Bethard
David M. Cooke wrote: Steven Bethard [EMAIL PROTECTED] writes: Some timings to verify this: $ python -m timeit -s def square(x): return x*x map(square, range(1000)) 1000 loops, best of 3: 693 usec per loop $ python -m timeit -s [x*x for x in range(1000)] 1000 loops, best of 3: 0.0505 usec per

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jan 9)

2005-01-10 Thread Bengt Richter
On Tue, 11 Jan 2005 07:27:42 +1100, Tim Churches [EMAIL PROTECTED] wrote: Josiah Carlson wrote: QOTW: Jim Fulton: [What's] duck typing? Andrew Koenig: That's the Australian pronunciation of 'duct taping'. I must protest. 1) No (true-blue) Australian has every uttered the words 'duct taping',

stretching a string over several lines (Re: PyChecker messages)

2005-01-10 Thread Steven Bethard
Frans Englich wrote: Also, another newbie question: How does one make a string stretch over several lines in the source code? Is this the proper way? (1) print asda asda asda asda asda asda \ asda asda asda asda asda asda \ asda asda asda asda asda asda A couple of other options

readline, rlcompleter

2005-01-10 Thread michele . simionato
This a case where the documentation is lacking. The standard library documentation (http://www.python.org/dev/doc/devel/lib/module-rlcompleter.html) gives this example try: import readline except ImportError: print Module readline not available. else: import rlcompleter

Re: time module precision

2005-01-10 Thread janeaustine50
Peter Hansen wrote: [EMAIL PROTECTED] wrote: So the problem (waiting tens to hundreds of us without busy looping) still remains... That's actually not a problem, it's your solution to a problem. Can you describe the _real_ problem, what you are trying to do? _Why_ do you want to wait

Re: Python3: on removing map, reduce, filter

2005-01-10 Thread Terry Reedy
Andrey Tatarinov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How does GvR suggestions on removing map(), reduce(), filter() While GvR *might* prefer removing them completely on any given day, I think moving them to a functional module, as others have suggested and requested, is

Re: Long strings as function parameters

2005-01-10 Thread Terry Reedy
Dan Bishop [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In Python, *every* expression is a pointer. Minor but to me important nit: this should start In the CPython implementation of Python ... Humans can understand and execute Python code without knowing about computer memory

Re: SuSE 9.1: updating to python-2.4

2005-01-10 Thread David Fraser
Torsten Mohr wrote: Hi, along with my distribution SuSE 9.1 came python 2.3.3. I'd like to update to 2.4 now, is this an easy thing to do or will lots of installed modules refuse to work then? Is there an easy way to find out what i need to update? Thanks for any hints, Torsten. What you probably

Re: raw sockets ? i need a python sniffer

2005-01-10 Thread lbolognini
Would this suit you? http://www.nullcube.com/software/pyopenbsd.html Lorenzo -- http://mail.python.org/mailman/listinfo/python-list

Re: Securing a future for anonymous functions in Python

2005-01-10 Thread Jacek Generowicz
Nick Coghlan [EMAIL PROTECTED] writes: Usually one or two have trouble grasping that int would be perfectly adequate in this situation. The ability to pass around functions at run-time was probably the hardest thing to get my head around when I started with Python, And I suspect that

Re: SuSE 9.1: updating to python-2.4

2005-01-10 Thread Wolfram Kraus
Heyho! Torsten Mohr wrote: Hi, along with my distribution SuSE 9.1 came python 2.3.3. I'd like to update to 2.4 now, is this an easy thing to do or will lots of installed modules refuse to work then? I installed Python 2.4 under SuSE 9.1 and had no problems so far. If you install it via

Old Paranoia Game in Python

2005-01-10 Thread Sean P.Kane
I ported the old (and long since removed) game from the bsd-game pacakge called, Paranoia, based on the old Paranoia role playing game from C to Python as a simple exercise in learning the language and pure late night boredom. Anyways, here it is for anyone looking for a few minutes of

BayPIGgies: January 13, 7:30pm

2005-01-10 Thread aahzpy
WARNING: the last meeting of BayPIGgies at Stanford is currently scheduled for March. Our host, Danny Yoo, is leaving Stanford, and we need to find a new location. If you wish to assist with the search, please join the BayPIGgies mailing list. Meanwhile, let's all give hearty thanks to Danny

Bug in Python 2.4 raw_input(u'xyz') Win/command line?

2005-01-10 Thread Petr Prikryl
Hi, Could you test the following example for your non-English language with accented characters? I have observed a problem when running Python 2.4, Windows version (python-2.4.msi) and using raw_input() with unicode prompt string in a console program (ran in the DOS window). I do use the

Re: Getting rid of self.

2005-01-10 Thread Alex Martelli
BJörn Lindqvist [EMAIL PROTECTED] wrote: ... http://starship.python.net/crew/mwh/hacks/selfless.py That's excellent! There is one small problem with the code though: It shows the fundamentals of how to rewrite the bytecode, yes. .class Hi(Selfless): .__attrs__ = [x] .def

Re: Long strings as function parameters

2005-01-10 Thread Nick Coghlan
Jeremy Bowers wrote: I had thought there was an obvious class in the standard library to assist with this, but I must have been wrong. buffer is the closest current contender, but I believe it's on the outer due to some problems with its implementation. I think the intention is to eventually

RE: interpreter Py_Initialize/Py_Finalize mem leak?

2005-01-10 Thread Roman Suzi
On Mon, 10 Jan 2005, Delaney, Timothy C (Timothy) wrote: Roman Suzi wrote: In pure curiosity I tried to compile loop.c from Demo/embed and started it with 'print 2+2'. It seems, that both 2.3 and 2.4 pythons have memory leaks in Py_Initialize/Py_Finalize calls. (That is, interpreter doesn't

Re: static compiled python modules

2005-01-10 Thread Nick Coghlan
Thomas Linden wrote: How can I tell python to use the compiled in modules and not try to load them from outside? http://www.python.org/dev/doc/devel/api/importing.html Take a look at the last three entries about registering builtin modules. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] |

Re: python3: accessing the result of 'if'

2005-01-10 Thread Nick Coghlan
Steve Holden wrote: Excuse me, these are supposed to be IMPROVEMENTS to Python? I think it's more messing around before coming to the conclusion that, of the many things that 'where' helps with, this sure as hell ain't one of them :) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] |

Re: Python Operating System???

2005-01-10 Thread Michael Sparks
Roose wrote: ... I was thinking that there would be a Lisp interpreter in a kernel, which afaik doesn't exist. There's an implementation of scheme that runs as a kernel module in Linux - it's designed to allow people to experiment with exploring kernel data structures at run time, and other

Re: windows mem leak

2005-01-10 Thread Nick Craig-Wood
Bob Smith [EMAIL PROTECTED] wrote: Attached is the code. Run it yourself and see. This seems to run nmap over series of consecutive IP addresses. nmap can do that all by itself. From its man page:: Nmap also has a more powerful notation which lets you specify an IP address

Re: Python serial data aquisition

2005-01-10 Thread Steve Holden
Flavio codeco coelho wrote: [EMAIL PROTECTED] (Michael Fuhr) wrote in message news:[EMAIL PROTECTED]... If the actual byte and/or bit order is different then you'll have to modify the expression, but this should at least give you ideas. Thanks Michael and Steve, I'll put your Ideas to the test

Re: 20050119: quoting strings

2005-01-10 Thread Steve Holden
Xah Lee wrote: #strings are enclosed in double quotes quotes. e.g. a=this and that print a #multiple lines must have an escape backslash at the end: b=this\n\ and that print b #One can use r for raw string. c=rthis\n\ and that print c #To avoid the backslash escape, one can use triple double

Re: tuples vs lists

2005-01-10 Thread Gerrit
Steve Holden wrote: worzel wrote: 'Two-Pull' it is then, thanks. Well, it might be Two-Pull in American, but in English it's tyoopl -- NOT choopl (blearch!). I've also heard people say tuppl. So, basically, say whatever you want. Language is about communication :-) Or just write it down

Re: python3: 'where' keyword

2005-01-10 Thread Nick Coghlan
Andrey Tatarinov wrote: And about examples for usage where keyword reading http://manatee.mojam.com/~skip/python/fastpython.html I understand that almost every example should use that keyword =) I suspect polluting the outer namespace would still be faster, since Python wouldn't have to create

Re: python3: 'where' keyword

2005-01-10 Thread Carl Banks
Paul Rubin wrote: Carl Banks [EMAIL PROTECTED] writes: And a suite, be it a def statement, a where block, or whatever, belongs in a statement, not an expression. So do you approve of the movement to get rid of the print statement? Any little incremental change in Python you could make by

Re: python3: 'where' keyword

2005-01-10 Thread Paul Rubin
Carl Banks [EMAIL PROTECTED] writes: So do you approve of the movement to get rid of the print statement? Any little incremental change in Python you could make by having or not having a print statement would be minor compared to the H-Bomb of ugliness we'd get if suites of statements were

Port blocking

2005-01-10 Thread Mark Carter
Supposing I decide to write a server-side application using something like corba or pyro. What's the chance that in big corporations, the client's ports (in both senses of the word: fee-paying, and application) will be blocked, thereby immediately scuppering whatever I have written? Has this

Re: Port blocking

2005-01-10 Thread Paul Rubin
Mark Carter [EMAIL PROTECTED] writes: Supposing I decide to write a server-side application using something like corba or pyro. What's the chance that in big corporations, the client's ports (in both senses of the word: fee-paying, and application) will be blocked, thereby immediately

Re: Statement local namespaces summary (was Re: python3: 'where' keyword)

2005-01-10 Thread Nick Coghlan
Duncan Booth wrote: Nick Coghlan wrote: Grammar Change -- Current:: statement ::=stmt_list NEWLINE | compound_stmt New:: statement ::=(stmt_list NEWLINE | compound_stmt) [local_namespace] local_namespace ::= with : suite Semantics - The code:: statement with:

Re: python3: 'where' keyword

2005-01-10 Thread Carl Banks
Paul Rubin wrote: Carl Banks [EMAIL PROTECTED] writes: So do you approve of the movement to get rid of the print statement? Any little incremental change in Python you could make by having or not having a print statement would be minor compared to the H-Bomb of ugliness we'd get if

Re: Port blocking

2005-01-10 Thread Mark Carter
Paul Rubin wrote: Mark Carter [EMAIL PROTECTED] writes: Supposing I decide to write a server-side application using something like corba or pyro. Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise

Command line and GUI tools : need a single threading solution

2005-01-10 Thread Adrian Casey
I have a collection of multi-threaded command line tools which I want wrap a PyQt gui around. I'm using queues to route messages from the command line tools to the PyQt gui. The command line tools use python threads to do their work. The gui uses a QThread object to read incoming messages. This

Re: Command line and GUI tools : need a single threading solution

2005-01-10 Thread Diez B. Roggisch
I'm thinking it may be possible to modify the command line tools to use qt threads instead of native python threads. Is this the way to go? Are there other options? Why don't you use python threads in qt - I do so and so far it didn't make any troubles for me. And I would strongly advise

Re: Port blocking

2005-01-10 Thread Diez B. Roggisch
Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise purpose of not getting blocked by firewalls. What exactly makes sending bytes over port 80 more secure than over any other port? It has always

Re: Command line and GUI tools : need a single threading solution

2005-01-10 Thread Phil Thompson
I have a collection of multi-threaded command line tools which I want wrap a PyQt gui around. I'm using queues to route messages from the command line tools to the PyQt gui. The command line tools use python threads to do their work. The gui uses a QThread object to read incoming messages.

Re: Datetime module

2005-01-10 Thread Mark McEahern
[EMAIL PROTECTED] wrote: I am writing a script that acts as an AIM bot [using twisted.IM's base scripts] and I want to add a logging feature. I got it to log who sends what to whom, but what I want to add is the date and time that the message was sent (or recieved by the bot), I tried to look at

Re: python3: 'where' keyword

2005-01-10 Thread Paul Rubin
Carl Banks [EMAIL PROTECTED] writes: Paul Rubin wrote: Carl Banks [EMAIL PROTECTED] writes: So do you approve of the movement to get rid of the print statement? Any little incremental change in Python you could make by having or not having a print statement would be minor

Re: Securing a future for anonymous functions in Python

2005-01-10 Thread Anna
Jacek Generowicz wrote: Anna [EMAIL PROTECTED] writes: With class and def, I at least have a *name* to start with - class Square pretty obviously is going to have something to do with geometric shapes, I would hope (or maybe with boring people...). Or maybe with multiplying something by

Re: Statement local namespaces summary (was Re: python3: 'where' keyword)

2005-01-10 Thread Nick Coghlan
Nick Coghlan wrote: Disallowing local namespaces for statement lists would suggest something like this: statement ::= (simple_stmt (NEWLINE | ; stmt_list NEWLINE | local_namespace) ) | (compound_stmt [local_namespace]) local_namespace ::=

Re: Old Paranoia Game in Python

2005-01-10 Thread Lucas Raab
[EMAIL PROTECTED] wrote: Aahz wrote: Trust the computer, the computer is your friend. However, the computer isn't a fuckin' mind reader. If you're going to post source code on the usenet, don't have lines longer than 72 characters. Otherwise you'll find your code has wrapped lines. This not only

Re: Port blocking

2005-01-10 Thread Mark Carter
Mark Carter wrote: Paul Rubin wrote: Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise purpose of not getting blocked by firewalls. I'm not sure if we're talking at cross-purposes here, but the

Re: tuples vs lists

2005-01-10 Thread Antoon Pardon
Op 2005-01-08, Bruno Desthuilliers schreef [EMAIL PROTECTED]: worzel a écrit : I get what the difference is between a tuple and a list, but why would I ever care about the tuple's immuutability? Because, from a purely pratical POV, only an immutable object can be used as kay in a dict.

Re: Powerful CGI libraries for Python?

2005-01-10 Thread Thomas Guettler
Am Mon, 10 Jan 2005 10:11:16 +0800 schrieb sam: Hi, I m looking for a CGI libraries just like perl's CGI.pm for Python. From google, I found quite a few of CGI libraries already written for python. But I haven't had experience to try any of them in Python. Can anyone share your Python

Re: Python3: on removing map, reduce, filter

2005-01-10 Thread Nick Coghlan
Terry Reedy wrote: Andrey Tatarinov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How does GvR suggestions on removing map(), reduce(), filter() While GvR *might* prefer removing them completely on any given day, I think moving them to a functional module, as others have suggested

C structure in the Python extension

2005-01-10 Thread Dave win
Howdy: When I was writting interface functions of the extending python, I meet a question. As I using the PyArg_ParseTuple(args,arg_type,...) function call, if I wanna use the personal defined argument, such as the C structure which I made. How to make it? static PyObject*

Re: Speed revisited

2005-01-10 Thread Nick Coghlan
John Machin wrote: My wild guess: Not a common use case. Double-ended queue is a special purpose structure. As Kent said, the suggestion of making index 0 insertions and deletions on lists more efficent was made, and the decision was to leave list alone and provide collections.deque instead.

Re: python3: 'where' keyword

2005-01-10 Thread Jonas Galvez
Andrey Tatarinov wrote: It would be great to be able to reverse usage/definition parts in haskell-way with where keyword. Hi folks, I really like this idea. But I couldn't help but think of a few alternative ways. I'm no language design expert by any means, but I'm a little concerned with

Re: Port blocking

2005-01-10 Thread Grant Edwards
On 2005-01-10, Diez B. Roggisch [EMAIL PROTECTED] wrote: Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise purpose of not getting blocked by firewalls. What exactly makes sending bytes over

Re: Securing a future for anonymous functions in Python

2005-01-10 Thread Ville Vainio
James == James Stroud [EMAIL PROTECTED] writes: James I think we should not try too hard to make everything James English like. Its a crappy language anyway (though its James the only one I speak good). Matt Neuberg, QOTW material, unless you stole this from someone else :-). --

Re: OT: google groups bug, or worse?

2005-01-10 Thread Tomi Häsä
[EMAIL PROTECTED] wrote: I'm concerned that google groups is not correctly reflecting the python lists. [...] Is it a google bug? Yes, Google Groups Beta is missing messages: http://groups-beta.google.com/group/google-labs-groups2/browse_thread/thread/c4108ad41c189d34?tvc=2

Re: python3: 'where' keyword

2005-01-10 Thread Carl Banks
Paul Rubin wrote: The Zen of Python, by Tim Peters Beautiful is better than ugly. = +1 macros Explicit is better than implicit. = +1 macros Simple is better than complex. = +1 macros Complex is better than complicated. = I don't understand this, +0 Flat is

Re: Port blocking

2005-01-10 Thread Ville Vainio
Mark == Mark Carter [EMAIL PROTECTED] writes: Mark Mark Carter wrote: Paul Rubin wrote: Usually you wouldn't run a public corba or pyro service over the internet. You'd use something like XMLRPC over HTTP port 80 partly for the precise purpose of not getting blocked by

Re: OT: spacing of code in Google Groups

2005-01-10 Thread Tomi Häsä
Dan Bishop wrote: And for a long time, Google groups postings *were* whitespace significant. But the new interface broke it. I made a complaint several weeks ago to Google support, asking them too quit stripping leading whitespace, and the sent me a reply saying they appreciated my

Re: python3: 'where' keyword

2005-01-10 Thread Paul Rubin
Carl Banks [EMAIL PROTECTED] writes: When I asked you to do this, it was just a rhetorical way to tell you that I didn't intend to play this game. It's plain as day you're trying to get me to admit something. I'm not falling for it. If you have a point to make, why don't you just make it?

Re: a new Perl/Python a day

2005-01-10 Thread François Pinard
[Andy Gross] On Jan 10, 2005, at 12:11 AM, Scott Bryce wrote: No. Perl may have some interesting idiosyncrasies I [...] still have to look at the documentation to remember that I need to type '$|' to turn buffering off. Ditto for the rest of the perl line-noise syntax. Behind each

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 9)

2005-01-10 Thread Josiah Carlson
QOTW: Jim Fulton: [What's] duck typing? Andrew Koenig: That's the Australian pronunciation of 'duct taping'. I'm thinking that the I-Ching is a vast untapped resource for programming wisdom, plus it makes it funny. -- Mark Carter Nick Coghlan brings up the 'lambdas are going away in 3.0'

Re: Using ICL to compile C extensions

2005-01-10 Thread John Carter
On 3 Jan 2005 21:18:13 -0800, [EMAIL PROTECTED] wrote: Hi, Does anyone know how I can use icl (Intel C++) to compile C extensions? I'm on Windows, and my Python is compiled using VS7.1 (binary distribution). Right now, when I run setup.py install, it uses cl.exe (MSVC++ Toolkit 2003), and I

Re: Developing Commercial Applications in Python

2005-01-10 Thread bit_bucket5
See http://www.journynx.com/ Commercial timesheet app written in Python. [EMAIL PROTECTED] wrote: Hello All, I am trying to convince my client to use Python in his new product. He is worried about the license issues. Can somebody there to point me any good commercial applications developed

  1   2   >