Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Zara
On Sat, 1 Dec 2007 16:51:35 +0200, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: >On 30/11/2007, Gerardo Herzig <[EMAIL PROTECTED]> wrote: >> You will be eaten by the Snake-Ra god tonight! > >Wasn't Ra the Sun god? > He meant quetzatcoatl. We could rename the language. Now try qith Quetzatcoatl and it

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Hendrik van Rooyen
"Dotan Cohen" wrote: > Newton was the bridge between science and superstition. Without him, > we would not have science. For that he is notable. He is both magician > and scientist. It was Newton's belief in the occult that led to his > discovery of gravity: the fact that distant objects could i

compiling python source code under VC8

2007-12-03 Thread guptaabhishek1983
Hello everyone, I am trying to build python from scratch under VC8. The build process runs and completes succesfully in debug mode resulting in python_d.exe. But when i try to run this exe it returns an assertion error and application crashes. Has anyone successfully build python using VC8. Your

Re: Question on compiled code when embedding Python in C++

2007-12-03 Thread grbgooglefan
On Dec 4, 12:36 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 04 Dec 2007 00:54:57 -0300, Borse, Ganesh > <[EMAIL PROTECTED]> escribió: > > > When we compile a Python code using functions such as Py_CompileString > > or any other similar compile function, what will be the resulti

Re: Question on compiled code when embedding Python in C++

2007-12-03 Thread Gabriel Genellina
En Tue, 04 Dec 2007 00:54:57 -0300, Borse, Ganesh <[EMAIL PROTECTED]> escribió: > When we compile a Python code using functions such as Py_CompileString > or any other similar compile function, what will be the resulting > executable code? > Will it be byte code somewhat like the byte code o

Re: Generating API documentation as a textfile

2007-12-03 Thread MonkeeSage
On Dec 3, 8:58 am, Samuel <[EMAIL PROTECTED]> wrote: > On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote: > > dir.__doc__ > > This contains only the docstring one object (module, class, > function, ...). I was thinking more of the complete API documentation > that can be found in a file,

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread MonkeeSage
On Dec 3, 5:39 pm, "Russ P." <[EMAIL PROTECTED]> wrote: > On Dec 3, 2:40 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > > Until the OP posted his lastest 'why', I assumed this proposal was an April > > Fools' post that he just could not wait to post. In fact, given that the > > effective cost wo

Question on compiled code when embedding Python in C++

2007-12-03 Thread Borse, Ganesh
When we compile a Python code using functions such as Py_CompileString or any other similar compile function, what will be the resulting executable code? Will it be byte code somewhat like the byte code of Java? Or it will be the same binary code like the once generated by C/C++ compilers from th

connect to server question

2007-12-03 Thread jay
Is there a way to connect to servers on OS X using Python? Here's the code I presently use in a Bash Shell script: /bin/mkdir -p /Volumes/A_Share /sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" "/ Volumes/A_Share" Can something similar be done with Python? Thanks! Jay --

Re: Delete a instance passed by reference into a method

2007-12-03 Thread hdante
On Dec 3, 10:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 03 Dec 2007 19:53:20 -0300, sccs cscs <[EMAIL PROTECTED]> escribió: > > > I am very surprising by the Python interpreter behavior : see code > > I initialize a 'A' and a 'B', and i give a B instance reference to the > > in

Re: Any idea how to open Matlab and run M-files by using Python?

2007-12-03 Thread sturlamolden
On 3 Des, 05:02, itcecsa <[EMAIL PROTECTED]> wrote: > I am implementing a small Python project, what I am going to do is to > open Matlab and run some M-files, and get some output from Matlab > command prompt. > > I have no idea how to open Matlab from Python! Do you really want to do that? NumPy

Re: os.path.islink documentation error?

2007-12-03 Thread Gabriel Genellina
En Tue, 27 Nov 2007 14:46:24 -0300, Diez B. Roggisch <[EMAIL PROTECTED]> escribió: > Giampaolo Rodola' schrieb: >> os.path.islink documentation says: >> >> "Return True if path refers to a directory entry that is a symbolic >> link. Always False if symbolic links are not supported." >> >> It's n

Re: Delete a instance passed by reference into a method

2007-12-03 Thread Gabriel Genellina
En Mon, 03 Dec 2007 19:53:20 -0300, sccs cscs <[EMAIL PROTECTED]> escribió: > I am very surprising by the Python interpreter behavior : see code > I initialize a 'A' and a 'B', and i give a B instance reference to the > instance A in 'm1' method. I can modify (IN/OUT mode) the 'i' > attribut

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 2:40 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > Until the OP posted his lastest 'why', I assumed this proposal was an April > Fools' post that he just could not wait to post. In fact, given that the > effective cost would be in the $millions, I an still not sure he is sanely > seri

Re: using pdb and catching exception

2007-12-03 Thread Amit Gupta
On Dec 3, 11:10 am, Amit Gupta <[EMAIL PROTECTED]> wrote: > > > Thanks Frank. But again, this results into stack-track when the > exception is caught. On the other hand, I would like the debug-trace > just before throwing the exception. As a case, I might be debugging > code, where the programmar f

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 3:09 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > People who claim that everyone would agree with them if they'd only > open their minds or think out of the box are worth more than a few Never said anything like it. It's a red herring that you either imagined or made up. > points on

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Chris Mellon
On Dec 3, 2007 4:26 PM, Russ P. <[EMAIL PROTECTED]> wrote: > On Dec 3, 2:12 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > > On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote: > > > > > On Dec 3, 1:47 pm, Bruno Desthuilliers > > > <[EMAIL PROTECTED]> wrote: > > > > > > Bullshit. Nowadays

Delete a instance passed by reference into a method

2007-12-03 Thread sccs cscs
Hello, I am very surprising by the Python interpreter behavior : see code I initialize a 'A' and a 'B', and i give a B instance reference to the instance A in 'm1' method. I can modify (IN/OUT mode) the 'i' attribute ( aB.i = 10 ) , BUT I CANNOT DELETE "aB" into the fonction m1 ! the code "

Re: Why Don't Return?

2007-12-03 Thread Terry Reedy
"Victor Subervi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | def a(): | b() Here is the error: should be c = b() | print c | | def b(): | c = "Hi" | return c | | if __name__ == "__main__": | a() | | then run a(). Throws error about c not being defined. How do I return

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Jim Hill
Michael Terry wrote: > >Folks admire Newton for some of his breathtaking insights, not because >of his methods. The scientific method is a tool. As was Newton, according to many of his contemporaries. > The results are far more important than the tool. Yep. Jim -- "I loathe people who say, '

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Diez B. Roggisch
Russ P. schrieb: > On Dec 3, 1:58 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > >> ...and thus, maybe the joke is on you? Just to play devil's advocate... > > Yes, the joke *is* on me -- every time I have to explain to someone > why I am using this funny-sounding language. That's the point. Yeah

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Terry Reedy
"Tóth Csaba" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | | >> Python name is not funny for me. Even the Monty Python, because its hard | >> to translate their jokes, and in my country they are not so popular. | >> Just a few ppl knows them. || back from jokes, im _really_ inter

Re: writing results to array

2007-12-03 Thread Matimus
On Dec 3, 12:45 pm, Bevan Jenkins <[EMAIL PROTECTED]> wrote: > Hello, > > I have recently discovered the python language and am having a lot of > fun getting head around the basics of it. > However, I have run into a stumbling block that I have not been able > to overcome, so I thought I would ask

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 2:12 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote: > > > On Dec 3, 1:47 pm, Bruno Desthuilliers > > <[EMAIL PROTECTED]> wrote: > > > > Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot > > > about "being se

Re: issue with cookielib.LWPCookieJar

2007-12-03 Thread John J. Lee
JD Smith <[EMAIL PROTECTED]> writes: > Greetings: > > My cookiejar contains the cookie that I need however when I do > cj.save(file) it does not actually save out to the cookies.lwj Does > anyone have any clue what would keep this from saving? It CREATED my > cookies.lwj file so I know it's not

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Neil Cerutti
On 2007-12-03, Michael Terry <[EMAIL PROTECTED]> wrote: > !!! > > Folks admire Newton for some of his breathtaking insights, not > because of his methods. The scientific method is a tool. The > results are far more important than the tool. Right. The biggest weakness in the scientific method is th

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Neil Cerutti
On 2007-12-03, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] a écrit : >> Second, python also means snake, snake is not a good thing in >> western culture. Many people dislike any things relevant to >> snake. We must have high regard for the custom. >> >> Now, python3000 is co

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Michael Terry
!!! Folks admire Newton for some of his breathtaking insights, not because of his methods. The scientific method is a tool. The results are far more important than the tool. Also, it's not a game. His wacky ideas don't cancel out his brilliant ones. If you want to say that he technically wasn't

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Chris Mellon
On Dec 3, 2007 4:02 PM, Russ P. <[EMAIL PROTECTED]> wrote: > On Dec 3, 1:47 pm, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: > > > Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot > > about "being serious") about IT knows what Python is and who uses it. > > Heck, even MSV

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 1:58 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote: > ...and thus, maybe the joke is on you? Just to play devil's advocate... Yes, the joke *is* on me -- every time I have to explain to someone why I am using this funny-sounding language. That's the point. -- http://mail.python.org/mailma

Re: embedding std py and c modules

2007-12-03 Thread Patrick Stinson
Looks like statically linking the c-based modules is pretty easy, but how about the python-based modules? On Dec 3, 2007 10:06 AM, Patrick Stinson <[EMAIL PROTECTED]> wrote: > Is it possible to build python as a static library and embed all necessary > c and py modules rom the standard lib in it?

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 1:47 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot > about "being serious") about IT knows what Python is and who uses it. > Heck, even MSVS now has support for Python and there's an official CLR > port of it.

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Dan Upton
On Dec 3, 2007 4:34 PM, Russ P. <[EMAIL PROTECTED]> wrote: > > > I'm amazed that anyone here answered this obvious troll... > > I doubt the original post was a troll, but the statement above clearly > is. > > You are entitled to your opinion about the idea of changing the name > of the language, bu

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 1:04 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote: > > To paraphrase Bertrand Russell, Newton was too successful. > > Over-veneration of Newton was eventually an impediment to progress--this > > was not, of cour

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Bruno Desthuilliers
Russ P. a écrit : >>I'm amazed that anyone here answered this obvious troll... > > > I doubt the original post was a troll, but the statement above clearly > is. Then your trollometer is broken. Got and get yourself a working one. > You are entitled to your opinion about the idea of changing th

Re: a n00b regex qestion

2007-12-03 Thread Tim Chase
> I tried these this: > > string = string.replace('\s*Field One\s* > %FieldOneValue%\s*', '') > > > But this doesn't work. The doco for Python's regex suggests that \s > should match any whitespace including newlines which is what I > wanted, from http://docs.python.org/lib/module-re.html "

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
> I'm amazed that anyone here answered this obvious troll... I doubt the original post was a troll, but the statement above clearly is. You are entitled to your opinion about the idea of changing the name of the language, but calling it a troll is just arrogance on display. Python3000 is expect

Re: a n00b regex qestion

2007-12-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I am doing a string.replace in a simple table generation app I wrote, > and I can't figure out how to match whitespace with /s, Hahem... Where did you get the idea that str.replace would work with regexps ? """ replace(...) S.replace (old, new[, count]) -> st

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Steven D'Aprano
On Sun, 02 Dec 2007 13:29:58 -0800, Russ P. wrote: >> He might have been a great intellectual but he was no scientist. It's >> only by ignoring the vast bulk of his work -- work which Newton himself >> considered *far* more important and interesting than his work on >> physics and mathematics -- t

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Martin v. Löwis wrote: > Just in case it's not clear what Tim is getting at: > > if a folder is marked read-only on Windows, it doesn't mean > that you can only read from it. The read-only bit is a legacy > thing, anyway, since you are supposed to use ACLs to mark > a folder as read-only (by only

a n00b regex qestion

2007-12-03 Thread nuffnough
I am doing a string.replace in a simple table generation app I wrote, and I can't figure out how to match whitespace with /s, so I thought I would see if osmeone where would be kind enough to tell me what I am getting wrong. This works: string = string.replace('\n Field One \n %Field

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Steven D'Aprano
On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote: > To paraphrase Bertrand Russell, Newton was too successful. > Over-veneration of Newton was eventually an impediment to progress--this > was not, of course, his fault. Given that the veneration of Newton was very much a product of Newton's

writing results to array

2007-12-03 Thread Bevan Jenkins
Hello, I have recently discovered the python language and am having a lot of fun getting head around the basics of it. However, I have run into a stumbling block that I have not been able to overcome, so I thought I would ask for help. I am trying to import a text file that has the following form

Professional Grant Proposal Writing Workshop (December 2007: Seattle, Washington)

2007-12-03 Thread Anthony Jones
The Grant Institute: Certificate in Professional Program Development and Grant Communication will be held in Seattle, Washington, December 10 - 14, 2007.  Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that s

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Python is a good programming language, but "Python" is not a good > name. > > First, python also means snake, Monty Python. If we search "python" in > google, emule, many results are not programming resource. If we search > PHP, all results are programming resource.

Re: Why Don't Return?

2007-12-03 Thread Jeff
On Dec 3, 3:13 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > Here is sample function: > > > def a(): > > b() b() is not being assigned to anything. Use c = b() to have c assigned in the local scope. > > print c > > > def b(): When you enter the function b, you are creating a new local scope. c

Re: takes no arguments (1 given)

2007-12-03 Thread Bjoern Schliessmann
Tommy Grav wrote: > The class method needs a self argument so that > disp.fill_canvas() can parse the class instance disp > to the method. It's an instance method, no class method. Regards, Björn -- BOFH excuse #88: Boss' kid fucked up the machine -- http://mail.python.org/mailman/listinf

Re: Why Don't Return?

2007-12-03 Thread Tommy Grav
def a(): d = b() print d def b() c = "Hi" return c if __name__ == "__main__": a() Cheers TG On Dec 3, 2007, at 3:05 PM, Victor Subervi wrote: > Hi; > Here is sample function: > > def a(): > b() > print c > > def b(): > c = "Hi" > return c > > if __name__ == "__ma

Re: Why Don't Return?

2007-12-03 Thread Tim Chase
> Here is sample function: > > def a(): > b() > print c > > def b(): > c = "Hi" > return c > > if __name__ == "__main__": > a() > > then run a(). Throws error about c not being defined. How do I return c from > b? you *do* return c from b, and within the scope of a(), c is not defin

Why Don't Return?

2007-12-03 Thread Victor Subervi
Hi; Here is sample function: def a(): b() print c def b(): c = "Hi" return c if __name__ == "__main__": a() then run a(). Throws error about c not being defined. How do I return c from b? TIA, Victor -- http://mail.python.org/mailman/listinfo/python-list

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Tommy Grav
On Dec 3, 2007, at 2:04 PM, Tóth Csaba wrote: > Russ P. írta: >>> Python name is not funny for me. Even the Monty Python, because >>> its hard >>> to translate their jokes, and in my country they are not so popular. >>> Just a few ppl knows them. >> >> I've heard it helps to be stoned out of yo

Re: Overriding member methods in __init__

2007-12-03 Thread c james
Arnaud Delobelle wrote: > Why not simply do: > > class YesNo(object): > def __init__(self, which): > self.yesno = which and self.yes or self.no > def yes(self, val): > print 'Yes', val > def no(self, val): > print 'No', val > def __call__(self, val): >

Re: Story generator....

2007-12-03 Thread Terry Reedy
"Joseph king" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I don't know how to pose this question so i will just say what i am trying | to do. | | i am not sure if this is at all possible i am trying to make a story | generator like the ones that i did in elementry school

Re: takes no arguments (1 given)

2007-12-03 Thread Mike
Oops. I just forgot self. -- http://mail.python.org/mailman/listinfo/python-list

Re: takes no arguments (1 given)

2007-12-03 Thread Tommy Grav
On Dec 3, 2007, at 2:10 PM, Mike wrote: > In the following Display inherits from the Tkinter class Canvas: > > import sys > from Tkinter import * > class Display(Canvas) : > ... > def fill_canvas() : def fill_canvas(self): > slop=self.slop > set_sr(int(self.cget('width'))+slop

takes no arguments (1 given)

2007-12-03 Thread Mike
In the following Display inherits from the Tkinter class Canvas: import sys from Tkinter import * class Display(Canvas) : ... def fill_canvas() : slop=self.slop set_sr(int(self.cget('width'))+slop, int(self.cget('height'))+slop) self.refresh() ... dis

Re: using pdb and catching exception

2007-12-03 Thread Amit Gupta
On Dec 1, 11:14 pm, Frank Millman <[EMAIL PROTECTED]> wrote: > See this post from less than a week ago. > > http://tinyurl.com/2zyr7u > > I think that the message from Diez B. Roggisch has what you are > looking for. > > Frank Millman Thanks Frank. But again, this results into stack-track when the

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Robert Kern
Tóth Csaba wrote: > back from jokes, im _really_ interested what is core developers, mainly > Guido's opinion about the name change. I'm pretty sure it's, "Not a chance." -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our ow

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Tóth Csaba
Russ P. írta: >> Python name is not funny for me. Even the Monty Python, because its hard >> to translate their jokes, and in my country they are not so popular. >> Just a few ppl knows them. > > I've heard it helps to be stoned out of your mind (i.e., under the > influence of illegal drugs), but

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
> Python name is not funny for me. Even the Monty Python, because its hard > to translate their jokes, and in my country they are not so popular. > Just a few ppl knows them. I've heard it helps to be stoned out of your mind (i.e., under the influence of illegal drugs), but I don't necessarily re

Re: cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > > I'm trying to pass array as an argument into PL/SQL procedure. > > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > > cursorobj.html) arrayvar() should be use to do it. I've created

Re: cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > > I'm trying to pass array as an argument into PL/SQL procedure. > > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > > cursorobj.html) arrayvar() should be use to do it. I've created

embedding and setting the lib path

2007-12-03 Thread Patrick Stinson
is there a way to set the interpreter prefix without setting the program name? If you use python as a static library you will not have a bin dir and valid program name. I want to set up my app to be able to init the site using something like C:\ProgramData\Mine\python_blah_blah on windows and /Libr

Re: Story generator....

2007-12-03 Thread Tim Chase
> i am not sure if this is at all possible i am trying to make a story > generator like the ones that i did in elementry school where they would > supply a story with blanks and you would have to place the nouns-verbs/you > best friends name and it would make a funny story. Sounds like yo

Re: Tkinter and pure tk component(Gridplus2)

2007-12-03 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: > Hi , > I was looking at some example of how to display tabular data with > tkinter and i found this component( > http://www.satisoft.com/tcltk/gridplus2/examples.html > ). I would like to know if it possible to make it work with the tk > version used by python and how to

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Gary Herron
Russ P. wrote: > On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote: > >> The only reason to change the name would be because of some serious >> bad PR that came onto Python, thus causing its branding name to be >> catagorized as something bad. >> >> However this is not the case, presently, and the bran

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Tóth Csaba
Russ P. írta: > Python is a "funny" name -- in both senses of the word. No? Then > why did a comedy team adopt it? Python name is not funny for me. Even the Monty Python, because its hard to translate their jokes, and in my country they are not so popular. Just a few ppl knows them. Newton is a w

Re: cx_Oracle + array parameter

2007-12-03 Thread Ian Clark
[EMAIL PROTECTED] wrote: > Hello, > > I'm trying to pass array as an argument into PL/SQL procedure. > According to cursor manual (http://cx-oracle.sourceforge.net/html/ > cursorobj.html) arrayvar() should be use to do it. I've created my > array type in PL/SQL: > > CREATE OR REPLACE TYPE cx_arra

Re: os.access() under windows

2007-12-03 Thread Martin v. Löwis
> http://support.microsoft.com/kb/326549 > > Goodness knows what we're supposed to do with that. Just in case it's not clear what Tim is getting at: if a folder is marked read-only on Windows, it doesn't mean that you can only read from it. The read-only bit is a legacy thing, anyway, since you

Re: C++2py

2007-12-03 Thread farsheed
thanks markacy, very thanks for your helpful reply. -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding member methods in __init__

2007-12-03 Thread Arnaud Delobelle
On Dec 3, 3:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Allowing instance lookup of __call__ would slow down normal uses of > the internal __call__ mechanism. Since it used for all function and > method calls, it needs to remain extremely fast. If you're really > worried about performance,

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote: > The only reason to change the name would be because of some serious > bad PR that came onto Python, thus causing its branding name to be > catagorized as something bad. > > However this is not the case, presently, and the brand name is well > establishe

Re: Floats and NaNs

2007-12-03 Thread Robert Kern
Dalton, Tom wrote: > Hi, > > Is there any way to detect if a float is NaN in Python 2.4? > > I can pretty much understand why > > float("nan") == float("nan") -> False > > but I then expected there to be an isnan() function, perhaps provided by > the maths module. I understand a lot of the floa

Re: Generating API documentation as a textfile

2007-12-03 Thread Jeff McNeil
Check out the 'pydoc' script; it ships with Python. I've got my CI system rigged up to run pydoc on each commit and automatically generate HTML documentation. The tool actually imports a 'pydoc.py' module, which you may be able to use directly if you need more control over the process. On top o

embedding std py and c modules

2007-12-03 Thread Patrick Stinson
Is it possible to build python as a static library and embed all necessary c and py modules rom the standard lib in it? This would make distributing and embedded interpreter in our app MUCH simpler. thanks! -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http:

Floats and NaNs

2007-12-03 Thread Dalton, Tom
Hi, Is there any way to detect if a float is NaN in Python 2.4? I can pretty much understand why float("nan") == float("nan") -> False but I then expected there to be an isnan() function, perhaps provided by the maths module. I understand a lot of the floating point behaviour is implementation-

Story generator....

2007-12-03 Thread Joseph king
I don't know how to pose this question so i will just say what i am trying to do. i am not sure if this is at all possible i am trying to make a story generator like the ones that i did in elementry school where they would supply a story with blanks and you would have to place the nouns-v

Tkinter and pure tk component(Gridplus2)

2007-12-03 Thread swellfr
Hi , I was looking at some example of how to display tabular data with tkinter and i found this component( http://www.satisoft.com/tcltk/gridplus2/examples.html ). I would like to know if it possible to make it work with the tk version used by python and how to do that ? Thx E, -- http://mail.py

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread cokofreedom
The only reason to change the name would be because of some serious bad PR that came onto Python, thus causing its branding name to be catagorized as something bad. However this is not the case, presently, and the brand name is well established and accepted. There is no reason to change its name a

cx_Oracle + array parameter

2007-12-03 Thread lukasz . f24
Hello, I'm trying to pass array as an argument into PL/SQL procedure. According to cursor manual (http://cx-oracle.sourceforge.net/html/ cursorobj.html) arrayvar() should be use to do it. I've created my array type in PL/SQL: CREATE OR REPLACE TYPE cx_array_string is table of varchar2(200); and

Re: Process Id

2007-12-03 Thread Mathias Uebelacker
Which OS Windows or Linux? br Mathias 2007/12/3, Navid Parvini <[EMAIL PROTECTED]>: > > Dear All, > > Would you please help me to find a way to get the list of all processes id > on the machine along with their parent processes. > > Thank you in advance. > > > -- > Nev

Re: Process Id

2007-12-03 Thread Tim Golden
Navid Parvini wrote: > Dear All, > > Would you please help me to find a way to get the list of all processes id > on the machine along with their parent processes. > > Thank you in advance. Deja vu? http://groups.google.com/group/comp.lang.python/search?q=list+process TJG -- http:/

socket vs _socketobject

2007-12-03 Thread ts1
[ Sorry if you see this message twice (or more), mail.python.org seems rejecting my posts.] Hello, I've found strangeness in socket. Normal socket is wrapped by Python code in socket.py. >>> socket.socket(socket.AF_INET, socket.SOCK_STREAM) However, socket created with fromfd() is not wrappe

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Neil Cerutti
On 2007-12-03, Russ P. <[EMAIL PROTECTED]> wrote: > On Dec 3, 5:23 am, Steven D'Aprano >> I'm not suggesting that Leibniz was any more of a scientist >> than Newton was, nor am I suggesting that Newton's >> achievements should be *rejected* (er, except for those pesky >> Quantum Mechanics and Relat

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Francesco Guerrieri
On Dec 3, 2007 4:40 PM, Russ P. <[EMAIL PROTECTED]> wrote: > As I said before, a name is > just a name. It might as well be called "cockroach" as far as I am > concerned. Unluckily "the Beatles" was already taken :-) francesco -- http://mail.python.org/mailman/listinfo/python-list

Process Id

2007-12-03 Thread Navid Parvini
Dear All, Would you please help me to find a way to get the list of all processes id on the machine along with their parent processes. Thank you in advance. - Never miss a thing. Make Yahoo your homepage.-- http://mail.python.org/mailman/

Re: os.access() under windows

2007-12-03 Thread Tim Golden
Yann Leboulanger wrote: > Ok thanks for all those information, I'll remove the call to os.access() > on folders for windows in my application. > FWIW, I think it's worth bearing in mind what was said earlier in this thread: it's easier to ask forgiveness than permission. Technically, even if os.

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Tim Golden a écrit : > Well, that's not the case for files: if you set your > file's readonly attribute to True, then os.access (W_OK) > will return False and you won't be able to write to the > file: > The only issue (at least, the only one we're discussing here) is: > If os.W_OK on a directory

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Hrvoje Niksic
dirkheld <[EMAIL PROTECTED]> writes: > I don't have a file called 'a_file.txt' > I want to create that file and write some data to it. How exactly are you starting the Python interpreter? "No such file or directory" on file creation can happen when you try to create a file in a directory that ha

Re: Overriding member methods in __init__

2007-12-03 Thread Hrvoje Niksic
c james <[EMAIL PROTECTED]> writes: >> class YesNo(object): >>def __init__(self, which): >> self.which = which >> >>def __call__(self, val): >> return (self.no, self.yes)[self.which](val) >> >>def yes(self, val): >> print 'Yes', val >> >>def no(self, val): >>

Distutils help for sub-packages

2007-12-03 Thread Rick Muller
I need some distutils help. I currently run a python library (PyQuante) that, until recently, had all of its modules in a single directory, called "PyQuante". The setup command in my setup.py module had a single "packages" line: packages = ['PyQuante'], I moved some of the routines into Bas

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Russ P.
On Dec 3, 5:23 am, Steven D'Aprano > I'm not suggesting that Leibniz was any more of a scientist than Newton > was, nor am I suggesting that Newton's achievements should be *rejected* > (er, except for those pesky Quantum Mechanics and Relativity things...). > I'm just saying that we should unders

Re: os.access() under windows

2007-12-03 Thread Tim Golden
Yann Leboulanger wrote: > Tim Golden a écrit : >> >> I'm happy to contribute a doc patch if I can imagine what >> exactly to write. >> > > "Don't use it under windows, always consider it's True"? Well, that's not the case for files: if you set your file's readonly attribute to True, then os.acces

Re: Overriding member methods in __init__

2007-12-03 Thread Duncan Booth
c james <[EMAIL PROTECTED]> wrote: > Thanks, I was trying to eliminate another level of indirection with a > test at each invocation of __call__ > > Try using different subclasses for each variant: class YesNo(object): def __new__(cls, which, *args, **kw): if cls is YesNo:

Re: Thread

2007-12-03 Thread Aahz
In article <[EMAIL PROTECTED]>, Gianmaria Iaculo - NVENTA <[EMAIL PROTECTED]> wrote: > >i'm using python 1.5.2. > >Is it possible to use the Thread module? I need it for the Timer library. Python 1.5.2 contained several thread fixes, but I recommend upgrading to 2.2 or later if you can, there wer

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Tim Golden a écrit : > > I'm happy to contribute a doc patch if I can imagine what > exactly to write. > "Don't use it under windows, always consider it's True"? Maybe it would be a good idea to remove support for windows for this function, or make it always return True? Current behaviour is w

Re: Limit Guessing Algorithm

2007-12-03 Thread Gordon C
One of the difficulties of this kind of a problem is that one is looking for a solution to a limited number of data points for which it may be possible to define a function. There can never be a guarantee that the chosen "fit" can be reliably extrapolated. You need to tie a possible solution to

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Diez B. Roggisch
dirkheld wrote: > On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> dirkheld wrote: >> > Hi, >> >> > I upgraded my system from tiger to leopard. With leopard came a new >> > version of python 2.5 >> >> > Now I trying to run some python code that previously worked on tiger >> > (whi

Re: Generating API documentation as a textfile

2007-12-03 Thread Samuel
On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote: > dir.__doc__ This contains only the docstring one object (module, class, function, ...). I was thinking more of the complete API documentation that can be found in a file, and formatted in a readable way. -Samuel -- http://mail.pyt

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread dirkheld
On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > dirkheld wrote: > > Hi, > > > I upgraded my system from tiger to leopard. With leopard came a new > > version of python 2.5 > > > Now I trying to run some python code that previously worked on tiger > > (which included an older versio

  1   2   >