ANN: wxPython 2.7.2.0

2006-11-08 Thread Robin Dunn
Announcing -- The 2.7.2.0 release of wxPython is now available for download at http://wxpython.org/download.php. This is expected to be the last stepping stone in the path to the next stable release series, 2.8.x. We're pushing full speed ahead in order to get 2.8.0 included with OSX

ANN: wxPython 2.7.2.0

2006-11-08 Thread Robin Dunn
Announcing -- The 2.7.2.0 release of wxPython is now available for download at http://wxpython.org/download.php. This is expected to be the last stepping stone in the path to the next stable release series, 2.8.x. We're pushing full speed ahead in order to get 2.8.0 included with OSX

Re: assigning a sequence to an array

2006-11-08 Thread Robert Kern
[EMAIL PROTECTED] wrote: Hi, I am using A[a,:]=row in python, where A is a matrix and row is a sequence. But it gives following error: error-- A[a,:]=row ValueError: setting an array element with a sequence. Is there a way to change type of sequence to array so that this

Re: ANN: wxPython 2.7.2.0

2006-11-08 Thread Jia Lu
Robin Dunn wrote: Announcing -- Thanx. But I found wxPy's release speed is too fast that we nearly cannot catch up with it :) -- http://mail.python.org/mailman/listinfo/python-list

Re: unpickling Set as set

2006-11-08 Thread George Sakkis
Nick Vatamaniuc wrote: The two are not of the same type: - In : import sets In : s1=sets.Set([1,2,3]) In : s2=set([1,2,3]) In: type(s1) Out: class 'sets.Set' In : type(s2) Out: type 'set' In : s1==s2 Out: False # oops! In: s2==set(s1) Out: True

E-Commerce Partner Program

2006-11-08 Thread jlicht
Just thought that I'd let you know that PricePlay.com has launched an awesome Partner Program for all the E-Commerce developers. All you have to do is sign someone up and get paid. http://www.priceplay.com/corporate/partners/incentive/signup.cfm --

Cactching Stdout

2006-11-08 Thread Massi
Hi everyone! I'm writing a python script which uses a C-written dll. I call the functions in the dll using ctypes, but I don't know how to catch the output of the printf which the C functions use. In fact I don't even know if it is possible! I've heard something about PIPE and popen...is this what

Searching for a module to generate GUI events

2006-11-08 Thread Stephan Kuhagen
Hello I'm searching for a Python Module which is able to generate GUI events on different platforms (at least X11 and Windows, MacOSX would be nice), but without being a GUI toolkit itself. So PyTk is not a choice, because I need to use it, to control GUIs of other Programs. I want to generate

Re: E-Commerce Partner Program

2006-11-08 Thread [EMAIL PROTECTED]
I am willing to barter for the space. I need csoundgrid2.py to be callable from inside a program just like it is from the command line. This has been driving me nuts for a couple of weeks. The program is part of csoundroutines beta 8. and the program is called dex tracker although knowing how

Re: E-Commerce Partner Program

2006-11-08 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: Just thought that I'd let you know that PricePlay.com has launched an awesome Partner Program for all the E-Commerce developers. All you have to do is sign someone up and get paid. http://www.priceplay.com/corporate/partners/incentive/signup.cfm To extend and

please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Farraige
Hi I need your help... I am implementing the method that updates given table (table is represented as list of lists of strings) according to other table (some kind of merging)... This method takes following arguments: t1 - table we would like to update t2

MODULE mx.DateTime

2006-11-08 Thread Antonios Katsikadamos
Hi all. I am using python2.4 on suse linux 10.1 and i want to import the mx.DateTime module. does anyone know where i can find this module and how i can install it on linux?I would appreciate any help.thnx a lot kind regards,Antonios Access over 1 million songs - Yahoo! Music Unlimited.--

Python deployment options.

2006-11-08 Thread king kikapu
Hi to all folks here, i just bought a book and started reading about this language. I want to ask what options do we have to deploy a python program to users that do not have the labguage installed ?? I mean, can i make an executable file, or something that contains the runtime and the modules

Re: Python deployment options.

2006-11-08 Thread dimitri pater
Hi,try:http://www.py2exe.org/regards,DimitriOn 8 Nov 2006 02:37:42 -0800, king kikapu [EMAIL PROTECTED] wrote:Hi to all folks here,i just bought a book and started reading about this language. I want to ask what options do we have to deploy a python program tousers that do not have the labguage

Re: object data member dumper?

2006-11-08 Thread Bruno Desthuilliers
tom arnall wrote: Bruno Desthuilliers wrote: tom arnall a écrit : does anyone know of a utility to do a recursive dump of object data members? What are object data members ? (hint: in Python, everything is an object - even functions and methods). What is your real use case ?

Re: Python deployment options.

2006-11-08 Thread Chris_147
king kikapu wrote: Hi to all folks here, i just bought a book and started reading about this language. I want to ask what options do we have to deploy a python program to users that do not have the labguage installed ?? I mean, can i make an executable file, or something that contains the

Re: Python deployment options.

2006-11-08 Thread king kikapu
I see...So, if these are the only options, the only safe bet is to install the language on the machine (beeing Win, Linux or Mac) and execute the .py files, right ?? On Nov 8, 1:24 pm, Chris_147 [EMAIL PROTECTED] wrote: king kikapu wrote: Hi to all folks here, i just bought a book and

Re: struggling with memory release using ctypes wrapper

2006-11-08 Thread geskerrett
Oops, found the problem in my code. Sorry for wasting peoples time if you're viewing. -- http://mail.python.org/mailman/listinfo/python-list

for x in... x remains global

2006-11-08 Thread Antoine De Groote
for x in range(3): pass After this statement is executed x is global variable. This seems very unnatural to me and caused me 3 three days of debugging because I was unintentionally using x further down in my program (typo). I would have thought that variables like this are local to the for

Need help

2006-11-08 Thread Srinivasa
Hai friends, I wrote a programme to display a window (ui) using Python. I renamed it as .pyw to avoid popping-up the dos window while running it. It worked fine. But when i converted it to executable file using py2exe; the dos window appears. Can anybody tell me what the solution is. Thanks and

Re: for x in... x remains global

2006-11-08 Thread Diez B. Roggisch
Antoine De Groote wrote: for x in range(3): pass After this statement is executed x is global variable. This seems very unnatural to me and caused me 3 three days of debugging because I was unintentionally using x further down in my program (typo). I would have thought that variables like

Problem exiting application in Windows Console.

2006-11-08 Thread Ant
Hi all, I'm putting together a simple help module for my applications, using html files stored in the application directory somewhere. Basically it sets up a basic web server, and then uses the webbrowser module to display it in the users browser. I have it set up to call sys.exit(0) if the url

Python/Django Lead Developer Needed in NYC

2006-11-08 Thread [EMAIL PROTECTED]
I hope job ads are ok in this group. It looks like my efforts to make python our base service oriented architecture technology and Django as the core web framework is coming through. I now need to hire a New York based developer to be the tech lead for much of this effort. I can't reveal the

Re: More elegant way to obtain ACLs / permissions for windows directories than using cacls dos command?

2006-11-08 Thread dananrg
Thanks Roger, I'll give it a shot. Is os.walk the best way (using standard library modules) to traverse directory trees in Python 2.4 and beyond? -- http://mail.python.org/mailman/listinfo/python-list

Web Browser Pythonlet

2006-11-08 Thread Bugra Cakir
Hi,I'm wondering if there is an environment for any web browser that executes python codeand running a gui inside the web browser like applet, flash or like those ?Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: for x in... x remains global

2006-11-08 Thread Ben Finney
Antoine De Groote [EMAIL PROTECTED] writes: for x in range(3): pass After this statement is executed x is global variable. Not exactly. The name 'x' is bound at the scope of the 'for' statement, and remains bound after the 'for' statement stops, just as it would be if it was bound in any

Re: for x in... x remains global

2006-11-08 Thread Duncan Booth
Antoine De Groote [EMAIL PROTECTED] wrote: for x in range(3): pass After this statement is executed x is global variable. This seems very unnatural to me and caused me 3 three days of debugging because I was unintentionally using x further down in my program (typo). I would have thought

Re: More elegant way to obtain ACLs / permissions for windows directories than using cacls dos command?

2006-11-08 Thread dananrg
Could you give an example for listing security descriptors using the win32security module? I looked at the documentation but found it confusing. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: assigning a sequence to an array

2006-11-08 Thread [EMAIL PROTECTED]
actually what i want to do is this: i have a file with following format: 1 2 3 9 2 3 4 4 I want to read it and then store the values into two matrices, s.t. A=[1 2;3 9] B=[2 3;4 4] any easier way of doing this? thanks Amit Robert Kern wrote: [EMAIL PROTECTED] wrote: Hi, I am using

Re: Need help

2006-11-08 Thread Ant
Srinivasa wrote: Hai friends, I wrote a programme to display a window (ui) using Python. I renamed it as .pyw to avoid popping-up the dos window while running it. It worked fine. But when i converted it to executable file using py2exe; the dos window appears. Can anybody tell me what the

Re: Searching for a module to generate GUI events

2006-11-08 Thread utabintarbo
Stephan Kuhagen wrote: Hello I'm searching for a Python Module which is able to generate GUI events on different platforms (at least X11 and Windows, MacOSX would be nice), but without being a GUI toolkit itself. So PyTk is not a choice, because I need to use it, to control GUIs of other

Re: Python deployment options.

2006-11-08 Thread Richard Charts
king kikapu wrote: I see...So, if these are the only options, the only safe bet is to install the language on the machine (beeing Win, Linux or Mac) and execute the .py files, right ?? Well on a Win machine, probably. Almost every Linux machine you come across will have (most likely a

Re: psycopg2 faster way to retrieve last x records

2006-11-08 Thread Luis P. Mendes
Em Tue, 07 Nov 2006 17:03:17 -0800, Stuart Bishop escreveu: The following SQL statement will return the last 200 rows in reverse order: SELECT * FROM seconds ORDER BY tempounix DESC LIMIT 200 This will only send 200 rows from the server to the client (your existing approach will send

Re: please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Farraige wrote: Let's say we have a table T1: A B C D E --- 1 4 5 7 7 3 4 0 0 0 and we call a method mergeTable(T1, T2, [0,1], [2,4]) It means that we would like to update columns C and E of table T1 with data from table T2 but only in case the

Re: MODULE mx.DateTime

2006-11-08 Thread Steve Holden
Antonios Katsikadamos wrote: Hi all. I am using python2.4 on suse linux 10.1 and i want to import the mx.DateTime module. does anyone know where i can find this module and how i can install it on linux? I would appreciate any help. Look on www.egenix.com regards Steve -- Steve Holden

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Ross Ridge
Ross Ridge schrieb: So give an example where reference counting is unsafe. Martin v. Löwis wrote: Nobody claimed that, in that thread. Instead, the claim was Atomic increment and decrement instructions are not by themselves sufficient to make reference counting safe. So give an example of

Python cgi Apache os.system()

2006-11-08 Thread naima . mans
Hello :) I have installed Apache on windows... The server work well, and my python script also but when I want in my python script to run a System command like os.system(my_command) the script doesn't do anything! here the error.log [Wed Nov 08 14:19:30 2006] [error] [client 127.0.0.1] The

Python Jogos

2006-11-08 Thread [EMAIL PROTECTED]
Jogo da velha Jogo do galo Codigos em python kem me arranja -- http://mail.python.org/mailman/listinfo/python-list

Re: please help with optimisation of this code - update of given table according to another table

2006-11-08 Thread Antoon Pardon
On 2006-11-08, Farraige [EMAIL PROTECTED] wrote: ... The main part of my algorithm now looks something like ... merge(t1, t2, keyColumns, columnsToBeUpdated) ... for row_t1 in t1: for row_t2 in t2: if [row_t1[i] for i in keyColumns] ==

Help solving Python 2.5 crash: The instruction 0x7c168f1d referenced memory at 0x00000001c ...

2006-11-08 Thread Pedro Rodrigues
Hieveryone, recently, I have installed Python 2.5 in a Windows XP (SP2) system, along with the numarray, PIL, and PyWin packages. Since then, I've been getting the following error message whenever I run one of my simulations within PyWin: The instruction 0x7c168f1d referenced memory at

Re: More elegant way to obtain ACLs / permissions for windows directories than using cacls dos command?

2006-11-08 Thread Roger Upole
[EMAIL PROTECTED] wrote: Could you give an example for listing security descriptors using the win32security module? I looked at the documentation but found it confusing. Thanks. There are some examples of using the security descriptor objects in \Lib\site-packages\win32\Demos\security. Also,

Delivering data to python from a c-thread

2006-11-08 Thread Svein Seldal
Hi, I have a C-application that calls a Python function main(). This function will loop forever and not return until the entire application is about to terminate. In a parallel C-thread, some data must be regularly delivered to the running python application. My initial plan was to call a py

Re: Python deployment options.

2006-11-08 Thread Cameron Laird
In article [EMAIL PROTECTED], Richard Charts [EMAIL PROTECTED] wrote: . . . Well on a Win machine, probably. Almost every Linux machine you come across will have (most likely a fairly recent build of) python. For Macs, I'm

Re: Python deployment options.

2006-11-08 Thread Fuzzyman
Chris_147 wrote: king kikapu wrote: Hi to all folks here, i just bought a book and started reading about this language. I want to ask what options do we have to deploy a python program to users that do not have the labguage installed ?? I mean, can i make an executable file, or

Re: for x in... x remains global

2006-11-08 Thread skip
Diez It's an somewhat unfortunate fact that loop variables leak to the Diez outer scope. List-comps as well, btw. It's unfortunate that loop variables leak from list comprehensions (they don't leak in genexps). It's by design in for loops though. Consider: for i in range(10):

python Error: IndentationError: expected an indented block

2006-11-08 Thread Antonios Katsikadamos
hi all. I am using python 2.4. I have to run an older python code and when i run it i get the following messageIndentationError: expected an indented block.1)what does this mean?2)how can i overcome this problemThanks for any advice.kind regards,Antonios Sponsored Link Free Uniden 5.8GHz Phone

Re: Character encoding

2006-11-08 Thread [EMAIL PROTECTED]
Dennis Lee Bieber wrote: On 7 Nov 2006 11:34:32 -0800, mp [EMAIL PROTECTED] declaimed the following in comp.lang.python: I have html document titles with characters like gt;, nbsp;, and #135. How do I sddecode a string with these values in Python? Wouldn't HTMLParser be suited

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Joe Seigh
Ross Ridge wrote: Ross Ridge schrieb: So give an example where reference counting is unsafe. Martin v. Löwis wrote: Nobody claimed that, in that thread. Instead, the claim was Atomic increment and decrement instructions are not by themselves sufficient to make reference counting safe.

profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Beliavsky
Cliff Wells wrote: On Mon, 2006-11-06 at 18:20 -0800, Beliavsky wrote: Carl J. Van Arsdall wrote: snip Pyro is fucking amazing and has been a great help to a couple of our projects. You should watch your language in a forum with thousands of readers. The LA Times had a story

Re: Help solving Python 2.5 crash: The instruction 0x7c168f1d referenced memory at 0x00000001c

2006-11-08 Thread Bugra Cakir
Hi,I have came across this like problem in my simulations also. But the case is not for the program structure orpython version, the case is hardware :) . If you have time to try it on some other machine than the current and if the problem arises then there is something different! --

Re: python Error: IndentationError: expected an indented block

2006-11-08 Thread Vyacheslav Sotnikov
Antonios Katsikadamos пишет: hi all. I am using python 2.4. I have to run an older python code and when i run it i get the following message IndentationError: expected an indented block. 1)what does this mean? http://www.python.org/doc/2.4.3/ref/indentation.html 2)how can i overcome

Summer of PyPy Call for Proposals

2006-11-08 Thread Carl Friedrich Bolz
Last chance to join the Summer of PyPy! === Hopefully by now you have heard of the Summer of PyPy, our program for funding the expenses of attending a sprint for students. If not, you've just read the essence of the idea :-) However, the PyPy EU funding

Re: ANN: wxPython 2.7.2.0

2006-11-08 Thread Kenneth Long
Is there a new version of Demo Docs released also? I get this error from Sourceforge after clicking on the link at wxPython page. Could not read file. Go back. /home/ftp/pub/sourceforge//w/wx/wxpython/wxPython2.7-win32-docs-demos-2.7.2.0.exe Nov 08, 2006 07:10 --- Robin Dunn [EMAIL

Re: Help with installing soappy module on Python 2.4.3 (windows machine)

2006-11-08 Thread Chris Lambacher
On Tue, Nov 07, 2006 at 07:30:49AM -0800, [EMAIL PROTECTED] wrote: Hi Folks, I want to install the SOAPpy module on my windows box. I have python 2.4.3 Can you help me with the steps and the URL from where can I get the download..?? http://pywebsvcs.sourceforge.net/ TIA.

Re: Character encoding

2006-11-08 Thread Frederic Rentsch
mp wrote: I have html document titles with characters like gt;, nbsp;, and #135. How do I decode a string with these values in Python? Thanks This is definitely the most FAQ. It comes up about once a week. The stream-editing way is like this: import SE HTM_Decoder = SE.SE

Re: Help solving Python 2.5 crash: The instruction 0x7c168f1d referenced memory at 0x00000001c

2006-11-08 Thread Pedro Rodrigues
Hi Bugra, thanks for your reply. I did try the same code on a Windows 2000 system where I also installed and later removed Python 2.5. There, I obtained the same problem :( That's why I think it has to do with software. I've also searched on the internet and this problem seems to come up also

Re: Pyro stability

2006-11-08 Thread BartlebyScrivener
Some guy hit my fender, and I said to him, 'Be fruitful and multiply,' but not in those words. --Woody Allen Language is a virus from outer space. --William Burroughs -- http://mail.python.org/mailman/listinfo/python-list

Python Error:IndentationError: expected an indented block

2006-11-08 Thread Antonios Katsikadamos
hi all. I try to run an old python code and i get the following message File "/home/antonis/db/access.py", line 119 def DoCsubnet1 (action, subject, target, args): # DoC servers net ^ IndentationError: expected an indented block 1) and I don't know what causes it. I would be grate full if you

Re: ANN: wxPython 2.7.2.0

2006-11-08 Thread Robin Dunn
Kenneth Long wrote: Is there a new version of Demo Docs released also? I get this error from Sourceforge after clicking on the link at wxPython page. Could not read file. Go back. /home/ftp/pub/sourceforge//w/wx/wxpython/wxPython2.7-win32-docs-demos-2.7.2.0.exe Looks like there was

Change directory permission under windows

2006-11-08 Thread __schronos__
Hi. I would like to add people with full control access to a directory. I can do it to a file in the following way: info=win32security.DACL_SECURITY_INFORMATION sd=win32security.GetFileSecurity(DIR, info) acl=sd.GetSecurityDescriptorDacl()

Change directory permission under windows

2006-11-08 Thread __schronos__
Hi. I would like to add users with full control access to a directory. I can do it to a file in the following way: info=win32security.DACL_SECURITY_INFORMATION sd=win32security.GetFileSecurity(DIR, info) acl=sd.GetSecurityDescriptorDacl()

Re: sqlite query not working

2006-11-08 Thread John Salerno
BartlebyScrivener wrote: John Salerno wrote: Ah well, I'm sure there was *something* different Are you sure that it's not you were doing SELECT before, as opposed to INSERT? Perhaps. It might have been that I used the INSERT statement on the sqlite command line, then used SELECT in

Re: sqlite query not working

2006-11-08 Thread John Salerno
Dennis Lee Bieber wrote: The other thing to consider is that, if you were testing using a single cursor, and single session, the database would have shown you uncommitted changes. It wouldn't have been until you closed the cursor/connection without a commit that the DBMS would have

Exception Handling in TCPServer (was; Problem exiting application in Windows Console.)

2006-11-08 Thread Ant
Ant wrote: ... However, at this point instead of getting back to a command prompt, I get an unresponsive console. Hitting CTRL-Break gets me the command prompt back, but I would have expected to get back the command prompt as soon as the sys.exit(0) had completed. ... class

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

2006-11-08 Thread John Salerno
Chris Lambacher wrote: On Tue, Nov 07, 2006 at 04:15:39PM -0500, John Salerno wrote: Cameron Laird wrote: Fredrik Lundh collects pyidioms: http://effbot.org/zone/python-lists.htm Not working? perhaps http://effbot.org/zone/python-list.htm ? Thanks guys! --

Re: assigning values in __init__

2006-11-08 Thread John Salerno
Ben Finney wrote: John Salerno [EMAIL PROTECTED] writes: But I do like Steve's suggestion that it's better to be explicit about each attribute, instead of just accepting a list of numbers (but I can't help but feel that for some reason this is better, because it's more general). If you

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread robert
Ross Ridge wrote: Ross Ridge schrieb: So give an example where reference counting is unsafe. Martin v. Löwis wrote: Nobody claimed that, in that thread. Instead, the claim was Atomic increment and decrement instructions are not by themselves sufficient to make reference counting safe.

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread robert
robert wrote: Martin v. Löwis wrote: [..] Thanks for that info. That is interesting. Thus even on x86 currently this LOCK is not used (just (op)-ob_refcnt++) ) Reading this I got pinched: In win32ui there are infact Py_INC/DECREF's outside of the GIL ! And I have a severe crash

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread skip
Beliavsky English is a rich language, and there are better ways of Beliavsky doing that. aahz Oh, gimme a fucking break. I'm with Beliavsky on this one. I can't see any particular reason to curse in a forum such as c.l.py. It just coarsens the discussion with no obvious positive

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread robert
Sandra-24 wrote: On Nov 2, 1:32 pm, robert [EMAIL PROTECTED] wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I thought about simply using a

Re: Delivering data to python from a c-thread

2006-11-08 Thread Steve Holden
Svein Seldal wrote: Hi, I have a C-application that calls a Python function main(). This function will loop forever and not return until the entire application is about to terminate. In a parallel C-thread, some data must be regularly delivered to the running python application. My

Re: Python Error:IndentationError: expected an indented block

2006-11-08 Thread Steve Holden
Antonios Katsikadamos wrote: hi all. I try to run an old python code and i get the following message File /home/antonis/db/access.py, line 119 def DoCsubnet1 (action, subject, target, args): # DoC servers net ^ IndentationError: expected an indented block 1) and I

PIL - Pixel Level Image Manipulation?

2006-11-08 Thread Gregory Piñero
I want to be able to randomly change pixels in an image and view the results. I can use whatever format of image makes this easiest, e.g., gray scale, bit tonal, etc. Ideally I'd like to keep the pixels in an intermediate format like a list of (integers?) or an array and convert that to an image

Re: Python Error:IndentationError: expected an indented block

2006-11-08 Thread jim-on-linux
try this def DoCsubnet1 (action, subject, target, args): pass jim-on-linux http://www.inqvista.com On Wednesday 08 November 2006 10:47, Antonios Katsikadamos wrote: hi all. I try to run an old python code and i get the following message File

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread robert
Shane Hathaway wrote: of multiple cores. I think Python only needs a nice way to share a relatively small set of objects using shared memory. POSH goes in that direction, but I don't think it's simple enough yet. http://poshmodule.sourceforge.net/ interesting, a solution possibly a little

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Cliff Wells
On Wed, 2006-11-08 at 06:49 -0800, Beliavsky wrote: Cliff Wells wrote: The LA Times had a story that claimed that 64% of U.S. citizens use the word fuck and that 74% of us have heard it in public (I'll assume the remainder are your fellow AOL users). I expect extrapolating these results

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread BartlebyScrivener
[EMAIL PROTECTED] wrote: I'm with Beliavsky on this one. I can't see any particular reason to curse in a forum such as c.l.py. It just coarsens the discussion with no obvious positive benefit as far as I can see. All true. But it's like picking your nose. Yes, it's bad manners in public,

Re: Exception Handling in TCPServer (was; Problem exiting application in Windows Console.)

2006-11-08 Thread Ant
Ant wrote: ... OK, I've narrowed the problem back to the way HTTPServer (actually its TCPServer parent) handles exceptions thrown by the process_request method by catching them all, and then calling a handle_error method. There doesn't seem to be a way of getting at the exception thrown

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread sturlamolden
robert wrote: I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Threading is not the best way to exploit multiprocessors in this context. Threads are not the preferred way of exploiting multiple processors in

Re: Delivering data to python from a c-thread

2006-11-08 Thread Svein Seldal
Steve Holden wrote: Could you have the Python code create a second Python thread and have it call back into the C code to collect any waiting data? Well yeah, in principle. However one would need some synchronization mechanisms anyway. The C data source is generating asynch. messages to

Strange re problem on OSX but Not Linux

2006-11-08 Thread Brian
I have a very small script: import re text = open('eq.txt','r').read() regex = '[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]' pattern = re.compile(regex) match = pattern.findall(text) print ''.join(match) However, when I try to run it, I get this error: Traceback (most recent call last): File

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Paul Rubin
robert [EMAIL PROTECTED] writes: what about speed. Is it true that IronPython is almost as fast as C-Python meanwhile? When this all is really true, its probably a proof that putting out LOCK-INC-lock's (on dicts, lists, mutables ...) in CPython to remove the GIL in future should not be

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Carl J. Van Arsdall
BartlebyScrivener wrote: Chaz Ginger wrote: it is supposed to be about PYTHON. Get it? I agree. And Python is an extremely serious matter calling for decorum and propriety. Lol, is it really now? And I suppose its your definition of decorum and not mine right? Things like

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Cliff Wells
On Wed, 2006-11-08 at 10:12 -0800, Carl J. Van Arsdall wrote: BartlebyScrivener wrote: I agree. And Python is an extremely serious matter calling for decorum and propriety. Lol, is it really now? And I suppose its your definition of decorum and not mine right? Things like that are

is this the right way to do subclasses?

2006-11-08 Thread John Salerno
Ok, back to my so-called game. I'm just curious if I've implemented the subclasses properly, because it seems like an awful lot of repetition with the parameters. And again, if I want to add a new attribute later, I'd have to change a lot of things. I can't help but get the feeling that I'm

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread olsongt
BartlebyScrivener wrote: Chaz Ginger wrote: it is supposed to be about PYTHON. Get it? I agree. And Python is an extremely serious matter calling for decorum and propriety. Don't say fuck, ni, peng, or ni-wom. http://en.wikipedia.org/wiki/Knights_who_say_Ni rd Does using foobar in

Re: unpickling Set as set

2006-11-08 Thread Gabriel G
At Wednesday 8/11/2006 05:26, George Sakkis wrote: Or you may have this done automatically by hacking the Set class: from sets import Set import cPickle as pickle Set.__reduce__ = lambda self: (set, (self._data,)) s = Set([1,2,3]) x = pickle.dumps(s) print pickle.loads(x) This doesn't work

Re: PIL - Pixel Level Image Manipulation?

2006-11-08 Thread Michael L Torrie
On Wed, 2006-11-08 at 11:53 -0500, Gregory Piñero wrote: I want to be able to randomly change pixels in an image and view the results. I can use whatever format of image makes this easiest, e.g., gray scale, bit tonal, etc. Ideally I'd like to keep the pixels in an intermediate format like

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Carl J. Van Arsdall
Cliff Wells wrote: On Wed, 2006-11-08 at 10:12 -0800, Carl J. Van Arsdall wrote: BartlebyScrivener wrote: I agree. And Python is an extremely serious matter calling for decorum and propriety. Lol, is it really now? And I suppose its your definition of decorum and

How to choose the right GUI toolkit ?

2006-11-08 Thread Dan Lenski
Hi all, I'm a recent, belated convert from Perl. I work in a physics lab and have been using Python to automate a lot of measurement equipment lately. It works fabulously for this purpose. Recently I've wanted to start writing GUIs for some of my programs, for data visualization and to make the

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Paddy
Aahz wrote: In article [EMAIL PROTECTED], Beliavsky [EMAIL PROTECTED] wrote: If this is supposed to justify using bad language in a public forum, it is poorly reasoned. Having heard f*** does not mean they were not annoyed. 100% of people have seen trash on the street, but that does not

Re: How to choose the right GUI toolkit ?

2006-11-08 Thread John Salerno
Dan Lenski wrote: So, is there another toolkit I should be looking at? I highly recommend wxPython. It's very mature, full-featured, and portable, and fairly easy to learn as well. I can't really compare it to other toolkits (not having used any of them, except Tkinter), but it's definitely

Dispatcher experiment

2006-11-08 Thread egbert
As an exercise in the use of dispatcher I concocted a Zoo with some Animals, see below. It works, but I think it is convoluted, obfuscated. The idea is that in the Zoo each animal needs its own type of food, and the Zoo should acknowledge a wish for that food, as soon as the animal says it wants

Re: Delivering data to python from a c-thread

2006-11-08 Thread Steve Holden
Svein Seldal wrote: Steve Holden wrote: Could you have the Python code create a second Python thread and have it call back into the C code to collect any waiting data? Well yeah, in principle. However one would need some synchronization mechanisms anyway. The C data source is generating

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread sturlamolden
sturlamolden wrote: 3. One often uses cluster architectures (e.g. Beowulf) instead of SMPs for scientific computing. MPI works on SMP and clusters. Threads only work on SMPs. Following up on my previous post, there is a simple Python MPI wrapper that can be used to exploit multiple

Re: Exception Handling in TCPServer (was; Problem exiting application in Windows Console.)

2006-11-08 Thread Steve Holden
Ant wrote: Ant wrote: OK, I've narrowed the problem back to the way HTTPServer (actually its TCPServer parent) handles exceptions thrown by the process_request method by catching them all, and then calling a handle_error method. There doesn't seem to be a way of getting at the exception

Problem getting a file pathname with tkFileDialog

2006-11-08 Thread cdroulers
Hello, I am working on a school project that requires me to get the path of a filename for future treatment. I've tried getting a file with tkFileDialog.askopenfile. import tkFileDialog file = tkFileDialog.askopenfile() print file

Re: is this the right way to do subclasses?

2006-11-08 Thread Farshid Lashkari
John Salerno wrote: Ok, back to my so-called game. I'm just curious if I've implemented the subclasses properly, because it seems like an awful lot of repetition with the parameters. And again, if I want to add a new attribute later, I'd have to change a lot of things. I can't help but

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread sturlamolden
sturlamolden wrote: http://www-unix.mcs.anl.gov/mpi/mpich1/mpich-nt/ One should probably use this instead: http://www-unix.mcs.anl.gov/mpi/mpich2/index.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: profanity on comp.lang.python (was Re: Pyro stability)

2006-11-08 Thread Carl J. Van Arsdall
Paddy wrote: Aahz wrote: In article [EMAIL PROTECTED], Beliavsky [EMAIL PROTECTED] wrote: If this is supposed to justify using bad language in a public forum, it is poorly reasoned. Having heard f*** does not mean they were not annoyed. 100% of people have seen trash on the street,

  1   2   3   >