Re: invoke user's standard mail client

2007-05-06 Thread Stefan Sonnenberg-Carstens
Gabriel Genellina schrieb: > En Fri, 04 May 2007 05:07:44 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > >> the simplest way to launch the user's standard mail client from a >> Python program is by creating a mailto: URL and launching the >> webbrowser: >> But this method is limi

Re: Python Binding

2007-05-06 Thread Stefan Sonnenberg-Carstens
Stefan Behnel schrieb: > Georg Grabler wrote: > >> There's a C library which i'd like to have python bindings for. I havn't >> known anything before about how to write python bindings for a C library. >> >> I succeeded now by using distutils to write the first bindings for functions >> and simil

Re: Python Binding

2007-05-06 Thread Stefan Sonnenberg-Carstens
Stefan Behnel schrieb: > Georg Grabler wrote: > >> There's a C library which i'd like to have python bindings for. I havn't >> known anything before about how to write python bindings for a C library. >> >> I succeeded now by using distutils to write the first bindings for functions >> and simil

Re: invoke user's standard mail client

2007-05-06 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens schrieb: > Gabriel Genellina schrieb: > >> En Fri, 04 May 2007 05:07:44 -0300, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> escribió: >> >> >> >>> the simplest way to launch the user's standard mail client from a >>> Python program is by creating a mailto: URL an

Re: Looping over lists

2007-05-06 Thread Gabriel Genellina
En Sat, 05 May 2007 05:15:32 -0300, kaens <[EMAIL PROTECTED]> escribió: > I think the for i in range() is more readable (Maybe because I'm > coming from a c-style syntax language background) - but what would > the benefits of using enumerate be (other that being more . . . > pythonesque?) If y

Re: FIXED: [EMAIL PROTECTED]

2007-05-06 Thread Martin v. Löwis
> """ > Error... > > There's been a problem with your request > > psycopg.ProgrammingError: ERROR: could not serialize access due to > concurrent update > > delete from browse_tally > """ If that happens, just try again. I don't know how to fix it, but if you retry, it should work. Regards,

Newbie prob: How to write a file with 3 threads?

2007-05-06 Thread est
I need to write a file using 3 threads simutaniously, e.g. Thread 1 write the first byte of test.bin with an "a", second thread write the second byte "b", third thread write the third byte "c". Anyone could give a little example on how to do that? I have my code, but it makes python intepreter cra

Re: Strange terminal behavior after quitting Tkinter application

2007-05-06 Thread Chris
On May 5, 2:21 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 4 May 2007 19:38:39 -0700, Chris <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > > > Thanks, but I was just explaining why I don't want to call mainloop(). > > In my original example, I can type Applicatio

Re: Newbie prob: How to write a file with 3 threads?

2007-05-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, est wrote: > I need to write a file using 3 threads simutaniously, e.g. Thread 1 > write the first byte of test.bin with an "a", second thread write the > second byte "b", third thread write the third byte "c". Anyone could > give a little example on how to do that? Simple

Re: How do I get type methods?

2007-05-06 Thread yavannadil
On May 5, 5:21 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > 'pyuno' objects are proxy objects that represent UNO objects, services, > and interfaces. Since all attribute lookups are handled by the UNO > bridge, the proxy object doesn't actually know what attributes it has, > which is why it won't

Did you read about that?

2007-05-06 Thread happy
you can take a look for this web sites http://www.imanway.com/vb/forumdisplay.php?f=90 http://www.geocities.com/islamone_l/index.htm or read this == What is Islam? ABOUT THE WORDS "ISLAM" AND "MUSLIM" The name of this religion is Islam, t

Re: change of random state when pyc created??

2007-05-06 Thread Dustan
On May 6, 1:00 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 06 May 2007 00:20:04 +, Alan Isaac wrote: > >> Should you not expect to get the same result each time? Is that not > >> the point of setting a constant seed each time you run the script? > > > Yes. That is the problem. > >

Re: Did you read about that?

2007-05-06 Thread Dustan
On May 6, 5:18 am, happy <[EMAIL PROTECTED]> wrote: > you can take a look for this web sites > > http://www.imanway.com/vb/forumdisplay.php?f=90 > > http://www.geocities.com/islamone_l/index.htm > > or read this > > == > > What is Islam? > > ABOUT THE

Re: change of random state when pyc created??

2007-05-06 Thread John Machin
On May 6, 9:41 pm, Dustan <[EMAIL PROTECTED]> wrote: > On May 6, 1:00 am, Steven D'Aprano > > > > <[EMAIL PROTECTED]> wrote: > > On Sun, 06 May 2007 00:20:04 +, Alan Isaac wrote: > > >> Should you not expect to get the same result each time? Is that not > > >> the point of setting a constant se

MROW Locking

2007-05-06 Thread Prateek
Can anyone direct me to a good resource on how to do MROW Locking efficiently in Python. The recipe at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413393 is actually quite inefficient (not sure if it is the code or MROW itself). I have a dictionary (a cache lets say or some sort of in

[python 2.4] unable to construct tuple with one item

2007-05-06 Thread Vyacheslav Maslov
Hi, all! I found out different behavior of python interpeter related to tuples and lists with one item only. I have simple example print type(()) it's ok, we have just constructed empty tuple print type((4)) but when i add exactly one item to my tuple i get atomaric int instead of tuple!!

All what you are looking for and much more

2007-05-06 Thread Savatage4ever
urmania http://urmania.ipbfree.com/ application | movies | games | mp3 | ebooks -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs and pdb after upgrading to Ubuntu Feisty

2007-05-06 Thread Alexander Schmolck
levander <[EMAIL PROTECTED]> writes: > Anybody can tell me who to get pdb working under emacs on Ubuntu > Feisty? This is not a direct answer to your question, but I'd recommend you try ipython (apt-get'able) and ipython.el; (manual install). Just enter ``pdb on`` in the interactive shell to end

Installation of eyeD3 on Windows (newbie)

2007-05-06 Thread phishboh
As a Python introduction exercise, I plan to write a script to automatically rename my music files according to the information in the ID3 tag (v2.X), and update the tag if necessary. To read/write ID3 tags, I found the eyeD3 library (http:// eyed3.nicfit.net/). However, I could not find any downlo

Re: Did you read about that?

2007-05-06 Thread Steven D'Aprano
On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > SPAM! > SPAM! > SPAM! > SPAM! > SPAM! > SPAM! > SPAM! > SPAM! Gosh, you think so? I'm glad we had you around to tell us, otherwise we might have thought it was about Python programming. Actually, many of us wouldn't even have seen it in the fir

Re: Did you read about that?

2007-05-06 Thread Dustan
On May 6, 8:20 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > > SPAM! > > SPAM! > > SPAM! > > SPAM! > > SPAM! > > SPAM! > > SPAM! > > SPAM! > > Gosh, you think so? I'm glad we had you around to tell us, otherwise we > might have thought it was a

Re: Did you read about that?

2007-05-06 Thread Martin P. Hellwig
Dustan wrote: > On May 6, 8:20 am, Steven D'Aprano > <[EMAIL PROTECTED]> wrote: >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: >>> SPAM! >>> SPAM! >>> SPAM! >>> SPAM! >>> SPAM! >>> SPAM! >>> SPAM! >>> SPAM! >> Gosh, you think so? I'm glad we had you around to tell us, otherwise we >> might ha

Re: BUSTED!!! 100% VIDEO EVIDENCE that WTC7 was controlled demolition!! NEW FOOTAGE!!! Ask yourself WHY havn't I seen this footage before?

2007-05-06 Thread The Great Attractor
On Sat, 05 May 2007 10:34:06 -0500, quasi <[EMAIL PROTECTED]> wrote: >On Sat, 05 May 2007 07:54:50 +0100, Eeyore ><[EMAIL PROTECTED]> wrote: > >> >> >>quasi wrote: >> >>> Gib Bogle wrote: >>> >>> >Ah, so the firefighters were in on the conspiracy! >>> >>> No, but the firefighters are very much awa

Re: Init style output with python?

2007-05-06 Thread Maxim Veksler
On 5/6/07, Tina I <[EMAIL PROTECTED]> wrote: > Maxim Veksler wrote: > > > Is there are frame work or something in python that would allow me to > > do this (quickly) ? > > If not, ideas how I should I be getting this boring task of: > > 1. get screen width > > You can look into the 'curses' module

Re: Installation of eyeD3 on Windows (newbie)

2007-05-06 Thread Max Erickson
[EMAIL PROTECTED] wrote: > I would highly appreciate if someone could help me with how to > proceed (step-by-step) to get started and use the eyeD3 library > in Windows? > > Many thanks in advance! > It appears that you need to do as follows: Extract the tar.gz to a temporary directory. rena

Re: newbie: copy base class fields

2007-05-06 Thread tmp123
On May 3, 4:57 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > Is it okay to copy them all at once? Like this: > > class B(A): > def __init__(self, a): > self.__dict__.update(a.__dict__) > self.v2 = 2 > Thanks a lot for the answers, they seem to agree with the requested funcitio

Re: [python 2.4] unable to construct tuple with one item

2007-05-06 Thread Facundo Batista
Vyacheslav Maslov wrote: > So, the main question is why using syntax like [X] python constuct list with > one item, but when i try to construct tuple with one item using similar > syntax (X) python do nothing? Because what determines that you actually have a tuple is the comma, not the parenthesi

Re: Plot with scipy

2007-05-06 Thread Lou Pecora
In article <[EMAIL PROTECTED]>, redcic <[EMAIL PROTECTED]> wrote: > I've already got this package. I just wanted to try something new. > > However, since you talk about it, I've got a question regarding this > package. The execution of the code stops after the line: > pylab.show() > which is off

Re: [python 2.4] unable to construct tuple with one item

2007-05-06 Thread Mel Wilson
Vyacheslav Maslov wrote: > So, the main question is why using syntax like [X] python constuct list > with > one item, but when i try to construct tuple with one item using similar > syntax (X) python do nothing? Because `(` and `)` are used in expressions to bracket sub-expressions. a = (4 + 3)

exporting a record from a database to a MS Word document.

2007-05-06 Thread Levi Campbell
Is there a way to export a record from a database kept with bsddb to MS Word, possibly with some type of formatting data? -- http://mail.python.org/mailman/listinfo/python-list

Re: Did you read about that?

2007-05-06 Thread gene tani
On May 6, 6:26 am, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > Dustan wrote: > > On May 6, 8:20 am, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SPAM! > >>> SP

problem with quoted strings while inserting into varchar field of database.

2007-05-06 Thread krishnakant Mane
hello, I finally got some code to push a pickled list into a database table. but now the problem is technically complex although possible to solve. the problem is that I can nicely pickle and store lists in a blob field with the help of dumps() for picklling into a string and then passing the strin

Error when using Custom Exception defined in a different python module.

2007-05-06 Thread pillappa
Hi, I am hitting this error consistently and don't know why it's happening. I would like to define all exceptions for my project in one file and use them across the project. Here's a sample - exceptions.py - class MyException(StandardError): def __init__(self, error): self.myerror =

Re: problem with quoted strings while inserting into varchar field of database.

2007-05-06 Thread Daniele Varrazzo
> I further discovered that the string variable that contains the > pickled object contains a lot of single quots "'" and this is what is > probably preventing the sql insert from succedding. can some one > suggest how to work around this problem? Every serious database driver has a complete and

Re: Error when using Custom Exception defined in a different python module.

2007-05-06 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: > Hi, > > I am hitting this error consistently and don't know why it's > happening. I would like to define all exceptions for my project in one > file and use them across the project. Here's a sample - > > exceptions.py - > from exception

Re: Python Binding

2007-05-06 Thread Nick Craig-Wood
Georg Grabler <[EMAIL PROTECTED]> wrote: > There's a C library which i'd like to have python bindings for. I havn't > known anything before about how to write python bindings for a C library. > > I succeeded now by using distutils to write the first bindings for functions > and similar. > >

tkinter - label widget text selection

2007-05-06 Thread rahulnag22
Hi, I guess this is a very trivial question -- I am using a label widget to display text (black font in a white background color). I am trying to use my mouse to scroll over the displayed text to select it, but tkinter does not allow me to do it. Is there a method/option to do this. Thanks Rahul -

Re: Error when using Custom Exception defined in a different python module.

2007-05-06 Thread pillappa
On May 6, 11:23 am, Rob Williscroft <[EMAIL PROTECTED]> wrote: > wrote innews:[EMAIL PROTECTED] > comp.lang.python: > > > Hi, > > > I am hitting this error consistently and don't know why it's > > happening. I would like to define all exceptions for my project in one > > file and use them across t

howto make Python list from numpy.array?

2007-05-06 Thread dmitrey
howto make Python list from numpy.array? Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto make Python list from numpy.array?

2007-05-06 Thread Terry Reedy
"dmitrey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | howto make Python list from numpy.array? I Googled 'numpy array Python list' and looked at the third hit (PythonBasics) and at the bottom found your answer. About 30 seconds or less. tjr -- http://mail.python.org/mai

Re: howto make Python list from numpy.array?

2007-05-06 Thread John Nagle
dmitrey wrote: > howto make Python list from numpy.array? > Thx, D. > lst = map(None, arr)// for 1D arrays. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: howto make Python list from numpy.array?

2007-05-06 Thread Amaury Forgeot d'Arc
Hello, John Nagle a écrit : > dmitrey wrote: >> howto make Python list from numpy.array? >> Thx, D. >> > > lst = map(None, arr)// for 1D arrays. Which can be expressed more simply as: lst = list(arr) -- Amaury -- http://mail.python.org/mailman/listinfo/python-list

Re: howto make Python list from numpy.array?

2007-05-06 Thread Robert Kern
Amaury Forgeot d'Arc wrote: > Hello, > > John Nagle a écrit : >> dmitrey wrote: >>> howto make Python list from numpy.array? >>> Thx, D. >>> >> lst = map(None, arr)// for 1D arrays. > > Which can be expressed more simply as: >lst = list(arr) For N-D arrays, that will give you a list

Re: howto make Python list from numpy.array?

2007-05-06 Thread dmitrey
Thanks all. I tried all the approaches but they don't work in my situation I have a variable x that can be x = 1 x = [1, 2, 3] x = numpy.array([1,2,3]) so all troubles are with 1st case >>> x=1 >>> list(x) Traceback (most recent call last): File "", line 1, in TypeError: iteration over non-seque

using boost to extend python with c++

2007-05-06 Thread mr_gees100_peas
Hi, I've been trying for days to make either boost.python or swig to work for me. The one I have gotten the closest to is boost. Note that this is for windows XP. I'm not much of an unix person besides doing simple ls and copy paste. What I have done is to download the boost library: C:\boost

WebBrowser: How to cast the document object

2007-05-06 Thread zdp
Hi, all, My project is based on wxPython, and I need an IE control (i.e. WebBrowser ActiveX control). Although the wxPython implements a wrapped version (wx.lib.iewin.IEHtmlWindow), but it doesn't meet all my demands, because I need to custom many behaviors of the control. So I thought I should u

Re: tkinter - label widget text selection

2007-05-06 Thread Rob Wolfe
[EMAIL PROTECTED] writes: > Hi, > I guess this is a very trivial question -- > I am using a label widget to display text (black font in a white > background color). I am trying to use my mouse to scroll over the > displayed text to select it, but tkinter does not allow me to do it. > Is there a me

Re: Newbie prob: How to write a file with 3 threads?

2007-05-06 Thread Flavio Preto
Is it not possible to acomplish this with a token-based algorithm? With 3 Threads: A, B and C Thread A start with Token. Thread with the token writes the byte and send the token to the next Or python has any issues to a file object shared among a few threads? []'s Flavio On 5/6/07, Marc 'Blac

Re: howto make Python list from numpy.array?

2007-05-06 Thread Robert Kern
dmitrey wrote: > Thanks all. > I tried all the approaches but they don't work in my situation > I have a variable x that can be > x = 1 > x = [1, 2, 3] > x = numpy.array([1,2,3]) > so all troubles are with 1st case x=1 list(x) > Traceback (most recent call last): > File "", line 1, in

c macros in python.

2007-05-06 Thread noagbodjivictor
Hey, I'm writing a script to generate code. I'm a bit tired of typing outfile.write(). Does python have a way to c-like macros? Every instance of o(...) in the code will be replaced by outfile.write(...)? -- http://mail.python.org/mailman/listinfo/python-list

Re: using boost to extend python with c++

2007-05-06 Thread noagbodjivictor
On May 6, 4:12 pm, "mr_gees100_peas" <[EMAIL PROTECTED]> wrote: > Hi, > >I've been trying for days to make either boost.python or swig to > work for me. The one I have gotten the closest to is boost. Note that > this is for windows XP. I'm not much of an unix person besides doing > simple ls an

Re: c macros in python.

2007-05-06 Thread Amaury Forgeot d'Arc
[EMAIL PROTECTED] a écrit : > Hey, > > I'm writing a script to generate code. I'm a bit tired of typing > outfile.write(). Does python have a way to c-like macros? Every > instance of o(...) in the code will be replaced by outfile.write(...)? First: Python has no macro facility. But in this

Re: c macros in python.

2007-05-06 Thread John Machin
On May 7, 7:01 am, [EMAIL PROTECTED] wrote: > Hey, > > I'm writing a script to generate code. I'm a bit tired of typing > outfile.write(). Does python have a way to c-like macros? Every > instance of o(...) in the code will be replaced by outfile.write(...)? Functions and methods are first-cla

Re: c macros in python.

2007-05-06 Thread noagbodjivictor
Great python!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie prob: How to write a file with 3 threads?

2007-05-06 Thread MRAB
On May 6, 9:51 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, est wrote: > > I need to write a file using 3 threads simutaniously, e.g. Thread 1 > > write the first byte of test.bin with an "a", second thread write the > > second byte "b", third thread write the t

Re: c macros in python.

2007-05-06 Thread ici
On May 7, 12:01 am, [EMAIL PROTECTED] wrote: > Hey, > > I'm writing a script to generate code. I'm a bit tired of typing > outfile.write(). Does python have a way to c-like macros? Every > instance of o(...) in the code will be replaced by outfile.write(...)? All in Python is pointer to object,

Re: Error in python.org homepage.

2007-05-06 Thread Steve Holden
Terry Reedy wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | Hi to all!!! > | > | I sended an email to webmaster at python dot org, but was blocked... > | why? > > No idea > I doubt very much that the poster was blocked. It's likely that he received an email auto-r

Re: unable to construct tuple with one item

2007-05-06 Thread MRAB
On May 6, 4:04 pm, Mel Wilson <[EMAIL PROTECTED]> wrote: > Vyacheslav Maslov wrote: > > So, the main question is why using syntax like [X] python constuct list > > with > > one item, but when i try to construct tuple with one item using similar > > syntax (X) python do nothing? > > Because `(` and

Re: exporting a record from a database to a MS Word document.

2007-05-06 Thread ici
Levi Campbell wrote: > Is there a way to export a record from a database kept with bsddb to > MS Word, possibly with some type of formatting data? import win32com.client try: import psyco; psyco.full() except ImportError: pass app = win32com.client.Dispatch("Word.Application") app.Visible = Tru

Re: exporting a record from a database to a MS Word document.

2007-05-06 Thread ici
Levi Campbell wrote: > Is there a way to export a record from a database kept with bsddb to > MS Word, possibly with some type of formatting data? import win32com.client try: import psyco; psyco.full() except ImportError: pass app = win32com.client.Dispatch("Word.Application") app.Visible = Tru

Re: WebBrowser: How to cast the document object

2007-05-06 Thread Roger Upole
"zdp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, all, > > My project is based on wxPython, and I need an IE control (i.e. > WebBrowser ActiveX control). Although the wxPython implements a > wrapped version (wx.lib.iewin.IEHtmlWindow), but it doesn't meet all > my demands, be

msbin to ieee

2007-05-06 Thread revuesbio
Hi Does anyone have the python version of the conversion from msbin to ieee? Thank u -- http://mail.python.org/mailman/listinfo/python-list

Re: Did you read about that?

2007-05-06 Thread ici
On May 6, 8:55 pm, gene tani <[EMAIL PROTECTED]> wrote: > On May 6, 6:26 am, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote: > > > > > Dustan wrote: > > > On May 6, 8:20 am, Steven D'Aprano > > > <[EMAIL PROTECTED]> wrote: > > >> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote: > > >>> SPAM! > > >>

Re: My newbie annoyances so far

2007-05-06 Thread Alex Martelli
John Nagle <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: > > > >>The CPython implementation is unreasonably slow compared > >>to good implementations of other dynamic languages such > >>as LISP and JavaScript. > > > > > > Why

Re: msbin to ieee

2007-05-06 Thread Gabriel Genellina
En Sun, 06 May 2007 18:44:07 -0300, revuesbio <[EMAIL PROTECTED]> escribió: > Does anyone have the python version of the conversion from msbin to > ieee? I imagine this will be done just once - msbin is a really old format. Instead of coding the conversion in Python, you could: - write a small

Re: unable to construct tuple with one item

2007-05-06 Thread Steven D'Aprano
On Sun, 06 May 2007 14:26:46 -0700, MRAB wrote: > If it's the comma that makes the tuple, then wouldn't [1, 2] make a 2- > tuple in a list, ie == [(1, 2)]? Hmm... Yes, Python creates the tuple 1,2 and then the square brackets turn it into a list. I doubt the Python compiler is actually so ineff

Re: howto make Python list from numpy.array?

2007-05-06 Thread Steven D'Aprano
On Sun, 06 May 2007 13:06:56 -0700, dmitrey wrote: > Thanks all. > I tried all the approaches but they don't work in my situation > I have a variable x that can be > x = 1 > x = [1, 2, 3] > x = numpy.array([1,2,3]) > so all troubles are with 1st case And yet your question was about the third case

New Skype 4.1 Alpha released for linux.

2007-05-06 Thread pickylee123
Skype 4.1 Alpha has been released for linux users. It has all the usual features but some has unresolved bugs. http://www.speedateauction.com/blog/blog_detail?blog_id=74315&user_id=1356 -- http://mail.python.org/mailman/listinfo/python-list

Re: Error in python.org homepage.

2007-05-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Terry Reedy wrote: >> <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> | Hi to all!!! >> | >> | I sended an email to webmaster at python dot org, but was blocked... >> | why? >> >> No idea > >I doubt v

Re: Emacs and pdb after upgrading to Ubuntu Feisty

2007-05-06 Thread R. Bernstein
levander <[EMAIL PROTECTED]> writes: > I've been using pdb under emacs on an Ubuntu box to debug python > programs. I just upgraded from Ubuntu Edgy to Feisty and this combo > has stopped working. Python is at 2.5.1 now, and emacs is at 21.41.1. If I had to take a guess the big change would be

Re: My newbie annoyances so far

2007-05-06 Thread John Nagle
Alex Martelli wrote: > John Nagle <[EMAIL PROTECTED]> wrote: > > >>[EMAIL PROTECTED] wrote: >> >>>On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: >>> >>> The CPython implementation is unreasonably slow compared to good implementations of other dynamic languages such as LISP

Re: Plot with scipy

2007-05-06 Thread Kevin T. Ryan
On May 4, 8:53 am, redcic <[EMAIL PROTECTED]> wrote: > Hi all, > > I've just downloaded scipy v 0.5.2 and I would like to be able to draw > plots. I've tried: > import scipy.gplt > import scipy.plt > import scipy.xplt > > and none of them work. Are these modules still included in scipy ? If > not,

default test method name in unittest framework

2007-05-06 Thread Vyacheslav Maslov
Hi, all! i have question related to python's unit testing framework. Take a look at unittest.TestCase class. The main method which contains all code related to test case execution have name "run". But in the same time constructor of unittest.TestCase class have param methodName with default valu

Re: unable to construct tuple with one item

2007-05-06 Thread Vyacheslav Maslov
Guys, thanks a lot for you answers -- http://mail.python.org/mailman/listinfo/python-list

Re: msbin to ieee

2007-05-06 Thread John Machin
On May 7, 7:44 am, revuesbio <[EMAIL PROTECTED]> wrote: > Hi > Does anyone have the python version of the conversion from msbin to > ieee? > Thank u Yes, Google has it. Google is your friend. Ask Google. It will lead you to such as: http://mail.python.org/pipermail/python-list/2005-August/337817.

Re: My newbie annoyances so far

2007-05-06 Thread Alex Martelli
John Nagle <[EMAIL PROTECTED]> wrote: ... > The CPython implementation is unreasonably slow compared > to good implementations of other dynamic languages such > as LISP and JavaScript. ... > >>Tamarin is a just-in-time compiler for Javascript. > > > > ...and is not yet released,

Re: My newbie annoyances so far

2007-05-06 Thread Isaac Gouy
On May 6, 6:09 pm, John Nagle <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: > > John Nagle <[EMAIL PROTECTED]> wrote: > > >>[EMAIL PROTECTED] wrote: > > >>>On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: > > The CPython implementation is unreasonably slow compared > to good im

import conflict

2007-05-06 Thread rplzqx402
Hello, I have a problem where I need to set up two separate Python projects that each live under the same package. Once they are distributed, they will live under the same filesystem path, but during development, they are separated. For example: proj1/lib/pkg/foo/mod1.py proj2/lib/pkg/bar/

Beginner question on threads - solved

2007-05-06 Thread Teresa Hardy
If there is the possibility that the same thread had acquired the lock earlier, you should use an RLock instead. Gabriel, Thanks for the great hint. I didn't find RLock in my initial reading. So as I read up on RLock, I did a quick search on vlock. It turns out that I was using vlock as a varia

Re: My newbie annoyances so far

2007-05-06 Thread Neil Hodgson
Alex Martelli: > Can you run a generic benchmark "inside the current implementation of > Flash" to check out its Javascript performance? I can't, so, ... I can't either (without going to a lot of effort) so here is a page comparing SpiderMonkey and Tamarin from someone with an adobe.com add

Re: import conflict

2007-05-06 Thread Stefan Sonnenberg-Carstens
[EMAIL PROTECTED] schrieb: > Hello, > > I have a problem where I need to set up two separate Python projects > that each live under the same package. Once they are distributed, > they will live under the same filesystem path, but during development, > they are separated. > > For example: >proj

Re: import conflict

2007-05-06 Thread Stefan Sonnenberg-Carstens
[EMAIL PROTECTED] schrieb: > Hello, > > I have a problem where I need to set up two separate Python projects > that each live under the same package. Once they are distributed, > they will live under the same filesystem path, but during development, > they are separated. > > For example: >proj

Re: Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up."

2007-05-06 Thread joseph2k
mike3 wrote: > On May 3, 7:22 pm, The Great Attractor > <[EMAIL PROTECTED]> wrote: >> On 3 May 2007 08:53:39 -0700, malibu <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >On May 3, 12:18 am, Eric Gisse <[EMAIL PROTECTED]> wrote: >> >> On May 2, 10:14 pm, malibu <[EMAIL PROTECTED]> wrote: >> >> >> >

Re: DiffLib Question

2007-05-06 Thread whitewave
Hello, I am currently doing the third option. Doing file.read() to both file to be compared then feed the result to the compare function. Let me give you a brief sample of what I want to achieve. Using this code >>> diffline=[] >>> fileDiff = difflib.Differ().compare(f1, f2) >>> diffline = list(

Re: Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up."

2007-05-06 Thread schoenfeld . one
On May 3, 4:14 pm, malibu <[EMAIL PROTECTED]> wrote: > On May 2, 9:46 pm, Eric Gisse <[EMAIL PROTECTED]> wrote: > > > On May 2, 7:10 pm, Midex <[EMAIL PROTECTED]> wrote: > > > [...] > > > I guess the explanation that people were looking at the building and > > watching its' structure deform is too

Re: My newbie annoyances so far

2007-05-06 Thread John Nagle
Isaac Gouy wrote: > On May 6, 6:09 pm, John Nagle <[EMAIL PROTECTED]> wrote: > >>Alex Martelli wrote: >> >>>John Nagle <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> >On Apr 27, 9:07 am, John Nagle <[EMAIL PROTECTED]> wrote: >> >>The CPython implementation is unreasonably sl

CGI python use "under a curse"

2007-05-06 Thread Adrian Smith
While waiting for my paid-for web-hosting company to get back to me about my difficulties running python scripts on their servers... http://groups.google.com/group/comp.lang.python/browse_frm/thread/39b52bcf0dffec4c/4ff805bf283acc15?lnk=gst&q=adrian+smith&rnum=1&hl=en#4ff805bf283acc15 ...I went and

Fingerprint Verification System

2007-05-06 Thread Madhu Alagu
Hello, Any Fingerprint module for python. Is it possible to generate python module using FVS (http:// fvs.sourceforge.net/index.html) Thanks Madhu Alagu -- http://mail.python.org/mailman/listinfo/python-list

Re: My newbie annoyances so far

2007-05-06 Thread Alex Martelli
Neil Hodgson <[EMAIL PROTECTED]> wrote: > Alex Martelli: > > > Can you run a generic benchmark "inside the current implementation of > > Flash" to check out its Javascript performance? I can't, so, ... > > I can't either (without going to a lot of effort) so here is a page > comparing Spide

Re: import conflict

2007-05-06 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > Hello, > > I have a problem where I need to set up two separate Python projects > that each live under the same package. Once they are distributed, > they will live under the same filesystem path, but during development, > they are separated. > > For example: >p

Re: invoke user's standard mail client

2007-05-06 Thread [EMAIL PROTECTED]
On May 6, 9:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > On Windows you can use MAPI. But how? I could not find any starting point. I found examples about sending mail directly, which gives me the impression that MAPI is just Microsoft's version of SMTP. This is not what I need. I need

Re: invoke user's standard mail client

2007-05-06 Thread [EMAIL PROTECTED]
On May 6, 10:08 am, Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]> wrote: > Stefan Sonnenberg-Carstens schrieb: > > > Gabriel Genellina schrieb: > > >> En Fri, 04 May 2007 05:07:44 -0300, [EMAIL PROTECTED] > >> <[EMAIL PROTECTED]> escribió: > > >>> the simplest way to launch the user's standard mai

Re: Counting

2007-05-06 Thread Andy
.o0 -- http://mail.python.org/mailman/listinfo/python-list

Re: invoke user's standard mail client

2007-05-06 Thread [EMAIL PROTECTED]
On May 4, 11:42 am, Tim Golden <[EMAIL PROTECTED]> wrote: > I'm going to stick my neck out and say: I doubt > if there's one recognised, approved method. That > would require every email client to have a way > of accepting a command which said "Open up a new > email and put this, this, and this int

Re: CGI python use "under a curse"

2007-05-06 Thread Steven D'Aprano
On Sun, 06 May 2007 21:30:16 -0700, Adrian Smith wrote: > The support guy looked at it and gave me this: > > Traceback (most recent call last): > File "python1.cgi", line 6, in ? > print form["essay"].value > File "/usr/local/lib/python2.4/cgi.py", line 559, in __getitem__ raise > KeyError, key >

Examples / Links needed

2007-05-06 Thread Andy
Gurus, I'm looking for definite examples (pardon me if I'm not clear here) on Stack class...Somewhat like this : class Stack(object): def __init__(self__) self.__contents = [] and ad hoc implementation of a class based on number system like for example somewhat like this def __

Help creating Tiger hash function in Python

2007-05-06 Thread Mark Livingstone
Hello! I am a Uni student and for a project in Information Systems Security due in just under two weeks, I have tried to make a Python version of the Biham / Anderson Tiger Hash function. I have put the original C source and my two files Tiger.py and doHash.py on my website: http://www.users.on.n

Problem to Download ftp file

2007-05-06 Thread Shakil Ahmed
hi Actually i need to know that how can i download a ftp file from ncbi by using python module ftputil. please help me. Thanks regards, Shakil import ftputil host = ftputil.FTPHost('ftp.ncbi.nih.gov/repository/OMIM/morbidmap', 'anonymous', 'password') The Error message is: raise FTPOSErro

PChess 0.9

2007-05-06 Thread majeed rana
I want pchess 0.9-- http://mail.python.org/mailman/listinfo/python-list

Re: CGI python use "under a curse"

2007-05-06 Thread Adrian Smith
On May 7, 2:30 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 06 May 2007 21:30:16 -0700, Adrian Smith wrote: > It is NOT the same error. There are NO syntax errors in the script, there > is a runtime error. The so-called administrator is wrong: you can't use > Perl to test just any old

  1   2   >