Django or web2py

2011-09-08 Thread Paul Watson
I have read some of the talk around these two frameworks. Would you say that web2py is more geared toward the enterprise? Which one do you believe will be on Python 3 more quickly? -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I skip over multiple words in a file?

2010-11-11 Thread Paul Watson
On 2010-11-11 08:07, chad wrote: Let's say that I have an article. What I want to do is read in this file and have the program skip over ever instance of the words "the", "and", "or", and "but". What would be the general strategy for attacking a problem like this? I realize that you may need o

Re: is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?

2010-11-11 Thread Paul Watson
On 2010-11-11 11:20, Stef Mientki wrote: On 11-11-2010 19:01, Steve Holden wrote: On 11/11/2010 9:22 AM, Stef Mientki wrote: hello, finally got Python running at my server. Now I would like to replace the PHP server scripts with Python ( for easier maintenance). But I can't find how th get

distutils, cygwin, 'not a regular file'

2010-09-14 Thread Paul Watson
So, what is not a regular file about this? Is there any way to find out which files are being considered irregular? $ uname -a CYGWIN_NT-6.0-WOW64 pwatson 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin $ cat setup.py from distutils.core import setup setup( name='xlsexport', version='0

Re: Current install methodolgy eggs?

2010-09-12 Thread Paul Watson
On 2010-09-12 16:40, Ben Finney wrote: This is a dream shared by many, but Distutils has much improvement to be done yet. Recently — the past couple of years — a lot of progress has been made on this front, and Python 3.x is getting many of the benefits; look up the “Distutils2” efforts for more.

Current install methodolgy eggs?

2010-09-12 Thread Paul Watson
What is the currently favored installation process for Python applications? The last time I looked, it was eggs. Is that still true? Is there any integration of eggs and handling into the base Python distribution? Is PEP 376 intended for applications written in Python, or just the Python di

Re: llvm vs. parrot

2009-09-28 Thread Paul Watson
On Sun, 2009-04-12 at 06:18 -0700, Fuzzyman wrote: > On Apr 11, 12:16 am, Paul Watson wrote: > > Is Parrot out of favor these days? It appears that Google is going to > > use llvm. > > > > http://code.google.com/p/unladen-swallow/ > > Has Parrot ever been in fa

make test curses on 3.1.1

2009-09-08 Thread Paul Watson
It appears that 3.1.1 built pretty cleanly on my SUSE 11 box. However, the curses test appears to fail. I see this message on the www.python.org site many times when searching Google, but the contents appears to have been removed. http://www.google.com/search?hl=en&as_q=test+test_curses+crashed+

GNUstep and Python

2009-06-21 Thread Paul Watson
Has anyone used GNUstep? In addition to Objective-C, there are Java and Ruby bindings. Has anyone created a Python binding to GNUstep? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I replace this for loop with a join?

2009-06-21 Thread Paul Watson
On Mon, 2009-04-13 at 17:03 +0200, WP wrote: > Hello, I have dictionary {1:"astring", 2:"anotherstring", etc} > > I now want to print: > "Press 1 for astring" > "Press 2 for anotherstring" etc > > I could do it like this: > dict = {1:'astring', 2:'anotherstring'} > for key in dict.keys(): >

llvm vs. parrot

2009-04-11 Thread Paul Watson
Is Parrot out of favor these days? It appears that Google is going to use llvm. http://code.google.com/p/unladen-swallow/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python 3 for scripting?

2009-03-22 Thread Paul Watson
On Sun, 2009-03-22 at 17:00 +, Timo Myyrä wrote: > Ok, I think I'll stick with the 2.6 then. I recall it gave > warnings about things that are deprecated in 3.0 so it will make > porting the scripts to 3.0 easier. > > I might try 3.0 once I know what kind of scripts are needed. Yes. Devel

Re: Tkinter book on current versions

2009-03-22 Thread Paul Watson
On Sat, 2009-03-21 at 08:10 -0700, W. eWatson wrote: > Paul Watson wrote: > > Has anyone tried the Grayson book, "Python and Tkinter Programming," > > with a recent version of Python? > > > > The first example code (calculator) generates a single row of button

Re: newbie: precision question

2009-03-20 Thread Paul Watson
On Sat, 2009-03-21 at 04:12 +0100, Lada Kugis wrote: > I'm a newbie learning python, so forgive for, what may seem to some, > like a stupid question. > > I understand the basic integer and fp type, but what I'm having a > little trouble are the long type and infinite precision type. > > Also, whe

Tkinter book on current versions

2009-03-20 Thread Paul Watson
Has anyone tried the Grayson book, "Python and Tkinter Programming," with a recent version of Python? The first example code (calculator) generates a single row of buttons. Perhaps I have not applied the errata correctly. Has anyone been successful? I am using: Python 2.5.2 (r252:60911, Dec 1

Re: help I'm getting delimited

2008-12-16 Thread Paul Watson
On Tue, 2008-12-16 at 08:26 -0800, aka wrote: > Hi, I'm going nuts over the csv.reader and UnicodeReader class. > Somehow I can't get this method working which is supposed to read a > csv file which name is inputted but here now hardcoded. What I need > for now is that the string version of the lis

Re: Running Python 2 and Python 3 on the same machine

2008-12-06 Thread Paul Watson
On Sat, 2008-12-06 at 10:57 +0100, "Martin v. Löwis" wrote: > > Ok. I built the source on an openSUSE 11.0 system. I used 'sudo make > > altinstll'. It created an executable /usr/local/bin/python3.0 file. > > Nothing was touched in /usr/bin. > > Ah, then you missed the fun part. Take a look at

Re: Running Python 2 and Python 3 on the same machine

2008-12-05 Thread Paul Watson
On Sat, 2008-12-06 at 01:27 +0100, "Martin v. Löwis" wrote: > > For *NIX machines, will 'python' be placed into /usr/bin? > > Not by default, no. Just try it and see for yourself. > > Regards, > Martin Ok. I built the source on an openSUSE 11.0 system. I used 'sudo make altinstll'. It created

Re: Running Python 2 and Python 3 on the same machine

2008-12-05 Thread Paul Watson
On Fri, 2008-12-05 at 02:10 +0100, "Martin v. Löwis" wrote: > > Since the source code is incompatible, I was expecting the Python > > executable to have a new name such as 'python3' > > It does: the executable is called python3.0. > > > or for the default > > source code filename to change to '.p

Running Python 2 and Python 3 on the same machine

2008-12-04 Thread Paul Watson
The migration strategy detailed in PEP 3000 using 2to3 is quite nice. However, I am looking for suggestions for migrating to 3 while I still have code that requires 2. Since the source code is incompatible, I was expecting the Python executable to have a new name such as 'python3' or for the defau

SOAP access to SharePoint

2008-03-11 Thread Paul Watson
Has anyone successfully accessed a Microsoft SharePoint WSS using Python? No, not IronPython. I need for this to be able to run on all machines the customer might choose. Which libs are you using? ZSI, SOAPpy, soaplib, ??? http://wiki.python.org/moin/WebServices -- http://mail.python.org/mai

Re: any library for SOAP 1.1 or SOAP 1.2?

2008-03-11 Thread Paul Watson
On Fri, 2008-01-25 at 16:52 +0530, Amogh Hooshdar wrote: > Hi, > > I wish to know which python library is popular for SOAP related > programming, especially for sending SOAP requests and parsing SOAP > responses. > > I can't find any such library in the Python standard library but I > could find

Re: SOAP strategies

2008-02-19 Thread Paul Watson
On Tue, 2008-02-19 at 10:01 -0800, Paul Boddie wrote: > On 19 Feb, 16:59, Paul Watson <[EMAIL PROTECTED]> wrote: > > > > Have I offended? My apologies if I have. I thought I showed that I had > > done some homework and used Google and did the other things to show th

Re: SOAP strategies

2008-02-19 Thread Paul Watson
On Tue, 2008-02-19 at 10:01 -0800, Paul Boddie wrote: > On 19 Feb, 16:59, Paul Watson <[EMAIL PROTECTED]> wrote: > > > > Have I offended? My apologies if I have. I thought I showed that I had > > done some homework and used Google and did the other things to show th

Re: SOAP strategies

2008-02-19 Thread Paul Watson
On Sat, 2008-02-16 at 10:59 -0600, Paul Watson wrote: > What are the reasonable current day choices and best bets for the future > when doing SOAP programming in Python? SOAP batteries do not appear to > be in the standard Python distribution. > > Most of the SOAP related inf

SOAP strategies

2008-02-16 Thread Paul Watson
What are the reasonable current day choices and best bets for the future when doing SOAP programming in Python? SOAP batteries do not appear to be in the standard Python distribution. Most of the SOAP related information I have been able to find on the web is from 2001-2002. I am not sure if som

Scripting Visio using Python

2007-02-13 Thread Paul Watson
I would like to create some additional shapes in Microsoft Visio using the Python language. It would appear that Visio can use any CLR language. Has anyone done this? Can I use the Python package from python.org, or must I use IronPython? -- http://mail.python.org/mailman/listinfo/python-lis

Re: PythonCard

2007-01-30 Thread Paul Watson
Tequila wrote: > I'm having some trouble starting PythonCard on my PC. > > I've downloaded and ran python-2.5.msi to install Python on my > machine. And PythonCard-0.8.2.win32.exe to install PythonCard. > > When I try to run the program I get the following error: > =

Re: Learning to program in Python

2007-01-05 Thread Paul Watson
jbchua wrote: > Hello everybody. > > I am an Electrical Engineering major and have dabbled in several > languages such as Python, C, and Java in my spare time because of my > interest in programming. However, I have not done any practical > programming because I have no idea where to get started.

Re: what is this?

2007-01-04 Thread Paul Watson
Paul Watson wrote: > Eric Price wrote: >> Hello; >> I'm studying some code examples from the python cookbook site. I came >> across this: >> >> def colsplit(l, cols): >>rows = len(l) / cols >>if len(l) % cols: >>rows += 1 >

Re: what is this?

2007-01-04 Thread Paul Watson
Eric Price wrote: > Hello; > I'm studying some code examples from the python cookbook site. I came > across this: > > def colsplit(l, cols): >rows = len(l) / cols >if len(l) % cols: >rows += 1 >m = [] >for i in range(rows): >m.append(l[i::rows]) >return m > >

Re: Cannot build 2.5 on FC6 x86

2007-01-03 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson schrieb: >> ./configure >> make >> make test >> >> The result appears to hang after the test_tkl... line. I had to kill >> the 'make test' process which terminated it. Any suggestions? > > There isn

Cannot build 2.5 on FC6 x86

2007-01-03 Thread Paul Watson
./configure make make test The result appears to hang after the test_tkl... line. I had to kill the 'make test' process which terminated it. Any suggestions? 280 tests OK. 4 tests failed: test_optparse test_socket test_socket_ssl test_urllib2 35 tests skipped: test_aepack test_al te

Re: A question about unicode() function

2007-01-02 Thread Paul Watson
JTree wrote: > Thanks everyone! > > Sorry for my ambiguous question. > I changed the codes and now it works fine. > > > > JTree wrote: >> Hi,all >> I encountered a problem when using unicode() function to fetch a >> webpage, I don't know why this happenned. >> My codes and error messa

Re: Help with small program

2006-12-31 Thread Paul Watson
Tim Roberts wrote: > [EMAIL PROTECTED] wrote: >> Interesting impl in Python! I am wondering what if the requirement is >> to find the minimum number of coins which added to the "fin" sum... > > Given the set of coins in the original problem (100, 10, 5, 1, 0.5), the > solution it provides will alw

Re: Help with small program

2006-12-24 Thread Paul Watson
Better alternative. cointype = (100, 10, 5, 1, 0.5) def coins(fin): needed = {} for c in cointypes: v, r = divmod(fin, c) if v > 0: needed[c] = v fin = r return needed if __name__ == '__main__

Re: Help with small program

2006-12-24 Thread Paul Watson
smartbei wrote: > Felix Benner wrote: >> smartbei schrieb: >>> Hello, I am a newbie with python, though I am having a lot of fun using >>> it. Here is one of the excersizes I am trying to complete: >>> the program is supposed to find the coin combination so that with 10 >>> coins you can reach a ce

Re: convert from date string to epoch

2006-12-15 Thread Paul Watson
Stefan Antonelli wrote: > Hi, > > i have to convert several timestamps. The given format, eg "-mm-dd > hh:mm:ss" > has to be converted to an epoch string. Is there any proper way to do this? > > If not, i have to split the given string and resolve this by a calculation? > > Thanks for help.

Re: how to determine Operating System in Use?

2006-12-13 Thread Paul Watson
Ian F. Hood wrote: > Hi > In typically windows environments I have used: > if 'Windows' in os.environ['OS']... > to prove it, but now I need to properly support different environments. > To do so I must accurately determine what system the python instance is > running on (linux, win, mac, etc)

Re: ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Paul Watson
Andrew Sackville-West wrote: > Hi list, > > I am new to python and old to coding (as in I did it a long time > ago). I've got a task that cries out for a scripted solution -- > importing chunks of ASCII data dumps from a point-of-sale system into > an openoffice.org spreadsheet. What a great chan

Re: newbie: minidom

2006-11-11 Thread Paul Watson
Fredrik Lundh wrote: > Danny Scalenotti wrote: > >> I'm not able to get out of this ... >> >> from xml.dom.minidom import getDOMImplementation >> >> impl = getDOMImplementation() // default UTF-8 >> doc = impl.createDocument(None, "test",None) >> root = doc.documentElement >> root.setAttribu

Re: codecs - where are those on windows?

2006-10-30 Thread Paul Watson
GHUM wrote: > I stumbled apon a paragraph in python-dev about "reducing the size of > Python" for an embedded device: > > """ > In my experience, the biggest gain can be obtained by dropping the > rarely-used > CJK codecs (for Asian languages). That should sum up to almost 800K > (uncompressed), I

PyXML not supported, what to use next?

2006-09-30 Thread Paul Watson
It would appear that xml.dom.minidom or xml.sax.* might be the best thing to use since PyXML is going without support. Best of all it is included in the base Python distribution, so no addition hunting required. Is this right thinking? Is there a better solution? -- http://mail.python.org/mai

Re: best small database?

2006-09-11 Thread Paul Watson
David Isaac wrote: > I have no experience with database applications. > This database will likely hold only a few hundred items, > including both textfiles and binary files. > > I would like a pure Python solution to the extent reasonable. > > Suggestions? > > Thank you, > Alan Isaac If you wan

Re: to thine own SELF be true...

2006-05-05 Thread Paul Watson
Michael Ekstrand wrote: > On Fri, May 05, 2006 at 05:08:24PM +, Mark Harrison wrote: > >>Is there a way to get rid of those the "self." references, or is this >>just something I need to get my brain to accept? > > > It's pretty much just something you'll need to get your brain to accept. > Y

Re: --version?

2006-05-02 Thread Paul Watson
Adonis wrote: > Paul Watson wrote: > >> Is there any chance that Python would support the --version command >> line parameter? It seems that many open source programs use this >> switch to report their version number. > > > > try at a command prom

--version?

2006-05-02 Thread Paul Watson
Is there any chance that Python would support the --version command line parameter? It seems that many open source programs use this switch to report their version number. -- http://mail.python.org/mailman/listinfo/python-list

Re: finding IP address of computer

2006-04-30 Thread Paul Watson
DarkBlue wrote: > Chris wrote: > > >>How do I find and print to screen the IP address of the computer my >>python program is working on? > > > def readip(): > import re, urllib > f = urllib.urlopen('http://checkip.dyndns.org') > s = f.read() > m = re.search('([\d]*\.[\d]*\.[\d]*\.[\d]*)', s

Re: installing pyodbc

2006-04-30 Thread Paul Watson
timw.google wrote: > I just downloaded the pyodbc source to try and install on my Linux FC3 > box. I see that there is a setup.py file, but when I try to do a > 'python setup.py build' (or just 'python setup.py') I get > > Traceback (most recent call last): > File "setup.py", line 27, in ? >

Re: Is pwm Python MegaWidgets viable?

2006-04-02 Thread Paul Watson
gregarican wrote: > Paul Watson wrote: > > >>Does pwm run well on Python 2.4? The last release appears to be in >>2003. The Manning discussion forum is dead. >> >>Is there a better path to learning and producing tkInter apps? >> >> >>Has the

Is pwm Python MegaWidgets viable?

2006-04-02 Thread Paul Watson
Does pwm run well on Python 2.4? The last release appears to be in 2003. The Manning discussion forum is dead. Is there a better path to learning and producing tkInter apps? Has there been any discussion of wxPython becoming part of the base Python distro? A requirement here is to not requir

Re: ftp: get list of files

2006-02-09 Thread Paul Watson
Lawrence Oluyede wrote: > "eels" <[EMAIL PROTECTED]> writes: > > >>With yyy = ftp.retrlines('LIST') I get this listing at stdout, but I >>need this information at variable yyy. >>How can I resolve this problem? > > > As written in the doc retrlines has an optional parameter (a callback > funct

Re: Using non-ascii symbols

2006-01-24 Thread Paul Watson
Christoph Zwerschke wrote: > On the page http://wiki.python.org/moin/Python3%2e0Suggestions > I noticed an interesting suggestion: > > "These operators ≤ ≥ ≠ should be added to the language having the > following meaning: > > <= >= != > > this should improve readibility (and make language

Re: Need Help with Python/C API

2006-01-19 Thread Paul Watson
pycraze wrote: > Hi guys, > > I Need to know how do i create a dictionary... eg: > n = pali_hash > n={} > n={1:{ } } -> i need to know how to make a key of a dictionary, to a > dictionary using Python/C API's It looks like you are asking how to create a dictionary (hash). If it is more t

Re: Removing a substring from a string

2006-01-16 Thread Paul Watson
ankit wrote: > Hi All, > I want to remove a substring from a string without any additional > tabs/returns in the output string. Is there any method availaible or > how can I do it. For the ease, I am giving an example: > > [code] > mainstr =""" > ${if:isLeaf} > Dont include this isLeaf=True > ${

Re: How to get Windows system information?

2006-01-13 Thread Paul Watson
Martin P. Hellwig wrote: > [EMAIL PROTECTED] wrote: > >> Does anybody know how to get the: >> >> Free hard disk space >> Amount of CPU load >> and Amount of RAM used >> >> on windows? I am making an artificial intelligence program that has >> "moods" based on how much stress the sys

Re: Creating shortcuts?

2006-01-13 Thread Paul Watson
Ron Griswold wrote: > Hi Dennis, > > Yes, I am equating a unix soft link to a windows shortcut. Both act as > links to a file or directory. > > I have found that windows shortcuts do appear in linux dir listings with > a .lnk extension, however the file is meaningless to linux. On the other > ha

Re: return values of os.system() on win32

2006-01-13 Thread Paul Watson
rbt wrote: > Is it safe to say that any value returned by os.system() other than 0 is > an error? > > if os.system('winver') != 0: > print "Winver failed!" > else: > print "Winver Worked." > > Thanks! What are you really seeking to do? Are you wanting to detect if your code is running

Re: Calling foreign functions from Python? ctypes?

2006-01-09 Thread Paul Watson
Neil Hodgson wrote: > Paul Watson: > >> I cannot find any way to get to GetVersionInfo in VBScript (cscript). > > > Set objFSO = CreateObject("Scripting.FileSystemObject") > Wscript.Echo objFSO.GetFileVersion("c:\bin\SciLexer.dll") Many thanks. Ju

Re: Calling foreign functions from Python? ctypes?

2006-01-08 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >>I need to call GetVersionInfo() and handle VERSIONINFO information. I >>thought that distutils might have something, but I do not see it yet. >>Any suggestions? > > You could write this specific API in VB, and then r

Re: Viewing Binary Data

2006-01-08 Thread Paul Watson
Cuyler wrote: > I would like to display a file in its binary form (1s and 0s), but I'm > having no luck... Any thoughts would be most appreciated. If you are on a UNIX system, or on Windows with Cygwin, you can use the 'od' command to dump a file in hex or octal. man od od -Ax -t

Re: Calling foreign functions from Python? ctypes?

2006-01-06 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >>I need to call some Windows APIs. Is the only way to download ctypes or >>the win32 interfaces? > > > That depends on the specific win32 interface you want to call. > Typically, the answer is "yes". I hav

Re: Calling foreign functions from Python? ctypes?

2006-01-06 Thread Paul Watson
Neil Hodgson wrote: > Paul Watson: > >> Is there any plan to get ctypes batteries into the standard Python build? > > >It is unlikely that ctypes will be included in the standard Python > build as it allows unsafe memory access making it much easier to crash &

Calling foreign functions from Python? ctypes?

2006-01-06 Thread Paul Watson
I need to call some Windows APIs. Is the only way to download ctypes or the win32 interfaces? Is there any plan to get ctypes batteries into the standard Python build? -- http://mail.python.org/mailman/listinfo/python-list

Re: nesting for statements?

2005-11-27 Thread Paul Watson
[EMAIL PROTECTED] wrote: > I'm not what you'd call a "programmer" of any sort, so perhaps this > question may seem arcane and result in a plethora of "you idiot" > threads, but here goes: > > ArcGIS 9.1 has a neat interface with python (2.1-2.4), allowing me to > do all sorts of spatial operations

Re: Writing pins to the RS232

2005-11-26 Thread Paul Watson
[EMAIL PROTECTED] wrote: > I want to write to the pins of an RS232 without using the serial > protocol. The use would be every pin could act to complete a circuit > in customized hardware. I could use python to communicate serially to > a BASIC stamp or a Javelin stamp and then use the stamp to s

Re: Which License Should I Use?

2005-11-25 Thread Paul Watson
mojosam wrote: > I've been watching the flame war about licenses with some interest. > There are many motivations for those who participate in this sector, so > disagreements over licenses reflect those agendas. > > I don't have an agenda, at least not right now. I do plan on writing a > few prog

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-24 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >> It appears that _ALL_SOURCE gets defined in the >> /usr/include/standards.h file. If we could #define _ANSI_C_SOURCE or >> _POSIX_SOURCE, it appears that it would eleminate _ALL_SOURCE. > > > Ah, ok - this sh

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >> Can we #undef _ALL_SOURCE for _codecs_cn.c compilation? > > > Where does _ALL_SOURCE come from? Why is it defined? > What is its effect on hz? > > Regards, > Martin Martin v. Löwis wrote: > Paul Watson wro

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >> Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It >> appears that the CODEC_STATELESS macro is concatenating 'hz' with a >> number and text. > > > More likely, hz is already defined

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Paul Watson
Martin v. Löwis wrote: > Paul Watson wrote: > >> Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It >> appears that the CODEC_STATELESS macro is concatenating 'hz' with a >> number and text. > > > More likely, hz is already defined

2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Paul Watson
Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile? It appears that the CODEC_STATELESS macro is concatenating 'hz' with a number and text. building '_codecs_cn' extension cc -DNDEBUG -O -I. -I/home/pwatson/src/python/Python-2.4.2/./Include -I/home/pwatson/src/python/Python-2.4.2

Re: 2.4.2 on AIX 4.3 make fails on threading

2005-11-23 Thread Paul Watson
Neal Norwitz wrote: > Paul Watson wrote: > >>When I try to build 2.4.2 on AIX 4.3, it fails on missing thread >>objects. I ran ./configure --without-threads --without-gcc. >> >>Before using --without-threads I had several .pthread* symbols missing. > > &g

2.4.2 on AIX 4.3 make fails on threading

2005-11-22 Thread Paul Watson
When I try to build 2.4.2 on AIX 4.3, it fails on missing thread objects. I ran ./configure --without-threads --without-gcc. Before using --without-threads I had several .pthread* symbols missing. I do not have to have threading on this build, but it would be helpful if it is possible. The

Re: Web-based client code execution

2005-11-21 Thread Paul Watson
Robin Becker wrote: > Paul Watson wrote: > .. > >>> -- David >> >> >> >> This looks interesting, but looks even more fragile than CrackAJAX. >> >> http://www.aminus.org/blogs/index.php/phunt/2005/10/06/subway_s_new_ajax_framework >>

Re: Web-based client code execution

2005-11-20 Thread Paul Watson
John J. Lee wrote: > Paul Watson <[EMAIL PROTECTED]> writes: > > >>What are the options? >> >>The user to hits a web page, downloads code (Python I hope), execute it, >>and be able to return the results. It needs to be able to go through >>standa

Re: Web-based client code execution

2005-11-20 Thread Paul Watson
David Wahler wrote: > Steve wrote: > >>AJAX works because browsers can execute javascript. I don't know of a >>browser that can execute python. Basically your stuck with java or >>javascript because everything else really isn't cross platform > > > Don't jump to conclusions... > http://dwahler

Re: Web-based client code execution

2005-11-20 Thread Paul Watson
Kent Johnson wrote: > Stephen Kellett wrote: > >> In message <[EMAIL PROTECTED]>, >> Steve <[EMAIL PROTECTED]> writes >> >>> AJAX works because browsers can execute javascript. I don't know of a >>> browser that can execute python. Basically your stuck with java or >>> javascript because everyt

Re: Web-based client code execution

2005-11-18 Thread Paul Watson
Steve wrote: > AJAX works because browsers can execute javascript. I don't know of a > browser that can execute python. Basically your stuck with java or > javascript because everything else really isn't cross platform. Well, I guess the Grail browser could run Python, but I do not think I can

Re: Controlling windows gui applications from python

2005-11-18 Thread Paul Watson
tim wrote: > Hi all, I'm almost as new to this list as to python so I hope I don't > get a "this has been answered a 100 times before" or anything... > > Currently I am using a program named 'Macro Scheduler' for automating > programs that don't have a command line version. > Its a simple script

Web-based client code execution

2005-11-18 Thread Paul Watson
What are the options? The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be run from behind a corporate firewall without any other ports being opened. Am I stuck doing an

Re: get just one character

2005-11-17 Thread Paul Watson
Sinan Nalkaya wrote: > hello everybody, > how can i just get 1 character ? i`ve done a search but just found > getch() for windows, i need same for unix and raw_input has any option > that is not documented ? > thanks. Please use Google. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/1

Re: install python2.4 on FreeBSD and keep using python2.3

2005-11-17 Thread Paul Watson
Ksenia Marasanova wrote: > Hi, > > I have python2.3, installed from port /lang/python long time ago. The > current version is 2.4, but I'd rather have two python versions, > instead of upgrading. > Is there maybe a way to somehow link installed python to > /lang/python2.3 port, and then upgrade po

Re: Newb ?

2005-11-17 Thread Paul Watson
Chad Everett wrote: > Hey guys, > > Thanks for the hint. > I found that info last night but I could never get it to print more than > just the last letter. > or it would only print partially. > I was using just a single colon, the double colon did it. If you were using a single colon, then it w

Re: Newb ?

2005-11-15 Thread Paul Watson
Chad Everett wrote: > Hello all, > > Have a problem here with a challenge from a book I am reading. > Any help is much appreciated. > > I am trying to run a program that asks the user for a statement and then > prints it out backwards. > this is what I have. > It does not print anything out. I

Re: Is Python worth it??

2005-11-15 Thread Paul Watson
Simon Brunning wrote: > On 14/11/05, john boy <[EMAIL PROTECTED]> wrote: > >>I have started out trying to learn Python for my first programming language. >> I am starting off with the book "how to think like a computer scientist." >>I spend about 4-5 hrs a day trying to learn this stuff. It is ce

Re: Installing tkinter with Python 2.4.2 on FC4

2005-11-14 Thread Paul Watson
Paul Watson wrote: > I cannot yet get tkinter working on 2.4.2. I have installed the tk rpms > from FC4. I have checked to see that TKPATH is available in > Modules/Setup. > > How can I verify that I have tcl/tk installed correctly and it is the > correct version (8+)?

Installing tkinter with Python 2.4.2 on FC4

2005-11-12 Thread Paul Watson
I cannot yet get tkinter working on 2.4.2. I have installed the tk rpms from FC4. I have checked to see that TKPATH is available in Modules/Setup. How can I verify that I have tcl/tk installed correctly and it is the correct version (8+)? -- http://mail.python.org/mailman/listinfo/python-l

Re: Scanning a file

2005-11-01 Thread Paul Watson
Alex Martelli wrote: > Steve Holden <[EMAIL PROTECTED]> wrote: >... > >>>The runtime knows it is doing it. Please allow the runtime to tell me >>>what it knows it is doing. Thanks. >> >>In point oif fact I don't believe the runtime does any such thing >>(though I must admit I haven't checke

Re: Scanning a file

2005-11-01 Thread Paul Watson
Paul Rubin wrote: > [EMAIL PROTECTED] (John J. Lee) writes: > >>Closing off this particular one would make it harder to get benefit of >>non-C implementations of Python, so it has been judged "not worth it". >>I think I agree with that judgement. > > > The right fix is PEP 343. I am sure you ar

Re: Scanning a file

2005-10-31 Thread Paul Watson
Steve Holden wrote: >> Since everyone needs this, how about building it in such that files >> which are closed by the runtime, and not user code, are reported or >> queryable? Perhaps a command line switch to either invoke or suppress >> reporting them on exit. >> > This is a rather poor substi

Re: Scanning a file

2005-10-31 Thread Paul Watson
Alex Martelli wrote: ... gc.garbage > > [<__main__.a object at 0x64cf0>, <__main__.b object at 0x58510>] > > So, no big deal -- run a gc.collect() and parse through gc.garbage for > any instances of your "wrapper of file" class, and you'll find ones that > were forgotten as part of a cyclic g

Re: Scanning a file

2005-10-30 Thread Paul Watson
Fredrik Lundh wrote: > Paul Watson wrote: > >>This is Cyngwin on Windows XP. > > using cygwin to analyze performance characteristics of portable API:s > is a really lousy idea. Ok. So, I agree. That is just what I had at hand. Here are some other numbers to which due d

Controlling output using print with format string

2005-10-30 Thread Paul Watson
It is clear that just using 'print' with variable names is relatively uncontrollable. However, I thought that using a format string would reign the problem in and give the desired output. Must I resort to sys.stdout.write() to control output? $ python Python 2.4.1 (#1, Jul 19 2005, 14:16:43) [

Re: Scanning a file

2005-10-29 Thread Paul Watson
"Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In today's implementations of Classic Python, yes. In other equally > valid implementations of the language, such as Jython, IronPython, or, > for all we know, some future implementation of Classic, that may well > not

Re: Scanning a file

2005-10-29 Thread Paul Watson
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Paul Watson" <[EMAIL PROTECTED]> writes: ... > Did you do timings on it vs. mmap? Having to copy the data multiple > times to deal with the overlap - thanks to strings being i

Re: Scanning a file

2005-10-28 Thread Paul Watson
"Paul Watson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>I want to scan a file byte for byte for occurences of the the four byte >> pattern 0x0100. I've

Re: Scanning a file

2005-10-28 Thread Paul Watson
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I want to scan a file byte for byte for occurences of the the four byte > pattern 0x0100. I've tried with this: > > # start > import sys > > numChars = 0 > startCode = 0 > count = 0 > > inputFile = sys.stdin > > while True: >ch =

Re: Scanning a file

2005-10-28 Thread Paul Watson
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I want to scan a file byte for byte for occurences of the the four byte > pattern 0x0100. I've tried with this: > > # start > import sys > > numChars = 0 > startCode = 0 > count = 0 > > inputFile = sys.stdin > > while True: >ch =

Re: Installing Python at Work

2005-10-18 Thread Paul Watson
"Nikola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm currently learning Python for my own use. > I'm considering installing it on a work laptop, knowing that it is > non-licensed, distributable software. > > However, does it access communication ports? I know the company che

  1   2   >