Wing IDE 3.1beta3 released

2008-04-29 Thread Wingware
Hi, Wingware has released version 3.1 beta3 of Wing IDE, an integrated development environment for the Python programming language. It is available from: http://wingware.com/wingide/beta This release includes the following changes: * How-To and improvements for using Wing IDE with Google App

VIFF 0.5

2008-04-29 Thread Martin Geisler
On behalf of the VIFF Development Team, I am very happy to announce the release of VIFF 0.5: Tar/GZ: http://viff.dk/release/viff-0.5.tar.gz Tar/BZ2: http://viff.dk/release/viff-0.5.tar.bz2 Zip: http://viff.dk/release/viff-0.5.zip Exe: http://viff.dk/release/viff-0.5.win32.exe

CodeInvestigator 0.10.0 released.

2008-04-29 Thread Martien Friedeman
CodeInvestigator version 0.10.0 was released on April 28. This release fixes 2 bugs: Exceptions were not handled correctly. Recursive programs were not handled correctly. Thank you Sze Meng for reporting these! A usability change was made: Until now you could only go to a

Wing IDE 3.0.5 released

2008-04-29 Thread Wingware
Hi, We're happy to announce version 3.0.5 of Wing IDE, an integrated development environment for the Python programming language. It is available from: http://wingware.com/downloads Version 3.0.5 is a bug fix release that adds many vi mode improvements, improves stability, and fixes other

Python-URL! - weekly Python news and links (Apr 28)

2008-04-29 Thread Gabriel Genellina
QOTW: Posting to comp.lang.python is pair programming with the entire internet ;-) - Nick Craig-Wood http://groups.google.com/group/comp.lang.python/msg/6f13cfca8a92c1a2 When it got to the point where managers were asking, 'Why didn't you use the config check tool?', it was a done deal. -

Re: python script as executable

2008-04-29 Thread sandipm
thanks it worked On Apr 29, 10:49 am, Eric Wertman [EMAIL PROTECTED] wrote: Try to ftp it in ascii mode, or find a dos2unix utility .. the file has probably got \r\n (windows) line terminators in it.. causes problems. I guess it's also possible that /usr/bin/env doesn't exist... not likely

Re: File IO Issues, help :(

2008-04-29 Thread Peter Otten
Kevin K wrote: On Apr 29, 12:38 am, Eric Wertman [EMAIL PROTECTED] wrote: chuck in a jsfile.close(). The buffer isn't flushing with what you are doing now. jsfile.flush() might work... not sure. Closing and re-opening the file for sure will help though. Yeah sorry I forgot to include

Re: File IO Issues, help :(

2008-04-29 Thread Kevin K
On Apr 29, 12:55 am, Peter Otten [EMAIL PROTECTED] wrote: Kevin K wrote: On Apr 29, 12:38 am, Eric Wertman [EMAIL PROTECTED] wrote: chuck in a jsfile.close(). The buffer isn't flushing with what you are doing now. jsfile.flush() might work... not sure. Closing and re-opening the file

Re: python script as executable

2008-04-29 Thread Arnaud Delobelle
sandipm [EMAIL PROTECTED] writes: Hi, I have written a python script to run from cron. I have put #!/usr/bin/env python at top. file executes correctly when I run using python filename.py but it fails to execute when try to run it like script/command. it throws error: :No such file or

Re: Sphinx 0.2 released

2008-04-29 Thread Stefan Behnel
Hi Georg, Georg Brandl wrote: I'm pleased to announce the release 0.2 of Sphinx, the Python documentation generation tool. There were some intermediate smaller releases in the 0.1 series, but for 0.2 there are quite a lot new features and fixes. What is it? === Sphinx is a tool

Re: File IO Issues, help :(

2008-04-29 Thread Peter Otten
Kevin K wrote: On Apr 29, 12:55 am, Peter Otten [EMAIL PROTECTED] wrote: Kevin K wrote: On Apr 29, 12:38 am, Eric Wertman [EMAIL PROTECTED] wrote: chuck in a jsfile.close(). The buffer isn't flushing with what you are doing now. jsfile.flush() might work... not sure. Closing and

Re: descriptor docstring

2008-04-29 Thread Gabriel Genellina
En Tue, 29 Apr 2008 01:29:40 -0300, George Sakkis [EMAIL PROTECTED] escribió: On Apr 28, 10:59 pm, Gabriel Genellina def property_default(prop_name, default_value=None, doc=None):      attr_name = '_'+prop_name      def fget(self, attr_name=attr_name,                    

Acer Aspire 4520NWXMi Athlon LX.AHS0C.011LE Notebook

2008-04-29 Thread santoshanmsoft
Features: * Based on the powerful and affordable AMD Turion™ 64 X2 Mobile Technology, the Aspire 4520 is well suited for any home computing environment. Featuring impressive graphics solutions from NVIDIA®, a 14.1Acer CrystalBrite™ display, ultra-realistic Dolby® surround sound, they excel at

Re: cytpes **int

2008-04-29 Thread Diez B. Roggisch
Gabriel Genellina schrieb: En Mon, 28 Apr 2008 18:55:15 -0300, Diez B. Roggisch [EMAIL PROTECTED] escribió: VernM schrieb: I am using ctypes to wrap a set of functions in a DLL. It has been going very well, and I am very impressed with ctypes. I want to call a c function with a signature of:

simple chemistry in python

2008-04-29 Thread Astan Chee
Hi, Im looking for a python module to do simple chemistry things. Things like, finding the name of elements given the atomic number (and vice versa); what state the given matter is in depending on certain parameters; maybe even color of certain elements or even calculating the result of

]ANN[ Vellum 0.16: Lots Of Documentation and Watching

2008-04-29 Thread Zed A. Shaw
Hi Everyone, Just putting out an announcement that I've released a new version of Vellum numbered 0.16. This version should be ready for people to use as not much of the internal structure has changed in a great many commits and it contains all the latest bug fixes. It also has the beginning of

Re: Question regarding Queue object

2008-04-29 Thread bockman
On 27 Apr, 12:27, Terry [EMAIL PROTECTED] wrote: Hello! I'm trying to implement a message queue among threads using Queue. The message queue has two operations: PutMsg(id, msg) #  this is simple, just combine the id and msg as one and put it into the Queue. WaitMsg(ids, msg) # this is the

Re: list.reverse()

2008-04-29 Thread Bruno Desthuilliers
Mark Bryan Yu a écrit : This set of codes works: x = range(5) x.reverse() x [4, 3, 2, 1, 0] But this doesn't: x = range(5).reverse() print x None This works just as expected - at least for anyone having read the doc. Please explain this behavior. range(5) returns a list from 0 to 4

patch barracks

2008-04-29 Thread ivory91044
patch barracks http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

cooking up crack

2008-04-29 Thread ivory91044
cooking up crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

driver detective crack keygen

2008-04-29 Thread ivory91044
driver detective crack keygen http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

autocad crack

2008-04-29 Thread ivory91044
autocad crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Given a string - execute a function by the same name

2008-04-29 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : I'm parsing a simple file and given a line's keyword, would like to call the equivalently named function. There are 3 ways I can think to do this (other than a long if/elif construct): 1. eval() 2. Convert my functions to methods and use getattr( myClass, method

SWIG Python undefined reference

2008-04-29 Thread Soren
Hi, I went through the SWIG tutorial for the example named simple. I managed to get to the first step, creating example_wrap.c using swig, and doing: gcc -fpic -c example_wrap.c -IC:\python24\include to create example_wrap.o But when I needed to compile the library file using: gcc -shared

sims patch

2008-04-29 Thread jean11821cleme
sims patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How to unget a line when reading from a file/stream iterator/generator?

2008-04-29 Thread Duncan Booth
George Sakkis [EMAIL PROTECTED] wrote: On Apr 28, 10:10 pm, [EMAIL PROTECTED] wrote: George, Is there an elegant way to unget a line when reading from a file/stream iterator/generator? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502304 That's exactly what I was looking

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread Panyasan
Hi, I am one of the two developers working on the xml-to-javascript converter (qxtransformer) John has mentioned and we are thrilled that our project has found a use in the PythonCard community. However, we have a problem getting PythonCard to work on our Macs (Mac OS 10.5 Leopard). We should

my personal translator crack

2008-04-29 Thread ivory91044
my personal translator crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding Queue object

2008-04-29 Thread Nick Craig-Wood
Terry [EMAIL PROTECTED] wrote: On Apr 28, 5:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: David [EMAIL PROTECTED] wrote: Another idea would be to have multiple queues, one per thread or per message type group. The producer thread pushes into the appropriate queues (through an

Re: Receive data from socket stream

2008-04-29 Thread Nick Craig-Wood
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But as I said in my first post, it's simple when you know the amount of data that you're going to receive, or when you'll receive data until the remote peer closes the connection. But what about receiving a message with undetermined length in a

Re: SWIG Python undefined reference

2008-04-29 Thread Soren
Ok I found out how to do it using: gcc -Ic:\python24\include -Lc:\python24\libs --shared example_wrap.c example.c -lpython24 -o _example.pyd but now I get a dynamic module does not define init function error when I try to import it into python.. Anyone?? Soren --

Re: Why is None = 0

2008-04-29 Thread Duncan Booth
=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: (FWIW, in 2.x, x=4?, it's None numbers anything else; numbers are ordered by value, everything else is ordered by type name, then by address, unless comparison functions are implemented). Quite apart from Jon pointing out

Re: Receive data from socket stream

2008-04-29 Thread Nick Craig-Wood
Hrvoje Niksic [EMAIL PROTECTED] wrote: Nick Craig-Wood [EMAIL PROTECTED] writes: Note that appending to a string is almost never a good idea, since it can result in quadratic allocation. My aim was clear exposition rather than the ultimate performance! That would normally be

Re: SWIG Python undefined reference

2008-04-29 Thread Soren
On Apr 29, 11:31 am, Soren [EMAIL PROTECTED] wrote: Ok I found out how to do it using: gcc -Ic:\python24\include -Lc:\python24\libs --shared example_wrap.c example.c -lpython24 -o _example.pyd but now I get a dynamic module does not define init function error when I try to import it into

Пояса массажеры с термо-эффе ктом

2008-04-29 Thread Золотой Клон
Неопреновый пояс для похудения из высококачественного материала тонизирует тело и заставляет досадные жировые складки исчезать с невероятной скоростью. Принцип воздействия саунта-белта схож с давно известными неопреновыми поясами для похудения. Но для того, чтобы неопреновый пояс помогал худеть, в

Learn python packaging for Ubuntu and Debian in the Ubuntu Open Week

2008-04-29 Thread SPE - Stani's Python Editor
Hi All, If you wrote some python code that you want to package or know a cool python application of which you like to make a deb installer, the python packaging session is all for you! Do you develop some cross- platform open source software and you want to give its popularity a boost by bringing

Re: SWIG Python undefined reference

2008-04-29 Thread Paul Melis
Instead of manually trying to get all the options to gcc correct you might want to look at using distutils for compiling your extension. See the SWIG documentation, section 30.2.2 (http://www.swig.org/Doc1.3/Python.html#Python_nn6) Paul Soren wrote: Hi, I went through the SWIG tutorial for

Re: Learn python packaging for Ubuntu and Debian in the Ubuntu Open Week

2008-04-29 Thread SPE - Stani's Python Editor
I forgot an important detail... This session will be hosted Thu 1 May at 21.00 UTC on IRC in #ubuntu- classroom. -- http://mail.python.org/mailman/listinfo/python-list

Zope/DTML Infuriating...

2008-04-29 Thread Jens
Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail level of php.net or Java API reference).

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: I've the checked that i'm referring to the variables correctly, so the only explanation i can come up with, is that '+' doesn't result in a string concatenation (with implicit typecast to string of the integer variable(this is a interpreted language after all)). No, sorry. You

Bollywood, Asian, Indie Films And More.

2008-04-29 Thread sureka
Bollywood, Asian, Indie Films And More. http://besthotmovies.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Given a string - execute a function by the same name

2008-04-29 Thread python
Bruno, Thank you for your detailed analysis. I learned a lot about Python reading everyone's responses. For development I'm using #5: globals().get(func) because its seamless to add additional functionality. But when I release into production I'm going to shift to #3: Place all my functions in

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani [EMAIL PROTECTED] wrote: Jens wrote: I've the checked that i'm referring to the variables correctly, so the only explanation i can come up with, is that '+' doesn't result in a string concatenation (with implicit typecast to string of the integer

Re: How to unget a line when reading from a file/stream iterator/generator?

2008-04-29 Thread python
Duncan, If speed is an issue then it may be better to avoid the test altogether ... snipped Thanks for your suggestion. Regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 1:59 pm, Marco Mariani [EMAIL PROTECTED] wrote: Jens wrote: I've the checked that i'm referring to the variables correctly, so the only explanation i can come up with, is that '+' doesn't result in a string concatenation (with implicit typecast to string of the integer

Re: simple chemistry in python

2008-04-29 Thread baoilleach
If you are familiar with parsing XML, much of the data you need is stored in the following file: http://bodr.svn.sourceforge.net/viewvc/*checkout*/bodr/trunk/bodr/elements/elements.xml?revision=34content-type=text%2Fplain This file is part of the Blue Obelisk Data Repository, an effort by several

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: You might have wrong assumptions from previous PHP experiences. 'x'+4 Traceback (most recent call last): File stdin, line 1, in module TypeError: cannot concatenate 'str' and 'int' objects ... and the non snobby answer would have been: ... dtml-var expr=_['prefix'] +

Re: Given a string - execute a function by the same name

2008-04-29 Thread Arnaud Delobelle
On 29 Apr, 13:10, [EMAIL PROTECTED] wrote: Bruno, Thank you for your detailed analysis. I learned a lot about Python reading everyone's responses. For development I'm using #5: globals().get(func) because its seamless to add additional functionality. But when I release into production I'm

Using Python to verify streaming tv/radio station links

2008-04-29 Thread donnyf
Hi guys. I've put together a website ( http://worldwidemediaproject.com ) that is a database of internet streaming tv/radio stations from around the world. I have built the site with all users in mind. The site should be Linux, Unix, Mac, Win, etc friendly as I do not hide the actual stream link

Re: Goodbying Spaces

2008-04-29 Thread Victor Subervi
On Fri, Apr 25, 2008 at 4:29 PM, Luis Zarrabeitia [EMAIL PROTECTED] wrote: Whats the result of using id.strip()?: In [1]: asdfasdf .strip() Out[1]: 'asdfasdf' It should work, I guess... It didn´t for some reason. That was the first thing I tried. Btw, you can write your code

Re: Given a string - execute a function by the same name

2008-04-29 Thread Max M
[EMAIL PROTECTED] skrev: Bruno, But when I release into production I'm going to shift to #3: Place all my functions in dictionary and lookup the function to be called. This technique will allow me to precisely control the dynamic nature of my application. Just one tiny note: What you will

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani [EMAIL PROTECTED] wrote: Jens wrote: You might have wrong assumptions from previous PHP experiences.   'x'+4 Traceback (most recent call last):    File stdin, line 1, in module TypeError: cannot concatenate 'str' and 'int' objects ... and the non

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani [EMAIL PROTECTED] wrote: Jens wrote: You might have wrong assumptions from previous PHP experiences.   'x'+4 Traceback (most recent call last):    File stdin, line 1, in module TypeError: cannot concatenate 'str' and 'int' objects ... and the non

Simple TK Question - refreshing the canvas when not in focus

2008-04-29 Thread blaine
Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is well, except one thing. When I am not in the program, and the program receives a draw command (from

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 2:45 pm, Marco Mariani [EMAIL PROTECTED] wrote: Jens wrote: You might have wrong assumptions from previous PHP experiences.   'x'+4 Traceback (most recent call last):    File stdin, line 1, in module TypeError: cannot concatenate 'str' and 'int' objects ... and the non

Re: Why is None = 0

2008-04-29 Thread blaine
On Apr 29, 5:32 am, Duncan Booth [EMAIL PROTECTED] wrote: =?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: (FWIW, in 2.x, x=4?, it's None numbers anything else; numbers are ordered by value, everything else is ordered by type name, then by address, unless comparison

Windows Printing using win32print

2008-04-29 Thread José Roberto
Olá KellyK! I have read your comentary about how to print with python in windows using win32print. I have trying to use in my problem : print a figure (.jpg, .png...etc) could you help me? Thanks a lot JRoberto-- http://mail.python.org/mailman/listinfo/python-list

Re: list.reverse()

2008-04-29 Thread Roy Smith
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Mark Bryan Yu a écrit : This set of codes works: x = range(5) x.reverse() x [4, 3, 2, 1, 0] But this doesn't: x = range(5).reverse() print x None This works just as expected - at least for

Re: list.reverse()

2008-04-29 Thread blaine
On Apr 29, 9:32 am, Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Mark Bryan Yu a écrit : This set of codes works: x = range(5) x.reverse() x [4, 3, 2, 1, 0] But this doesn't: x = range(5).reverse()

Re: Windows Printing using win32print

2008-04-29 Thread Tim Golden
José Roberto wrote: Olá KellyK! I have read your comentary about how to print with python in windows using win32print. I have trying to use in my problem : print a figure (.jpg, .png...etc) could you help me? Does this help?

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Bjoern Schliessmann
Martin v. Löwis wrote: e is an exception object, not a Unicode object. Er, sure, thanks for pointing that out. At first sight he should substitute e with e.message then since he tries to convert to string (for display?). Regards, Björn -- BOFH excuse #366: ATM cell has no roaming feature

Issue with regular expressions

2008-04-29 Thread Julien
Hi, I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = ' some words with and withoutquotes ' p = re.compile(magic_regular_expression)

Re: Zope/DTML Infuriating...

2008-04-29 Thread Marco Mariani
Jens wrote: Hey no worriest. Is this the tutorial you're referring to: http://docs.python.org/lib/typesmapping.html Is there anything better? That's the library reference - the one to keep under the pillow. It also documents the core -- i.e. builtin objects. As for the language semantics,

Re: list.reverse()

2008-04-29 Thread Bruno Desthuilliers
Roy Smith a écrit : (snip) The reasoning goes along the lines of, reverse in place is an expensive operation, so we don't want to make it too easy for people to do. At least that's the gist of what I got out of the argument the many times it has come up. IIRC, it's more along the line of

SSL through python. possible ?

2008-04-29 Thread TkNeo
I need to do SSL file transfer using python? Is there a library i can use ? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope/DTML Infuriating...

2008-04-29 Thread Christian Heimes
Jens schrieb: Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail level of php.net or Java API reference).

Re: simple chemistry in python

2008-04-29 Thread Aaron Watters
On Apr 29, 8:41 am, baoilleach [EMAIL PROTECTED] wrote: This file is part of the Blue Obelisk Data Repository, an effort by several chemistry software developers to share common information This ref is incredibly cool. Is there a guide or meta-index for similar open scientific data

Re: SSL through python. possible ?

2008-04-29 Thread Mike Driscoll
On Apr 29, 8:56 am, TkNeo [EMAIL PROTECTED] wrote: I need to do SSL file transfer using python? Is there a library i can use ? Thanks. Did you try Google? Here's a few links that look like possibilities: http://sandbox.rulemaker.net/ngps/m2/

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 1:57 am, Panyasan [EMAIL PROTECTED] wrote: Hi, I am one of the two developers working on the xml-to-javascript converter (qxtransformer) John has mentioned and we are thrilled that our project has found a use in the PythonCard community. However, we have a problem getting

Re: Issue with regular expressions

2008-04-29 Thread Paul McGuire
On Apr 29, 8:46 am, Julien [EMAIL PROTECTED] wrote: I'd like to select terms in a string, so I can then do a search in my database. query = '    some words  with and without    quotes    ' p = re.compile(magic_regular_expression)   $ --- the magic happens m = p.match(query) I'd like

Re: list.reverse()

2008-04-29 Thread Paul McGuire
On Apr 28, 1:12 pm, Mark Bryan Yu [EMAIL PROTECTED] wrote: This set of codes works: x = range(5) x.reverse() x [4, 3, 2, 1, 0] You can also use list slicing to get a reversed list: x = range(5) x [0, 1, 2, 3, 4] x[::-1] [4, 3, 2, 1, 0] -- Paul --

Colors for Rows

2008-04-29 Thread Victor Subervi
Hi; why doesn't this work? z = 3 for d in id: z += 1 if z % 4 == 0: bg = '#ff' elif z % 4 == 1: bg = '#d2d2d2' elif z % 4 == 2: bg = '#F6E5DF' else: bg = '#EAF8D5' try: print 'tr bgcolor=%s\n' % bg except: print 'tr\n' It never increments z!

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-29 Thread Eric Brunel
On Tue, 29 Apr 2008 15:22:12 +0200, blaine [EMAIL PROTECTED] wrote: Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is well, except one thing. When

Re: Question regarding Queue object

2008-04-29 Thread Terry
On Apr 29, 3:01 pm, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sun, 27 Apr 2008 03:27:59 -0700 (PDT), Terry [EMAIL PROTECTED] declaimed the following in comp.lang.python: I'm trying to implement a message queue among threads using Queue. The message queue has two operations: PutMsg(id,

Re: Issue with regular expressions

2008-04-29 Thread Robert Bossy
Julien wrote: Hi, I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = ' some words with and withoutquotes ' p =

Re: Question regarding Queue object

2008-04-29 Thread Terry
On Apr 29, 4:32 pm, [EMAIL PROTECTED] wrote: On 27 Apr, 12:27, Terry [EMAIL PROTECTED] wrote: Hello! I'm trying to implement a message queue among threads using Queue. The message queue has two operations: PutMsg(id, msg) # this is simple, just combine the id and msg as one and put

Re: Issue with regular expressions

2008-04-29 Thread cokofreedom
| # Double Quote Text |# match a double quote |(# - Two Possiblities: |\\. # match two backslashes followed by anything (include newline) ||# OR |[^]

Re: Given a string - execute a function by the same name

2008-04-29 Thread python
Hi Max, Thank you for pointing out the pattern of my request. Using your google query (http://www.google.dk/search?hl=enq=python+factory+pattern) I found the following description of what I'm doing. Command Dispatch Pattern http://www.suttoncourtenay.org.uk/duncan/accu/pythonpatterns.html#id26

Re: Issue with regular expressions

2008-04-29 Thread Paul Melis
Julien wrote: Hi, I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = ' some words with and withoutquotes ' p =

Re: list.reverse()

2008-04-29 Thread Diez B. Roggisch
The reasoning goes along the lines of, reverse in place is an expensive operation, so we don't want to make it too easy for people to do. At least that's the gist of what I got out of the argument the many times it has come up. It's not about the storage - it is about the

Re: Issue with regular expressions

2008-04-29 Thread Hrvoje Niksic
Julien [EMAIL PROTECTED] writes: I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = ' some words with and withoutquotes ' p =

Re: Issue with regular expressions

2008-04-29 Thread harvey . thomas
On Apr 29, 2:46 pm, Julien [EMAIL PROTECTED] wrote: Hi, I'm fairly new in Python and I haven't used the regular expressions enough to be able to achieve what I want. I'd like to select terms in a string, so I can then do a search in my database. query = '    some words  with and without  

Re: Question regarding Queue object

2008-04-29 Thread Terry
On Apr 29, 5:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: Terry [EMAIL PROTECTED] wrote: On Apr 28, 5:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: David [EMAIL PROTECTED] wrote: Another idea would be to have multiple queues, one per thread or per message type group. The

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-29 Thread blaine
On Apr 29, 10:36 am, Eric Brunel [EMAIL PROTECTED] wrote: On Tue, 29 Apr 2008 15:22:12 +0200, blaine [EMAIL PROTECTED] wrote: Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about

Re: Why is None = 0

2008-04-29 Thread Duncan Booth
blaine [EMAIL PROTECTED] wrote: On Apr 29, 5:32 am, Duncan Booth [EMAIL PROTECTED] wrote: =?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: (FWIW, in 2.x, x=4?, it's None numbers anything else; numbers are ordered by value, everything else is ordered by type name,

Re: Using Python to verify streaming tv/radio station links

2008-04-29 Thread alexelder
On Apr 29, 1:52 pm, [EMAIL PROTECTED] wrote: Hi guys. I've put together a website (http://worldwidemediaproject.com ) that is a database of internet streaming tv/radio stations from around the world. I have built the site with all users in mind. The site should be Linux, Unix, Mac, Win, etc

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread Panyasan
Christian, It appears you're missing a file. Where did you placed my program? I see that there are two places being mentioned: no resource file for /Users/bibliograph/Programme/PythonCard/tools/ layoutEditor/multipropertyEditor and File

Re: Given a string - execute a function by the same name

2008-04-29 Thread python
Arnaud, Just when I thought my solution couldn't get any better :) Thanks for that great tip and for an excellent demonstration of using a decorator. Regards, Malcolm snip You could avoid #5 from the start using a decorator: functions = {} def register(func): functions[func.__name__] =

PyExcerlerator details

2008-04-29 Thread A_H
Hi, I'm using PyExcelerator, and it's great, but I can't figure out a few things: (1) I set the cell style to '0.00%' but the style does not work. (2) I want to place a border around the cells( x1, y1, x2, y2 ) but I can't find any example of doing that. Well I do see ONE example, but it

Re: Zope/DTML Infuriating...

2008-04-29 Thread William Heymann
On Tuesday 29 April 2008, Jens wrote: Hello Everyone. dtml-let prefix='main' ul dtml-in expr=_.range(1,10) lidtml-var expr=_['prefix'] + _['sequence-item']/li /dtml-in /ul /dtml-let I think you are going to really regret doing things this way, it is only going to make your life

Re: File IO Issues, help :(

2008-04-29 Thread Kevin K
On Apr 29, 1:07 am, Kevin K [EMAIL PROTECTED] wrote: On Apr 29, 12:55 am, Peter Otten [EMAIL PROTECTED] wrote: Kevin K wrote: On Apr 29, 12:38 am, Eric Wertman [EMAIL PROTECTED] wrote: chuck in a jsfile.close(). The buffer isn't flushing with what you are doing now. jsfile.flush()

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes [EMAIL PROTECTED] wrote: Jens schrieb: Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail

Re: Zope/DTML Infuriating...

2008-04-29 Thread Jens
On Apr 29, 3:16 pm, Christian Heimes [EMAIL PROTECTED] wrote: Jens schrieb: Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for Zope/DTML/Python (at the detail

Who makes up these rules, anyway? (was: Python-URL! - weekly Python news and links (Apr 28))

2008-04-29 Thread Cameron Laird
In article [EMAIL PROTECTED], Gabriel Genellina [EMAIL PROTECTED] wrote: . . . Explicit variable declaration for functions: http://groups.google.com/group/comp.lang.python/browse_thread/thread/6c4a508edd2fbe04/

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Bjoern Schliessmann [EMAIL PROTECTED] wrote: Martin v. Löwis wrote: e is an exception object, not a Unicode object. Er, sure, thanks for pointing that out. At first sight he should substitute e with e.message then since he tries to convert to string (for

Re: Colors for Rows

2008-04-29 Thread D'Arcy J.M. Cain
On Tue, 29 Apr 2008 09:33:32 -0500 Victor Subervi [EMAIL PROTECTED] wrote: why doesn't this work? First, let me remove some blank lines to reduce scrolling. z = 3 for d in (1,2,3,4,5,6): I changed id to a sequence so that the example actually runs. Please run your examples first and cut

Re: Who makes up these rules, anyway?

2008-04-29 Thread Roel Schroeven
Cameron Laird schreef: In article [EMAIL PROTECTED], Gabriel Genellina [EMAIL PROTECTED] wrote: . . . Explicit variable declaration for functions:

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article [EMAIL PROTECTED], Donn Cave [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Martin v. Löwis [EMAIL PROTECTED] wrote: I have code like this: except Exception, e: self.setState(self.Failed, str(e)) which fails if the exception contains a unicode argument.

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-29 Thread John Henry
On Apr 29, 8:28 am, Panyasan [EMAIL PROTECTED] wrote: Christian, It appears you're missing a file. Where did you placed my program? I see that there are two places being mentioned: no resource file for /Users/bibliograph/Programme/PythonCard/tools/ layoutEditor/multipropertyEditor

python command mis-interprets arrow keys

2008-04-29 Thread Rahul
My python command line seems messed up. I can't seem to be able to use my backspace key nor my arrow keys. I only get control characters: ^[[A^[[D^[[D^[[D^[[C^[[C^[[C etc. I access my Linux box via a SecureCRT console. Only after opening the python interpreter does this occur. Linux command

  1   2   3   >