Re: Is there a library to parse Mozilla "mork" documents?

2005-01-20 Thread Tim Roberts
John Reese <[EMAIL PROTECTED]> wrote: > >Mozilla, Firefox, Thunderbird, and so forth use this awful format >called MORK to store all kinds of things: which messages you've read >in a newsgroup, headers and indexes into the mbox file of messages in >a mail folder, and address books. Yes. What a cr

Re: Python and SOAP

2005-01-20 Thread Peter Schaefer
On 21.01.2005 01:16, Nelson Minar wrote: Peter Schaefer <[EMAIL PROTECTED]> writes: SOAPy hasn't been maintained in awhile. The two contemporary options are ZSI or SOAPpy, both at http://pywebsvcs.sourceforge.net/ ZSI seems to have more serious development now, but neither is perfect. You should

Dejavu 1.3, a Python ORM

2005-01-20 Thread Robert Brewer
The Dejavu Object-Relational Mapper (version 1.3) is now available and in the public domain. Get it at svn://casadeamor.com/dejavu/trunk or http://www.aminus.org/rbre/python/. Dejavu is an Object-Relational Mapper for Python applications. It is designed to provide the "Model" third of an MVC appli

Re: Unbinding multiple variables

2005-01-20 Thread Leif K-Brooks
John Hunter wrote: >>>del locals()['x'] The locals() dictionary will only modify values in a module's top-level code (i.e. when the expression "locals() is globals()" is true). -- http://mail.python.org/mailman/listinfo/python-list

Retrieving the last bit Re: File objects? - under the hood question

2005-01-20 Thread Jeremy Bowers
On Thu, 20 Jan 2005 21:06:31 -0800, Eric Pederson wrote: > Here the sort of thing (seek, then read) I think I want: > IDV2=open(("http://musicsite.com/song453.mp3","rb";)[:-128]) > song453.tags=IDV2.read() > len(song453.tags) > > 128 > > > But it's not a Python problem. :-( O

Re: Does anyone want one?

2005-01-20 Thread Steve Holden
Drummmachine wrote: http://www.freeiPods.com/?r=14249501 just go here to get started. It's very easy and very real. This is no scam. Complete an offer, get 5 others to do the same and you'll receive a free Ipod of your choice. thanks for your time. Free ipods are real. As are pyramid scams. -

Re: Zen of Python

2005-01-20 Thread Steve Holden
Paul Rubin wrote: Steve Holden <[EMAIL PROTECTED]> writes: [Paul proves his superior Lisp knowledge] Perhaps because we don't all have your psychic powers? You snipped out the examples I gave, like [x*x for x in range(5)] leaving unnecessary residue in the name space. Was it not obvious from the

Re: Print a string in binary format

2005-01-20 Thread Paul Rubin
"neutrino" <[EMAIL PROTECTED]> writes: > I have a binary file and wish to see the "raw" content of it. So I open > it in binary mode, and read one byte at a time to a variable, which > will be of the string type. Now the problem is how to print the binary > format of that charater to the standard o

tkinter socket client ?

2005-01-20 Thread Tonino
I have been looking through the previous posts - but with my lack of knowledge on the whole tkinter subject - I have no clue what to look for ... SO - can anyone please help with this ...? I have a python server that when it gets a connection from a client - it sends data back - quite a bit of it

Re: What's the best python web-developer's editor

2005-01-20 Thread Paul Rubin
andy <[EMAIL PROTECTED]> writes: > Anybody like to comment on which editor they use for python web app > development - Emacs For both discrete and mixed python and html code, and why? There's no reason to use anything else. -- http://mail.python.org/mailman/listinfo/python-list

Re: What YAML engine do you use?

2005-01-20 Thread Paul Rubin
Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > For those of you who don't know what YAML is: visit http://yaml.org/! > You will be amazed, and never think of XML again. Well, almost. Oh please no, not another one of these. We really really don't need it. -- http://mail.python.org/mailman/list

Re: Zen of Python

2005-01-20 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > But how, in Lisp, would you transliterate the Python list [1, 2, 3, 4]? With a vector. > Clearly the Python list *is* different, and the tradeoff was to > obtain speed of random access, presumably (I wasn't taking an interest > in Python in its early day

Example of resolving an alias using Carbon.File module?

2005-01-20 Thread fortepianissimo
This is a question only relevant to Mac OS X. Could someone offer a simple example how to use Carbon.File module (perhaps Alias.FSResolveAlias()?) to resolve an alias? Basically I'd like to load in an alias file and find out which file/directory the alias points to. Thanks a lot! -- http://mail.

Re: spawn syntax + os.P_WAIT mode behavior + spawn stdout redirection

2005-01-20 Thread Donn Cave
Quoth Derek Basch <[EMAIL PROTECTED]>: | *First question* | | If the syntax of spawnl is: | | spawnl(mode, path, ...) | | Why does everyone write it like: | | os.spawnlp(os.P_WAIT, 'cp', 'cp', 'index.html', '/dev/null') | | or: | | os.spawnl(os.P_WAIT, "/var/www/db/smm/smm_train", "smm_train", | "

Re: Print a string in binary format

2005-01-20 Thread Bengt Richter
On 20 Jan 2005 17:21:42 -0800, "neutrino" <[EMAIL PROTECTED]> wrote: >Mmm, the output format that I want is like: >00011100 > >I tried your code on Cygwin under Windows 2000, and on Linux, but it >prints out ASCII characters. > You can make a 256-length list t

Re: problems with duplicating and slicing an array

2005-01-20 Thread Yun Mao
Hi all, Thanks for the help. numarray doesn't provide what I look for either. e.g. a = array( [[1,2,3],[4,5,6]] ) I sometimes what this: a[ [1,0], :], or even a[ [1,0], [0,1] ] , which should give me [[4, 5], [1,2]] Because I don't really care about arrays with dimension >2, I did a little h

Re: File objects? - under the hood question

2005-01-20 Thread Eric Pederson
Jeremy responds: [kind enough not to mention I must have had only 10% of my brain cells functioning when I posted] > And note that with the possible exception of that last one, there is no > relationship between these two questions. Right, I just want there to be. > There is no argument yo

Re: global variable, ok for string, bad for int

2005-01-20 Thread Peter Hansen
francisl wrote: I have a problem when I declare global variable. If it is string, dict, array or tuple, everything goes fine, but with int, I get an "used before declaration" error. here a sample : vardict = {'un':1, 'deux':2} def print_value(): print vardict['un'] # ok, that works --

Does anyone want one?

2005-01-20 Thread Drummmachine
http://www.freeiPods.com/?r=14249501 just go here to get started. It's very easy and very real. This is no scam. Complete an offer, get 5 others to do the same and you'll receive a free Ipod of your choice. thanks for your time. Free ipods are real. -- http://mail.python.org/mailman/listinf

Unbinding multiple variables

2005-01-20 Thread Johnny Lin
Hi! Is there a way to automate the unbinding of multiple variables? Say I have a list of the names of all variables in the current scope via dir(). Is there a command using del or something like that that will iterate the list and unbind each of the variables? Thanks much! (If anyone posts an

Re: Unbinding multiple variables

2005-01-20 Thread John Machin
Johnny Lin wrote: > Hi! > > Is there a way to automate the unbinding of multiple variables? Say I > have a list of the names of all variables in the current scope via > dir(). Is there a command using del or something like that that will > iterate the list and unbind each of the variables? Yes.

Re: problems with duplicating and slicing an array

2005-01-20 Thread John Hunter
> "Yun" == Yun Mao <[EMAIL PROTECTED]> writes: Yun> 2. Is there a way to do Matlab style slicing? e.g. if I have Yun> i = array([0, 2]) x = array([1.1, 2.2, 3.3, 4.4]) I wish y = Yun> x(i) would give me [1.1, 3.3] Now I'm using map, but it gets Yun> a little annoying when there

Re: PyCon Preliminary Program Announced!

2005-01-20 Thread Tim Peters
[Bryan] > can anyone tell me how the talks work? there are between 9 > and 12 talks for each time slot. do all talks start at the same > time? or are there just four talks at a time and the columns show > what talks are in a given room? The web page needs better formatting. In general, there ar

[ANN] PyScript 0.5 released

2005-01-20 Thread Paul Cochrane
PyScript is a python module for producing high quality postscript graphics. Rather than use a GUI to draw a picture, the picture is programmed using python and the PyScript objects. Some of the key features are: * All scripting is done in python, which is a high level, easy to learn, wel

Re: Unbinding multiple variables

2005-01-20 Thread John Hunter
> "Johnny" == Johnny Lin <[EMAIL PROTECTED]> writes: Johnny> Hi! Is there a way to automate the unbinding of multiple Johnny> variables? Say I have a list of the names of all Johnny> variables in the current scope via dir(). Is there a Johnny> command using del or something

Re: Unbinding multiple variables

2005-01-20 Thread Stephen Thorne
On 20 Jan 2005 19:24:43 -0800, Johnny Lin <[EMAIL PROTECTED]> wrote: > Hi! > > Is there a way to automate the unbinding of multiple variables? Say I > have a list of the names of all variables in the current scope via > dir(). Is there a command using del or something like that that will > itera

Re: What's the best python web-developer's editor

2005-01-20 Thread ionel
how about editplus ? imho it's excelent On Thu, 20 Jan 2005 18:47:53 +, andy <[EMAIL PROTECTED]> wrote: > Anybody like to comment on which editor they use for python web app > development - for both discrete and mixed python and html code, and why? > > I'm comfortable with IDLE (used it for

Re: PyCon Preliminary Program Announced!

2005-01-20 Thread Bryan
can anyone tell me how the talks work? there are between 9 and 12 talks for each time slot. do all talks start at the same time? or are there just four talks at a time and the columns show what talks are in a given room? is it easy to go to the talks you want? thanks, bryan -- http://mail.py

Re: Is there a library to parse Mozilla "mork" documents?

2005-01-20 Thread Peter Rowell
John Reese wrote: Mozilla, Firefox, Thunderbird, and so forth use this awful format called MORK to store all kinds of things: which messages you've read [ snip ] I was searching on a similar question (about accessing the history) when I came across a nifty little bookmarklet. It dumps FF history in

Re: Print a string in binary format

2005-01-20 Thread Stephen Thorne
On Fri, 21 Jan 2005 01:54:34 GMT, Kartic <[EMAIL PROTECTED]> wrote: > neutrino said the following on 1/20/2005 8:21 PM: > > Mmm, the output format that I want is like: > > 00011100 > > > > I tried your code on Cygwin under Windows 2000, and on Linux, but it > > p

Re: problems with duplicating and slicing an array

2005-01-20 Thread beliavsky
Yun Mao wrote: >I have some questions when I'm using python numeric: >1. When I do v = u[:, :], it seems u and v still point to the same >memory. e.g. When I do v[1,1]=0, u[1,1] will be zero out as well. >What's the right way to duplicate an array? Now I have to do v = >dot(u, identity(N)), which

Re: Print a string in binary format

2005-01-20 Thread neutrino
Mmm, the output format that I want is like: 00011100 I tried your code on Cygwin under Windows 2000, and on Linux, but it prints out ASCII characters. -- http://mail.python.org/mailman/listinfo/python-list

Re: Print a string in binary format

2005-01-20 Thread Peter Hansen
neutrino wrote: Mmm, the output format that I want is like: 00011100 I tried your code on Cygwin under Windows 2000, and on Linux, but it prints out ASCII characters. Generally speaking, trying to work with binary like that will drive you mad. Most people find t

Re: spawn syntax + os.P_WAIT mode behavior + spawn stdout redirection

2005-01-20 Thread Peter Hansen
Derek Basch wrote: If the syntax of spawnl is: spawnl(mode, path, ...) Why does everyone write it like: os.spawnlp(os.P_WAIT, 'cp', 'cp', 'index.html', '/dev/null') or: os.spawnl(os.P_WAIT, "/var/www/db/smm/smm_train", "smm_train", "SMMTrainInput.xml") How is the first 'cp' a path to a file? why do

Re: Print a string in binary format

2005-01-20 Thread Kartic
neutrino said the following on 1/20/2005 8:21 PM: Mmm, the output format that I want is like: 00011100 I tried your code on Cygwin under Windows 2000, and on Linux, but it prints out ASCII characters. Aha..I guess I posted too soon. You might want to take a look

Re: problems with duplicating and slicing an array

2005-01-20 Thread Steven Bethard
Yun Mao wrote: Hi python gurus, I have some questions when I'm using python numeric: 1. When I do v = u[:, :], it seems u and v still point to the same memory. e.g. When I do v[1,1]=0, u[1,1] will be zero out as well. What's the right way to duplicate an array? Now I have to do v = dot(u, identi

Re: Print a string in binary format

2005-01-20 Thread Kartic
neutrino said the following on 1/20/2005 7:53 PM: Greetings to the Python gurus, I have a binary file and wish to see the "raw" content of it. So I open it in binary mode, and read one byte at a time to a variable, which will be of the string type. Now the problem is how to print the binary format

problems with duplicating and slicing an array

2005-01-20 Thread Yun Mao
Hi python gurus, I have some questions when I'm using python numeric: 1. When I do v = u[:, :], it seems u and v still point to the same memory. e.g. When I do v[1,1]=0, u[1,1] will be zero out as well. What's the right way to duplicate an array? Now I have to do v = dot(u, identity(N)), which

Re: iteritems() and enumerate()

2005-01-20 Thread alex23
Erik Max Francis wrote: > You would be funnier if you weren't so incompetent. No, even if he was more competent, he'd still be a vicious, pointless asshole: "By the way, the pussy sex accuse us and hate us virile sex for undiscrimination and hunger for humping. But look at their ugliness, hogging

Re: Print a string in binary format

2005-01-20 Thread Mark McEahern
neutrino wrote: Greetings to the Python gurus, I have a binary file and wish to see the "raw" content of it. So I open it in binary mode, and read one byte at a time to a variable, which will be of the string type. Now the problem is how to print the binary format of that charater to the standard o

Print a string in binary format

2005-01-20 Thread neutrino
Greetings to the Python gurus, I have a binary file and wish to see the "raw" content of it. So I open it in binary mode, and read one byte at a time to a variable, which will be of the string type. Now the problem is how to print the binary format of that charater to the standard output. It seems

Re: why no time() + timedelta() ?

2005-01-20 Thread John Machin
Tim Peters wrote: > [josh] > > Why can't timedelta arithmetic be done on time objects? > > Obviously, because it's not implemented . > > > (e.g. datetime.time(5)-datetime.timedelta(microseconds=3) > > > > Nonzero "days" of the timedelta could either be ignored, or > > trigger an exception. > > And

spawn syntax + os.P_WAIT mode behavior + spawn stdout redirection

2005-01-20 Thread Derek Basch
Hello, *First question* If the syntax of spawnl is: spawnl(mode, path, ...) Why does everyone write it like: os.spawnlp(os.P_WAIT, 'cp', 'cp', 'index.html', '/dev/null') or: os.spawnl(os.P_WAIT, "/var/www/db/smm/smm_train", "smm_train", "SMMTrainInput.xml") How is the first 'cp' a path to a

Is there a library to parse Mozilla "mork" documents?

2005-01-20 Thread John Reese
Mozilla, Firefox, Thunderbird, and so forth use this awful format called MORK to store all kinds of things: which messages you've read in a newsgroup, headers and indexes into the mbox file of messages in a mail folder, and address books. It's documented to some extent here: http://www.mozilla.org

Re: Python and SOAP

2005-01-20 Thread Nelson Minar
Peter Schaefer <[EMAIL PROTECTED]> writes: > Is SOAPy still the way to go, or are there better methods? SOAPy hasn't been maintained in awhile. The two contemporary options are ZSI or SOAPpy, both at http://pywebsvcs.sourceforge.net/ ZSI seems to have more serious development now, but neither is

Re: Freezing a mutable (was Re: lambda)

2005-01-20 Thread Bengt Richter
On 20 Jan 2005 14:07:57 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: >Op 2005-01-20, Nick Coghlan schreef <[EMAIL PROTECTED]>: >> Antoon Pardon wrote: >>> I missed that you would use it with the idiom: dct[x.frozen()] >> >> The list itself isn't hashable with this approach, so you don't have much

PyCon Preliminary Program Announced!

2005-01-20 Thread Steve Holden
Dear Python Colleague: You will be happy to know that the PyCon Program Committee, after lengthy deliberations, has now finalized the program for PyCon DC 2005. I can tell you that the decision-making was very difficult, as the standard of submissions was even higher than last year. You can see

Re: xml parsing escape characters

2005-01-20 Thread Jeremy Bowers
On Thu, 20 Jan 2005 21:54:30 +0100, Martin v. LÃwis wrote: > Luis P. Mendes wrote: >> When I access the url via the Firefox browser and look into the source >> code, I also get: >> >> > xmlns="http"> ~ >> ~439 ~ >> >

Re: [Python-Dev] Updated Monkey Typing pre-PEP

2005-01-20 Thread Steven Bethard
On Thu, 20 Jan 2005 18:21:17 -0500, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > Instead of a __getattr__ solution, I recommend subclassing from a mixin: > > class RichMap(SomePartialMapping, UserDict.DictMixin): pass > > class RichFile(SomePartialFileClass, Mixins.FileMixin): pass

DbfilenameShelf instance has no attribute 'writeback'

2005-01-20 Thread warren ali
Anyone have any idea why this is failing with the following error class _IndexFile: """An _IndexFile is an implementation class that presents a Sequence and Dictionary interface to a sorted index file.""" def __init__(self, pos, filenameroot): self.pos = pos self.file = open(_indexFilePathname(fi

Re: rotor replacement

2005-01-20 Thread phr
"Martin v. LÃwis" <[EMAIL PROTECTED]> writes: > > Some countries have laws about cryptography software (against some > > combination of export, import, or use). The Python maintainers didn't > > want to deal with imagined legal hassles that might develop from > > including good crypto functions in

Embedding: Question about modules

2005-01-20 Thread smilechaser
Hi All, A question about embedding: If I take the example code on embedding (Section 5.3 of Extending and Embedding the Python Interpreter 2.4) and add the lines: PyRun_SimpleString("import sys"); PyRun_SimpleString("print globals()"); Just after the part where the code loads the module, and th

IDLE Problem in Windows XP

2005-01-20 Thread Branden Smith
Hi, I am a teaching assistant for an introductory course at Georgia Tech which uses Python, and I have a student who has been unable to start IDLE on her Windows XP Home Edition machine. Clicking on the shortcut (or the program executable) causes the hourglass to appear momentarily (and the process

Python and SOAP

2005-01-20 Thread Peter Schaefer
Hello! I'd like to write a SOAP client and a SOAP server in Python. Is SOAPy still the way to go, or are there better methods? Regards, Peter -- Meine E-Mail Adresse enthält keine Zahlen. My email address doesn't contain numbers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Print to Windows default Printer

2005-01-20 Thread Peter Hansen
Tim Golden wrote: [Samantha] | The printer is on LPT1, but I sure can't get the temp file to | print for some | reason. | I am using Windows XP SP2. | S i'm afraid I have to step out here (metaphorically speaking): I'm using Win2K and have no access to XP boxes. The technique works fine here; it

wxPython unicode/ansi builds [was Re: ElementTree cannot parse UTF-8 Unicode?]

2005-01-20 Thread Stephen Waterbury
Martin v. LÃwis wrote: Jarek Zgoda wrote: So why are there non-UNICODE versions of wxPython??? To save memory or something??? Robin Dunn has an explanation here: http://wiki.wxpython.org/index.cgi/UnicodeBuild ... which is the first hit from a Google search on "wxpython unicode build". Also, from t

Re: Overloading ctor doesn't work?

2005-01-20 Thread Martin Häcker
Ah, right. The light turns on... datetime is immutable so overriding the constructor doesn't change the constructed object. You have to override __new__ instead. http://www.python.org/2.2.1/descrintro.html#__new__ Ahhh! Thanks a bunch, now this makes things much clearer. Thanks again! cu Martin --

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks for the URL. I finally am able to print the temp file. Not exactly what I wanted, but it will work. The code I used to print was this: os.system ("start /min notepad /P temp.txt") Thanks ALL! S "Kristian Zoerhoff" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu,

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread "Martin v. Löwis"
Jarek Zgoda wrote: So why are there non-UNICODE versions of wxPython??? To save memory or something??? Win95, Win98, WinME have problems with unicode. This problem can be solved - on W9x, wxPython would have to pass all Unicode strings to WideCharToMultiByte, using CP_ACP, and then pass the resul

Re: xml parsing escape characters

2005-01-20 Thread "Martin v. Löwis"
Luis P. Mendes wrote: When I access the url via the Firefox browser and look into the source code, I also get: ~ ~439 ~ Please do try to understand what you are seeing. This is crucial for understanding what happens. You may have the

ANN: Python Computer Graphics Kit v2.0.0alpha2

2005-01-20 Thread Matthias Baas
The second 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 visualiza

Re: problem with import pylab from a website

2005-01-20 Thread John Hunter
> "jean" == jean rossier <[EMAIL PROTECTED]> writes: jean> Hello All, I am facing a problem while importing pylab jean> library(in a .py program file) via web browser however the jean> same program works when I execute it from the command jean> prompt. jean> Error message

Re: video analysis with python

2005-01-20 Thread Matthias Baas
On Mon, 17 Jan 2005 08:08:46 +0100, "Alexander 'boesi' Bösecke" <[EMAIL PROTECTED]> wrote: >> 1. There is PyMedia (http://pymedia.org/) > >Is this library able to extract single images from a video? AFAICS it >can only convert videos from one format to another. But I didn't try it, >I've looked onl

Re: Overloading ctor doesn't work?

2005-01-20 Thread Kent Johnson
Paul McGuire wrote: "Kent Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Martin Häcker wrote: Hi there, I just tried to run this code and failed miserably - though I dunno why. Could any of you please enlighten me why this doesn't work? Here is a simpler test case. I'm mystif

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Jarek Zgoda
Erik Bethke wrote: So why are there non-UNICODE versions of wxPython??? To save memory or something??? Win95, Win98, WinME have problems with unicode. GTK1 does not support unicode at all. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/

Re: How to lanch a webbrowser

2005-01-20 Thread python
Steve Holden wrote: > Ola Natvig wrote: > > > [EMAIL PROTECTED] wrote: > > > >> Does anyone know > >> how to lanch a webbrowser ( from Python) without menu and toolbars? > >> Thanks for help > >> Lad > >> > > > > You've got the webbrowser module which lauches the OS's standard browser > > > > from

Re: building extensions: ming & python mathlink for win32

2005-01-20 Thread Jack Diederich
On Thu, Jan 20, 2005 at 08:38:35PM +0100, Jelle Feringa // EZCT / Paris wrote: > Have been trying to build python extensions from the C libs ming & mathlink. > Same thing goes for Ming (c lib for compiling flas .swf files), such a pity > no disutils script is included in this very powerful library!

Re: Overloading ctor doesn't work?

2005-01-20 Thread Paul McGuire
"Kent Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Martin Häcker wrote: > > > >> Hi there, > >> > >> I just tried to run this code and failed miserably - though I dunno > >> why. Could any of you please enlighten me why this doesn't work? > > Here is a simpler test case.

Re: building extensions: ming & python mathlink for win32

2005-01-20 Thread Fredrik Lundh
Jelle Feringa wrote: > What struck me while trying to compile is that instead of the Active Python > 2.4 version I was running I downloaded and installed the python.org version > (as recommended by Fletcher), and while launching it, I stated > > ActivePython 2.4 Build 243 (ActiveState Corp.) based

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks Scott, Not wasting any paper yet. I can't seem to get the file to print at all yet. S "Scott David Daniels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Golden wrote: >> [Samantha] >> | I am new to Python and I am having considerable trouble | trying to >> print | (usi

Re: What's the best python web-developer's editor

2005-01-20 Thread Daniel Bowett
I only use Windows and I only ever use Textpad. It gives nice syntax highlighting, indentation and you can run your script with it too. andy wrote: Anybody like to comment on which editor they use for python web app development - for both discrete and mixed python and html code, and why? I'm c

building extensions: ming & python mathlink for win32

2005-01-20 Thread Jelle Feringa // EZCT / Paris
Have been trying to build python extensions from the C libs ming & mathlink. I have been able to produce a .pyd object after studying Mike Fletchers excellent: http://www.vrplumber.com/programming/mstoolkit/   which is a terrific tutorial for anyone trying to compile .pyd on win32!  

Re: Overloading ctor doesn't work?

2005-01-20 Thread Francis Girard
Wow ! Now, this is serious. I tried all sort of things but can't solve the problem. I'm mystified too and forget my last reply. I'm curious to see the answers. Francis Girard Le jeudi 20 Janvier 2005 19:59, Kent Johnson a écrit : > > Martin Häcker wrote: > >> Hi there, > >> > >> I just tried to run

Re: FTPLIB & FTPS or SFTP?

2005-01-20 Thread Peter A.Schott
Can't seem to hit the site right now. I'll have to try back later. From what I can tell, there aren't any mirrors set up, either. Two quick recommendations is promising, though. Thanks for the recommendations. -Pete "Roger Binns" <[EMAIL PROTECTED]> wrote: > > "Peter A. Schott" <[EMAIL PROT

Re: Print to Windows default Printer

2005-01-20 Thread Kristian Zoerhoff
On Thu, 20 Jan 2005 19:14:10 -, Tim Golden <[EMAIL PROTECTED]> wrote: > [Kristian Zoerhoff] > | > | On Thu, 20 Jan 2005 18:58:25 -, Tim Golden > | <[EMAIL PROTECTED]> wrote: > | > > | > Can anyone else try a "PRINT blah" or a "COPY blah LPT1:" > | > on XP SP2? > | > | The printer is probabl

Re: Problem in importing MySQLdb

2005-01-20 Thread Andy Dustman
Gurpreet Sachdeva wrote: > Is there any problem in library files?? Do I need to install anything > I have installed MySQL-shared-3.23.54a-1.i386.rpm, > MySQL-devel-5.0.2-0.i386.rpm, MySQL-client-5.0.2-0.i386.rpm, > MySQL-server-5.0.2-0.i386.rpm You should recheck those version numbers carefully.

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to thank everyone for your answers, but I'm not seeing the light yet! When I access the url via the Firefox browser and look into the source code, I also get: ~ ~439 ~ should

Re: Overloading ctor doesn't work?

2005-01-20 Thread Francis Girard
Hi, It looks like the assertEquals use the != operator which had not been defined to compare instances of your time class and instances of the datetime class. In such a case, the operator ends up in comparing the references to instances, i.e. the "id" of the objects, i.e. their physical memory ad

Re: Overloading ctor doesn't work?

2005-01-20 Thread Kent Johnson
Martin Häcker wrote: Hi there, I just tried to run this code and failed miserably - though I dunno why. Could any of you please enlighten me why this doesn't work? Here is a simpler test case. I'm mystified too: from datetime import datetime class time (datetime): def __init__(self, hours=0, min

RE: Print to Windows default Printer

2005-01-20 Thread Tim Golden
[Samantha] | The printer is on LPT1, but I sure can't get the temp file to | print for some | reason. | I am using Windows XP SP2. | S i'm afraid I have to step out here (metaphorically speaking): I'm using Win2K and have no access to XP boxes. The technique works fine here; it may be that eithe

Re: What's the best python web-developer's editor

2005-01-20 Thread Jay Loden
You didn't mention platform, but I'm guessing from the mention of Screem that you're using a Linux platform.  On Linux I like kwrite and kate (both similar, kate includes some other features like a built in terminal where you can run some commands, ability to support projects, open multiple file

Re: Overloading ctor doesn't work?

2005-01-20 Thread Steve Holden
Martin Häcker wrote: Hi there, I just tried to run this code and failed miserably - though I dunno why. Could any of you please enlighten me why this doesn't work? Thanks a bunch. --- snip --- import unittest from datetime import datetime class time (datetime): def __init__(self, hours=0, minut

Re: What's the best python web-developer's editor

2005-01-20 Thread Jay Loden
You didn't mention platform, but I'm guessing from the mention of Screem that you're using a Linux platform. On Linux I like kwrite and kate (both similar, kate includes some other features like a built in terminal where you can run some commands, ability to support projects, open multiple file

Re: What's the best python web-developer's editor

2005-01-20 Thread fla liu
Try to use Eclipse + pydev On Thu, 20 Jan 2005 18:47:53 +, andy <[EMAIL PROTECTED]> wrote: > Anybody like to comment on which editor they use for python web app > development - for both discrete and mixed python and html code, and why? > > I'm comfortable with IDLE (used it for years) but o

RE: RuntimeError: dictionary changed size during iteration

2005-01-20 Thread Batista, Facundo
Title: RE: RuntimeError: dictionary changed size during iteration [Terry Reedy] #- You must be having a bad day ;-).  From Lib Ref 2.1 Built-in Well, that's actually true, :( #- corresponding to the object's symbol table. The returned #- dictionary should #- not be modified: the effe

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
The printer is on LPT1, but I sure can't get the temp file to print for some reason. I am using Windows XP SP2. S "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [Samantha] > > [... snip my explanation of PRINT / COPY LPTx: ...] > > | Thanks Tim, > | That is exactly wha

What's the best python web-developer's editor

2005-01-20 Thread andy
Anybody like to comment on which editor they use for python web app development - for both discrete and mixed python and html code, and why? I'm comfortable with IDLE (used it for years) but of course it lacks ftp or webDAV abilities, obviously because it's not intended for that type of use.

Re: RuntimeError: dictionary changed size during iteration

2005-01-20 Thread Terry Reedy
RE: RuntimeError: dictionary changed size during iteration "Batista, Facundo" <[EMAIL PROTECTED]> wrote [Robert Brewer] #- But not unexpected, since vars() returns a dictionary, and #- binding 'e' #- changes that dictionary while you are iterating over it. >For me, the point is: vars() returns th

Re: xml parsing escape characters

2005-01-20 Thread "Martin v. Löwis"
Irmen de Jong wrote: Usually, but not in this case. If you have a text that looks like XML, and you want to put it into an XML element, the XML file uses < and >. The XML parser unescapes that as < and >. However, it does not then consider the < and > as markup, and it shouldn't. That's also what

RE: RuntimeError: dictionary changed size during iteration

2005-01-20 Thread Roman Suzi
On Thu, 20 Jan 2005, Batista, Facundo wrote: >For me, the point is: vars() returns the local variables as a list or is a >generator? > >In the docs don't say nothing about this. > >If it returns a list, it should NOT raise an error; if it's a generator, the >error is fine. > >.Facundo > Prob

Overloading ctor doesn't work?

2005-01-20 Thread Martin Häcker
Hi there, I just tried to run this code and failed miserably - though I dunno why. Could any of you please enlighten me why this doesn't work? Thanks a bunch. --- snip --- import unittest from datetime import datetime class time (datetime): def __init__(self, hours=0, minutes=0, seconds=0, micr

Re: What YAML engine do you use?

2005-01-20 Thread Irmen de Jong
Istvan Albert wrote: XML with elementtree is what makes me never have think about XML again. +1 QOTW -Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: xml parsing escape characters

2005-01-20 Thread Irmen de Jong
Martin v. Löwis wrote: Irmen de Jong wrote: The unescaping is usually done for you by the xml parser that you use. Usually, but not in this case. If you have a text that looks like XML, and you want to put it into an XML element, the XML file uses < and >. The XML parser unescapes that as < and >.

Re: QOTW from Ryan Tomayko

2005-01-20 Thread John Roth
"Robert Brewer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] http://naeblis.cx/rtomayko/2005/01/20/getters-setters-fuxors "...Many people coming to Python can't believe no one uses IDEs. The automatic assumption is that Python is for old grey beards who are comfortable with vi and

Re: xml parsing escape characters

2005-01-20 Thread "Martin v. Löwis"
Irmen de Jong wrote: The unescaping is usually done for you by the xml parser that you use. Usually, but not in this case. If you have a text that looks like XML, and you want to put it into an XML element, the XML file uses < and >. The XML parser unescapes that as < and >. However, it does not th

Re: xml parsing escape characters

2005-01-20 Thread "Martin v. Löwis"
Luis P. Mendes wrote: with:DataSetNode = stringNode.childNodes[0] print DataSetNode.toxml() I get: ~ ~439 ~ ___- so far so good, but when I issue the command: print D

Re: What YAML engine do you use?

2005-01-20 Thread Istvan Albert
Reinhold Birkenfeld wrote: You will be amazed, and never think of XML again. XML with elementtree is what makes me never have think about XML again. Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: xml parsing escape characters

2005-01-20 Thread Kent Johnson
Irmen de Jong wrote: Kent Johnson wrote: [...] This is an XML document containing a single tag, , whose content is text containing entity-escaped XML. This is *not* an XML document containing tags , , , etc. All the behaviour you are seeing is a consequence of this. You need to unescape the co

Re: rotor replacement

2005-01-20 Thread "Martin v. Löwis"
Paul Rubin wrote: Some countries have laws about cryptography software (against some combination of export, import, or use). The Python maintainers didn't want to deal with imagined legal hassles that might develop from including good crypto functions in the distribution. Then it became obvious t

Re: What YAML engine do you use?

2005-01-20 Thread Jonas Galvez
Diez B. Roggisch wrote: > I first used yaml, tried to migrate to syck. What I like about > syck is that it is faster and doesn't try to create objects but > only dicts - but it crashed if the number of yaml objects grew > larger. So I still use yaml. Hmm.. I've never had any problems with syck.

  1   2   >