Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Do Re Mi chel La Si Do
Hi ! >>> ...Usenet to transmit it properly newsgroups (NNTP) : yes, it does it usenet : perhaps (that depends on the newsgroups) clp : no Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing MDB files on Windows

2005-01-20 Thread David Fraser
Jorge Luiz Godoy Filho wrote: Jorge Luiz Godoy Filho, Quarta 19 Janeiro 2005 14:25, wrote: Thanks! I'm looking at it. Worked like a charm! And just now I noticed who's the author of the recipe ;-) You may also be interested in using a DB-API compatible driver for ADO - see for example http://

Re: Zen of Python

2005-01-20 Thread Antoon Pardon
Op 2005-01-19, Steve Holden schreef <[EMAIL PROTECTED]>: > Peter Hansen wrote: > >> Timothy Fitz wrote: >> >>> While I agree that the Zen of Python is an amazingly concise list of >>> truisms, I do not see any meaning in: >>> >>> Flat is better than nested. >>> > [incrdeibly secret PSU facts blurt

Re: list item's position

2005-01-20 Thread Petr Prikryl
> On Wed, 19 Jan 2005 22:04:44 -0500, Bob Smith wrote: > > [...] how to find an element's numeric value (0,1,2,3...) > > in the list. Here's an example of what I'm doing: > > > > for bar in bars: > > if 'str_1' in bar and 'str_2' in bar: > >print bar > > > > This finds the right bar,

RE: Solutions for data storage?

2005-01-20 Thread Robert Brewer
Leif K-Brooks wrote: > Robert Brewer wrote: > > Try svn://casadeamor.com/dejavu/trunk if you want a truly > Pythonic query > > syntax. Wait a couple of days, and I'll have version 1.3 ready and > > online at http://www.aminus.org/rbre/python -- lots of changes from > > 1.2.6 which is there now, bu

Re: rotor replacement

2005-01-20 Thread Peter Maas
Paul Rubin schrieb: Wasn't there a default 40-bit version that was ok (weak), but you had to declare yourself US resident to download 128-bit support? That was years ago. The regulations changed since then, so they all have 128 bits now. Perhaps the NSA has found a way to handle 128bit in the mea

Re: rotor replacement

2005-01-20 Thread Robin Becker
Peter Maas wrote: Paul Rubin schrieb: Wasn't there a default 40-bit version that was ok (weak), but you had to declare yourself US resident to download 128-bit support? That was years ago. The regulations changed since then, so they all have 128 bits now. Perhaps the NSA has found a way to handl

RE: Print to Windows default Printer

2005-01-20 Thread Tim Golden
[Samantha] | Thanks Tim. I didn't realize it would be so difficult. | S Strictly, if all you want to do is print text and you have mapped LPTx: to some printer (local or network) then the venerable "PRINT " or "COPY LPTx:" may well be what you want. You can issue these via an os.system call from

Re: Dictionary keys (again) (was Re: lambda)

2005-01-20 Thread Nick Coghlan
David Eppstein wrote: Yes, and what should the following do? lst1 = [1] lst2 = [2] dct = {lst1: "1", lst2: "2"} lst2[0]=1 lst1[0]=2 print dct[[1]] print dct[[2]] Provide yet another example for why mutable keys are almost guaranteed to result in suprising semantics :) Cheers, Nick. -- Nick Coghla

Re: [OT] Good C++ book for a Python programmer

2005-01-20 Thread Petr Prikryl
Try also the Bruce Eckel's "Thinking in C++". It is also available on-line for free at http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html I like the book because it explains the things very clearly. After reading it, one will stop to think and say that C++ is "only C with strange OO things

RE: Automatic Windows printer creation?

2005-01-20 Thread Tim Golden
[Roger Upole] | | You can probably do it through WMI. (class is Win32_Printer) | WMI works well with win32com, and there's also a wrapper module | | http://tgolden.sc.sabren.com/python/wmi.html | | for simplified access. | I imagine getting all the device parameters and port | configuration rig

why are these not the same?

2005-01-20 Thread Lowell Kirsh
On a webpage (see link below) I read that the following 2 forms are not the same and that the second should be avoided. They look the same to me. What's the difference? Lowell def functionF(argString="abc", argList = None): if argList is None: argList = [] ... def functionF(

Re: why are these not the same?

2005-01-20 Thread Fredrik Lundh
Lowell Kirsh wrote: > On a webpage (see link below) I read that the following 2 forms are not the > same and that the > second should be avoided. They look the same to me. What's the difference? > def functionF(argString="abc", argList = None): > if argList is None: argList = [] >

Oddity is shutil.copyfileobj

2005-01-20 Thread Neil Benn
Hello, I'm running a program which is using shutil.copyfileobj on a Win2K Pro, python 2.3 box. The source and dest file are both opened in textual mode as 'w', the source file on the local hard drive and the dest file is on a file server (transmitted through a samba server), the block

Re: Dictionary keys (again) (was Re: lambda)

2005-01-20 Thread Nick Coghlan
Antoon Pardon wrote: As you said yourself, people use shortcuts when they express themselves. With 'mutable key' I mean a mutable object that is used as a key. That doesn't contradict that the key itself can't change because it is inaccessible. Yeah - this was the point of terminology that was gett

Re: why are these not the same?

2005-01-20 Thread Lowell Kirsh
D'oh I should've caught that myself. Thanks. Fredrik Lundh wrote: Lowell Kirsh wrote: On a webpage (see link below) I read that the following 2 forms are not the same and that the second should be avoided. They look the same to me. What's the difference? def functionF(argString="abc", argList = N

Re: rotor replacement

2005-01-20 Thread Paul Rubin
Robin Becker <[EMAIL PROTECTED]> writes: > Apparently factorization based crypto is on the way out anyhow (as an > article in Scientific American is reported to claim). I haven't seen that SA article but I saw the Slashdot blurb. They have confused "quantum cryptography" with quantum computation,

Re: list item's position

2005-01-20 Thread Bengt Richter
On Wed, 19 Jan 2005 22:04:44 -0500, Bob Smith <[EMAIL PROTECTED]> wrote: >Hi, > >I have a Python list. I can't figure out how to find an element's >numeric value (0,1,2,3...) in the list. Here's an example of what I'm doing: > >for bar in bars: >if 'str_1' in bar and 'str_2' in bar: > p

RE: Oddity is shutil.copyfileobj

2005-01-20 Thread Tim Golden
[Neil Benn] | I'm running a program which is using | shutil.copyfileobj on a Win2K Pro, python 2.3 box. Just for (possible) reassurance, I've just run the following code snippet on my Win2k Python 2.3.4 box and it seemed to work without adding any oddities to the file name. I'm copying to a "r

Freezing a mutable (was Re: lambda)

2005-01-20 Thread Nick Coghlan
Antoon Pardon wrote: Interesting idea. But I think you are wrong when you say that two lists that compare equal at the time they are frozen, will get the same dictionary entry. The problem is an object must compare equal to the key in the dictionary to get at the same entry. So if you freeze a list

Re: why are these not the same?

2005-01-20 Thread Duncan Booth
Lowell Kirsh wrote: > On a webpage (see link below) I read that the following 2 forms are not > the same and that the second should be avoided. They look the same to > me. What's the difference? > > Lowell > > > > def functionF(argString="abc", argList = None): > if argList is N

Re: Zen of Python

2005-01-20 Thread Nick Coghlan
Paul Rubin wrote: > But it's often predictable at the beginning what the final destination is going to be. So once we can see where it's going, why not proceed to the finish line immediately instead of bothering with the intermediate steps? Because getting there incrementally helps to make sure y

[Fwd: Re: Oddity is shutil.copyfileobj]

2005-01-20 Thread Neil Benn
--- Begin Message --- Tim Golden wrote: [Neil Benn] | I'm running a program which is using | shutil.copyfileobj on a Win2K Pro, python 2.3 box. Just for (possible) reassurance, I've just run the following code snippet on my Win2k Python 2.3.4 box and it seemed to work without adding any odditi

[ANN] MarkupToMarkup 0.2

2005-01-20 Thread François Granger
Description: http://wiki.fgranger.com/Development/MarkupToMarkup Test: http://fgranger.net1.nerim.net/mtom/ MarkupToMarkup is a project to create tools for translating from various markup to various markup. There are a lot of syntax to markup texts prior to publishing them. From HTML to Markdown

[ANN] tconfpy 2.112 Released And Available

2005-01-20 Thread Tim Daneliuk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 'tconfpy' Version 2.112 is now released and available for download at: ~ http://www.tundraware.com/Software/tconfpy The last public release was 1.185 (5-2-2004) This is a significant bugfix and feature upgrade release. Existing users are strong

Class introspection and dynamically determining function arguments

2005-01-20 Thread Mark English
I'd like to write a Tkinter app which, given a class, pops up a window(s) with fields for each "attribute" of that class. The user could enter values for the attributes and on closing the window would be returned an instance of the class. The actual application I'm interested in writing would eithe

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Jorge Luiz Godoy Filho
Fredrik Lundh, Quinta 20 Janeiro 2005 05:17, wrote: > what does it give you on your machine? (looks like wxPython cannot handle > Unicode strings, but can that really be true?) It does support Unicode if it was built to do so... -- Godoy. <[EMAIL PROTECTED]> -- http://mail.python.org/ma

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Fredrik Lundh
Jorge Luiz Godoy Filho wrote: >> what does it give you on your machine? (looks like wxPython cannot handle >> Unicode strings, but can that really be true?) > > It does support Unicode if it was built to do so... Python has supported Unicode in release 1.6, 2.0, 2.1, 2.2, 2.3 and 2.4, so you mig

Re: Class introspection and dynamically determining function arguments

2005-01-20 Thread Diez B. Roggisch
Mark English wrote: > The only way I can imagine to do this is to create an instance of the > class in question, and then start poking around in its attributes > dictionary (initially just using dir). So firstly, if there is instead a > way to do this without creating an instance I'd be interested

Re: Freezing a mutable (was Re: lambda)

2005-01-20 Thread Antoon Pardon
Op 2005-01-20, Nick Coghlan schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Interesting idea. But I think you are wrong when you say that two lists >> that compare equal at the time they are frozen, will get the same >> dictionary entry. The problem is an object must compare equal to >> the

Re: Class introspection and dynamically determining function arguments

2005-01-20 Thread Nick Coghlan
Diez B. Roggisch wrote: Mark English wrote: As youself already mentioned that maybe you have to impose certain prerequisites, you maybe want to extend this to the point where for each class you want to make dynamically instantiatable you need some declaration. This of course depends on your desired

RE: RuntimeError: dictionary changed size during iteration

2005-01-20 Thread Batista, Facundo
Title: RE: RuntimeError: dictionary changed size during iteration [Robert Brewer] #- > >>> [e for e in vars()] #- > Traceback (most recent call last): #- >   File "", line 1, in ? #- > RuntimeError: dictionary changed size during iteration #- > >>> e = None #- > >>> [e for e in vars()] #- >

Re: Freezing a mutable (was Re: lambda)

2005-01-20 Thread Nick Coghlan
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 choice. I wasn't particularly clear about that point, though. I have two problems with this approach. 1) It doesn't work when you get your

Re: Class introspection and dynamically determining function arguments

2005-01-20 Thread Diez B. Roggisch
Nick Coghlan wrote: > > If this only has to work for classes created for the purpose (rather than > for an arbitrary class): > Certainly a step into the direction I meant - but still missing type declarations. And that's what at least I'd like to see - as otherwise you don't know what kind of ed

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this is the xml document: http://www..";> ~ ~ 439 (... others ...) ~ When I do: print xmldoc.toxml() it prints: http://www...";> ~ ~439

Problem in importing MySQLdb

2005-01-20 Thread Gurpreet Sachdeva
I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2) When I try to import MySQldb I get: Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import MySQLdb Traceback (m

Re: Problem in importing MySQLdb

2005-01-20 Thread deelan
Gurpreet Sachdeva wrote: I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2) When I try to import MySQldb i' not completely sure mysqldb works with mysql 5.0 and its bundled client libraries. to be more precise: '' MySQL-5.0 and newer are not currently supported, but might work.'' from:

Re: mod_python friendly isps in europe

2005-01-20 Thread Daniel Bowett
[EMAIL PROTECTED] wrote: Hello everybody I'm thinking about improving my web site scripts and would like to use Python instead of PHP/Perl. Does anyone know of mod_python friendly ISPs in europe? With prices around 10€ ? Thanks in advance, Paulo I would doubt you will find any commercial python ISP

Re: xml parsing escape characters

2005-01-20 Thread Kent Johnson
Luis P. Mendes wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this is the xml document: http://www..";> ~ ~ 439 (... others ...) ~ This is an XML document containing a single tag, , whose content is text containing en

Re: Zen of Python

2005-01-20 Thread Steve Holden
Paul Rubin wrote: Tim Peters <[EMAIL PROTECTED]> writes: Huh? [1,2,[3,4,5],[6,7]],8 is a perfectly valid Python list. You're claiming not to know any relevant difference between Python lists and Lisp lists? Heh. Python doesn't provide syntactic sugar for [1,[2,[3,[4,[] if that's what

Re: Freezing a mutable (was Re: lambda)

2005-01-20 Thread Antoon Pardon
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 > choice. I wasn't particularly clear about that point, though. > >> I hav

Re: iteritems() and enumerate()

2005-01-20 Thread Steve Holden
Xah Lee wrote: Python has iteritems() and enumerate() to be used in for loops. can anyone tell me what these are by themselves, if anything? are they just for idiom? No, anyone can use them, not just idioms like you. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Erik Bethke
There is something wrong with the physical file... I d/l a trial version of XML Spy home edition and built an equivalent of the korean test file, and tried it and it got past the element tree error and now I am stuck with the wxEditCtrl error. To build the xml file in the first place I had code th

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Fredrik Lundh
Erik Bethke wrote: > layout += '\n' > layout += '\n' what does "print repr(L1Word)" print (that is, what does wxPython return?). it should be a Unicode string, but that would give you an error when you write it out: >>> f = open("file.txt", "w") >>> f.write(u'\uc5b4\ub155\ud558\uc138\uc694!'

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Erik Bethke
That was a great clue. I am an idiot and tapped on the wrong download link... now I can read and parse the xml file fine - as long as I create it in XML spy - if I create it by this method: d=wxFileDialog( self, message="Choose a file", defaultDir=os.getcwd(), defaultFile="", wildcard="*.xml", st

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Erik Bethke
Woo-hoo! Everything is working now! Thank you everyone! The TWO problems I had: 1) I needed to save my XML file in the first place with this code: f = codecs.open(paths[0], 'w', 'utf8') 2) I needed to download the UNICODE version of wxPython, duh. So why are there non-UNICODE versions of wxPyt

Re: Zen of Python

2005-01-20 Thread Skip Montanaro
>> The gist of "Flat is better than nested" is "be as nested as you have >> to be, no more," because being too nested is just a mess. Tim> Which I agree with, and which makes sense. However your "gist" is a Tim> different meaning. Not if you conflate "Flat is better than nested"

why no time() + timedelta() ?

2005-01-20 Thread josh
Why can't timedelta arithmetic be done on time objects? (e.g. datetime.time(5)-datetime.timedelta(microseconds=3) Nonzero "days" of the timedelta could either be ignored, or trigger an exception. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 16, Issue 324

2005-01-20 Thread Eduardo Henriquez A.
On Thu, 20 Jan 2005 15:41:43 +0100 (CET), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Send Python-list mailing list submissions to >[email protected] > > To subscribe or unsubscribe via the World Wide Web, visit >http://mail.python.org/mailman/listinfo/python-list > or, via

Re: Print to Windows default Printer

2005-01-20 Thread Scott David Daniels
Tim Golden wrote: [Samantha] | I am new to Python and I am having considerable trouble | trying to print | (using a simple script) to the default printer rather than the screen. | Thanks for any help. | S It may be that something here will help you: http://tgolden.sc.sabren.com/python/win32_how

sys.stdin and idle bug?

2005-01-20 Thread Jason B Burke
Greetings All, I apologize if this has been brought up before, but I'm having a small issue with the handling of sys.stdin in Idle. I'm using a routine to mimic the c library function getch(), to get a single character from the keyboard. The function works in the standard python shell, but in I

QOTW from Ryan Tomayko

2005-01-20 Thread Robert Brewer
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 Emacs and refuse to accept breakthroughs in programming productivity like IDE

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

2005-01-20 Thread Tim Peters
[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 if the result is less than 0, or >= 2

Re: Print to Windows default Printer

2005-01-20 Thread Samantha
Thanks Tim, That is exactly what I want to do. How do I map the printer to LPT1? S "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [Samantha] > | Thanks Tim. I didn't realize it would be so difficult. > | S > > Strictly, if all you want to do is print text and you > have

RE: Print to Windows default Printer

2005-01-20 Thread Tim Golden
[Samantha] [... snip my explanation of PRINT / COPY LPTx: ...] | Thanks Tim, | That is exactly what I want to do. | How do I map the printer to LPT1? | S Depends on a lot of things: whether the printer is local or networked; what version of Windows you're running, &. As a very basic starting p

Re: delay and force in Python

2005-01-20 Thread infidel
Of course I meant to put a break out of the loop after the print statement. Duh on me. -- http://mail.python.org/mailman/listinfo/python-list

Re: xml parsing escape characters

2005-01-20 Thread Irmen de Jong
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 contents of the tag to

What YAML engine do you use?

2005-01-20 Thread Reinhold Birkenfeld
Hello, I know that there are different YAML engines for Python out there (Syck, PyYaml, more?). Which one do you use, and why? 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. Reinhold -- http://mail.python.or

Re: What YAML engine do you use?

2005-01-20 Thread Diez B. Roggisch
> I know that there are different YAML engines for Python out there (Syck, > PyYaml, more?). > > Which one do you use, and why? 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

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.

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: 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: 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 "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: 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: 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 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: 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

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: 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

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 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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 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: 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: 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: 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: 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: 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

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: 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

  1   2   >