about framework

2007-02-26 Thread memcached
Python has some web framework.I'm not familiar with all of them. Do you think which is best popular of them?Thanks. ** AOL now offers free email to everyone. Find out more about what's free from AOL at http://www.aol.com. -- http://mail.python.org/mailman/li

Re: Nested Parameter Definitions

2007-02-26 Thread Paddy
On Feb 25, 11:41 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > Just looks like an extension of the normal tuple unpacking feature > of the language. > Yep, it looks like good Python to me too. Maybe the tutorial could be extended to cover this form of parameter too? It would be good

Re: Question about idiomatic use of _ and private stuff.

2007-02-26 Thread Eric Brunel
On Sun, 25 Feb 2007 22:12:52 +0100, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Steven W. Orr a écrit : >> I understand that two leading underscores in a class attribute make the >> attribute private. > > Nope. It doesn't make it "private", it mangles the attribute name with > the class

Re: Having multiple instances of a single application start a single instance of another one

2007-02-26 Thread Eric Brunel
On Fri, 23 Feb 2007 23:39:03 +0100, Troy Melhase <[EMAIL PROTECTED]> wrote: >> The first time A starts, it should open a B process and start >> communicating with it. All other times an A instance starts it should >> simply talk with the B that already is open. > > B should write its process id

Re: help regarding python and jsp

2007-02-26 Thread Ant
On Feb 26, 6:41 am, [EMAIL PROTECTED] wrote: > Hi, > i am working with jsp .. > i wanna help regarding how to import or how to call python modules to > jsp You are aware that JSP's are a Java technology, and not Python. And that they are a templating language in themselves. And that scriptlets (J

Re: compile python with sqlite3

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nader Emami wrote: > L.S., > > I have to compile (install) locally Python 2.5, because I don't have > 'root' permission. Besides I would use 'sqlite3' as a database for > TurboGears/Django. I have installed 'sqlite3' somewhere on my Linux > (/path/to/s

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread dixkey
On Feb 26, 6:32 am, Tech HR <[EMAIL PROTECTED]> wrote: > Our > website is currently a LAMP appication with P=Python. We are looking for > bright motivated people who know or are willing to learn Python and/or > Linux, Apache and MySQL system administration skills. (And if you want > to convince us

Re: help regarding python and jsp

2007-02-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > i am working with jsp .. > i wanna help regarding how to import or how to call python modules to > jsp > > if a piece of code is availabe will be very helpful for me jsp is Java. Python is ... Python. There is Jython available, a python-interpreter running in

Re: writing a file:newbie question

2007-02-26 Thread kavitha thankaian
Hi All, Thanks for your reply Gabriel ,,, I just had to use a backslash character to write newline in the proper loop.So I could solve that problem.But now my question is I would like to delete the comma at the end. say for example,,i have a file test.txt and the file has the list

Re: The Python interactive interpreter has no command history

2007-02-26 Thread ThomasC
Thank you a lot! I will try add readline library in my system. Thank you. On 2月16日, 上午1時13分, Laurent Rahuel <[EMAIL PROTECTED]> wrote: > Hi, > > You need to have readline installed. > > Laurent > > ThomasCwrote: -- http://mail.python.org/mailman/listinfo/python-list

newbie question(file-delete trailing comma)

2007-02-26 Thread kavitha thankaian
hi, i have a file which has the contents as follows: a,b,c,d, a1,b1,c1,d1, a2,b2,c2,d2, i would like to delete all the trailing commas,, if someoneknows pls help me,, kavitha - Here’s a new way to f

Re: newbie question(file-delete trailing comma)

2007-02-26 Thread Mohammad Tayseer
in_file = open('in.txt') out_file = open('out.txt', 'w') for line in in_file: print >> out_file, line.strip(',') kavitha thankaian <[EMAIL PROTECTED]> wrote: hi, i have a file which has the contents as follows: a,b,c,d, a1,b1,c1,d1, a2,b2,c2,d2, i would like to delete all

Re: newbie question(file-delete trailing comma)

2007-02-26 Thread Robin Becker
kavitha thankaian wrote: > hi, > > i have a file which has the contents as follows: > > a,b,c,d, > a1,b1,c1,d1, > a2,b2,c2,d2, > > i would like to delete all the trailing commas,, > > if someoneknows pls help me,, > > kavitha .. I often use sed for such small

Re: Help Required for Choosing Programming Language

2007-02-26 Thread sturlamolden
On Feb 24, 7:04 pm, Thomas Bartkus <[EMAIL PROTECTED]> wrote: > Most user apps. require 95% of coding effort to provide a usable user > interface and 5% effort on the algorithmic meat. The "afterwards" you > allude to. So why do we still endure so much programming effort on the > unimportant part

Re: Help on object scope?

2007-02-26 Thread Duncan Booth
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > You can interact just fine, just qualify the objects with the module > names. So in q, you need to use p.r instead of just r. No. When p.py is being run as a script, the module you need to access is __main__. Much better to put the globals into a

Re: Pep 3105: the end of print?

2007-02-26 Thread Neil Cerutti
On 2007-02-23, I V <[EMAIL PROTECTED]> wrote: > On Tue, 20 Feb 2007 10:46:31 -0800, Beliavsky wrote: >> I think the C and C++ committees also take backwards >> compatibility seriously, in part because they know that >> working programmers will ignore them if they break too much >> old code. > > Whi

[OT] python notation in new NVIDIA architecture

2007-02-26 Thread Daniel Nogradi
Something funny: The new programming model of NVIDIA GPU's is called CUDA and I've noticed that they use the same __special__ notation for certain things as does python. For instance their modified C language has identifiers such as __device__, __global__, __shared__, etc. Is it a coincidence? Pro

Re: [OT] python notation in new NVIDIA architecture

2007-02-26 Thread James Stroud
Daniel Nogradi wrote: > Something funny: > > The new programming model of NVIDIA GPU's is called CUDA and I've > noticed that they use the same __special__ notation for certain things > as does python. For instance their modified C language has identifiers > such as __device__, __global__, __share

comp post

2007-02-26 Thread john smith
comp post -- http://mail.python.org/mailman/listinfo/python-list

a=b change b a==b true??

2007-02-26 Thread rstupplebeen
I do not have a clue what is happening in the code below. >>> a=[[2,4],[9,3]] >>> b=a >>> [map(list.sort,b)] [[None, None]] >>> b [[2, 4], [3, 9]] >>> a [[2, 4], [3, 9]] I want to make a copy of matrix a and then make changes to the matrices separately. I assume that I am missing a fundamental c

Re: a=b change b a==b true??

2007-02-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I do not have a clue what is happening in the code below. > a=[[2,4],[9,3]] b=a [map(list.sort,b)] > [[None, None]] b > [[2, 4], [3, 9]] a > [[2, 4], [3, 9]] > > I want to make a copy of matrix a and then make changes to the > matrices separate

Re: a=b change b a==b true??

2007-02-26 Thread Chris Mellon
On 26 Feb 2007 05:50:24 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I do not have a clue what is happening in the code below. > > >>> a=[[2,4],[9,3]] > >>> b=a > >>> [map(list.sort,b)] > [[None, None]] > >>> b > [[2, 4], [3, 9]] > >>> a > [[2, 4], [3, 9]] > > I want to make a copy of matr

Re: [OT] python notation in new NVIDIA architecture

2007-02-26 Thread Daniel Nogradi
> > Something funny: > > > > The new programming model of NVIDIA GPU's is called CUDA and I've > > noticed that they use the same __special__ notation for certain things > > as does python. For instance their modified C language has identifiers > > such as __device__, __global__, __shared__, etc. I

Copy a module build to another machine

2007-02-26 Thread bg_ie
Hi, I have downloaded the source for PyXML-0.8.4, which has no binaries available for Python 2.5. Therefore I built it myself doing something like this - python2.5 setup.py build python2.5 setup.py install having installed cygwin (with gcc). Now lets say I'd like to install PyXML-0.8.4 on a numb

Re: a=b change b a==b true??

2007-02-26 Thread Philipp Pagel
[EMAIL PROTECTED] wrote: > I do not have a clue what is happening in the code below. > >>> a=[[2,4],[9,3]] > >>> b=a > >>> [map(list.sort,b)] > [[None, None]] > >>> b > [[2, 4], [3, 9]] > >>> a > [[2, 4], [3, 9]] > I want to make a copy of matrix a and then make changes to the > matrices separate

Re: a=b change b a==b true??

2007-02-26 Thread bayer . justin
If you want to copy lists, you do it by using the [:] operator. e.g.: >>> a = [1,2] >>> b = a[:] >>> a [1, 2] >>> b [1, 2] >>> b[0] = 2 >>> a [1, 2] >>> b [2, 2] If you want to copy a list of lists, you can use a list comprehension if you do not want to use the copy module: >>> a = [[1,2],[3,4]]

Re: The Python interactive interpreter has no command history

2007-02-26 Thread Paul Boddie
On 16 Feb, 11:40, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il Thu, 15 Feb 2007 15:14:00 -0200, Eduardo "EdCrypt" O. Padoan ha scritto: > > > Are you using Ubuntu? The last comes with 2.4.x and 2.5. This only > > occurs on 2.5. This happens when you compile Python with libreadline > > installed, A

Re: Copy a module build to another machine

2007-02-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > > I have downloaded the source for PyXML-0.8.4, which has no binaries > available for Python 2.5. Therefore I built it myself doing something > like this - > > python2.5 setup.py build > python2.5 setup.py install > > having installed cygwin (with gcc). Now lets

Re: a=b change b a==b true??

2007-02-26 Thread rstupplebeen
All, It works great now. Thank you for all of your incredibly quick replies. Rob -- http://mail.python.org/mailman/listinfo/python-list

wxPython - 2 x foldpanelbar with tree...

2007-02-26 Thread w.p.
Hello! I have some trouble with my GUI. I have left panel with foldpanelbar, but i need one item but not collapsed - simple button. I split my left panel into two foldpanelbars with one button between. But a have trouble... Sorry for english :/ Simple code: #-

Python / Socket speed

2007-02-26 Thread [EMAIL PROTECTED]
Seems like sockets are about 6 times faster on OpenSUSE than on Windows XP in Python. http://pyfanatic.blogspot.com/2007/02/socket-performance.html Is this related to Python or the OS? /MSkou -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question(file-delete trailing comma)

2007-02-26 Thread kavitha thankaian
the input file what i have is already opened with write mode. say i have a file input.txt which has a,b,c,d, and i need the output also in the same input.txt,,ie., the trailing comma in the input.txt file should be deleted,,,i dont need a file output.txt,,, is there a way??

Re: Python / Socket speed

2007-02-26 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Seems like sockets are about 6 times faster on OpenSUSE than on > Windows XP in Python. > > http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > Is this related to Python or the OS? It's 6 times faster even when not using

How to delete PyGTK ComboBox entries?

2007-02-26 Thread Maël Benjamin Mettler
Hello list! I need to repopulate PyGTK ComboBox on a regular basis. In order to do so I have to remove all the entries and then add the new ones. I tried to remove all entries like that: def clear_comboboxes(boxreference): try: while True: boxreference.remove_text(0) e

Re: Python / Socket speed

2007-02-26 Thread Paul Boddie
On 26 Feb, 15:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Seems like sockets are about 6 times faster on OpenSUSE than on > Windows XP in Python. > > http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > Is this related to Python or the OS? >From the output: > TCP window size

Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
Hi there, I have a problem with setting environment variable in my script that uses qt library. For this library I have to define a path to tell the script whre to find it. I have a script called "shrink_bs_070226" that looks like this: ** import sys, re, glob, shu

Re: convert python scripts to exe file

2007-02-26 Thread Larry Bates
Eric CHAO wrote: > I know py2exe can make an exe file. But python runtime dll is still > there. How can I combine the dll file into the exe, just make one > file? > > Thanks. You can use the bundle= parameter to get "less" files, but you can't get to only 1 because you need mscvr71.dll and w9xpop

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread Tech HR
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > On Feb 26, 6:32 am, Tech HR <[EMAIL PROTECTED]> wrote: > > Our > > website is currently a LAMP appication with P=Python. We are looking for > > bright motivated people who know or are willing to learn Python and/or > > Linux, Apache and M

Re: CSV(???)

2007-02-26 Thread Neil Cerutti
On 2007-02-24, David C Ullrich <[EMAIL PROTECTED]> wrote: > On 23 Feb 2007 19:13:10 +0100, Neil Cerutti <[EMAIL PROTECTED]> wrote: > >>On 2007-02-23, David C Ullrich <[EMAIL PROTECTED]> wrote: >>> Is there a csvlib out there somewhere? >>> >>> And/or does anyone see any problems with >>> the code

ez_setup.py

2007-02-26 Thread Nader Emami
L.S., I have installed locally Python-2.4.4 without any problem. Then I would install the "ez_setup.py" to be able using of "easy_install" tool, but I get the next error: %python ez_setup.py Traceback (most recent call last): File "ez_setup.py", line 223, in ? main(sys.argv[1:]) File

Re: ez_setup.py

2007-02-26 Thread Tim Golden
Nader Emami wrote: > L.S., > > I have installed locally Python-2.4.4 without any problem. Then I would > install the "ez_setup.py" to be able using of "easy_install" tool, but I > get the next error: > > %python ez_setup.py > Traceback (most recent call last): >File "ez_setup.py", line 223,

ctypes and using c_char_p without NULL terminated string

2007-02-26 Thread kpoman
Hi to all, I am trying to use some dll which needs some data types that I can't find in python. From the dll documentation, I am trying to use this: HRESULT IMKWsq::Compress ( [in] VARIANTrawImage, [in] shortsizeX, [in] shortsizeY, [out] VARIANT *wsqImage, [out, retval] s

Re: How to delete PyGTK ComboBox entries?

2007-02-26 Thread Osmo Salomaa
ma, 2007-02-26 kello 16:08 +0100, Maël Benjamin Mettler kirjoitti: > I need to repopulate PyGTK ComboBox on a regular basis. In order to do > so I have to remove all the entries and then add the new ones. > And then repopulate by iterating through the list of desired entries and > calling ComboBox

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Hi there, > > I have a problem with setting environment variable in my script that > uses qt library. For this library I have to define a path to tell the > script whre to find it. > > I have a script called "shrink_bs_070226" that looks like this: > **

SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread zefciu
I am trying to embed a c function in my python script for a first time. When I try to call it I get an error SystemError: new style getargs format but argument is not a tuple Guido said on some mailing list, that it is probably an effect of the lack of METH_VARARGS in the functions' array, but i

Re: The Python interactive interpreter has no command history

2007-02-26 Thread skip
> I will try add readline library in my system. Thomas, Once you have it installed here's an example of how to use it for command history: http://www.webfast.com/~skip/python/completions.py Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: ez_setup.py

2007-02-26 Thread Nader Emami
Tim Golden wrote: > Nader Emami wrote: >> L.S., >> >> I have installed locally Python-2.4.4 without any problem. Then I >> would install the "ez_setup.py" to be able using of "easy_install" >> tool, but I get the next error: >> >> %python ez_setup.py >> Traceback (most recent call last): >>Fi

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread boris . smirnov
On Feb 26, 4:32 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi there, > > > I have a problem with setting environment variable in my script that > > uses qt library. For this library I have to define a path to tell the > > script whre to find it. > > > I have a script

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 zefciu wrote: > I am trying to embed a c function in my python script for a first > time. When I try to call it I get an error > > SystemError: new style getargs format but argument is not a tuple > > Guido said on some mailing list, that it is probabl

Re: ez_setup.py

2007-02-26 Thread Tim Golden
Nader Emami wrote: > Tim Golden wrote: >> Nader Emami wrote: >>> L.S., >>> >>> I have installed locally Python-2.4.4 without any problem. Then I >>> would install the "ez_setup.py" to be able using of "easy_install" >>> tool, but I get the next error: >>> >>> %python ez_setup.py >>> Traceback (mo

Re: ez_setup.py

2007-02-26 Thread Tim Golden
Nader Emami wrote: >>> How can do the second solution, (take off the home from Python path)? >> >> Depends on your setup. Since you're on *nix, I can't >> test whether $HOME is automatically on sys.path (it >> isn't on Win32). Are you running *in* /usr/people/emami? >> If so, go somewhere else bef

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread John Nagle
Tech HR wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: >>This is more out of curiosity, but does it mean that you wouldn't be >>willing to listen about a switch from Python to Lisp? > > > No, it doesn't mean that. In fact, there is a significant faction in > the technical

Re: Python / Socket speed

2007-02-26 Thread casevh
On Feb 26, 7:05 am, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 26 Feb, 15:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Seems like sockets are about 6 times faster on OpenSUSE than on > > Windows XP in Python. > > >http://pyfanatic.blogspot.com/2007/02/socket-performance.html > > > Is

Re: message processing/threads

2007-02-26 Thread joncfoo
Thank you all for your input. I now have some new ways that I need to look into and see what fits best. Thanks once again, Jonathan -- http://mail.python.org/mailman/listinfo/python-list

Re: ez_setup.py

2007-02-26 Thread Tim Golden
Nader Emami wrote: > Tim Golden wrote: >> Nader Emami wrote: >> > How can do the second solution, (take off the home from Python path)? Depends on your setup. Since you're on *nix, I can't test whether $HOME is automatically on sys.path (it isn't on Win32). Are you running *

Re: Python / Socket speed

2007-02-26 Thread John Nagle
Richard Brodie wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Seems like sockets are about 6 times faster on OpenSUSE than on >>Windows XP in Python. >> >>http://pyfanatic.blogspot.com/2007/02/socket-performance.html >> >>Is this related to Python or the OS? > > > It

Re: newbie question(file-delete trailing comma)

2007-02-26 Thread Mohammad Tayseer
kavitha thankaian <[EMAIL PROTECTED]> wrote: > and i need the output also in the same input.txt just add import os os.remove('in.txt') os.rename('out.txt', 'in.txt') - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.-- http://m

Re: Python / Socket speed

2007-02-26 Thread Paul Rubin
John Nagle <[EMAIL PROTECTED]> writes: > Sockets and pipes are a terrible way to do local interprocess > communication, but it's what we've got. The problem is that what you > want is a subroutine call, but what the OS gives you is an I/O operation. Using TCP sockets is ridiculous but Unix d

Re: Interactive os.environ vs. os.environ in script

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > > OK then I have to reformulate my question. :) > > In my script I have a line with > > os.environ["LD_LIBRARY_PATH"]='/path/Linux/rh_linux' > > but this line didn't work. But when I set this environment variable > in Linux s

Re: How to delete PyGTK ComboBox entries?

2007-02-26 Thread Maël Benjamin Mettler
Hej! > > > > model = combo_box.get_model() > > combo_box.set_model(None) > > model.clear() > > for entry in desired_entries: > > model.append([entry]) > > combo_box.set_model(model) > > > > model.append is essentially the same as combo_box.append_text. Setting > > the model to None before makin

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread zefciu
Thinker wrote: > zefciu wrote: >>> I am trying to embed a c function in my python script for a first >>> time. When I try to call it I get an error >>> >>> SystemError: new style getargs format but argument is not a tuple >>> >>> Guido said on some mailing list, that it is probably an effect of >>>

Re: ez_setup.py

2007-02-26 Thread Tim Golden
Nader Emami wrote: > Tim Golden wrote: >> Nader Emami wrote: >>> Tim Golden wrote: Nader Emami wrote: >>> How can do the second solution, (take off the home from Python >>> path)? >> >> Depends on your setup. Since you're on *nix, I can't >> test whether $HOME is auto

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 zefciu wrote: > I am trying to embed a c function in my python script for a first > time. When I try to call it I get an error > > SystemError: new style getargs format but argument is not a tuple > > Guido said on some mailing list, that it is probabl

NetUseAdd mystery

2007-02-26 Thread king kikapu
Is anyone see any error in the following code: mapDrive = "MyServer\\C$" data = {'remote' : mapDrive, 'local' : 'M:', 'password' : 'mypassword', 'user' : 'Administrator', 'asg_type' : 0} win32net.NetUseAdd(None, 1, data) It gives me "pywintypes.error: (1326, 'NetUseAd

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread zefciu
Thinker wrote: > It should be "PyObject *coord;" . > Maybe, it is what is wrong with your program! > > Should it? The gcc shows me a warning then: warning: 'coord' is used uninitialized in this function and during the execution I get the same error *plus* a segfault. zefciu -- http://mail.py

Re: ez_setup.py

2007-02-26 Thread Paul Boddie
On 26 Feb, 17:36, Tim Golden <[EMAIL PROTECTED]> wrote: > > OK. Keep copying to the list, please. As I said, I'm not > a *nix person (and I'm running here on Windows) so you'll > get a more informed and wider audience from c.l.py. Just to clarify one thing, $HOME isn't automatically inserted into

[Fwd: Re: ez_setup.py]

2007-02-26 Thread Tim Golden
OK. He's solved it. For the historical record... Tim Golden wrote: > Nader Emami wrote: >> Tim Golden wrote: >>> Nader Emami wrote: Tim Golden wrote: > Nader Emami wrote: > How can do the second solution, (take off the home from Python path)? >>> >>> Depends

Re: python notation in new NVIDIA architecture

2007-02-26 Thread Bart Ogryczak
On Feb 26, 2:03 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote: > Something funny: > > The new programming model of NVIDIA GPU's is called CUDA and I've > noticed that they use the same __special__ notation for certain things > as does python. For instance their modified C language has identifiers

gmpy moving to code.google.com

2007-02-26 Thread Alex Martelli
If you're interested in gmpy (the Python wrapper of GMP, for unlimited-precision arithmetic, rationals, random number generation, number-theoretical functions, etc), please DO check out http://code.google.com/p/gmpy/ -- gmpy 1.02 is there (as far as I can tell) in a workable state. Source on Subve

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 zefciu wrote: > Thinker wrote: > >> It should be "PyObject *coord;" . Maybe, it is what is wrong with >> your program! >> >> > Should it? The gcc shows me a warning then: > > warning: 'coord' is used uninitialized in this function > > and during the ex

Re: NetUseAdd mystery

2007-02-26 Thread Larry Bates
king kikapu wrote: > Is anyone see any error in the following code: > > mapDrive = "MyServer\\C$" > data = {'remote' : mapDrive, 'local' : 'M:', 'password' : > 'mypassword', 'user' : 'Administrator', 'asg_type' : 0} > win32net.NetUseAdd(None, 1, data) > > It gives me "

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread zefciu
Thinker wrote: > You can add some printf() to throw out messages to make sure where the > program stop at. > If you can compile the module with debug information and use gdb to > backtrace dump file, > it would be useful. Did it. The arguments are parsed, but the coord tuple isn't. But can PyAr

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 zefciu wrote: > Thinker wrote: > >> You can add some printf() to throw out messages to make sure >> where the program stop at. If you can compile the module with >> debug information and use gdb to backtrace dump file, it would be >> useful. > > Did it

Reading Excel using xlrd package in python

2007-02-26 Thread Ananthashayana V
Hi John, With reference to your reply to kath http://mail.python.org/pipermail/python-list/2006-October/407157.html I have a small query, my code is as follows #--- Reading excel-- import xlrd book = xlrd.open_workbook("E:/test.xls") print "The number of wo

I don't quite understand this error...

2007-02-26 Thread Alexander Orchard
I'm trying to create a simple accounting system based off of an example GUI. The coding is as follows: #!/usr/bin/python from Tkinter import * from os import urandom from twisted.internet import tksupport from twisted.internet import reactor from accounts import accountlist def whichSelected ()

Re: NetUseAdd mystery

2007-02-26 Thread king kikapu
> I think your problem is that C$ is a "special" share. Try creating > a share and connect to it instead. It is either that your your userid/ > password are in fact incorrect. > > -Larry No, my credentials are absolutely correct. As for the "$", what is the possible problem with that ?? Net use

Re: NetUseAdd mystery

2007-02-26 Thread Roger Upole
king kikapu wrote: > Is anyone see any error in the following code: > >mapDrive = "MyServer\\C$" >data = {'remote' : mapDrive, 'local' : 'M:', 'password' : > 'mypassword', 'user' : 'Administrator', 'asg_type' : 0} >win32net.NetUseAdd(None, 1, data) > > It gives me "pywi

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread zefciu
Thinker wrote: > Since PyArg_ParseTuple() is supposed to parse arguments, I recommand you > to use PyTuple_GetItem() or PyTuple_GET_ITEM(). Ok. Now I do it this way: c_real = PyFloat_AsDouble(PyTuple_GetItem(coord,0)); c_imag = PyFloat_AsDouble(PyTuple_GetItem(coord,1)); And it worked... once.

2.4->2.5 current directory change?

2007-02-26 Thread Chris Mellon
This appears to be a change in behavior from Python 2.4 to Python 2.5, which I can't find documented anywhere. It may be windows only, or related to Windows behavior. In 2.4, the current directory (os.curdir) was on sys.path. In 2.5, it appears to be the base directory of the running script. For e

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 zefciu wrote: > Thinker wrote: > >> Since PyArg_ParseTuple() is supposed to parse arguments, I >> recommand you to use PyTuple_GetItem() or PyTuple_GET_ITEM(). > > Ok. Now I do it this way: > > c_real = PyFloat_AsDouble(PyTuple_GetItem(coord,0)); c_ima

Last Reminder: Survey about Architecture and Design Patterns

2007-02-26 Thread Joerg Rech
Dear software practitioners, consultants, and researchers, we are currently conducting an international survey about architecture and design patterns. Our goal is to discover how familiar people are with these patterns (and anti-patterns) as well as to elicit the information need, the usage behav

jsString class

2007-02-26 Thread Subscriber123
Hi all, Some of you may find this useful. It is a class I wrote that acts like the way strings do in JavaScript. It is a little buggy, and not complete, but could be useful. class jsString: def __init__(self,string): if string.__class__ is list: print "list:",string

Re: about framework

2007-02-26 Thread raf
On Feb 24, 10:09 pm, [EMAIL PROTECTED] wrote: > Python has some web framework.I'm not familiar with all of them. > Do you think which is best popular of them?Thanks. > ** AOL now offers free > email to everyone. Find out more about what's free from AOL > athtt

Re: Rational numbers

2007-02-26 Thread aleaxit
On Feb 25, 3:09 pm, Fernando Perez <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > gmpy itself is or should be pretty trivial to build on any platform > > (and I'll always happily accept any fixes that make it better on any > > specific platform, since it's easy to make them conditional s

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread Ray Dillinger
Tech HR wrote: > But we're a very young company (barely six months old at this point) so > we're willing to listen to most anything at this point. (We're using > Darcs for revision control. Haskell, anyone?) Tell us, where you would expect an applicant for one or more of these jobs to live if

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread Bruce Lewis
Tech HR <[EMAIL PROTECTED]> writes: > (Actually, > it's turning out to be hard to find Python programmers too, but it's > easier to train a Java programmer or a Perler on Python than Lisp. Is this speculation or experience? If it was experience, what Lisp were you trying to train Java programm

Python object to xml biding

2007-02-26 Thread raf
Hi there, I'm looking for a python to XSD/xml biding library to easy handling this very large protocol spec I need to tackle. I've searched google quite extensibly and I haven't found anything that properly fits the bill... I'm mostly interested at the xml -> python and python->xml marshalling/un

Re: [EMAIL PROTECTED] Re: *** ISRAELI TERRORISTS BLEW UP INDIAN TRAIN ***

2007-02-26 Thread thermate
Now I see, its the mossad spoooks ... obviously they pulled 911, bush/ cheney thankful for it and fell for it, what do they care about 3000 dead and others with lung disease ... the israelis were paged SMS before 911, and larrysilversteins took day off ... its the mossad On Feb 26, 2:19 am, Arash

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread Ken Tilton
Tech HR wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > >>On Feb 26, 6:32 am, Tech HR <[EMAIL PROTECTED]> wrote: >> >>>Our >>>website is currently a LAMP appication with P=Python. We are looking for >>>bright motivated people who know or are willing to learn Python and/

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread bearophileHUGS
Tech HR: > In fact, there is a significant faction in > the technical staff (including the CTO) who would like nothing better > than to be able to use Lisp instead of Python. I think CLisp and Python have different enough application areas, so often where one is fit the other can't be much fit. Do

Re: SystemError: new style getargs format but argument is not a tuple

2007-02-26 Thread Ziga Seilnacht
zefciu wrote: > Ok. Now I do it this way: > > c_real = PyFloat_AsDouble(PyTuple_GetItem(coord,0)); > c_imag = PyFloat_AsDouble(PyTuple_GetItem(coord,1)); > > And it worked... once. The problem is really funny - in the interactive > the function fails every second time. > > >>> mandelpixel((1.5, 1

Python+Windows specific questions

2007-02-26 Thread hg
Hi, Do I need the pywin32 extentions to: 1) change the pc system date ? 2) launch a ppp connection ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Add images together

2007-02-26 Thread iceman
Hi, I am trying to add together a number of images: im = image1 + image2 + ... How can i do this? I have tried to add two image instances together but i get the following error: TypeError: unsupported operand type(s) for +: 'instance' and 'instance' -- http://mail.python.org/mailman/listinfo/

Re: Add images together

2007-02-26 Thread Diez B. Roggisch
iceman schrieb: > Hi, > > I am trying to add together a number of images: > > im = image1 + image2 + ... > > How can i do this? I have tried to add two image instances > together but i get the following error: > TypeError: unsupported operand type(s) for +: 'instance' and > 'instance' Create a

*** MOSSAD TERRORIST OPERATIONS IN INDIA ***

2007-02-26 Thread thermate2
On Feb 25, 12:07 am, [EMAIL PROTECTED] wrote: > Eye opener research > > http://www.apfn.org/apfn/WTC_STF.htm EXCERPT: Now I'm really going to rock your faith in the false religion of 9-11. In February of 2000, Indian intelligence officials detained 11 members of what they thought was an Al Qaeda

Re: I don't quite understand this error...

2007-02-26 Thread Daniel Nogradi
> Thus far, everything works fine unless I'm trying the Deposit or Withdrawal > functions. (I know they're different, but both give roughly the same error.) > Whenever I attempt one of these functions I get the following error message: > > > Exception in Tkinter callback > Traceback (most recent ca

RE: [OT] python notation in new NVIDIA architecture

2007-02-26 Thread Delaney, Timothy (Tim)
Daniel Nogradi wrote: >>> Something funny: >>> >>> The new programming model of NVIDIA GPU's is called CUDA and I've >>> noticed that they use the same __special__ notation for certain >>> things as does python. For instance their modified C language has >>> identifiers such as __device__, __glob

RE: a=b change b a==b true??

2007-02-26 Thread Delaney, Timothy (Tim)
[EMAIL PROTECTED] wrote: > All, > It works great now. Thank you for all of your incredibly quick > replies. > Rob You should have a read of these: http://wiki.python.org/moin/BeginnersGuide http://effbot.org/zone/python-objects.htm Cheers, Tim Delaney -- http://mail.python.org/mailman/listin

Re: about framework

2007-02-26 Thread Bruno Desthuilliers
raf a écrit : > On Feb 24, 10:09 pm, [EMAIL PROTECTED] wrote: > >>Python has some web framework.I'm not familiar with all of them. >>Do you think which is best popular of them?Thanks. >>** AOL now offers free >>email to everyone. Find out more about what's fre

Re: gmpy moving to code.google.com

2007-02-26 Thread Daniel Nogradi
> If you're interested in gmpy (the Python wrapper of GMP, for > unlimited-precision arithmetic, rationals, random number generation, > number-theoretical functions, etc), please DO check out > http://code.google.com/p/gmpy/ -- gmpy 1.02 is there (as far as I can > tell) in a workable state. Sourc

  1   2   >