Re: minimalist web server

2007-12-03 Thread MonkeeSage
On Dec 2, 10:13 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > > > The reason I need this is that my current best strategy to avoid ads in > > > web pages is putting all ad server names into /etc/hosts and stick my > > > local ip number next to them (127.0.0.1) so every ad request goes to my

Re: [OT] minimalist web server

2007-12-03 Thread James Matthews
Using DSL (Damn Small Linux) try apache! Or you can try litehttpd On Dec 2, 2007 3:35 AM, Daniel Fetchinson <[EMAIL PROTECTED]> wrote: > Hi list, > > This is way off topic but maybe somebody knowledgeable can help. > > I'm looking for the most minimalist web server ever that does nothing > el

Thread

2007-12-03 Thread Gianmaria Iaculo - NVENTA
Hi all, i'm using python 1.5.2. Is it possible to use the Thread module? I need it for the Timer library. Regards, Gianmaria -- http://mail.python.org/mailman/listinfo/python-list

Re: Announcing Apydia

2007-12-03 Thread Daniel Haus
On 30 Nov., 19:46, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > You might want to fix the typo in the title tag of the webpage. > > Cheers, > Daniel That one was really hard to find, now I fixed it. Thank you, Daniel! -- http://mail.python.org/mailman/listinfo/python-list

Re: Limit Guessing Algorithm

2007-12-03 Thread Albert Retey
Hi, > > I'm looking for a piece of code, preferably in Python, that will do > the following. It will accept a few data points (x,f(x)) of a function > that converges to some finite value when x converges to infinity. I > need the algorithm to guess what that limit is, to whatever precision > it ca

Re: Thread

2007-12-03 Thread Gianmaria Iaculo - NVENTA
Diez i'm so sorry, You are right. thank you. Gianmaria Firma Gianmaria Iaculo "Diez B. Roggisch" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Gianmaria Iaculo - NVENTA wrote: > >> >> Hi all, >> i'm using python 1.5.2. >> >> Is it possible to use the Thread module? I ne

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

2007-12-03 Thread MonkeeSage
On Dec 2, 4:47 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sat, 01 Dec 2007 23:55:32 -0800, Russ P. wrote: > > I neither know nor care much about Newton's personality and social > > graces, but I can assure you that he was more than a "technician" (no > > offense to techn

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

2007-12-03 Thread markacy
On 3 Gru, 05:02, itcecsa <[EMAIL PROTECTED]> wrote: > Hi, > > 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! > > Any suggestions would be a

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

2007-12-03 Thread [EMAIL PROTECTED]
Hello, One solution I can think of would be to write an interface to the Matlab command prompt using pexpect, the python implementation of expect. Expect allows you to spawn and interact with other process. There is already a cool implementation of exactly this in Sage, an open source computer alg

Google earth HWND and python

2007-12-03 Thread FlyBoy
Hi, I'm working on a little program to export gps data to KML file. This program is up and running however reading the documentation of Google Earth I came across an interesting possibilities. I have found a couple of examples on controlling Google Earth in python. I have experimented with cod

Generating API documentation as a textfile

2007-12-03 Thread Samuel
Does anyone know an easy way to extract the API documentation that is embedded into a Python file as a text file? -Samuel -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread

2007-12-03 Thread Diez B. Roggisch
Gianmaria Iaculo - NVENTA wrote: > > Hi all, > i'm using python 1.5.2. > > Is it possible to use the Thread module? I need it for the Timer library. According to http://www.python.org/doc/1.5.2/lib/lib.html it's there. Why don't you just import it and try? Would have cost less time than posting

Talking to midi devices

2007-12-03 Thread Alex Polite
I'm an old hand at python but all new to midi and audio. I just started playing around with pygame to make something similar to http://www.synthesiagame.com that will run under linux (and preferably mac os x and windows). One thing I need is a way to talk to midi devices from python. What's my bes

Re: String formatting with %s

2007-12-03 Thread Tim Chase
>> dictionary-key/value syntax), you can do something like: > number = lambda x: dict((str(i+1), v) for (i,v) in enumerate(x)) > "%(2)s and %(1)s" % number(["A", "B"]) > > Whoa - that'll take me a little while to figure out, but it looks intriguing! It basically just returns a dictionary

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

2007-12-03 Thread Steven D'Aprano
On Mon, 03 Dec 2007 02:12:17 -0800, MonkeeSage wrote: > Being fair, the bulk of Liebniz' writings have also been rejected by > those in related fields. Most modern metaphysicians hold a view closer > to Boston Personalism or at least post-Kantian Personalism (a la Buber), > than monadic unity and

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

2007-12-03 Thread MonkeeSage
On Dec 3, 7:23 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 03 Dec 2007 02:12:17 -0800, MonkeeSage wrote: > > Being fair, the bulk of Liebniz' writings have also been rejected by > > those in related fields. Most modern metaphysicians hold a view closer > > to Boston

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

2007-12-03 Thread dirkheld
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 version of python). This is the error I'm receiving : Traceback (most recent call last): File "test.py",

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

2007-12-03 Thread Diez B. Roggisch
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 version of python). > > This is the error I'm receiving : > > Traceback (mos

Re: os.access() under windows

2007-12-03 Thread Martin v. Löwis
> I create a folder test under e: > > then os.access('e:\\test', os.W_OK) returns True. Everything's ok. > > Now I move My Documents to this e:\test folder > > Then os.access('e:\\test', os.W_OK) returns False !! This description is, unfortunately, too imprecise to allow reproducing that effect

Overriding member methods in __init__

2007-12-03 Thread c james
Given a condition at the time a class is instantiated, I want to change how __call__ is used. From the example below, self.no is using self.yes but self.__call__ is not. Can someone please explain why? EXAMPLE: class YesNo(object): def __init__(self, which): self.no = self.yes

Re: os.access() under windows

2007-12-03 Thread Yann Leboulanger
Martin v. Löwis a écrit : >> I create a folder test under e: >> >> then os.access('e:\\test', os.W_OK) returns True. Everything's ok. >> >> Now I move My Documents to this e:\test folder >> >> Then os.access('e:\\test', os.W_OK) returns False !! > > This description is, unfortunately, too imprecis

make money with bux!!

2007-12-03 Thread beronz
http://bux.to/?r=beronz use this link to register What is Bux.to? Bux.to is a new innovative, international and FREE English based service that allows advertisers to reach thousands of potential customers by displaying their ad on our, "Surf Ads" page. How does it work? You view websites in 30 s

Re: Need to call functions/class_methods etc using string ref :How

2007-12-03 Thread Ravi Kumar
WOW, Thanks a lot. I got many options to do, and play with. Each one having its own pros and cons. But for my requirement in project, i will go with hasattr/getattr/callable and then calling the ref method. It seems fit for the problem. Thanks a lot :) again. On Dec 1, 2007 12:45 AM, Bruno Desthu

Re: converting to and from octal escaped UTF--8

2007-12-03 Thread Michael Goerz
MonkeeSage wrote: > On Dec 3, 1:31 am, MonkeeSage <[EMAIL PROTECTED]> wrote: >> On Dec 2, 11:46 pm, Michael Spencer <[EMAIL PROTECTED]> wrote: >> >> >> >>> Michael Goerz wrote: Hi, I am writing unicode stings into a special text file that requires to have non-ascii characters as as o

Re: Overriding member methods in __init__

2007-12-03 Thread Bruno Desthuilliers
c james a écrit : > Given a condition at the time a class is instantiated, I want to change > how __call__ is used. From the example below, self.no is using self.yes > but self.__call__ is not. Can someone please explain why? IIRC, you can't override __magic__ methods on a per-instance basis. >

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

2007-12-03 Thread Paul McGuire
On Dec 2, 10:02 pm, itcecsa <[EMAIL PROTECTED]> wrote: > Hi, > > 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! > > Any suggestions would b

Re: os.access() under windows

2007-12-03 Thread Tim Golden
Yann Leboulanger wrote: > Martin v. Löwis a écrit : >>> I create a folder test under e: >>> >>> then os.access('e:\\test', os.W_OK) returns True. Everything's ok. >>> >>> Now I move My Documents to this e:\test folder >>> >>> Then os.access('e:\\test', os.W_OK) returns False !! >> This description

Re: Generating API documentation as a textfile

2007-12-03 Thread Giampaolo Rodola'
On 3 Dic, 11:26, Samuel <[EMAIL PROTECTED]> wrote: > Does anyone know an easy way to extract the API documentation that is > embedded into a Python file as a text file? > > -Samuel Something like this? print >> open('file.txt', 'w'), dir.__doc__ -- http://mail.python.org/mailman/listinfo/python-

Re: os.access() under windows

2007-12-03 Thread Tim Golden
Tim Golden wrote: > Yann Leboulanger wrote: >> Martin v. Löwis a écrit : I create a folder test under e: then os.access('e:\\test', os.W_OK) returns True. Everything's ok. Now I move My Documents to this e:\test folder Then os.access('e:\\test', os.W_OK) returns F

Re: How can I create customized classes that have similar properties as 'str'?

2007-12-03 Thread zooko
On Nov 24, 4:44 am, Licheng Fang <[EMAIL PROTECTED]> wrote: > > Yes, millions. In my natural language processing tasks, I almost > always need to define patterns, identify their occurrences in a huge > data, and count them. Say, I have a big text file, consisting of > millions of words, and I want

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

2007-12-03 Thread Rick Dooling
On Dec 3, 7:47 am, dirkheld <[EMAIL PROTECTED]> wrote: > IOError: [Errno 2] No such file or directory: 'a_file.txt' I sometimes see that error on Linux when trying to run a script with DOS line endings. Is it an imported file? I don't know Macs, but start by making sure both your script and the f

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

Re: Overriding member methods in __init__

2007-12-03 Thread c james
Bruno Desthuilliers wrote: > c james a écrit : >> Given a condition at the time a class is instantiated, I want to change >> how __call__ is used. From the example below, self.no is using self.yes >> but self.__call__ is not. Can someone please explain why? > > IIRC, you can't override __magic__

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

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

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

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.

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

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

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

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

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:

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: C++2py

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

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

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

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

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

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

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

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

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

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

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

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.

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

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: "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 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 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: "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 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: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.

  1   2   >