Re: how to import a .py in a parent directory ?

2005-02-15 Thread Fredrik Lundh
Fouff wrote: > > I know to import a .py in a subdirectory is : . (dot) (huh?) > > but what is the statment for parent directory ? > > sys.path.append("..") > import you_python_file_you_want_to_import.py make that: import you_python_file_you_want_to_import -- http://mail.python.

Re: how to import a .py in a parent directory ?

2005-02-15 Thread Fouff
raver2046 a écrit : hello, I know to import a .py in a subdirectory is : . (dot) but what is the statment for parent directory ? thank you. olivier noblanc http://www.logiciel-erp.fr sys.path.append("..") import you_python_file_you_want_to_import.py -- http://mail.python.org/mailman/listinfo/

Re: "perl -p -i -e" trick in Python?

2005-02-15 Thread Jeremy Bowers
On Wed, 16 Feb 2005 15:18:57 +0900, Wonjae Lee wrote: > I read the comment of > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277753. > (Title : Find and replace string in all files in a directory) > > "perl -p -i -e 's/change this/..to this/g'" trick looks handy. > Does Python have a s

Re: super not working in __del__ ?

2005-02-15 Thread Fredrik Lundh
Christopher J. Bottaro wrote: >I get this exception when I run the following code: > > Exception exceptions.TypeError: 'super() argument 1 must be type, not None' > in 0xf6f7118c>> ignored reading the documentation never hurts: http://docs.python.org/ref/customization.html "Warning: Du

Re: __new__ does not call __init__ as described in descrintro.html (WAS: Can __new__ prevent __init__ from being called?)

2005-02-15 Thread Steven Bethard
Aahz wrote: In article <[EMAIL PROTECTED]>, Steven Bethard <[EMAIL PROTECTED]> wrote: Yeah, I saw the same thing in playing around with this. Don't know what to make of it. I wonder if we should file a documentation bug? I can't find __new__ explained anywhere in the Language Reference. Can do

Re: Compiler

2005-02-15 Thread Fredrik Lundh
"Roch " <[EMAIL PROTECTED]> wrote: > I am begenning to study python programing language and I was > wondering how do I make an executable code with the interpreter > ...like if i have my code in a text file. if you have your code in a text file and you want to run it, just run the "python" in

Re: "perl -p -i -e" trick in Python?

2005-02-15 Thread Jack Diederich
On Wed, Feb 16, 2005 at 04:38:03PM +1000, Stephen Thorne wrote: > On Wed, 16 Feb 2005 15:18:57 +0900, Wonjae Lee <[EMAIL PROTECTED]> wrote: > > I read the comment of > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277753. > > (Title : Find and replace string in all files in a directory)

Re: "perl -p -i -e" trick in Python?

2005-02-15 Thread Stephen Thorne
On Wed, 16 Feb 2005 15:18:57 +0900, Wonjae Lee <[EMAIL PROTECTED]> wrote: > I read the comment of > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277753. > (Title : Find and replace string in all files in a directory) > > "perl -p -i -e 's/change this/..to this/g'" trick looks handy. > D

"perl -p -i -e" trick in Python?

2005-02-15 Thread Wonjae Lee
I read the comment of http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277753. (Title : Find and replace string in all files in a directory) "perl -p -i -e 's/change this/..to this/g'" trick looks handy. Does Python have a similar trick? Or, is there a shorter Python recipe for the given pr

Weekly Python Patch/Bug Summary

2005-02-15 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 298 open (+14) / 2754 closed ( +6) / 3052 total (+20) Bugs: 823 open (+19) / 4829 closed (+17) / 5652 total (+36) RFE : 168 open ( +1) / 144 closed ( +2) / 312 total ( +3) New / Reopened Patches __ date.strp

LOCAL NYC - UNIGROUP 17-FEB-2005 (Thurs): ZOPE - Open Source Web Development

2005-02-15 Thread Unigroup of New York
Subject: LOCAL NYC - UNIGROUP 17-FEB-2005 (Thurs): ZOPE - Open Source Web Development Unigroup's February 2005 meeting is THIS Thursday... = UNIGROUP OF NEW YORK - UNIX USERS GROUP - FEBRUARY 2005 ANNOUNCEMENTS ===

Re: SHA1 broken

2005-02-15 Thread Tim Churches
Paul Rubin wrote: > > FYI. > >From : > > The research team of Xiaoyun Wang, Yiqun Lisa Yin, and Hongbo Yu > (mostly from Shandong University in China) have been quietly > circulating a paper ann

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-15 Thread David S.
john san att.net> writes: > > How to install python under DOS and is there any Wxpython-like can be > installed under dos? > > Thanks. > If you are looking for Windows installers then, yes. See: http://www.wxpython.org/ http://www.wxpython.org/download.php#binaries If you are really looking f

SOAP 1.2 library?

2005-02-15 Thread Mike Kozlowski
I've done some looking around, and I can't find a SOAP 1.2 library for Python. ZSI and SOAPy both appear to support SOAP 1.1, and 4Suite appears not to support SOAP at all any more. Am I missing something (very likely; I don't have a good feel for the Python landscape yet), or is this just a co

SHA1 broken

2005-02-15 Thread Paul Rubin
FYI. >From : The research team of Xiaoyun Wang, Yiqun Lisa Yin, and Hongbo Yu (mostly from Shandong University in China) have been quietly circulating a paper announcing their results: * collisions in the the full

¼M!!! ¦n³¥.. «l!..............................................................................................................................................................................................................................................................................................

2005-02-15 Thread supergood
­n¦Û¤v°_¯¸¶Ü? ¨C¤ë $20 ºô­¶±H¦sªA°È ¤ä´© PHP+MySQL, Access+ASP, ASP.NET, CGI, SSI ¹q¶l¯f¬r¹LÂo, ©U§£¹q¶l¹LÂo ¤Î WebMail µ¥.. ¥»¤ë§C«e¥Ó½ÐW1000§Y°e­º¦¸¦w¸ËÁʪ«¨®µ{¦¡ osc. http://shop2.uhostnet.com ¨C¤ë¥u»Ý $20 °_ http://www.uhostnet.com http://www.hkxmb.net http://new.hkxmb.net Basic Plan W

[newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-15 Thread john san
How to install python under DOS and is there any Wxpython-like can be installed under dos? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Ilias Lazaridis <[EMAIL PROTECTED]> writes: >> >>>Mike Meyer wrote: >>> >It is an community need. Based on the evidence at hand, this is a false statement. >>> >>>It is an community need [at least partially] >> Repeati

Re: Loading functions from a file during run-time

2005-02-15 Thread tjprojects_usenet
I have to say, I was skeptical about your execution method at first -- simply joining all of the lines and then compiling them. My understanding of the compile method from the documentation led me to believe that you needed to process a line at a time. ''.join ing them all seems to work very well

Re: Loading functions from a file during run-time

2005-02-15 Thread TJ's Projects
Answer below... "Bryant Huang" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hello! > > I would like to read in files, during run-time, which contain plain > Python function definitions, and then call those functions by their > string name. In other words, I'd like to read in

low-end persistence strategies?

2005-02-15 Thread Paul Rubin
I've started a few threads before on object persistence in medium to high end server apps. This one is about low end apps, for example, a simple cgi on a personal web site that might get a dozen hits a day. The idea is you just want to keep a few pieces of data around that the cgi can update. Imm

Re: hard_decoding

2005-02-15 Thread Skip Montanaro
Andrew> for another variation see that "Unicode Hammer" at Andrew> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871 Andrew> It doesn't do the registry hooks that Skip does, and I see I Andrew> need to learn more about the functions in the codes module. Note that l

subprocess problem on Windows in IDLE and PythonWin

2005-02-15 Thread David S.
Python 2.4 on Windows XP In the python command-line the following works fine: >>> from subprocess import * >>> p = Popen('dir', stdout=PIPE) >From within IDLE or PythonWin I get the following exception: Traceback (most recent call last): File "", line 1, in -toplevel- p = Popen('dir', stdo

Re: hard_decoding

2005-02-15 Thread Andrew Dalke
Coming in a few days late to this one ... Skip > See if my latscii codec works for you: > > http://www.musi-cal.com/~skip/python/latscii.py for another variation see that "Unicode Hammer" at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871 It doesn't do the registry hooks th

Re: super not working in __del__ ?

2005-02-15 Thread Jeff Epler
When a Python program exits, various steps of cleanup occur. One of them is that each entry in the __dict__ of each module is set to 'None'. Imagine that your __del__ runs after this step of the cleanup. The reference to the module-level variable that names your class is no longer available I lo

Re: Font size

2005-02-15 Thread Adam
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > >> Please help me. >> How do you clear the screen and then display a number with an enlarged >> font >> size (about 300). >> Adam. > > To clear screen in windows : > > #at th

Re: __new__ does not call __init__ as described in descrintro.html (WAS: Can __new__ prevent __init__ from being called?)

2005-02-15 Thread Aahz
In article <[EMAIL PROTECTED]>, Steven Bethard <[EMAIL PROTECTED]> wrote: > >Yeah, I saw the same thing in playing around with this. Don't know >what to make of it. I wonder if we should file a documentation bug? I >can't find __new__ explained anywhere in the Language Reference. Can >document

Re: newbie question convert C to python

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 11:03, Steven Bethard wrote: > Paul Rubin wrote: > > [EMAIL PROTECTED] writes: > > > >>How do i handle this piece of code in python: > >> > >># define vZero 15 > >># define vOne 20 > >> > >>unsigned int vTable[Zero][One] > >> > >>if(vGroup[vZero][vOne] == 0) > >>{ > >>

__new__ does not call __init__ as described in descrintro.html (WAS: Can __new__ prevent __init__ from being called?)

2005-02-15 Thread Steven Bethard
Felix Wiemann wrote: > Steven Bethard wrote: >> http://www.python.org/2.2.3/descrintro.html#__new__ > [snip] > > I'm just seeing that the web page says: > > | If you return an existing object, the constructor call will still > | call its __init__ method. If you return an object of a different >

Re: Compiler

2005-02-15 Thread Roch ....
Hi  I am begenning to study python programing language and I was wondering how do I make an executable code with the interpreter ...like if i have my code in a text file.   thank you Roch -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterator / Iteratable confusion

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 19:25, Terry Reedy wrote: > "Michael Spencer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Terry, thanks for responding in depth. > We are both interested in the murky edges at and beyond conventional usage. > > Terry wrote > >> 2. "It is not essential

Re: Iterator / Iteratable confusion

2005-02-15 Thread Terry Reedy
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Terry, thanks for responding in depth. We are both interested in the murky edges at and beyond conventional usage. > Terry wrote >> 2. "It is not essential to not do something wasteful as long as it is >> >> other

Re: image fourier transform

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 01:18, Tim Roberts wrote: > Johannes Ahl-mann <[EMAIL PROTECTED]> wrote: > >i've been looking all around the net (google is my friend ;-) for a > >module to apply fourier transformations on images. the different ones in > >numerical python and scientific python seem all to be

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 17:24, Jeff Shannon wrote: > Ilias Lazaridis wrote: > > > Adam DePrince wrote: > > [...] > >> You're on it. You drive a car? You have to treat it right to get what > >> you want, right? Same here. Ask correctly, and you will get your > >> answers. > > Your interpretatio

Re: Variables.

2005-02-15 Thread Jeff Shannon
Bruno Desthuilliers wrote: Jeff Shannon a écrit : If running a console app from Explorer, the console will close as soon as the app terminates. Using raw_input() at the end of the app means that it won't close until the user hits Enter. So why dont you just open the console before running the ap

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes MinGW compatibility is not [only] my need. It is an community need [at least partially] Clearly not. If it was, using your logic, it would already exist. -- Stephen Kellett Object Media Limitedhttp://www.objmedia.demon.

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Ilias Lazaridis <[EMAIL PROTECTED]> writes The community is everyone around python (including me at this moment). Based on the communities response to you (and the similar response you are getting in c.l.ruby) you are not a member of either community as you contin

SONO A PRIX DISCOUNT

2005-02-15 Thread YANOF
Gagnez 5% du montant des commandes, devenez affilié... Double DERBY 69 € Activ 212 229 € PR-80 85 € Arm Laser 109 € PA-2400 189 € Faites comme moi, affiliez vous et gagner de l'arge

Re: Variables.

2005-02-15 Thread Bruno Desthuilliers
Jeff Shannon a écrit : bruno modulix wrote: administrata wrote: I wrote this, It's a bit lame though (snip code - see other answers in this thread) raw_input("\n\\t\t\t- The End -") Why on earth are you using raw_input() here ? This is a fairly common idiom, on Windows at least. Windows only, I

how to import a .py in a parent directory ?

2005-02-15 Thread raver2046
hello, I know to import a .py in a subdirectory is : . (dot) but what is the statment for parent directory ? thank you. olivier noblanc http://www.logiciel-erp.fr -- http://mail.python.org/mailman/listinfo/python-list

super not working in __del__ ?

2005-02-15 Thread Christopher J. Bottaro
I get this exception when I run the following code: Exception exceptions.TypeError: 'super() argument 1 must be type, not None' in > ignored Here is the code: class Txrposdn(PRI.BasicBatch): def __init__(self, *argv): super(Txrposdn, self).__init__(*argv) def __del__(self): super(T

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Bruno Desthuilliers
Ilias Lazaridis a écrit : bruno modulix wrote: Ilias Lazaridis wrote: (snip) impressive. but things are much simpler. Could you be more prolific ? Please explain the word "prolific". Say more -- http://mail.python.org/mailman/listinfo/python-list

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Jack Diederich
On Tue, Feb 15, 2005 at 10:30:21PM +0100, Felix Wiemann wrote: > Sometimes (but not always) the __new__ method of one of my classes > returns an *existing* instance of the class. However, when it does > that, the __init__ method of the existing instance is called > nonetheless, so that the instanc

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Felix Wiemann
Steven Bethard wrote: > Felix Wiemann wrote: > >> How can I prevent __init__ from being called on the >> already-initialized object? > > The short answer: you can't: > http://www.python.org/2.2.3/descrintro.html#__new__ What a pity. By the way, I'm just seeing that the web page says: | If

Re: How do I make my program start fullscreen ?

2005-02-15 Thread Peter Hansen
BOOGIEMAN wrote: os = windows xp How do I make "myprogram.py" start fullscreen at windows command prompt ? Also I made it as "myprogram.exe" with py2exe,but how to start fullscreen ? For an EXE, one approach is to create a shortcut (I believe making a PIF file will also work, but haven't tried tha

How do I make my program start fullscreen ?

2005-02-15 Thread BOOGIEMAN
os = windows xp How do I make "myprogram.py" start fullscreen at windows command prompt ? Also I made it as "myprogram.exe" with py2exe,but how to start fullscreen ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Font size

2005-02-15 Thread BOOGIEMAN
On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote: > Please help me. > How do you clear the screen and then display a number with an enlarged font > size (about 300). > Adam. To clear screen in windows : #at the beggining of the program import os #when you want to clear the screen os.system("cls")

Re: Calling a function from module question.

2005-02-15 Thread Jeff Shannon
Sean wrote: So what if I have a whole bunch of functions - say 25 of them. Is there a way to do this without naming each function? Yes [1], but it's basically deprecated and you shouldn't use it. Consider refactoring your code. Refactoring my code? Sorry, I am not sure what you mean here. 'Refact

Re: Accessing Objects Based On Their ID

2005-02-15 Thread Terry Reedy
"Tim Daneliuk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Given the ID of an object, is there a way to access it? You got the right short answer already. Another long answer 'yes' is to keep a dictionary mapping ids to objects, but as Diez pointed out, you need a real reason t

Re: Calling a function from module question.

2005-02-15 Thread Joe Francia
Sean wrote: Sean wrote: Then I would have a script that uses the print_this function defined in the module without using the module name in the call. from module_name import print_this or, even: from module_name import print_this as other_nice_name So what if I have a whole bunch of functions -

Re: Newbie question about class operator overloading

2005-02-15 Thread Steven Bethard
Rory Campbell-Lange wrote: Hi. I'm just starting to use python. I am anxious about how best to set and access items one level down in a data structure if I am using __setitem__ and __getitem__. At the moment I can do for a data structure Data: object.Data = { 'one' : [1, 2, {}, 4],

Re: Calling a function from module question.

2005-02-15 Thread Terry Reedy
"Sean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > import module_name.py leave off the .py Irmen answered your main question. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Jeff Shannon
Ilias Lazaridis wrote: Adam DePrince wrote: [...] You're on it. You drive a car? You have to treat it right to get what you want, right? Same here. Ask correctly, and you will get your answers. Your interpretation/definition of "asking correctly" is irrelevant to me. "Interpretation is irrel

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Michael Spencer
Peter Hansen wrote: Felix Wiemann wrote: Sometimes (but not always) the __new__ method of one of my classes returns an *existing* instance of the class. However, when it does that, the __init__ method of the existing instance is called nonetheless, so that the instance is initialized a second time

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Peter Hansen
Felix Wiemann wrote: Sometimes (but not always) the __new__ method of one of my classes returns an *existing* instance of the class. However, when it does that, the __init__ method of the existing instance is called nonetheless, so that the instance is initialized a second time. For example, plea

Re: some qustions on python

2005-02-15 Thread Peter Hansen
Caleb Hattingh wrote: On Tue, 15 Feb 2005 13:16:53 -0500, samar bazied <[EMAIL PROTECTED]> wrote: Hi.. plz can u help me?? I am very new in python and I have some qustions about it. can u give me design process of python and their related langauges? and I will be very habby if u give me small eva

Re: Calling a function from module question.

2005-02-15 Thread Steven Bethard
Sean wrote: from module_name import print_this or, even: from module_name import print_this as other_nice_name So what if I have a whole bunch of functions - say 25 of them. Is there a way to do this without naming each function? Yes [1], but it's basically deprecated and you shouldn't use it. Co

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Steven Bethard
Felix Wiemann wrote: Sometimes (but not always) the __new__ method of one of my classes returns an *existing* instance of the class. However, when it does that, the __init__ method of the existing instance is called nonetheless, so that the instance is initialized a second time. [snip] How can I p

Re: Access function defaults

2005-02-15 Thread Fredrik Lundh
James Stroud wrote: > By the way, I already know a million "better" ways to do this, so no > need for the "why would you want to do that?" responses. why not? (if you really want to know how this works, study the source code for the "getargspec" function in the inspect module. or easier, you ca

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Grant Edwards
On 2005-02-15, bruno modulix <[EMAIL PROTECTED]> wrote: > Ilias Lazaridis wrote: > >> impressive. >> >> but things are much simpler. > > Could you be more prolific ? Good god, let's hope not! -- Grant Edwards grante Yow! I'm working under

Re: How can I Fill in web form and post back

2005-02-15 Thread Joe Francia
Rigga wrote: Hi, I am looking for the best way to use Python to get a web page, look for some particular fields on a form, fill in the fields and submit the form but I have no idea where to start - any pointers appreciated many thanks Rigga Here's a pretty good resource: http://www.google.com/searc

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Terry Reedy
In his 15 post on this thread within 5 hours, "Ilias Lazaridis" <[EMAIL PROTECTED]> wrote in message > Please explain the word "prolific". -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Joe Francia
Ilias Lazaridis wrote: Joe Francia wrote: Ilias Lazaridis wrote: [...] MinGW compatibility is not [only] my need. It is an community need [at least partially] You keep using that word "community". I do not think it means what you think it means. The community is everyone around python (including

Access function defaults

2005-02-15 Thread James Stroud
Hello all, I'm curious--How do I access a function defaults by name? for example def bob(wife, wives=[]):   # add wife to wives if applicable   if (can_add_wife(wife,wives)):     wives.append(wife)   return len(wives) Say the bob function is adding to wives. What if you want to see what th

Re: Calling a function from module question.

2005-02-15 Thread Sean
>>>from module_name import print_this >>> >>>or, even: >>> >>>from module_name import print_this as other_nice_name >> >> So what if I have a whole bunch of functions - say 25 of them. >> Is there a way to do this without naming each function? > > Yes [1], but it's basically deprecated and you shou

Re: os.walk() usage

2005-02-15 Thread rbt
[EMAIL PROTECTED] wrote: every object in os.walk() returns a 3-tuple, like below, it seems your code assumes it returns only a list of files. for d in os.walk('c:\\temp'): (dirpath, dirnames, filenames) = d print dirpath print dirnames print filenames Thank you, this

Re: Calling a function from module question.

2005-02-15 Thread Steven Bethard
Sean wrote: Sean wrote: Then I would have a script that uses the print_this function defined in the module without using the module name in the call. from module_name import print_this or, even: from module_name import print_this as other_nice_name So what if I have a whole bunch of functions - say

Re: Newbie question about class operator overloading

2005-02-15 Thread Rory Campbell-Lange
Anyone out there? Criticism about the objective of my question, not just the execution, gratefully received! Basically, if I have a class This: def __init__(self, x, y): self.x=x self.y=y self.data = {} and then make all my setitem and getitem cal

Re: Iterator / Iteratable confusion

2005-02-15 Thread Francis Girard
Le mardi 15 FÃvrier 2005 02:26, Terry Reedy a ÃcritÂ: > "Francis Girard" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > (Note for oldtimer nitpickers: except where relevant, I intentionally > ignore the old and now mostly obsolete pseudo-__getitem__-based iteration > protocol her

Can __new__ prevent __init__ from being called?

2005-02-15 Thread Felix Wiemann
Sometimes (but not always) the __new__ method of one of my classes returns an *existing* instance of the class. However, when it does that, the __init__ method of the existing instance is called nonetheless, so that the instance is initialized a second time. For example, please consider the follo

Re: Font size

2005-02-15 Thread Fredrik Lundh
"Adam" <[EMAIL PROTECTED]> wrote: > How do you clear the screen and then display a number with an enlarged font > size (about 300). what platform? what screen? 300 what? -- http://mail.python.org/mailman/listinfo/python-list

How can I Fill in web form and post back

2005-02-15 Thread Rigga
Hi, I am looking for the best way to use Python to get a web page, look for some particular fields on a form, fill in the fields and submit the form but I have no idea where to start - any pointers appreciated many thanks Rigga -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a function from module question.

2005-02-15 Thread Sean
> Sean wrote: > >> Then I would have a script that uses the >> print_this function defined in the module >> without using the module name in the call. > > > > from module_name import print_this > > or, even: > > from module_name import print_this as other_nice_name > So what if I have a whole bunc

Font size

2005-02-15 Thread Adam
Please help me. How do you clear the screen and then display a number with an enlarged font size (about 300). Adam. -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
I'm 'closing' this thread now [means that I do possibly not respond anymore to messages]. Thank you for your time and effort. . -- http://lazaridis.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Tim Peters wrote: [...] - (thorough comments) Thank you very much for your thoroug comments. . -- http://lazaridis.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Mike Meyer wrote: Ilias Lazaridis <[EMAIL PROTECTED]> writes: Joe Francia wrote: Ilias Lazaridis wrote: [...] MinGW compatibility is not [only] my need. It is an community need [at least partially] You keep using that word "community". I do not think it means what you think it means. The community

Re: Postgres COPY Command with python 2.3 pg

2005-02-15 Thread Michael Lang
On 2005-02-15, @(none) <""> wrote: > Michael Lang wrote: >> using psql it works fine, but i dont know how to get it working in python. >> Ive already made the calls but the changes never apper, and no error. > > Which Postgres module are you using? I had the exct same problem when I > first starte

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Mike Meyer wrote: Ilias Lazaridis <[EMAIL PROTECTED]> writes: Mike Meyer wrote: It is an community need. Based on the evidence at hand, this is a false statement. It is an community need [at least partially] Repeating a falsehood will not make it true. Can you offer anything besides your own whinin

RE: os.walk() usage

2005-02-15 Thread Batista, Facundo
Title: RE: os.walk() usage [rbt] #- The problem I'm encountering is passing the list to other functions. #- It's almost as if each function needs to build the list #- itself (walk the #- filesystem)... which gets in the way of what I was asked to #- do (break #- this thing up into modul

Re: Newbie help

2005-02-15 Thread Chad Everett
I got it, thanks for the help. Chad "Michael Hartl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sorry about the code: Google Groups screwed up the formatting, but I > hope you get the picture. > -- http://mail.python.org/mailman/listinfo/python-list

Big latex subscript using python.sty and manual.cls

2005-02-15 Thread Bo Peng
Dear list, I am writing a manual for my python extension using Python (2.4) latex classes. Everything seems to be fine except that the subscripts are as big as normal text ( see page 55 of http://bp6.stat.rice.edu:8080/simuPOP_doc/userGuide.pdf ). I doubt that the following piece of code in pyt

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Joe Francia wrote: >> Ilias Lazaridis wrote: > [...] >>> MinGW compatibility is not [only] my need. >>> >>> It is an community need [at least partially] >> You keep using that word "community". I do not think it means what >> you think it means. > > Th

Re: Newbie help

2005-02-15 Thread Chad Everett
No problem, I need all the help and insruction I can get. Thanks, Chad "Kent Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kent Johnson wrote: >> You might be interested in the Python tutor mailing list which is >> specifically intended for beginners. >> http://mail.pyt

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Mike Meyer
Ilias Lazaridis <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>>It is an community need. >> Based on the evidence at hand, this is a false statement. > It is an community need [at least partially] Repeating a falsehood will not make it true. Can you offer anything besides your own whining to

Re: Calling a function from module question.

2005-02-15 Thread Irmen de Jong
Sean wrote: Then I would have a script that uses the print_this function defined in the module without using the module name in the call. from module_name import print_this or, even: from module_name import print_this as other_nice_name --Irmen -- http://mail.python.org/mailman/listinfo/python-lis

Re: keeping a COM server alive

2005-02-15 Thread Do Re Mi chel La Si Do
Hi ! Sorry, but I receive the mailing list, I had readed THE book (Prog...Win32), I questioned M.Hammond, I traversed the archives... But I have no solution. And, also, a COM server which answers several clients is very smart to design; in particular because of the temporal re-entry (re-entrance

Calling a function from module question.

2005-02-15 Thread Sean
Is there any way I could have the following work? First I would have a module define a function to do something like print some data. - module_name.py - [snip] def print_this(data): print "This is the data: %s" %data [/snip] - Then I would have a scri

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Adam DePrince wrote: [...] If the community needs it, a member of said community has both complete unfettered freedom and a supportive environment to make it. Which is this "supportive environment"? You're on it. You drive a car? You have to treat it right to get what you want, right? Same he

Re: Variables.

2005-02-15 Thread Jeff Shannon
bruno modulix wrote: administrata wrote: I wrote this, It's a bit lame though (snip code - see other answers in this thread) raw_input("\n\\t\t\t- The End -") Why on earth are you using raw_input() here ? This is a fairly common idiom, on Windows at least. If running a console app from Explorer,

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Grant Edwards
On 2005-02-15, Adam DePrince <[EMAIL PROTECTED]> wrote: > You didn't intent to, but you begging. Sure, you save some face by not > obviously groveling, but that only makes the slight worse. Now somebody > asked that you to read > http://www.catb.org/~esr/faqs/smart-questions.html. Read it in

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 14:25, Ilias Lazaridis wrote: > Adam DePrince wrote: > > On Tue, 2005-02-15 at 13:29, Ilias Lazaridis wrote: > >>Mike Meyer wrote: > >>>Ilias Lazaridis <[EMAIL PROTECTED]> writes: > [...] > >>MinGW compatibility is not [only] my need. > >> > >>It is an community need [at least

Re: Postgres COPY Command with python 2.3 pg

2005-02-15 Thread @(none)
Michael Lang wrote: using psql it works fine, but i dont know how to get it working in python. Ive already made the calls but the changes never apper, and no error. Which Postgres module are you using? I had the exct same problem when I first started using pyPgSQL, until I figured out that I neede

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Joe Francia wrote: Ilias Lazaridis wrote: [...] MinGW compatibility is not [only] my need. It is an community need [at least partially] You keep using that word "community". I do not think it means what you think it means. The community is everyone around python (including me at this moment). We c

RE: replacing ASP/VBScript with Python

2005-02-15 Thread Robert Brewer
Peter Maas wrote: > Robert Brewer schrieb: > >>I'm now confident that it is doable and keen on finding > out. The usual > >>question: what is the one and best way to do it? ;) > > > > > > Python ASP (pywin32), but put as little code as possible into the > > ASP--make it just a stub to call the r

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Tim Peters
[Tim Peters] >> Well, I'm a Director of the Python Software Foundation, and my view is >> "the more platforms the merrier". [Ilias Lazaridis] > I extract: "you are intrested, that the source-code-base compiles > directly with MinGW (and other compilers)". Sure, I'm in favor of that. I'm also in

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Joe Francia
Ilias Lazaridis wrote: Mike Meyer wrote: Ilias Lazaridis <[EMAIL PROTECTED]> writes: MinGW compatibility is not my need. Then why do you waste so much effort whining about it not being given to you? It is an community need. Based on the evidence at hand, this is a false statement. MinGW co

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
bruno modulix wrote: Ilias Lazaridis wrote: bruno modulix wrote: Ilias Lazaridis wrote: there are other reasons behind the decision to not support the MinGW open-source-complier directly out of the main source-code base. Yes, of course. The reason is they are lying about their commitment to open

Re: Accessing Objects Based On Their ID

2005-02-15 Thread Tim Daneliuk
Diez B. Roggisch wrote: Given the ID of an object, is there a way to access it? For example, if we have the ID of a class instance, is there a way to invoke its methods and attributes knowning only that ID? Similarly, if we have the ID of a function, is there a way to call it? No. This comes

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-15 Thread Ilias Lazaridis
Adam DePrince wrote: On Tue, 2005-02-15 at 13:29, Ilias Lazaridis wrote: Mike Meyer wrote: Ilias Lazaridis <[EMAIL PROTECTED]> writes: [...] MinGW compatibility is not [only] my need. It is an community need [at least partially] And herein lies the beauty of the noble meritocratic free software mov

  1   2   3   >