[ANN] XPN - X Python Newsreader 0.4.0 released

2005-01-20 Thread Nemesis
XPN is a multiplatform newsreader written in Python+GTK2. It is unicode compliant and has features like scoring/action rules, configurable attribution lines and random taglines, search facilities and filtered views, import/export newsrc ... You can find it on:

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

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 blurted out] And with

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, but not its list

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, but at

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

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

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 filename or COPY filename LPTx: may well be what you want. You can issue these via an

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 Coghlan

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

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

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

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

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 =

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

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

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

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

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

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

[Fwd: Re: Oddity is shutil.copyfileobj]

2005-01-20 Thread Neil Benn
---BeginMessage--- 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 oddities

[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

[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

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 either

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

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 might

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

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 stdin, line 1, in ? #- RuntimeError: dictionary changed size during iteration #- e = None #- [e for e in vars()] #- ['e',

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

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this is the xml document: ?xml version=1.0 encoding=utf-8? string xmlns=http://www..;lt;DataSetgt; ~ lt;Ordergt; ~ lt;Customergt;439lt;/Customergt; (... others ...) ~ lt;/Ordergt; lt;/DataSetgt;/string When I do: print

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 (most recent

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

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: ?xml version=1.0 encoding=utf-8? string xmlns=http://www..;lt;DataSetgt; ~ lt;Ordergt; ~ lt;Customergt;439lt;/Customergt; (... others ...) ~ lt;/Ordergt; lt;/DataSetgt;/string This is an

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

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

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Fredrik Lundh
Erik Bethke wrote: layout += 'Vocab\n' layout += 'Word L1=\'' + L1Word + '\'/Word\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)

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,

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

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 with

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 python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/python-list or, via email,

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:

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

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

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 wink. (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 = 24

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 mapped

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

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, string, whose content is text containing entity-escaped XML. This is *not* an XML document containing tags DataSet, Order, Customer, etc. All the behaviour you are seeing is a consequence of this. You need to unescape

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

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 of

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

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

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, string, whose content is text containing entity-escaped XML. This is *not* an XML document containing tags DataSet, Order, Customer, etc. All the behaviour you are seeing is a consequence of this.

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. Lwis
Luis P. Mendes wrote: with:DataSetNode = stringNode.childNodes[0] print DataSetNode.toxml() I get: lt;DataSetgt; ~ lt;Ordergt; ~lt;Customergt;439lt;/Customergt; ~ lt;/Ordergt; lt;/DataSetgt; ___- so far so good, but when I

Re: xml parsing escape characters

2005-01-20 Thread Martin v. Lwis
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 lt; and gt;. The XML parser unescapes that as and . However, it does not

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 lt; and gt;. The XML parser unescapes that as

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,

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 Probably, e

Re: xml parsing escape characters

2005-01-20 Thread Martin v. Lwis
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 lt; and gt;. 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 the

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 what I want

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

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 of

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

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,

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

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

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,

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

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: ?xml version=1.0 encoding=utf-8? string xmlns=httplt;DataSetgt;

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

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 probably connected via

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

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

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

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 | (using a

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 on

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. I'm mystified too:

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 webbrowser import get

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

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 mystified

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 only in the

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

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

  1   2   >