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.1"Acer 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 combin

]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

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 and

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

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 pro

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 > > > que

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

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 -- http://mail.python.org/mailm

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 poin

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

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

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

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 t

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). http://www.zope.org/Documentation/Books/Zope

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 real

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

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 ... > 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=34&content-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 "", line 1, in TypeError: cannot concatenate 'str' and 'int' objects > ... and the non snobby answer would have been: ... Sorry. Not trying to be snobbish,

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 pr

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 or

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 yo

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 "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

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 "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

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 a

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 "", line 1, in > >> TypeError: cannot concatenate 'str' and 'int' objects > > > ...

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

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 > >

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 thi

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? http://timgolden.me.uk/python/win32_how_do_i/print.html#rough_and_re

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 fe

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). > http://www.zope.

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/ http://pypgsql.sourceforge.net/misc/python-ss

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) > >

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 -- http://

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 '\n' % bg except: print '\n' It never increments z! Yet, if I print 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: >

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.compile(magic_reg

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

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=en&q=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.compile(magic_reg

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 in-place-modifi

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 "

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 an

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

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

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 ordere

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 "/Library/Python/2.5/site-packa

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 You could avoid #5 from the start using a decorator: functions = {} def register(func): functions[func.__name__] = func

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 erase

Re: Zope/DTML Infuriating...

2008-04-29 Thread William Heymann
On Tuesday 29 April 2008, Jens wrote: > Hello Everyone. > > > > > > > > > I think you are going to really regret doing things this way, it is only going to make your life much harder regardless of if you are using zpt or dtml by doing stuff like this inside the template. The most corr

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 do

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

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

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/6c4a508edd2fbe0

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

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 an

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: http://groups.google.com/group/comp.lang.python/browse_thread/t

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 cont

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/multi

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 l

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

2008-04-29 Thread Torsten Bronger
Hallöchen! Russell E. Owen writes: > [...] > > So...to repeat the original question, is there any simpler > unicode-safe replacement for str(exception)? Please show us the tracebacks you get becuae unicode(s) must fail, too, if there are non-ASCII characters involved. Tschö, Torsten. -- Torst

Import fails with python but succeeds with python -v

2008-04-29 Thread John Normoyle
Hi, I've noticed strange behaviour where cx_Oracle will fail to load when using "python" but it will succeed when using "python -v" while throwing "Unsatisfied code symbol" errors. This is for Python 2.5, Oracle 9.2 and cx_Oracle 4.3.1 on the platform HP-UX 11 Output for python: ImportError

Re: Issue with regular expressions

2008-04-29 Thread Matimus
On Apr 29, 6:46 am, 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 an

Re: Issue with regular expressions

2008-04-29 Thread Paul McGuire
On Apr 29, 9:20 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > 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

Simple import question about mac osx

2008-04-29 Thread jmDesktop
Hi, I have this code (learning from Core Python, Chun's book), module named chap2.py. class FooClass(object): version=0.1 def __init__(self, nm='John Doe'): self.name=nm print 'Created a class instance for ', nm def showname(self):

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

2008-04-29 Thread Sion Arrowsmith
Russell E. Owen <[EMAIL PROTECTED]> wrote: >No. e.message is only set if the exeption object receives exactly one >argument. And not always then: >>> e1 = Exception(u"\u00fe") >>> e1.message Traceback (most recent call last): File "", line 1, in ? AttributeError: Exception instance has no attr

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

2008-04-29 Thread python
Erik, > Perhaps I missed something earlier in the thread, but I really don't see the > need for that registry dict or the register decorator. Python already maintains a dictionary for each scope: The advantage of the decorator technique is that you explicitly declare which functions are eligible

Re: Issue with regular expressions

2008-04-29 Thread George Sakkis
On Apr 29, 9:46 am, 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 a

Re: Simple import question about mac osx

2008-04-29 Thread jmDesktop
On Apr 29, 1:16 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > Hi, I have this code (learning from Core Python, Chun's book), module > named chap2.py. > > class FooClass(object): >         version=0.1 > >         def __init__(self, nm='John Doe'): >                 self.name=nm >                 print

Re: Simple import question about mac osx

2008-04-29 Thread s0suk3
On Apr 29, 12:46 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > On Apr 29, 1:16 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > > > > > Hi, I have this code (learning from Core Python, Chun's book), module > > named chap2.py. > > > class FooClass(object): > > version=0.1 > > > def __init__(s

Re: Colors for Rows

2008-04-29 Thread Victor Subervi
On Tue, Apr 29, 2008 at 11:11 AM, D'Arcy J.M. Cain <[EMAIL PROTECTED]> wrote: > 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): > >

Re: Simple import question about mac osx

2008-04-29 Thread jmDesktop
On Apr 29, 1:54 pm, [EMAIL PROTECTED] wrote: > On Apr 29, 12:46 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > > > > > > > On Apr 29, 1:16 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > > > > Hi, I have this code (learning from Core Python, Chun's book), module > > > named chap2.py. > > > > class FooClass(

  1   2   >