Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: > For some reason, I couldn't see the links at the end of the page; now I > can, though they look sort of "ragged", but, OK. Probably the fonts I chose. I'm in no way a good visual designer. I'm hoping someone who is

use browser setting for internet

2006-01-08 Thread Wish
Hi I have a problem with my script in python which uses xmlrpc. The script loses internet connection when it is used behind a firewall. I realize that the firewall is specified by using the http_proxy environment variable. However, the proxy server is automatically configured. I dont have access to

how can I use socket.ssl in python

2006-01-08 Thread ascetic
I am a newbie in using python. Today I try to use socket.ssl in a program. but python didn't support it. what's the reason? Anyone can tell me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Copying files between different linux machines

2006-01-08 Thread malv
Best is shfs. This uses the safety of ssh and allows you to mount filesystems on an external computer locally with commands like mount & umount: shfsmount & shfsumount. http://shfs.sourceforge.net/ malv -- http://mail.python.org/mailman/listinfo/python-list

Sockets on Windows and Mac

2006-01-08 Thread rodmc
I am new to Python and have been writing some socket based programmes on Windows (with some success), however I am unable to get them to work on Mac. Are there differences in the way the socket module works on Windows and Mac? I would appreciate any simple code samples people my have for creating

Re: download full sites?

2006-01-08 Thread James
This isn't a Python question unless you are looking for a Python implementation. HTTrack is one that I have used in the past as a general purpose tool. http://www.httrack.com/ As for Python http://harvestman.freezope.org/ I have no experience with it. I just searched in the CheeseShop. -- http:

Re: Viewing Binary Data

2006-01-08 Thread [EMAIL PROTECTED]
This recipe is a good place to start: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440528 Cheers Rich. -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC programming with python (newbie) - please help

2006-01-08 Thread has
bwaha wrote: > The author refers to mvctree.py in wxPython as an example of MVC design. > However I'm still too green so I find that particular example too complex > and I'm not understanding the separation the author is recommending. MVC is all about separation of concerns. The Model is responsi

Re: smtplib error('Connection reset by peer')

2006-01-08 Thread Tim Roberts
"Van_Gogh" <[EMAIL PROTECTED]> wrote: > >I am learning how to use the smtplib module, but am having some very >early problems, maybe because I don't understand it. >So, am I correct that by following the example in the Python: > import smtplib server = smtplib.SMTP('localhost') serve

Re: Returning Values from Bash Scripts

2006-01-08 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >How to execute bash scripts from python (other than using os.popen) and >get the values that those bash scripts return. Why would you eliminate os.popen? It is precisely the right way to do this. That's the same interface bash itself uses to execute scripts. That is,

Re: Spelling mistakes!

2006-01-08 Thread Jorgen Grahn
On Sat, 07 Jan 2006 08:57:24 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: [British/American English] > Hah! Canucks r00l! Most of those words look about equally good to us > most of the time. (And it's not because of the beer!) (But our beer > r00lz too.) And so does "primairy", "seconda

Re: Spelling mistakes!

2006-01-08 Thread Jorgen Grahn
On Fri, 6 Jan 2006 23:46:42 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I do tend to be a bit brief with my names and recognizing an identifier as > an abbreviation don't bother me the way a misspelled word does. Maybe I've > been using Unix systems for too long with their brief command

Re: os.environ['PATH'] missing

2006-01-08 Thread Jorgen Grahn
On 6 Jan 2006 06:03:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > How can it not be present? > What might cause this seemingly random situation? Well, it's not uncommon to start a program with a reduced set of environment variables, including a limited, hardcoded $PATH, so something

Re: Spelling mistakes!

2006-01-08 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > I'm one of those people who, for better or worse, is a good speller. > Words just look right or wrong to me and it bothers me when they > look wrong. Same here. I have to use code that has "childs" instead of "children"... I also can't stand "then" vs "than

Re: Sockets on Windows and Mac

2006-01-08 Thread Irmen de Jong
rodmc wrote: > I am new to Python and have been writing some socket based programmes > on Windows (with some success), however I am unable to get them to work > on Mac. Please elaborate on "unable to get them to work". What problems do you see? In my experience, there is no difference with the Ma

Re: Are there anybody using python as the script engine for ASP?

2006-01-08 Thread Dale Strickland-Clark
[EMAIL PROTECTED] wrote: > Hi everyone, I'm planning using python with asp, and wonder if some > people do use python/asp in real life projects. (I'm going to) > > cheers, > > === > > kychan Guys at my company do. I think there were some issues which they either worked around or that w

Re: Viewing Binary Data

2006-01-08 Thread Claudio Grondi
Cuyler wrote: > Hello, > > 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. > > Cheers! > > Cuyler > You may consider to check out the latest by me started thread in this newsgroup with the subject: "Does Python

Re: how can I use socket.ssl in python

2006-01-08 Thread Scott David Daniels
ascetic wrote: > I am a newbie in using python. > Today I try to use socket.ssl in a program. but python didn't > support it. > what's the reason? Anyone can tell me. > (1) Search the newsgroup; several people sometimes have it. (2) Ask smart questions. Try to imagine answering what y

Re: Newbie with some doubts.

2006-01-08 Thread Jorgen Grahn
On Sat, 07 Jan 2006 18:47:20 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: ... > As far as I'm concerned, the definitive work in this area is Meyer's > "Object Oriented Software Construction". He covers pretty much all the > uses of OO language features, using a language that was designed > specific

Re: Returning Values from Bash Scripts

2006-01-08 Thread Jorgen Grahn
On Sun, 08 Jan 2006 08:57:01 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> >>How to execute bash scripts from python (other than using os.popen) and >>get the values that those bash scripts return. > > Why would you eliminate os.popen? It is precisely the right way to d

Re: C regex equiv to Python implementation?

2006-01-08 Thread Jorgen Grahn
On 6 Jan 2006 11:24:14 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ganesan, > > I'm trying to stay portable between Windows and Linux. My app will run > on Linux when deployed. But we do a lot of simulation on Windows > because of better dev tools available on Windows. (Lots of people se

Re: Spelling mistakes!

2006-01-08 Thread skip
Sybren> And what's up with using Google to check for spelling? I have a Sybren> dictionary for that, works a lot better! A couple things: 1. It's generally faster than reaching for the dictionary. 2. The hit count for a word and its misspelling gives me some measure of ho

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-08 Thread Anton Vredegoor
Alex Martelli wrote: > Anton Vredegoor <[EMAIL PROTECTED]> wrote: > >> However I still maintain that I was never able to meet these fine >> people you speak about and which you seem to know because the cost >> involved (a few hundred euro to visit pycon for example) was too high >> compared to my

Re: Newbie Question: CSV to XML

2006-01-08 Thread Doru-Catalin Togea
On Fri, 6 Jan 2006, ProvoWallis wrote: Hi! > Would anyone be willing to give me some feedback about this little > script that I wrote to convert CSV to XML. I'll happily admit that I > still have a lot to learn about Python so I'm always grateful for > constructive feedback. I have started using

Re: question about mutex.py

2006-01-08 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > yes, I read it, and I even know about threading's existence. I just > thought that if something claims to be atomic, it better should be. I think the term "atomic" is meaningful only when the context is known. For example, "atomic" operations in the Python interpreter

Re: Viewing Binary Data

2006-01-08 Thread Peter Hansen
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. I'm sure the list archives (visible via Google Groups and other means) has answers to similar questions in the past. Also the online Python CookBook

Re: Sockets on Windows and Mac

2006-01-08 Thread Peter Hansen
rodmc wrote: > I am new to Python and have been writing some socket based programmes > on Windows (with some success), however I am unable to get them to work > on Mac. > > Are there differences in the way the socket module works on Windows and > Mac? I would appreciate any simple code samples peo

What is the UI Element to work with HTML Content

2006-01-08 Thread K Satish
Hi All,   I am a newbie to Python. I want to know that there is any UI Control to browse HTML pages. Please let me know. If that is available, I am planing to develop a Chat application. Waiting for help.   Thanks, Satish. [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]  Send insta

XML RFC Server

2006-01-08 Thread K Satish
Hi All,   Is there any example code to develop XML RFC Web Service in Python.   Thanks, Satish.Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-08 Thread Alex Martelli
Anton Vredegoor <[EMAIL PROTECTED]> wrote: ... > > Europython is cheap to attend, and has been held twice in Charleroi, > > Belgium, for example -- if you're in the Netherlands, you could have ... > The gist of it is that for me a few hundred euros is and was a *lot* of > money, and that this

Re: Try Python update

2006-01-08 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > Mike Meyer <[EMAIL PROTECTED]> wrote: > > For some reason, I couldn't see the links at the end of the page; now I > > can, though they look sort of "ragged", but, OK. > > Probably the fonts I chose. I'm in no wa

Re: Sockets on Windows and Mac

2006-01-08 Thread Alex Martelli
rodmc <[EMAIL PROTECTED]> wrote: > I am new to Python and have been writing some socket based programmes > on Windows (with some success), however I am unable to get them to work > on Mac. > > Are there differences in the way the socket module works on Windows and > Mac? I would appreciate any si

Re: MVC programming with python (newbie) - please help

2006-01-08 Thread Scott David Daniels
has wrote: > MVC is all about separation of concerns This is a wonderful explanation of MVC. I'm going to keep a link to the Google-Groups version just so I can cite it to those asking about MVC. --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

PIL.Image.frombuffer/string ... who do data using?

2006-01-08 Thread ivan.dm
hello again everyone! I'm writing a wrapper for tif file that parse its and return the data image in this way below : self.fp.seek(StripOffsets) data = self.fp.read(StripByteCounts) return data where: self.fp is a file object StripOffsets is a offset posit

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: Viewing Binary Data

2006-01-08 Thread Bengt Richter
On 6 Jan 2006 09:15:50 -0800, "Cuyler" <[EMAIL PROTECTED]> wrote: >Hello, > >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. > What have you tried? "having no luck" doesn't tell us much, although it is a phrase previ

Re: Spelling mistakes!

2006-01-08 Thread Terry Hancock
On Sun, 8 Jan 2006 08:58:48 -0600 [EMAIL PROTECTED] wrote: > Sybren> And what's up with using Google to check for spelling? I have a > Sybren> dictionary for that, works a lot better! > > A couple things: > > 1. It's generally faster than reaching for the > dictionary. But not fa

Re: Viewing Binary Data

2006-01-08 Thread Rod Haper
Paul Watson wrote: > 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

Multiway Branching

2006-01-08 Thread rshepard
I need to look at two-byte pairs coming from a machine, and interpret the meaning based on the relative values of the two bytes. In C I'd use a switch statement. Python doesn't have such a branching statement. I have 21 comparisons to make, and that many if/elif/else statements is clunky and inef

Re: Multiway Branching

2006-01-08 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I need to look at two-byte pairs coming from a machine, and interpret the > meaning based on the relative values of the two bytes. In C I'd use a switch > statement. Python doesn't have such a branching statement. I have 21 > comparisons to make, and that many if/elif/

Re: Spelling mistakes!

2006-01-08 Thread Robin Becker
Chris F.A. Johnson wrote: > On 2006-01-08, Terry Hancock wrote: > >>BTW, one of the most common programming spelling errors is >>"deprecate" versus "depreciate" -- I wonder how many people >>actually realize that both words exist, but have entirely >>different meanings? > > >The words overla

Re: Spelling mistakes!

2006-01-08 Thread Chris F.A. Johnson
On 2006-01-08, Terry Hancock wrote: > > BTW, one of the most common programming spelling errors is > "deprecate" versus "depreciate" -- I wonder how many people > actually realize that both words exist, but have entirely > different meanings? The words overlap in meaning. Both can mean to dispa

Re: question about mutex.py

2006-01-08 Thread Bengt Richter
On Sun, 08 Jan 2006 10:24:43 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> yes, I read it, and I even know about threading's existence. I just >> thought that if something claims to be atomic, it better should be. > >I think the term "atomic" is meaningful only when t

What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-08 Thread Gerard Brunick
My way is ugly. These has to be a better way. Thanks, Gerard -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiway Branching

2006-01-08 Thread Bengt Richter
On 8 Jan 2006 18:59:28 GMT, [EMAIL PROTECTED] wrote: > I need to look at two-byte pairs coming from a machine, and interpret the >meaning based on the relative values of the two bytes. In C I'd use a switch >statement. Python doesn't have such a branching statement. I have 21 >comparisons to make

decorator question

2006-01-08 Thread Schüle Daniel
hello NG, consider this code >>> def timelogger(f): ... def wrapper(*a,**kw): ... print "started at %s" % time.ctime() ... t0 = time.time() ... f(*a, **kw) ... t1 = time.time() ... print "ended at %s" % time.ctime() ...

Re: Returning Values from Bash Scripts

2006-01-08 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > On Sun, 08 Jan 2006 08:57:01 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>>How to execute bash scripts from python (other than using os.popen) and >>>get the values that those bash scripts return. >> Why would you eliminate os.

Re: Multiway Branching

2006-01-08 Thread Bengt Richter
On Sun, 8 Jan 2006 20:31:49 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: > >> I need to look at two-byte pairs coming from a machine, and interpret the >> meaning based on the relative values of the two bytes. In C I'd use a switch >> statement. Python doesn't have

Re: Newbie with some doubts.

2006-01-08 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > On Sat, 07 Jan 2006 18:47:20 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: > ... >> As far as I'm concerned, the definitive work in this area is Meyer's >> "Object Oriented Software Construction". He covers pretty much all the >> uses of OO language feature

Re: Returning Values from Bash Scripts

2006-01-08 Thread Fredrik Lundh
Steven D'Aprano wrote: > >> How to execute bash scripts from python (other than using os.popen) and > >> get the values that those bash scripts return. > > > > The easy way is to call it with subprocess.call. > > > >>> import subprocess > Traceback (most recent call last): > File "", line 1, in

Re: decorator question

2006-01-08 Thread Frank Niessink
Schüle Daniel wrote: > > (1) fails to compile > is it possible to pass parameters to a decorator function? Yes, I think this does what you want: import time, sys def timelogger(logfile=sys.stdout): def actual_timelogger(function): def wrapper(*a,**kw): logfile.write("

Re: decorator question

2006-01-08 Thread Ralf Schmitt
Schüle Daniel schrieb: > hello NG, > > consider this code > > >>> def timelogger(f): > ... def wrapper(*a,**kw): > ... print "started at %s" % time.ctime() > ... t0 = time.time() > ... f(*a, **kw) > ... t1 = time.time() > ... print

Re: Spelling mistakes!

2006-01-08 Thread Chris F.A. Johnson
On 2006-01-08, Robin Becker wrote: > Chris F.A. Johnson wrote: >> On 2006-01-08, Terry Hancock wrote: >> >>>BTW, one of the most common programming spelling errors is >>>"deprecate" versus "depreciate" -- I wonder how many people >>>actually realize that both words exist, but have entirely >>>diff

Re: Display of JPEG images from Python

2006-01-08 Thread py pan
I remember seeing somewhere saying that the "wx.StaticBitmap" is only for small image (64x64?), is that true?On 6 Jan 2006 07:01:24 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: You can f.i. use wxPython (www.wxPython.org). Here is a compact andugly, but (almost) minimal, example of a python

Re: What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-08 Thread Brian van den Broek
Gerard Brunick said unto the world upon 08/01/06 01:27 PM: > My way is ugly. These has to be a better way. > > Thanks, > Gerard If you'd posted your way, I might well have seen if I could do it in a nicer fashion. But, since for all I know, my best efforts would result in the approach you alre

Re: What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-08 Thread Claudio Grondi
Gerard Brunick wrote: > My way is ugly. These has to be a better way. > > Thanks, > Gerard Ugly is not necessary not the slickest. To do better, there must be something to compare to, right? Claudio -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-08 Thread Tim Hochberg
Brian van den Broek wrote: > Gerard Brunick said unto the world upon 08/01/06 01:27 PM: > >>My way is ugly. These has to be a better way. >> >>Thanks, >>Gerard > > > If you'd posted your way, I might well have seen if I could do it in a > nicer fashion. But, since for all I know, my best effor

Re: Spelling mistakes!

2006-01-08 Thread skip
>> 1. It's generally faster than reaching for the dictionary. Terry> But not faster than use a dict server! Why not just use (e.g.) Terry> kdict? Maybe because not everybody has it? % kdict -bash: kdict: command not found Skip -- http://mail.python.org/mailman/listinfo/p

Re: Help Please: 'module' object has no attribute 'compile'

2006-01-08 Thread livin
Oh, no I did not create any modules, wish I had the knowledge to do so! I think I've moved beyond whatever that issue was and now getting a timeout. The info is below... any help you can give is appreciate! I'm running this code... import os, re, string, urllib, types data = urllib.urlencode({

Re: use browser setting for internet

2006-01-08 Thread John J. Lee
"Wish" <[EMAIL PROTECTED]> writes: > Hi > I have a problem with my script in python which uses xmlrpc. The script > loses internet connection when it is used behind a firewall. I realize > that the firewall is specified by using the http_proxy environment > variable. However, the proxy server is a

Re: Multiway Branching

2006-01-08 Thread rshepard
On 2006-01-08, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > DATA_MAP = { > chr(32)+chr(32): 0, > chr(36)+chr(32): "natural", > ... > chr(32)+chr(1): 5, > chr(66)+chr(32): 0.167, > } > ... > row_value = DATA_MAP[source.read(2)] > > # or: row_value = DATA_MAP.get(source.read(2), DE

Tkinter & GTK in the same application?

2006-01-08 Thread Sandro Dentella
I need to use tkinter.canvas in a gtk application. Is that any possible. I guess I should use threads: is there any example of how to start the 2 mainloops? Thanks for any possible hint sandro *:-) -- Sandro Dentella *:-) http://www.tksql.orgTkSQL Home page - My GPL work -

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 run cscript.exe in > a pipe; or y

Re: how-to POST form data to ASP pages?

2006-01-08 Thread livin
Any ideas on how to troubleshoot the 'Operation timed out' error, or work-around it? I'm just sending a POST to a windows-based web server (non-IIS). thanks! "livin" wrote in message news:[EMAIL PROTECTED] > Dennis, Alan, Mike... help? > > According to the HomeSeer (I'm trying to trigger eve

project-like or plan extension?

2006-01-08 Thread Sandro Dentella
I'd like to find a plan or project-like extension to use in a PyGtk application. I need very basic functionaluties: time-zooming, possibility to set tooltip for objects, possibility to move around chunks of a job. Any ideas? TIA sandro -- Sandro Dentella *:-) http://www.tksql.org

Re: decorator question

2006-01-08 Thread Bengt Richter
On Sun, 08 Jan 2006 23:26:28 +0100, =?ISO-8859-1?Q?Sch=FCle_Daniel?= <[EMAIL PROTECTED]> wrote: [...] > >the code above works fine >but I am wondering wheather it's possible to >write something like this > > >>> def timelogger(f, logfile=sys.stdout): >... def wrapper(*a,**kw): >...

2D canvas for GTK

2006-01-08 Thread Sandro Dentella
I need a (decent) canvas for PyGTK. I used tkinter.canvas with real pleasure in the past but now I need to use the canvas in a Gtk application. Does anybody know of one with similar capabilities? It must work on Windows too. It must be able to produce postscript output. Thanks sandro *:-) -- Sa

Re: What is the slickest way to transpose a square list of lists (tuple of tuples)?

2006-01-08 Thread Bengt Richter
On Sun, 08 Jan 2006 15:21:59 -0600, Brian van den Broek <[EMAIL PROTECTED]> wrote: >Gerard Brunick said unto the world upon 08/01/06 01:27 PM: >> My way is ugly. These has to be a better way. >> >> Thanks, >> Gerard > >If you'd posted your way, I might well have seen if I could do it in a >nic

Re: decorator question

2006-01-08 Thread Schüle Daniel
thx to all now I understand how it works and why it should be done in this way so it's possible to write more than only one declarator >>> def foo(f): ... l = [1] ... def method(*a,**kw): ... f(l, *a, **kw) ... return method ... >>> def bar(f): ... l = [2] ... de

Re: Calling foreign functions from Python? ctypes?

2006-01-08 Thread Martin v. Löwis
Paul Watson wrote: > I cannot find any way to get to GetVersionInfo in VBScript (cscript). Well, in VB6, you have ctypes. So you can call any API function you like to. For one implementation, see http://www.andreavb.com/tip030020.html Regards, Martin -- http://mail.python.org/mailman/listinfo/

Re: building Python 2.4.2 on Mac OS X

2006-01-08 Thread Martin v. Löwis
Vidar Gundersen wrote: > are there any easy to understand instructions > for building Python on Mac OS X Tiger? It should work out of the box. > are there any prerequisites that i have missed? > my ./configure && make stops here: You should pass --with-suffix=.exe to configure, or else you get a

Re: building Python 2.4.2 on Mac OS X

2006-01-08 Thread Fredrik Lundh
Vidar Gundersen wrote: > are there any easy to understand instructions > for building Python on Mac OS X Tiger? > are there any prerequisites that i have missed? > my ./configure && make stops here: > > Python/mactoolboxglue.c:462: warning: return makes integer from pointer > without a cast > mak

Re: PyHtmlGUI Project is looking for developers

2006-01-08 Thread John J. Lee
"Paul Boddie" <[EMAIL PROTECTED]> writes: [...] > many would advocate using "AJAX" techniques and dropping support for > conventional Web interactions, but I think that such advocacy and the > resulting applications threaten the usability of the Web for fairly > large groups of people. That may we

total newb here

2006-01-08 Thread gerg
I've bought a few books on the topic, but I'm a total newb to programming in general. I've got about 4 years PHP / MySQL experience, but none with "actual programming". To be honest, I don't even really know what Python is used for. I'm thought I would start here and see if anyone knew of go

Newline at EOF Removal

2006-01-08 Thread Alex Nordhus
I am looking for a way to strip the blank line and the empty newline at the end of the text file. I can get the blank lines removed from the file but it always leaves the end line (which is blank) as a newline. My code is here and it works but leaves the newline at the end of the file. How do I g

Re: Multiway Branching

2006-01-08 Thread Ivan Voras
[EMAIL PROTECTED] wrote: > inefficient. Since these data are coming from an OMR scanner at 9600 bps (or > faster if I can reset it programmatically to 38K over the serial cable), I > want a fast algorithm. It depends on your actual environment, of course, but 38kbps is usually not considered "fa

Re: total newb here

2006-01-08 Thread UrsusMaximus
Try www.awaretek.com/plf.html for online help learning Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Spelling mistakes!

2006-01-08 Thread Walter S. Leipold
Terry Hancock ([EMAIL PROTECTED]) writes: > BTW, one of the most common programming spelling errors is > "deprecate" versus "depreciate" -- I wonder how many people > actually realize that both words exist, but have entirely > different meanings? That's a common spelling error, yes, but.. The

Re: psexec and os.popen help

2006-01-08 Thread Volker Grabsch
[EMAIL PROTECTED] wrote: > popen3 did the trick. Use the modules "subprocess" ... it solves many problems, including the problem of too many similar functions. :-) These functions (execl, execv, popen, popen2, popen3, ...) are relicts from C and very unpythonic. It's IMHO always a better program

Re: PIL.Image.frombuffer/string ... who do data using?

2006-01-08 Thread Peter Hansen
ivan.dm wrote: > I'm writing a wrapper for tif file that parse its and return the data > image in this way below : > > self.fp.seek(StripOffsets) > data = self.fp.read(StripByteCounts) > return data ... > after we get a data, now to set its in PIL.Image.from

Re: question about mutex.py

2006-01-08 Thread Peter Hansen
Bengt Richter wrote: > "Atomic" means trademarked by a company that used to use that name in the 50's > to describe and identify a line toys it put in its breakfast cereal boxes. > The rights are now owned by an IP scavenging company which is trying to sell > them for stock in another IP scavenger

Re: Double Click mouse event problems

2006-01-08 Thread scott_gui
Thank you very much. Adding in a timer delay is a good fake out. I guess I always considered a double-click to be one distinct behavior aside from the single click. I have rarely seen where a double-click action engaged an object without single clicks to select the object. For example, the Window's

Re: Newline at EOF Removal

2006-01-08 Thread Peter Hansen
Alex Nordhus wrote: > > I am looking for a way to strip the blank line and the empty newline at > the end of the text file. I can get the blank lines removed from the > file but it always leaves the end line (which is blank) as a newline. My > code is here and it works but leaves the newline at th

Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > I'm finding it hard to arrange my own experiments with Safari (I'm using > a loaner machine since my normal one[s] are all having problems and > under repair) but I'm told the solution for cursor positioning is to set > the caretPos attribute of the texta

Re: Newline at EOF Removal

2006-01-08 Thread Mike Meyer
"Alex Nordhus" <[EMAIL PROTECTED]> writes: > I am looking for a way to strip the blank line and the empty newline at > the end of the text file. I can get the blank lines removed from the > file but it always leaves the end line (which is blank) as a newline. My > code is here and it works but leav

Re: 2D canvas for GTK

2006-01-08 Thread John Bauman
"Sandro Dentella" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need a (decent) canvas for PyGTK. I used tkinter.canvas with real >pleasure > in the past but now I need to use the canvas in a Gtk application. Does > anybody know of one with similar capabilities? It must work on

Re: Try Python update

2006-01-08 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (Alex Martelli) writes: > > I'm finding it hard to arrange my own experiments with Safari (I'm using > > a loaner machine since my normal one[s] are all having problems and > > under repair) but I'm told the solution for cursor positioning

Re: Newline at EOF Removal

2006-01-08 Thread Bengt Richter
On Sun, 08 Jan 2006 17:10:01 -0600, "Alex Nordhus" <[EMAIL PROTECTED]> wrote: > > >I am looking for a way to strip the blank line and the empty newline at >the end of the text file. I can get the blank lines removed from the >file but it always leaves the end line (which is blank) as a newline. My

Re: PyQt Access Violations

2006-01-08 Thread gregarican
Hope this post doesn't duplicate, as a Google Groups error happened last attempt... Phil Thompson wrote: > What version of Qt? > > Phil It's version 2.3.0 non-commerical for Windows. My OS is Windows 2000 Professional SP4. Using this same version of Qt for a Ruby-based implementation of a simila

Building Pywin32 source code?

2006-01-08 Thread sam
Has anyone been able to access the source code for Pywin32 at sourceforge? I have been able to use TortouseCVS to access other CVS projects,but with the Pywin32 cvs site, I can not log in. Sam Schulenburg -- http://mail.python.org/mailman/listinfo/python-list

Real-world use cases for map's None fill-in feature?

2006-01-08 Thread Raymond Hettinger
Proposal I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None, 'abc', '12345') # demonstrate map's None fill-in feature [('a', '1'), ('b', '2'), ('c', '3'), (None, '4'),

Re: Real-world use cases for map's None fill-in feature?

2006-01-08 Thread Alex Martelli
Raymond Hettinger <[EMAIL PROTECTED]> wrote: ... > Request for more information > > My request for readers of comp.lang.python is to search your own code > to see if map's None fill-in feature was ever used in real-world code > (not toy examples). I'm curious about

is there any lib can split string in this way?

2006-01-08 Thread Leo Jay
I want to split a string like this: 'abc def "this is a test" ok' into: ['abc', 'def', 'this is a test', 'ok'] is there any lib meet my need? thanks -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Is 'everything' a refrence or isn't it?

2006-01-08 Thread rurpy
Fredrik Lundh wrote: ...snip... > afaik, the Python Language Reference never defines the word "reference". > It carefully defines words like "object" and "value", though, and terms like > "call by object" or "call by object reference" are perfectly understandable > if you use the words as they are

Re: Try Python update

2006-01-08 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Meanwhile, other JS/DOM experts have told me that there's NO way to set > cursor position within a textarea according to w3c standards. In this > case, what your site does now may be the "least bad" approach, and that > fact might be noted in the "browse

Re: building Python 2.4.2 on Mac OS X

2006-01-08 Thread Samuel M. Smith
On os x 10.4.3 to build a framework version unpack source dist python-2.4.2 ./configure --enable-framework make sudo makeframework install Please note that "sudo make install" won't work On 08 Jan, 2006, at 16:20, Vidar Gundersen wrote: > are there any easy to understand instructions > for bui

Why does Rpy/R-plot work under PythonWin, but not under commandline/IDLE?

2006-01-08 Thread Bo Peng
Dear list, I am using rpy, a python module to control statistical package R from python. Running the following commands >>> from rpy import * >>> r.plot(0) will pass command 'plot' to R and run it. I notice that the R-plot will not refresh (a window is created but the figure is not drawn) un

Re: Python on Nintendo DS

2006-01-08 Thread Richard Tew
Updated: http://www.disinterest.org/NDS/Python24.html - Worked out why it was working sporadically (Supercard requires the NDS loader to be prepended to ROMs). I assumed I was getting a ROM created with the loader/forgot that it was required, since it even ran. - Hooked it up to FAT file system c

Re: Calling foreign functions from Python? ctypes?

2006-01-08 Thread Thomas Heller
"=?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?=" <[EMAIL PROTECTED]> writes: > 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". > >> Is

Re: Why does Rpy/R-plot work under PythonWin, but not under commandline/IDLE?

2006-01-08 Thread Bo Peng
Bo Peng wrote: > Does anyone know why commandline/IDLE cause this > problem, while PythonWin does not? I am interested to know what I can do > in commandline (or in rpy) to fix this problem. Just note that R/plot works fine both from command window and a R-GUI. Bo -- http://mail.python.org/mai

  1   2   >