Re: Https Form Page

2005-04-09 Thread Hasan D
I cant figure out, always gives me the form page. Everything looks ok but ? On Apr 9, 2005 2:07 AM, Joshua Ginsberg [EMAIL PROTECTED] wrote: If url is your formpage and your formdata is correct, it should work. Do you need to have a cookie set? Is it 304 redirecting you? -jag

Re: Thoughts on some stdlib modules

2005-04-09 Thread Steve Holden
Ron_Adam wrote: On Fri, 08 Apr 2005 05:15:23 -0400, vegetax [EMAIL PROTECTED] wrote: Are those issues being considered right now? i cant find any PEP addressing the issue especifically, at least cooking it for python 3000. specific topics could be: grouping related modules. removing useless

Python/wxPython Reducing memory usage.

2005-04-09 Thread lotmr
I have previously posted a simple app I am working on, and while I love python and wxWindows, after checking the memory usage on such a simple app (system try application launcher) I see that it climbs to over 17mb! I have reduced all my imports to the bare workable minimum and that just gets it

Re: Declaring variables from a list

2005-04-09 Thread Pierre Quentel
You can use the built-in statement exec (http://www.python.org/doc/2.4.1/ref/exec.html) : # Blob = ['Var1', 'Var2', 'vAR3'] # i = 5 # for listitems in Blob: # i += 1 # exec('%s = i' %listitems) # # print Var1, Var2, vAR3 Regards, Pierre --

Re: EOL created by .write or .encode

2005-04-09 Thread Fredrik Lundh
Xah Lee [EMAIL PROTECTED] wrote: Why is that some of my files written out by outF.write(outtext.encode('utf-8')) has ascii 10 as EOL, while others has ascii 13 as EOL? outF = open(tempName,'wb') outF.write(outtext.encode('utf-8')) outF.close() UTF-8 is not a binary format.

Re: EOL created by .write or .encode

2005-04-09 Thread Xah Lee
I found the problem now. (after some one hour debug time) Python didn't have problem. Emacs does. If you open a file in emacs, it will open fine regardless whether the EOL is ascii 10 or 13. (unix or mac) This is a nice feature. However, the what-cursor-position which is used to show cursor

ideal rankings for python related search engine queries

2005-04-09 Thread Amir Michail
Hi, Google is good, but not perfect. CollaborativeRank takes Google rankings as a starting point but allows users to tweak them in a collaborative way to achieve something even better. Perhaps some people in this group might be interested in producing even better rankings for python related

check instace already running...

2005-04-09 Thread Fabio Pliger
Hi, is it possibile, in python, to check for an already running instance of an application? My problem is that, if my program i running and the user relaunch it, i don't want to open a new instance and have to instances of the same program running togheter... Can someone help me on this? Fabio P.

Re: Puzzling OO design problem

2005-04-09 Thread Dirk Thierbach
George Sakkis [EMAIL PROTECTED] wrote: 1. There is a (single inheritance) hierarchy of domain classes, say A-B-..-Z (arrows point to the parent in the inheritance tree). 2. This hierarchy evolved over time to different versions for each class. So for example, version's 1 hierarchy would be

Re: Counting iterations

2005-04-09 Thread Fredrik Lundh
Derek Basch wrote: ooops you are right. Should have been: pets = [cat, dog, bird] num_pets = 0 for i in pets: num_pets += 1 print pet + # + num_pets Traceback (most recent call last): File example.py, line 5, in ? print pet + # + num_pets TypeError: cannot concatenate 'str'

Re: check instace already running...

2005-04-09 Thread Sidharth Kuruvila
I haven't tested this. There is probably a better way of doing this looking at process information. I use a lock file to mark that the program is already running. The problem is that for an abrupt shutdown the file might not be removed. import atexit if os.path.exists(lockfile): print there is

Re: Thoughts on some stdlib modules

2005-04-09 Thread Ron_Adam
On Sat, 09 Apr 2005 02:22:45 -0400, Steve Holden [EMAIL PROTECTED] wrote: Ron_Adam wrote: On Fri, 08 Apr 2005 05:15:23 -0400, vegetax [EMAIL PROTECTED] wrote: Are those issues being considered right now? i cant find any PEP addressing the issue especifically, at least cooking it for python

Re: Puzzling OO design problem

2005-04-09 Thread Michael Spencer
George Sakkis wrote: boiled down version of George's exmaple I'm not sure if it was clear to you, but my problem is the dummy WorldModel_v1.MovableObject class. It doesn't do anything by itself, but it has to be in the inheritance chain to make its descendants work properly. George, since you

How to check whether a list have specific value exist or not?

2005-04-09 Thread praba kar
Dear All In Php we can find in_array() function which function is mainly useful to check whether a specific value is exist in the array or not. But In python In cannot find any function like that. I want to check a list have specific value or not. So If any one know regarding this mail

Re: How to check whether a list have specific value exist or not?

2005-04-09 Thread Michael Spencer
praba kar wrote: Dear All In Php we can find in_array() function which function is mainly useful to check whether a specific value is exist in the array or not. But In python In cannot find any function like that. I want to check a list have specific value or not. So If any one know

change the date string into timestamp

2005-04-09 Thread praba kar
Dear All, In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. Date string format is below Fri, 8 Apr 2005 09:22:14 +0900 regards Prabahar

Re: change the date string into timestamp

2005-04-09 Thread Michael Hoffman
praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. What do you mean by a timestamp? -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: How to check whether a list have specific value exist or not?

2005-04-09 Thread Heiko Wundram
Am Samstag, 9. April 2005 11:37 schrieb Michael Spencer: praba kar wrote: I want to check a list have specific value or not. So If any one know regarding this mail me A minute of two experimenting, would then lead you to: l = [1,2,3,4,5] l.index(3) 2 Or, if its that you just

Re: How to check whether a list have specific value exist or not?

2005-04-09 Thread Michael Hoffman
praba kar wrote: In Php we can find in_array() function which function is mainly useful to check whether a specific value is exist in the array or not. But In python In cannot find any function like that. If you just want a boolean result you can use x in l: l = range(5) l [0, 1, 2, 3, 4] 3 in

Re: change the date string into timestamp

2005-04-09 Thread praba kar
--- Michael Hoffman [EMAIL PROTECTED] wrote: praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. What do you mean by a timestamp? -- Time stamp means datestring will

Re: How to check whether a list have specific value exist or not?

2005-04-09 Thread Sidharth Kuruvila
Hi Prabha, if 3 in [1, 2, 3, 4]: print yes Python is an amazing language if you understand that it is actually quite a bit different from php. The python tutorial is pretty good, I suggest you go through it. On Apr 9, 2005 3:07 PM, Michael Spencer [EMAIL PROTECTED] wrote: praba kar

Re: change the date string into timestamp

2005-04-09 Thread Heiko Wundram
Am Samstag, 9. April 2005 11:38 schrieb praba kar: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. You want the standard library function strptime from the time module (in case it's a timestamp

Re: Problem with national characters

2005-04-09 Thread Leif B. Kristensen
Martin v. Löwis skrev: You need to do locale.setlocale(locale.LC_ALL, ) to get locale-specific upper-casing. That makes a lot of sense. Thank you. 'før'.upper() 'F\xf8R' 'FØR' 'F\xd8R' import locale locale.setlocale(locale.LC_ALL, ) 'no_NO' 'før'.upper() 'F\xd8R' 'FØR' 'F\xd8R' I must

Re: change the date string into timestamp

2005-04-09 Thread Fredrik Lundh
praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. you might save yourself (and everyone else) some time by looking for things in the documentation before you post... Time stamp

RE: Equivalent string.find method for a list of strings

2005-04-09 Thread Sells, Fred
linenums = [i for i in range(len(lines)) if lines[i].find(searchstring) =0] -Original Message- From: Joshua Ginsberg [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 4:12 PM To: [EMAIL PROTECTED] Subject: Re: Equivalent string.find method for a list of strings try: filter(lambda

Re: Declaring variables from a list

2005-04-09 Thread Cactus
Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Cactus wrote: If I got a list is it possible to declare a variable from the items in that list? Code Sample: Blob = ['Var1', 'Var2', 'vAR3'] i = 5 for listitems in Blob: i += 1 listitems = i

Re: Puzzling OO design problem

2005-04-09 Thread George Sakkis
Michael Spencer [EMAIL PROTECTED] wrote: George, since you explicit allowed metaprogramming hacks :-), how about something like this (not tested beyond what you see): [snipped] Nice try, but ideally all boilerplate classes would rather be avoided (at least being written explicitly). Also,

Re: changing from python2.3 to python2.4

2005-04-09 Thread Martin v. Löwis
Uwe Mayer wrote: How do you suggest dealing with this: - is calling /usr/bin/python2.3 in the bang-line problematic? - installing into both python2.3 and python2.4 - rebuilding (re- ./configure, make, make install) the app solves the problem Whats the usual way to deal with this? People

Re: Thoughts on some stdlib modules

2005-04-09 Thread Martin v. Löwis
vegetax wrote: Why does people have to put wrappers around about half of the standart library modules? i have wrappers for urllib,urllib2, [... many more ...] I mean is this normal? Not sure what this is :-) Is it normal that people write wrappers around libraries? Yes, most certainly so. I

Re: Text Unicode processing references on the web.

2005-04-09 Thread Martin v. Löwis
anthony hornby wrote: Can anyone point out some good Python Unicode and Python Text processing resources on the net to get me started? Any good book recommendations? As a quick Unicode tutorial, I'd recommend http://www.jorendorff.com/articles/unicode/python.html

Re: Python extension performance

2005-04-09 Thread Martin v. Löwis
David Jones wrote: Both the C++ executable and python module were linked from the same object files, and linked with the same options. The only difference is that the Python module is linked with -shared, and the C++ code is not. [...] Some potential causes of my problems: - linking to a

Re: Python/wxPython Reducing memory usage.

2005-04-09 Thread Joe
On 8 Apr 2005 23:35:57 -0700, lotmr [EMAIL PROTECTED] wrote: Is there any way that I could compile or optimize the my program and/or its memory usage? ... and ideally, if we could also reduce the size of the DLL, so that it would only include the widgets actually used, it'd be even nicer.

RE: PPC OSX vs. x86 Linux

2005-04-09 Thread Sells, Fred
I'm no expert on internals, but I seem to recall that in the past, the string module could be implemented in either C or Python and I think there is a strop module that is related to all this. Could it be that on the Mac, your string processing is using interpreted Python byte code while linux

Re: change the date string into timestamp

2005-04-09 Thread Heiko Wundram
Am Samstag, 9. April 2005 12:10 schrieb Fredrik Lundh: from email.Utils import parsedate_tz parsedate_tz(formatdate(x, localtime=1)) (2005, 4, 8, 14, 22, 14, 0, 1, 0, 7200) Very cool! Learning something new every day! -- --- Heiko. listening to: Pearl Jam - Dissident see you at:

Re: change the date string into timestamp

2005-04-09 Thread Fabio Pliger
You can use some date/time modules as: time built in module datetime wxDatetime from wx just take a look in the documentation... they are very simple to use. F.P. praba kar [EMAIL PROTECTED] ha scritto nel messaggio news:[EMAIL PROTECTED] Dear All, In Php strtotime() will change a date

Re: change the date string into timestamp

2005-04-09 Thread John Ridley
praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. To convert a date-string *to* a timestamp (as you asked): import time, calendar date_string = time.strftime('%c',

Re: Python extension performance

2005-04-09 Thread David Jones
Jack Diederich wrote: On Fri, Apr 08, 2005 at 10:14:52PM -0400, David Jones wrote: I am trying to hunt down the difference in performance between some raw C++ code and calling the C++ code from Python. My goal is to use Python to control a bunch of number crunching code, and I need to show that

workaround for generating gui tools

2005-04-09 Thread flupke
Hi, i create my GUIs mainly via wxGlade. However when you start of to program and want to do some rearranging to the gui, wxglade overwrites your file and you've got to put your own code back in. I think i can work around that (at least a bit) by making a second file that imports the gui

Re: PPC OSX vs. x86 Linux

2005-04-09 Thread Maurice LING
Sells, Fred wrote: I'm no expert on internals, but I seem to recall that in the past, the string module could be implemented in either C or Python and I think there is a strop module that is related to all this. Could it be that on the Mac, your string processing is using interpreted Python byte

Re: workaround for generating gui tools

2005-04-09 Thread Harlin Seritt
Benedict, Best to hand-code your code ;-) -- even GUI. This is kind of why I like Tkinter so much. Good luck. Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-09 Thread Axel Straschil
Hello! from decorate import decorate # see today thread on decorators for this Gives me an ImportError: No module named decorate. I've got to donwload that? (python 2.4) Thanks, AXEL. -- Aber naja, ich bin eher der Forentyp. Wolfibolfi's outing in

Re: Installing Python 2.4 on Linux

2005-04-09 Thread John Ridley
* Edward Diener wrote: I need python to be python2.3 else many utilities no longer work. Then leave your 2.3 installation exactly as it is (so that python is a link to python2.3) and run python2.4 where needed. To specifically use python 2.4 to run IDLE, simply type in a shell: [user]$

ANN: Python benchmark suite

2005-04-09 Thread stelios xanthakis
Hi I'd like to announce the pyvmbench benchmark suite which is designed to evaluate different python implementations, different versions of the same implementation and different compilers/compilation flags for the same version of a python implementation (same). If you want, you can of course

Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. C lets you predeclare functions to allow for the existence of functions with circular dependencies.

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-09 Thread Michele Simionato
Look at the comment in the code! I have posted the decorate module in the this decorator thread: http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/60f22ed33af5dbcb/b7239b45da6a67ab#b7239b45da6a67ab -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzling OO design problem

2005-04-09 Thread Michael Spencer
George Sakkis wrote: Nice try, but ideally all boilerplate classes would rather be avoided (at least being written explicitly). It depends on how much magic you are prepared to accept; this goal is somewhat in conflict with the next one... Also, it is not obvious in your solution why and which

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Dave Brueck
Tim Tyler wrote: Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. Yes and no. Yes, they have to exist before you can use them (that only makes sense),

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Michael Spencer
Tim Tyler wrote: Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. C lets you predeclare functions to allow for the existence of functions with circular

Re: Counting iterations

2005-04-09 Thread runes
You should avoid the a + b + c -kind of concatenation. As strings at immutable in Python you actually makes copies all the time and it's slow! The alternative used in Steven Bethard's example is preferable. -- http://mail.python.org/mailman/listinfo/python-list

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Dan Sommers
On Sat, 9 Apr 2005 15:57:15 GMT, Tim Tyler [EMAIL PROTECTED] wrote: Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. Python has no such

SoCal Piggies meeting Tuesday 4/12

2005-04-09 Thread Grig Gheorghiu
The Southern California Python Interest Group (SoCal Piggies) will meet Tuesday April 12 @ 7:30 PM, at the Kerckhoff Marine Lab in Newport Beach. If you're a Pythonista in the area and you're interested in participating, please e-mail socal-piggies at lists.idyll.org and request more info.

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
Tim Tyler [EMAIL PROTECTED] wrote or quoted: Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. C lets you predeclare functions to allow for the

Re: workaround for generating gui tools

2005-04-09 Thread Reinhold Birkenfeld
Harlin Seritt wrote: Benedict, Best to hand-code your code ;-) -- even GUI. This is kind of why I like Tkinter so much. Good luck. Have to disagree strongly. It's evil anyway (for more complex applications) to put GUI construction in your code. GUI should be described appropriately in data

Re: workaround for generating gui tools

2005-04-09 Thread Fredrik Lundh
Reinhold Birkenfeld wrote: It's evil anyway (for more complex applications) to put GUI construction in your code. GUI should be described appropriately in data files. why use data files when you have an extremely powerful programming language in your toolbox? the advantage of building UI's in

Help with modem terminal

2005-04-09 Thread Adriano Monteiro
Hey folks, I need to talk to my modem through a terminal, so I can send commands and get the answers. Does anybody here know what can I do? I've tried to use pty.py, but I'm lost... Regards, []'s! -- Adriano Monteiro Marques www.gopython.com.br [EMAIL PROTECTED] I'm FREE... Are you? (PYTHON

Re: Puzzling OO design problem

2005-04-09 Thread El Pitonero
It may be useful to separate the code into version-independent part and version-dependent part. Also, one can try to implement the higher-level logic directly in the class definition of A, B, etc., and then use the version objects only as patches for the details. That is, one can use place-holder

Re: Help with modem terminal

2005-04-09 Thread Grant Edwards
On 2005-04-09, Adriano Monteiro [EMAIL PROTECTED] wrote: I need to talk to my modem through a terminal, so I can send commands and get the answers. Through a terminal? Just type on the keyboard and look at the display. Does anybody here know what can I do? Not unless you can clearly

ntvdm problem on win2k

2005-04-09 Thread Al Christians
I started having some problems running python programs (python 2.3) from the Win2k command line. I would get crashes with an NTVDM error. Even just executing python would cause it. I upgraded to python 2.3.5, and no difference. When I rearranged my path to move cygwin and a bunch of other

Re: workaround for generating gui tools

2005-04-09 Thread Diez B. Roggisch
why use data files when you have an extremely powerful programming language in your toolbox? the advantage of building UI's in Python is that you can quickly create domain specific UI languages, and use them to generate the interfaces for you. UI editors may be useful for trivial

THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread RonGrossi_38157
The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain. God

Re: Counting iterations

2005-04-09 Thread Andrew Dalke
runes wrote: You should avoid the a + b + c -kind of concatenation. As strings at immutable in Python you actually makes copies all the time and it's slow! The OP wrote print pet + # + num_pets (properly str(num_pets) ) You recommended the alternative used in Steven Bethard's example

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread Kato Dakota
[EMAIL PROTECTED] wrote: The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. SATAN RULEZ!! -- http://mail.python.org/mailman/listinfo/python-list

Re: ntvdm problem on win2k

2005-04-09 Thread Alexander Schremmer
On Sat, 09 Apr 2005 11:00:08 -0700, Al Christians wrote: I started having some problems running python programs (python 2.3) from the Win2k command line. I would get crashes with an NTVDM error. Windows tries to execute the cygwin symbolic link and fails. Correcting your path works (as you

Re: ntvdm problem on win2k

2005-04-09 Thread Al Christians
Here's some more info on this: When I use the Win2k feature to search for files, it turns up python.exe in the \cygwin\bin directory. The file size is shown as 24 bytes. Mighty small for an executable. The file is hidden. This is evidently the guy who was caussing the problem. Why does

Re: Puzzling OO design problem

2005-04-09 Thread George Sakkis
Have you considered a 'macro' solution composing source? If I were handling so many versions, I would want a complete class definition for each version rather than having to scan many sources for each implementation. Can you elaborate on this a little ? You mean something like a

Re: How to detect if file is a directory

2005-04-09 Thread Tim Jarman
César Leonardo Blum Silveira wrote: Hello all, I'm new to this list. How can I detect if a file is a directory or not? Thanks César The os module contains many helpful tools for working with files, directories, links and so forth. Check out the docs and marvel. The following snippet

Re: Puzzling OO design problem

2005-04-09 Thread Kay Schluehr
Hi George, it's a nice little puzzle and it is more fun to solve it if one is not a student anymore :) Filling the gaps in the lattice is somehow necessary but it is not necessary to create all the classes. Ansatz: We can consider two matrices: one is filled with nodes ( class names ) the

Re: Recording Video with Python

2005-04-09 Thread tertius
[EMAIL PROTECTED] wrote: Is there a video module so that I can write a Linux Python script to record video coming over USB video cams? http://videocapture.sourceforge.net/ HTH T -- http://mail.python.org/mailman/listinfo/python-list

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread Soy Bomb
The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. Sounds like the USA 2005. -- http://mail.python.org/mailman/listinfo/python-list

Re: checkbook manager - cross platform printing

2005-04-09 Thread Mike Meyer
David Isaac [EMAIL PROTECTED] writes: Alan Isaac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'd like to try personal financial management using Python. I just found PyCheckbook, but it does not support check printing. Is there a Python check printing application kicking

Re: There's GOT to be a better way!

2005-04-09 Thread Earl Eiland
On Thu, 2005-03-03 at 16:43, Steve Holden wrote: Earl Eiland wrote: On Thu, 2005-03-03 at 15:11, Steve Holden wrote: Earl Eiland wrote: I'm writing my first program where I call custom modules. The 'global' command doesn't seem to apply, so how do I change a variable internally in a

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread PA
On Apr 09, 2005, at 21:16, Soy Bomb wrote: Sounds like the USA 2005. http://images.ucomics.com/comics/nq/2005/nq050329.gif Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread Kato Dakota
Soy Bomb wrote: The Holy Bible descibes Hell as a place of eternal torment, suffering, pain and agony for all those who have rejected Jesus Christ. Sounds like the USA 2005. Down in the Tsunami many nauts from here hangin 250K Tsunami Safaris Surf City Indian Ocean --

Re: Best editor?

2005-04-09 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: Use vim. 80% of the power of emacs at 20% of the learning curve. Hmm. Can I read mail/news/web pages in vim? I can in emacs. Emacs is a computing environment. I read mail and news in it, so I don't have to worry about learning some applications custom editor

wsh and Python

2005-04-09 Thread David Josty
Hello I have this function : import sys import win32com.client import win32api def close_softawre(name) shell = win32com.client.Dispatch(WScript.Shell) shell.AppActivate (name) win32api.Sleep(100) shell.SendKeys (%{F4})

Re: Puzzling OO design problem

2005-04-09 Thread Michael Spencer
George Sakkis wrote: Have you considered a 'macro' solution composing source? Can you elaborate on this a little ? You mean something like a template-based code generating script that creates all the boilerplate code for each version before you start customising it ? I was thinking more along

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread ChinStrap
Thats not what Jack Chick says =( http://www.chick.com/catalog/tractlist.asp -- http://mail.python.org/mailman/listinfo/python-list

python modules in home dir

2005-04-09 Thread dzieciou
Hello! I'm new-comer in Python. I want to install few Python modules (4Suite, RDFLib, Twisted and Racoon) in my home directory, since Python installation is already installed in the system and I'm NOT its admin. I cannot install pyvm (portable binary python machine) - have no such big quota. Any

email and smtplib modules

2005-04-09 Thread [EMAIL PROTECTED]
Hi, I'm writing a small script that generates email and I've noticed that: 1) one should add the 'To' and 'CC' headers to the email message 2) one needs to specify the recipients in the smtplib sendmail() method Can someone explain how these are related? Thanks, Mark --

Re: ntvdm problem on win2k

2005-04-09 Thread Al Christians
Alexander Schremmer wrote: Windows tries to execute the cygwin symbolic link and fails. Correcting your path works (as you said). One thing about that: I re-installed python (ie upgraded to python 2.3.5) and it did not solve the error. I assume that the python 2.3.5 installer is so

Re: workaround for generating gui tools

2005-04-09 Thread Jeremy Bowers
On Sat, 09 Apr 2005 19:59:18 +0200, Diez B. Roggisch wrote: why use data files when you have an extremely powerful programming language in your toolbox? the advantage of building UI's in Python is that you can quickly create domain specific UI languages, and use them to generate the

visibility between modules

2005-04-09 Thread max(01)*
hi. if i have a single program file, different class instances can share information in (at least) two fashions: 1. using instance variables: class AClass: def __init__(self): self.att_1 = 42 self.att_2 = Hello! class AnotherClass: def __init__(self): self.att_1 =

Re: email and smtplib modules

2005-04-09 Thread Mike Meyer
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: Hi, I'm writing a small script that generates email and I've noticed that: 1) one should add the 'To' and 'CC' headers to the email message 2) one needs to specify the recipients in the smtplib sendmail() method Can someone explain how these are

Re: visibility between modules

2005-04-09 Thread Mike Meyer
max(01)* [EMAIL PROTECTED] writes: hi. if i have a single program file, different class instances can share information in (at least) two fashions: 1. using instance variables: class AClass: def __init__(self): self.att_1 = 42 self.att_2 = Hello! class AnotherClass:

Re: Installing Python 2.4 on Linux

2005-04-09 Thread Edward Diener
John Ridley wrote: * Edward Diener wrote: I need python to be python2.3 else many utilities no longer work. Then leave your 2.3 installation exactly as it is (so that python is a link to python2.3) and run python2.4 where needed. To specifically use python 2.4 to run IDLE, simply type in a shell:

serialize a tkinter thing

2005-04-09 Thread max(01)*
hi. i tried to serialize a list of StringVar's, but i got a pickle error. this got me to thinking that tkinter objects are not picklable (in general). would somebody confirm and/or give examples? thanks macs -- http://mail.python.org/mailman/listinfo/python-list

very simple tkinter demo program

2005-04-09 Thread max(01)*
hello. i wrote a very simple tkinter demo program that uses menus, buttons, labels, entries, frames and secondary toplevels. it is a python version of a java program made by a colleague. the user can create (Scrivi) a record with his second name, first name and date of birth, save (Salva) the

Re: EOL created by .write or .encode

2005-04-09 Thread Aidan Kehoe
Ar an naoi l de m Aibran, scrobh Xah Lee: If you open a file in emacs, it will open fine regardless whether the EOL is ascii 10 or 13. (unix or mac) This is a nice feature. However, the what-cursor-position which is used to show cursor position and the char's ascii code, says the EOL

Re: How to detect if file is a directory

2005-04-09 Thread César Leonardo Blum Silveira
Thanks :-) On Apr 9, 2005 3:55 PM, Tim Jarman [EMAIL PROTECTED] wrote: César Leonardo Blum Silveira wrote: Hello all, I'm new to this list. How can I detect if a file is a directory or not? Thanks César The os module contains many helpful tools for working with files,

Re: python modules in home dir

2005-04-09 Thread [EMAIL PROTECTED]
set the PYTHON_PATH to include your home directory -- http://mail.python.org/mailman/listinfo/python-list

Re: workaround for generating gui tools

2005-04-09 Thread flupke
Jeremy Bowers wrote: snip Domain-specific abstractions do that *faster* than GUI designers, not slower. And better, too, since every iteration tends to be fully functional and not just a let's see what this looks like prototype. Heck, switch 'em out dynamically based on what day of the week it is

Re: Counting iterations

2005-04-09 Thread Steven Bethard
Andrew Dalke wrote: pet#%i % (i+1) (NOTE: most times that's written %d instead of %i) Any reason to prefer %d over %i? The library reference seems to suggest that they're the same thing[1]. I've typically used %i since I can remember it from the int type, like I can remember %f from the float

Re: Best editor?

2005-04-09 Thread Aahz
In article [EMAIL PROTECTED], Mike Meyer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Aahz) writes: Use vim. 80% of the power of emacs at 20% of the learning curve. Hmm. Can I read mail/news/web pages in vim? I can in emacs. Yup, that's why emacs stands for Eighty Megabytes And Constantly

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Tim Tyler wrote: Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. They don't have to be declared but to be *defined* in

Re: wsh and Python

2005-04-09 Thread Roger Upole
Since AppActivate returns a boolean, you should be able to do something like this: while not shell.AppActivate(name): win32api.Sleep(100) Roger David Josty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello I have this function :

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread has
No, the greatest news ever would be that Usenet spammers are being riveted to trees. -- http://mail.python.org/mailman/listinfo/python-list

Re: Puzzling OO design problem

2005-04-09 Thread Michele Simionato
Dirk wrote: So I dug through the documentation and found that new-style classes compute a monotonic linearization of the inheritance graph, observing local precedence order, using the algorithm also used in Dylan described here: http://www.webcom.com/haahr/dylan/linearization-oopsla96.html

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (new

2005-04-09 Thread Anthony
I thought 'The Greatest News Ever' might mean something serious like transfer of the classic Beatles albums to SACD. But no, it's just religious crap. Now that the Pope's dead, do you think we could declare christianity officially extinct? Please? --

Re: very simple tkinter demo program

2005-04-09 Thread Samantha
I can not get it to run. S max(01)* [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello. i wrote a very simple tkinter demo program that uses menus, buttons, labels, entries, frames and secondary toplevels. it is a python version of a java program made by a colleague. the

Re: Are circular dependencies possible in Python?

2005-04-09 Thread John Machin
On Sat, 9 Apr 2005 15:57:15 GMT, Tim Tyler [EMAIL PROTECTED] wrote: Like C, Python seems to insist I declare functions before calling them One is left wondering what gave you that impression about Python. Nothing could be further from the truth. The only construct in Python that smells anything

  1   2   >