Re: [Tutor] UTF-8 filenames encountered in os.walk

2007-07-04 Thread Lloyd Kvam
with. The data in a file (streams of bytes) are encoded to represent unicode characters. The stream must be decoded to recover the underlying unicode. The unicode must be encoded when written to files. utf-8 is just one of many possible encoding schemes. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how can I compare a local directory or file with a remote one

2007-06-21 Thread Lloyd Kvam
Python related, I've used the urllib2 libraries to make SSL connections to a DAV (also spelled WebDav) server. This is reasonably straightforward to program in Python, but the server side is clumsy to setup. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how can I compare a local directory or file with a remote one

2007-06-21 Thread Lloyd Kvam
eel the lack of ssh, rsync, and sshfs. > ~r > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] numpy memory muncher

2006-11-13 Thread Lloyd Kvam
ange(100): > x=a[row,col] > #if x!=0: print "?" > > > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Lloyd Kvam Venix Corp. 1 Court Street, Suite 378 Lebanon, NH 03766-1358 voice: 603

Re: [Tutor] python processing of web html forms

2006-08-03 Thread Lloyd Kvam
alls. Great > rates starting at 1ยข/min. > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Lloyd Kvam Venix Corp. 1 Court Street, Suite 378 Lebanon, NH 03766-13

Re: [Tutor] Writing to a remote file

2006-06-16 Thread Lloyd Kvam
r maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Lloyd Kvam Venix Corp. 1 Court Street, Suite 378 Lebanon, NH 03766-1358 voice: 603-653-8139 fax:320-210-3409 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Building an SQL query (Gabriel Farrell)

2005-06-03 Thread Lloyd Kvam
I compliant. There seemed to be more documentation there, and I > figured it's a good idea to go with the standard. However, it does > seem like I'm covering ground I'm sure someone else has already > crossed when I create these re functions to manipulate queries. For > inserts, at least, it seems a Python dictionary should be able to do > the job nicely. > > gabe -- Lloyd Kvam Venix Corp -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Are Empty "Placeholder" Functions possible?

2005-05-26 Thread Lloyd Kvam
use the NotImplementedError exception now in my code as the place holder. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] brief description of URL's

2005-05-25 Thread Lloyd Kvam
entation. http://www.iana.org/assignments/uri-schemes -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python Interest Group in New England

2005-05-17 Thread Lloyd Kvam
x27;ll find the local LUGs will welcome Python folks, even those using Macs and Windows. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] TKinter and things over Linux

2005-04-20 Thread Lloyd Kvam
code for the newer releases. You'll be able to rely on yum to install software and keep the system humming along. yum install MySQL-python will determine which packages are needed, and download and install them. -- Lloyd Kvam Venix Corp ___

[Tutor] Talking to mssql?

2005-04-09 Thread Lloyd Kvam
I replied earlier from a digest entry (which starts a new thread) so you might have missed that reply. I included a URL for the mssql package which included the compile instructions for using freetds. Here is the link. Just follow the instructions and you should be able to compile cleanly. http

[Tutor] Talking to mssql

2005-04-08 Thread Lloyd Kvam
The freetds project talks to Sybase and mssql http://www.freetds.org/ http://mail.python.org/pipermail/db-sig/2005-April/004403.html A new sybase module has been released. Note the instructions for installing with freetds. -- Lloyd Kvam Venix Corp

[Tutor] OT - SQL methodolgy

2005-03-22 Thread Lloyd Kvam
d to use the function provided by the RDBMS that is tied to your connection/cursor so that you retrieve the primary_key that was assigned to *your* record. (I understood your request to be looking for the primary_key auto-assigned to your insert statement) -- Lloyd Kvam Venix Corp __

[Tutor] subclassing across multiple modules

2005-03-17 Thread Lloyd Kvam
sync with the Node classes that you write. You also face a similar issue keeping Application.py and Toolkit.py in sync. -- Lloyd Kvam Venix Corp ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] cataloging web Page Information

2005-03-05 Thread Lloyd Kvam
A minor addition to Kent's advice: urllib2 can be used to post form data to a web site. This is very convenient if the expected data format is stable. You will still need the urlencode from urllib to encode the data to be posted. -- Lloyd Kvam Venix

[Tutor] subclassing list -- slicing doesn't preserve type

2005-02-22 Thread Lloyd Kvam
he problem comes when you create class Mybetterlist(Mylist): ... When a Mybetterclass instance provides the self, super(self.__class__, self) is Mylist. So you recurse into the same __getslice__ that you started with instead of getting Mylist's super class. I think (untes