pysvn install on freebsd

2005-04-15 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/Extension/B

Problem when subclass instance changes base class instance variable

2005-04-15 Thread Gerry Sutton
Hi All! I have noticed a strange behavior when using a constant identifier to initialize an instance list variable in a base class and then trying to modifying the list in subclasses by using either the list.extend method or even by having the subclass create a whole new list in the variable.

Re: Do You Want To Know For Sure That You Are Going To Heaven? 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. (newsgroup-post 140)

2005-04-15 Thread Bob Alman
In rec.music.makers.guitar.acoustic Grossi wrote: > Nuf said. Why don't you go there now? -- Bob Alman -- http://mail.python.org/mailman/listinfo/python-list

Re: Piping data into script under Win32

2005-04-15 Thread runes
Thanks James! I'll post the explanation if I find it ;-) Rune -- http://mail.python.org/mailman/listinfo/python-list

Re: Do You Want To Know For Sure That You Are Going To Heaven? 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. (newsgroup-post 140)

2005-04-15 Thread Grossi
Nuf said. -- http://mail.python.org/mailman/listinfo/python-list

Re: Piping data into script under Win32

2005-04-15 Thread R. C. James Harlow
On Saturday 16 April 2005 03:43, runes wrote: > type countlines.py | python countlines.py = Success > type countlines.py | countlines.py = Failure > > Why doesn't the latter work? Don't quote me on this, but I think it's because invoking countlines.py involves running some sort of wrapper that d

Re: sort of a beginner question about globals

2005-04-15 Thread alex23
Duncan Booth wrote: > Hmm, I believe you are right. I can't see any straight-forward tutorials > which use Python. I found a tutorial at onlamp.com, but it doesn't seem to > me to explain TDD at all clearly. Mark Pilgrim's 'Dive Into Python' (http://diveintopython.org/) has a couple of chapters

Re: pre-PEP: Suite-Based Keywords

2005-04-15 Thread Kent Johnson
Brian Sabbey wrote: Here is a pre-PEP for what I call "suite-based keyword arguments". The mechanism described here is intended to act as a complement to thunks. Please let me know what you think. Suite-Based Keyword Arguments - Passing complicated arguments to functi

Re: Piping data into script under Win32

2005-04-15 Thread runes
You being so sure about what you were saying, was what I needed. Thanks! Under Windows, I'm used to rely on the PATHEXT env. variable, so I typically don't write "python scriptname.py args", but just "scriptname args". So: type countlines.py | python countlines.py = Success type countlines.py | c

Re: Piping data into script under Win32

2005-04-15 Thread R. C. James Harlow
On Saturday 16 April 2005 03:11, runes wrote: > I trying to figure out a way to make a python script accept data output > from another process under Windows XP, but I fail miserably. I have a > vague memory having read this is not possible with Python under > Windows... > > C:\> type countlines.py

Re: pre-PEP: Suite-Based Keywords

2005-04-15 Thread James Stroud
I_vote_yes(James): I_understand_what_it_does = True Makes_code_formatting_way_more_managable_in_tough_cases = True Makes_code_way_more_readable = True To_cool = True On Friday 15 April 2005 04:45 pm, Brian Sabbey wrote: > Here is a pre-PEP for what I call "suite-based keyword arguments

Re: trouble using \ to escape %

2005-04-15 Thread John Machin
On 15 Apr 2005 16:05:34 -0700, "Lucas Machado" <[EMAIL PROTECTED]> wrote: >I'm writing a python script that modifies the smb.conf file, and i need >to write the characters '%U' in the file. I tried making a string like >so: > >str1 = "[%s%s]\n\tpath = /mnt/samba/%s%s/\%U" % (list[0], list[1], >li

Re: Piping data into script under Win32

2005-04-15 Thread Jaime Wyant
I can't think of any reason that wouldn't work. You've entered the code in exactly like you have it below? Could you paste the traceback from your console? jw On 15 Apr 2005 19:11:44 -0700, runes <[EMAIL PROTECTED]> wrote: > I trying to figure out a way to make a python script accept data outpu

Re: Glade for Windows and Python

2005-04-15 Thread Dave Cook
On 2005-04-15, Richard Lyons <[EMAIL PROTECTED]> wrote: > Has anyone been successful in using Glade for Windows with Python? Yes, it works fine. http://gladewin32.sourceforge.net/ http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ Dave Cook -- http://mail.python.org/mailman/listinfo/python-list

Piping data into script under Win32

2005-04-15 Thread runes
I trying to figure out a way to make a python script accept data output from another process under Windows XP, but I fail miserably. I have a vague memory having read this is not possible with Python under Windows... But googling for a clue I came across this from /Learning Python/ (Lutz & Ascher)

Re: pre-PEP: Suite-Based Keywords

2005-04-15 Thread Leif K-Brooks
Brian Sabbey wrote: class C(object): x = property(): doc = "I'm the 'x' property." def fget(self): return self.__x def fset(self, value): self.__x = value def fdel(self): del self.__x After seeing this example, I think I'll go on a killing spree

Re: pre-PEP: Simple Thunks

2005-04-15 Thread Leif K-Brooks
Brian Sabbey wrote: Thunk statements contain a new keyword, 'do', as in the example below. The body of the thunk is the suite in the 'do' statement; it gets passed to the function appearing next to 'do'. The thunk gets inserted as the first argument to the function, reminiscent of the way 'self'

Dr Dobbs "with" keyword

2005-04-15 Thread Neil Hodgson
In the March 2005 issue of Dr Dobbs Journal there is an article "Resource Management in Python" by Oliver Schoenborn. One paragraph (first new paragraph, page 56) starts "Starting with Python 2.4, a new type of expression lets you use the keyword /with/". It continues, mentioning PEP 310 (Re

Re: Using python from a browser/security hole

2005-04-15 Thread Neil Hodgson
Philippe: > Would Jpython let me do that ? > Would java let me call an external Python script - which in turn would > access my device ? Not without asking for more permissions than accessing the device as being able to execute arbitrary code is very dangerous. Think of this from the point o

RE: py2exe - create one EXE

2005-04-15 Thread Jimmy Retzlaff
Codecraig wrote: > i tried the SingleInstaller linkwhich points to a > script using NSIS. I followed those instructions which generated an > .exe. HOwever, when i run the .exe nothing happens (meaning no > process starts, no output, no errors, nothing). > > any ideas on that? have ever use

Re: Determine ip address

2005-04-15 Thread fuzzylollipop
import socket print socket.gethostbyname( socket.gethostname() ) -- http://mail.python.org/mailman/listinfo/python-list

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-15 Thread Gary Bishop
Fernando Perez <[EMAIL PROTECTED]> wrote: > Claudio Grondi wrote: > > Considering what I found in the ipython mailing archives > > and the fact, that after the fix with displaying colors on > > bright backgrounds Gary had no time yet to get in touch > > with me about the code I have sent him, I su

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-15 Thread [EMAIL PROTECTED]
Fixed. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-15 Thread Erik Max Francis
[EMAIL PROTECTED] wrote: If anyone want to check this out, heres the url: http://pyar.decode.com.ar/Members/ltorre/PythonPalm Note the links are swapped; the one that says source package points to the .prc file, and the one that says .prc file goes to the source package. -- Erik Max Francis && [E

pre-PEP: Suite-Based Keywords

2005-04-15 Thread Brian Sabbey
Here is a pre-PEP for what I call "suite-based keyword arguments". The mechanism described here is intended to act as a complement to thunks. Please let me know what you think. Suite-Based Keyword Arguments - Passing complicated arguments to functions is currently awk

pre-PEP: Simple Thunks

2005-04-15 Thread Brian Sabbey
Here is a first draft of a PEP for thunks. Please let me know what you think. If there is a positive response, I will create a real PEP. I made a patch that implements thunks as described here. It is available at: http://staff.washington.edu/sabbey/py_do Good background on thunks can be fo

Re: Python Google Server

2005-04-15 Thread Benji York
Fuzzyman wrote: The trouble is the current policy is 'whitelist only'... so I need the proxy installed on a server that is *on the whitelist*... which will take a little time to arrange. If you construct a noop translation (English to English for example) Google becomes a (HTML only) proxy. Here'

Re: eval function not working how i want it dag namn

2005-04-15 Thread robcarlton
thanks. I'll use the getattr function now, and I think I understand where I went wrong with eval. I was thinking in Lisp where the lexical scope would mean that obj is defined -- http://mail.python.org/mailman/listinfo/python-list

ANN: Python 2.3.2 for PalmOS available

2005-04-15 Thread [EMAIL PROTECTED]
Hello, Some months ago i did a port of the Python2.3.2 interpreter to PalmOS. I didnt port any C module or created modules for PalmOS API's. But you can run an interpreter and use stdin/stdout from a form. There is also a tool to freeze scripts and use the interpreter as a pseudo-shared library.

Re: trouble using \ to escape %

2005-04-15 Thread Dan Bishop
Lucas Machado wrote: > I'm writing a python script that modifies the smb.conf file, and i need > to write the characters '%U' in the file. I tried making a string like > so: > > str1 = "[%s%s]\n\tpath = /mnt/samba/%s%s/\%U" % (list[0], list[1], > list[0], list[1]) > > but i keep getting: "TypeErro

Re: trouble using \ to escape %

2005-04-15 Thread Maarten Sneep
In article <[EMAIL PROTECTED]>, "Lucas Machado" <[EMAIL PROTECTED]> wrote: > I'm writing a python script that modifies the smb.conf file, and i need > to write the characters '%U' in the file. print "%s = %%U" % "a" yields a = %U for me. Maarten -- http://mail.python.org/mailman/listinfo/pyt

Re: trouble using \ to escape %

2005-04-15 Thread Rob Williscroft
Lucas Machado wrote in news:1113606334.524947.54630 @l41g2000cwc.googlegroups.com in comp.lang.python: > str1 = "[%s%s]\n\tpath = /mnt/samba/%s%s/\%U" % (list[0], list[1], > list[0], list[1]) > In a format string use '%%' for a single % char': str1 = "[%s%s]\n\tpath = /mnt/samba/%s%s/%%U" % (li

trouble using \ to escape %

2005-04-15 Thread Lucas Machado
I'm writing a python script that modifies the smb.conf file, and i need to write the characters '%U' in the file. I tried making a string like so: str1 = "[%s%s]\n\tpath = /mnt/samba/%s%s/\%U" % (list[0], list[1], list[0], list[1]) but i keep getting: "TypeError: not enough arguments for format

pexpect problem, spawn says I/O on closed file

2005-04-15 Thread edwin
Hi, I'm using pexpect in a plugin script within bartbot (an python based irc bot). When I execute the plugin, python comes back with: ERROR exceptions.ValueError file: /home/edwin/devel/bartbot/myplugins/rttest.py linenr: 17 msg: I/O \ operation on closed file rttest.py being the plugin script,

Re: Glade for Windows and Python

2005-04-15 Thread dimitri pater
It's not exactly Glade, but did you try wxGlade? dimitriOn 4/16/05, Richard Lyons <[EMAIL PROTECTED]> wrote: Has anyone been successful in using Glade for Windows with Python?--http://mail.python.org/mailman/listinfo/python-list -- Please visit dimitri's website: www.serpia.com -- http://mail.pyt

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread Peter Herndon
Marc-Andre, I apologize for knocking against something that is part of your livelihood, I hadn't thought about that aspect before I posted. In my experience though, adodbapi was much faster. However, I have done no benchmarks, my situation is likely pathological, and I wouldn't be able to build o

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
fredrik... any ideas on my last post? (copied below for u) oh and Fredrik, i tried the SingleInstaller linkwhich points to a script using NSIS. I followed those instructions which generated an .exe. HOwever, when i run the .exe nothing happens (meaning no process starts, no output, no

Glade for Windows and Python

2005-04-15 Thread Richard Lyons
Has anyone been successful in using Glade for Windows with Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe - create one EXE

2005-04-15 Thread Fredrik Lundh
James Carrol wrote: I like that you can automatically invoke NSIS and create an installer, but I thought the question was how can all of the libraries be in a single runnable program executable (not a program that installs, but the program that you wrote.) the wiki recipe does exactly that -- it cr

Re: Compute pi to base 12 using Python?

2005-04-15 Thread M.E.Farmer
Sounds good should work fine ;) M.E.Farmer -- http://mail.python.org/mailman/listinfo/python-list

Tkinter multilistbox in scrolledframe

2005-04-15 Thread dimitri pater
Hello! I recently included this very nice recipe for the multilistbox in my application: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52266 however, I can't seem to place it inti a scrolledframe, this is what I do: /snip     self.frame1 = Pmw.ScrolledFrame(page,

Pyrex colorizer please review

2005-04-15 Thread M.E.Farmer
Hello all, I have been working on a Pyrex colorizer, and need a little feedback. PyrexTypes are orange and PyrexKeywords are violet ( this will be fully extensible when finished ). Please review the webpage and let me know what you think. I do not fully grok Pyrex( never used it ). If you find toke

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-15 Thread Paul Winkler
[EMAIL PROTECTED] wrote: > In the meantime you should take a look a cURL and pycurl, which do support > all kind of more extreme HTTP (FTP, etc.) handling, like using https over > an proxy. Well, I got a pycurl solution working very nicely in twenty minutes, including the time it took to read the

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
[EMAIL PROTECTED] wrote: > I do have a standard install of Python as well as Plone. Can you have two? > I have run the mxInstaller for both instances however, whether I run > the ide from my standard install or my plone install the pythonpath is the > same (ie c:\...\plone 2\python). My mach

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread M.-A. Lemburg
Peter Herndon wrote: > Another option is adodbapi, which in my experience is much faster than > mx.ODBC. Much faster ? See http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/reskit/iischp7.mspx and scroll down to Table 7.1: Table 7.1 TPS (transactions per seco

Re: changing colors in python

2005-04-15 Thread Cappy2112
if you are talking about writing text console program only , for Windows, then just use the color command- but you will need a handle to that console window- C:\>help color Sets the default console foreground and background colors. COLOR [attr] attrSpecifies color attribute of console

Re: Python 2.4.1 hang

2005-04-15 Thread Mahesh
Yes, it is stupid but I am debugging some poorly written C++ code so I cannot change it. It was easier for me to use python to try various combinations (since the C++ code uses a non-standard re engine). I just chanced upon the problem and was curious as to what Python was up to. Thanks for cleari

Re: Using python from a browser/security hole

2005-04-15 Thread Bengt Richter
On Fri, 15 Apr 2005 09:52:41 -0400, James Carroll <[EMAIL PROTECTED]> wrote: >I don't think Jython will help much here... you would have to embed >jython in your applet which makes it big, which makes it take longer >to download... (or you could install it ahead of time on each client.) > >I asked

Re: Determine ip address

2005-04-15 Thread Lee Harr
On 2005-04-15, codecraig <[EMAIL PROTECTED]> wrote: > hi, >how can i use python to figure the ip address of the machine which > the python script is running on? I dont mean like 127.0.0.1but i > want the external IP address (such as ipconfig on windows displays). > > any ideas?? > I use

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-15 Thread Scott David Daniels
Simon Brunning wrote: On 4/14/05, Peter Hansen <[EMAIL PROTECTED]> wrote: Greg Ewing wrote: (Darn. I finally say something that gets into Quote of the Week, and it's attributed to someone else! :-) :-) :-) +1 on this for meta-QOTW, solving both problems... Yeah, but to whom do I attribute it? ;-)

ANN: Python Computer Graphics Kit v2.0.0alpha3

2005-04-15 Thread Matthias Baas
The third alpha release of version 2 of the Python Computer Graphics Kit is available at http://cgkit.sourceforge.net What is it? --- The Python Computer Graphics Kit is a generic 3D package written in C++ and Python that can be used for a variety of domains such as scientific visualizat

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
can't see the forest for the trees, that seems to be the problem, thanks for pointing out the obvious ( that I couldn't see ) :-( -- http://mail.python.org/mailman/listinfo/python-list

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
I am running 2.3.5 -- http://mail.python.org/mailman/listinfo/python-list

Re: mySQL values not updating after query

2005-04-15 Thread Greg Miller
I just discovered that a few minutes ago, thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4.1 hang

2005-04-15 Thread Fredrik Lundh
Mahesh wrote: I needed to get to the POST body and while I was trying out various regular expressions, one of them caused Python to hang. The Python process was taking up 100% of the CPU. I couldn't even see the "Max recursion depth exceeded message". Is this a bug? no, it's just a very stupid way

Re: Get OS name

2005-04-15 Thread A.B., Khalid
codecraig wrote: > my requirements for getting the OS info havent changed. My first > message says "How can I get the OS Name, such as "Windows XP Pro"." > that's what I wanted all along. > > thanks for the information anyway, i believe platform is better than my > previous approach. > > thank

module placeholder

2005-04-15 Thread John Lenton
Once again I'm working on code that has several 'providers' of different features, and I thought I'd ask the list what better solutions it has to this other than what I've come up with. Currently, the cleanest way I can find is to say import foo foo.config(bar='baz') # from this point on, f

module placeholder

2005-04-15 Thread John Lenton
Once again I'm working on code that has several 'providers' of different features, and I thought I'd ask the list what better solutions it has to this other than what I've come up with. Currently, the cleanest way I can find is to say import foo foo.config(bar='baz') # from this point on, f

Re: sort of a beginner question about globals

2005-04-15 Thread Scott David Daniels
Duncan Booth wrote: fred.dixon wrote: :) unit test is something on my to-learn list. seems involved and i haven't seen any straight forward tutorials yet. as yet i still consider myself a hobbyist at best. Hmm, I believe you are right. I can't see any straight-forward tutorials which use Python.

Re: eval function not working how i want it dag namn

2005-04-15 Thread Michael Hoffman
Peter Otten wrote: Michael Hoffman wrote: def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works fine for me with Python 2.4. x.question = "Are you sure?" I should clarify. It works fine for me when I've already globally assigned obj to something else. D'oh! -- Mic

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
So how there is currently available way to have 1 .exe which includes everything needed to run a python app? :sigh: -- http://mail.python.org/mailman/listinfo/python-list

distutils question: different projects under same namespace

2005-04-15 Thread Qiangning Hong
To avoid namespace confliction with other Python packages, I want all my projects to be put into a specific namespace, e.g. 'hongqn' package, so that I can use "from hongqn.proj1 import module1", "from hongqn.proj2.subpack1 import module2", etc. These projects are developed and maintained and dist

Re: mySQL values not updating after query

2005-04-15 Thread [EMAIL PROTECTED]
Don't forget to call: db.commit() Hope that's help. Pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread Peter Otten
fuzzylollipop wrote: > print sum([getsize(join(root, name)) for name in files]), > print sum([getsize(join(root,name)) from name in files]), Do you see the difference? ... for ... is the correct syntax, ... from ... is what Python seems to complain about. Peter -- http://mail.python.org/mail

Re: py2exe - create one EXE

2005-04-15 Thread James Carroll
I like that you can automatically invoke NSIS and create an installer, but I thought the question was how can all of the libraries be in a single runnable program executable (not a program that installs, but the program that you wrote.) I don't think you can do this, because (unless you have your

Re: Compute pi to base 12 using Python?

2005-04-15 Thread Dick Moores
M.E.Farmer wrote at 23:18 4/14/2005: Nice collection of unix tools, Cygwin not needed. http://unxutils.sourceforge.net/ Thank you! But a question. I've download both UnxUtils.zip and UnxUpdates.zip. I'm planning to put the contents of UnxUtils.zip in a directory and then move the contents of UnxU

Re: Python's use in RAD

2005-04-15 Thread brian . peyton
Active State's Komodo IDE is very nice for python development. It includes integration with pdb (python's debugger). The pro edition also has a GUI designer, however I've never used it. The personal version for non commercial use can be had for $30 (and there's also a 30 day trial). They have w

Re: How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > the following code is from the Python 2.3.5 docs ( > http://www.python.org/doc/2.3.5/lib/os-file-dir.html ) > > import os > from os.path import join, getsize > for root, dirs, files in os.walk('python/Lib/email'): >print root, "consumes", >print sum([getsize(jo

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
oh and Fredrik, i tried the SingleInstaller linkwhich points to a script using NSIS. I followed those instructions which generated an .exe. HOwever, when i run the .exe nothing happens (meaning no process starts, no output, no errors, nothing). any ideas on that? have ever used it? -- ht

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
I tried the installer v6...and i generated a spec, and i built the exe...when i run the exe i get a error popup window from Windows asking me to send an Error report. The warnings that were generated during the build all appear to be "ignorable" as the documentation mentions. any ideas? -- http

How to fix this error in the example in 6.1.4 Files and Directories

2005-04-15 Thread fuzzylollipop
the following code is from the Python 2.3.5 docs ( http://www.python.org/doc/2.3.5/lib/os-file-dir.html ) import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print root, "consumes", print sum([getsize(join(root, name)) for name in files]),

Re: Is Python appropriate for web applications?

2005-04-15 Thread igouy
> > How about the speed of execution? > > There is no simple answer. Both languages use C functions which are > executed at CPU speed. But with interpreted code Python seems to be > approximately 3-4 times faster than PHP (http://dada.perl.it/shootout/). The Win32 Computer Language Shootout hasn'

Re: py2exe - create one EXE

2005-04-15 Thread Simon John
yeah, the question does come up once a month at least, but you could try mcmillan installer with it's --onefile option. i have mirrors at http://www.the-jedi.co.uk/downloads/installer -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python appropriate for web applications?

2005-04-15 Thread peufeu
The first one was a typo in the name of a variable ($actegories instead of $categories). Instead of raising an exception, this b**d "programming language" (err...) just created a new variable with a NULL value. Doh :-( Set error reporting to all. Marvel at how it reports this simple typo in

Re: Python's use in RAD

2005-04-15 Thread djw
Ross Cowie wrote: Hi, I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was w

Re: new to mac OS10

2005-04-15 Thread Robert Kern
Thomas Nelson wrote: The main thing I would like is to be able to use tkinter with python on my mac. will the command-line-style source allow this? Does it come with IDLE? No. You need a framework version, which can be built from source, but it's best to leave that to people who know what the

Re: Why does StringIO discard its initial value?

2005-04-15 Thread David Fraser
Raymond Hettinger wrote: [David Fraser] Others may find this helpful ; it's a pure Python wrapper for cStringIO that makes it behave like StringIO in not having initialized objects readonly. Would it be an idea to extend cStringIO like this in the standard library? It shouldn't lose performance if

Re: py2exe - create one EXE

2005-04-15 Thread codecraig
must have missed it on py2exe front pageand for google i didnt try that search exactly. Thanks though. I was trying like "one executable py2exe", etc. -- http://mail.python.org/mailman/listinfo/python-list

(no subject)

2005-04-15 Thread python-list-bounces+archive=mail-archive . com
#! rnews 2153 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!195.241.76.212.MISMATCH!transit1.news.tiscali.nl!transit0.news.tiscali.nl!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!newshosting.com!nx02.iad01.newshosting.com!novia!feed2.ne

Re: py2exe - create one EXE

2005-04-15 Thread Fredrik Lundh
"codecraig" wrote: > Is there a way to create one .exe using py2exe (or some other > extension/utility that can do it)? > > Basically i want to generate one .exe that contains everything my > python app needs to run instead of having a .exe, some .zips, etc. hmm. if you cannot access google, h

Re: Determine ip address

2005-04-15 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Simon Brunning <[EMAIL PROTECTED]> wrote: > On 15 Apr 2005 06:03:06 -0700, codecraig <[EMAIL PROTECTED]> wrote: > > hi, > >how can i use python to figure the ip address of the machine which > > the python script is running on? I dont mean like 127.0.0.1but

Re: MS SQL Server/ODBC package for Python

2005-04-15 Thread Peter Herndon
Another option is adodbapi, which in my experience is much faster than mx.ODBC. You can find it at http://adodbapi.sourceforge.net , and it is Windows-only. There's also http://pymssql.sourceforge.net, which is cross-platform using FreeTDS and unixodbc on *nix. I haven't any experience with it,

Re: Get OS name

2005-04-15 Thread codecraig
my requirements for getting the OS info havent changed. My first message says "How can I get the OS Name, such as "Windows XP Pro"." that's what I wanted all along. thanks for the information anyway, i believe platform is better than my previous approach. thanks -- http://mail.python.org/m

Re: eval function not working how i want it dag namn

2005-04-15 Thread Peter Otten
Michael Hoffman wrote: >> def list_members(obj) >>l = dir(obj) >>return map(lambda x : eval('obj.'+x), l) > > That works fine for me with Python 2.4. Python 2.4 (#6, Jan 30 2005, 11:14:08) [GCC 3.3.3 (SuSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >

Re: Determine ip address

2005-04-15 Thread Andy Jeffries
codecraig wrote: > hi, >how can i use python to figure the ip address of the machine which > the python script is running on? I dont mean like 127.0.0.1but i > want the external IP address (such as ipconfig on windows displays). I use the following (all on one line): external_ip = os.pop

Re: eval function not working how i want it dag namn

2005-04-15 Thread Peter Otten
robcarlton wrote: > hi everybody > I've written this function to make a list of all of an objects > attributes and methods (not for any reason, I'm just learning) > > def list_members(obj) > l = dir(obj) > return map(lambda x : eval('obj.'+x), l) > > but I get an error saying that obj is

py2exe - create one EXE

2005-04-15 Thread codecraig
Hi, Is there a way to create one .exe using py2exe (or some other extension/utility that can do it)? Basically i want to generate one .exe that contains everything my python app needs to run instead of having a .exe, some .zips, etc. thanks -- http://mail.python.org/mailman/listinfo/python-

Re: Get OS name

2005-04-15 Thread Fredrik Lundh
"codecraig" wrote: > How can I get the OS Name, such as "Windows XP Pro" >i guess i wanted the result in a nice string like Windows XP instead of > 5.1 > > i guess i'll have to convert it myself, thanks your requirements keep changing. to get the OS name in a platform- independent way, use the

Re: eval function not working how i want it dag namn

2005-04-15 Thread Gerald Klix
How about using the vars builtin? Michael Hoffman schrieb: robcarlton wrote: I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works

mySQL values not updating after query

2005-04-15 Thread [EMAIL PROTECTED]
I have an application that I am trying to add mySQL to. I can connect to the server with no problems and get a couple values from a table the first time the page loads, ( a wxPython GUI app ), after changing the table values from a mySQL shell I refresh the page and the values don't update unless

Re: eval function not working how i want it dag namn

2005-04-15 Thread Michael Hoffman
robcarlton wrote: I've written this function to make a list of all of an objects attributes and methods (not for any reason, I'm just learning) def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l) That works fine for me with Python 2.4. This is the best way to do it:

Re: sort of a beginner question about globals

2005-04-15 Thread Duncan Booth
fred.dixon wrote: >:) unit test is something on my to-learn list. seems involved and i > haven't seen any straight forward tutorials yet. as yet i still > consider myself a hobbyist at best. > Hmm, I believe you are right. I can't see any straight-forward tutorials which use Python. I found a t

Re: A little request about spam

2005-04-15 Thread Bill Mill
On 4/14/05, mark hellewell <[EMAIL PROTECTED]> wrote: > On 4/14/05, Steven Cummings <[EMAIL PROTECTED]> wrote: > > For what it's worth I filed a gmail issue over it a few days after I noticed > > it. I guess more of you could do so indicating the severity of the issue to > > the gmail developers. A

Re: Using python from a browser

2005-04-15 Thread Marcus Goldfish
> > I read that IE had the capability to embedd Python scripts, but what > > about the others ? > > While Python can be set up as a scripting language for IE, this is > normally disabled as it could be a security hole. The open call is > available from Python scripts so a web site could read or

Python's use in RAD

2005-04-15 Thread Ross Cowie
Hi, I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was wondering of you cou

Re: new to mac OS10

2005-04-15 Thread Thomas Nelson
The main thing I would like is to be able to use tkinter with python on my mac. will the command-line-style source allow this? Does it come with IDLE? How is the fink version different from the source i can download at python.org? Here's the result of the requested commands on my Terminal.

Re: pythonic use of properties?

2005-04-15 Thread Marcus Goldfish
On 4/15/05, Michael Spencer <[EMAIL PROTECTED]> wrote: > > class SillyDecimal(object): > >"""A silly class to represent an integer from 0 - 99.""" > >def __init__(self, arg=17): > >if isinstance(arg, tuple): > >self.tens = arg[0] > >self.ones = arg[1] > It is

Re: RE Engine error with sub()

2005-04-15 Thread Maurice LING
Hi Dennis, Dennis Benzinger wrote: Maurice LING schrieb: Hi, I have the following codes: from __future__ import nested_scopes > [...] Are you still using Python 2.1? In every later version you don't need the "from __future__ import nested_scopes" line. So, if you are using Python 2.1 I strongly re

Re: sort of a beginner question about globals

2005-04-15 Thread Thomas Heller
"fred.dixon" <[EMAIL PROTECTED]> writes: > :) unit test is something on my to-learn list. seems involved and i > haven't seen any straight forward tutorials yet. as yet i still > consider myself a hobbyist at best. I would recommend "Test Driven Development" by Kent Beck (Addison-Wesley). Thoma

Re: Get OS name

2005-04-15 Thread Grant Edwards
On 2005-04-15, codecraig <[EMAIL PROTECTED]> wrote: > where can I get wmi module, it doesnt come with Python right? http://www.google.com/search?q=python+wmi+module -- Grant Edwards grante Yow! ... I want a COLOR at

  1   2   >