Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-04-01 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > > and for the record: the infogami setup had never happened if Ed hadn't > > written that post. > > I wouldn't rest on my laurels quite yet if I were you. > You've provided a good piece to take care of the input > collection side of the equasion but I've seen nothing > t

PySimpleXML 1.0 Stable

2006-04-01 Thread Vic Fryzel
PySimpleXML 1.0 stable has been released. It allows a Python user to easily access XML elements via a structure of Python dictionaries and lists, xml.dom.minidom Document, or string. PySimpleXML simplifies the translation of XML documents into very usable trees of Python structures (dictionarie

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Fredrik Lundh
"walterbyrd" wrote: > Please post a link to the original article. Not just a post to a blog. the pyfound blog is the official PSF blog; it's linked from the PSF:s homepage: http://www.python.org/psf/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Site err? - modpython - django?

2006-04-01 Thread Fredrik Lundh
"EP" <[EMAIL PROTECTED]> wrote: > i am gettng slow response from thssite en wonder if problem with gil? or > django bug. is this coded in modpython and to many instances? i need > to select web teknology en maybe python en zope is too old to handle > high volume of download objs. what cas probl

Re: Scatter/gather on sockets?

2006-04-01 Thread Jean-Paul Calderone
On 1 Apr 2006 14:56:02 -0500, Roy Smith <[EMAIL PROTECTED]> wrote: >I've got a bunch of strings in a list: > >vector = [] >vector.append ("foo") >vector.append ("bar") >vector.append ("baz") > >I want to send all of them out a socket in a single send() call, so >they end up in a single packet (assu

Re: Looking for a language/framework

2006-04-01 Thread Gregor Horvath
Scott David Daniels schrieb: > Using a relational DBMS is most definitely _not_ premature optimization. > A relational system provides a way to store data so that it is later I did not mean that using a relational DBMS is premature optimization but not using a ORM because of performance considera

Re: Pickle or Mysql

2006-04-01 Thread Klaas
> Can I use Pickle to store about 500,000 key value pairs.. or should I > use mySql. Which one is best for performance, as the key value pair > increases. Pickle: absolutely out of the question. Mysql: might work, albeit slowly. Use berkeley DB (bsddb3), or zodb. I have no experience with the la

Re: Should any() and all() take a key= argument?

2006-04-01 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > >> any(map(lambda x: x==42, lst)) > ... > In any case, I question your assumption that the version using map must > automatically "waste memory". There's also always itertools.imap. > But then, unless these are big complex objects, why are we > micro

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Ray
Steve Holden wrote: > Grant Edwards wrote: > > On 2006-04-01, walterbyrd <[EMAIL PROTECTED]> wrote: > > > > > >>Is this an April fool's joke? > > > > > > Did you read the blog entry? > > > I suspect he didn't. I'm guessing that eventually we'll have to remove > the blog entry just so's nobobdy's t

Re: Should any() and all() take a key= argument?

2006-04-01 Thread Steven D'Aprano
On Sat, 01 Apr 2006 08:12:25 -0300, Felipe Almeida Lessa wrote: > Em Sáb, 2006-04-01 às 20:44 +1000, Steven D'Aprano escreveu: >> Here's another way of doing it: >> >> lst = [2, 4, 42] >> any(map(lambda x: x==42, lst)) > > In fact, as we're talking about Python 2.5 anyway, it would be better > n

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Steve Holden
Grant Edwards wrote: > On 2006-04-01, walterbyrd <[EMAIL PROTECTED]> wrote: > > >>Is this an April fool's joke? > > > Did you read the blog entry? > I suspect he didn't. I'm guessing that eventually we'll have to remove the blog entry just so's nobobdy's tempted to take it seriously. regards

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Steve Holden
Grant Edwards wrote: > On 2006-04-01, Steve Holden <[EMAIL PROTECTED]> wrote: > >>As the only director of the Python Software Foundation to vote against a >>recent Board motion to implement the change in licensing terms described in >> >> http://pyfound.blogspot.com/2006/04/python-25-licensing-

Re: Berkeley DB XML vs 4suite for fast searching in XML DB?

2006-04-01 Thread Ravi Teja
Last time I tried, BDB XML's Python extension crashed and I did not try too hard to figure out why and switched to something else that did not (eXist). BDB has been marketed for long as a fast database and will probably be faster than 4Suite. I doubt that you will find any benchmarks comparing thos

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-01 Thread Luc The Perverse
"steve" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 1 Apr 2006 13:06:52 +0800, Luc The Perverse wrote > (in article <[EMAIL PROTECTED]>): > >> <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Programing Languiges Are Ment to be free. That is why i am sta

Re: any() and all() on empty list?

2006-04-01 Thread Ron Adam
Ron Adam wrote: > Steve R. Hastings wrote: >> This neatly replaces truecount(), and you can use it for other things as >> well. > > if True in talley(S): do_somthing() > > Works for me... ;-) > > > Cheers, > Ron Actulley talley isn't needed for this... if True in S: do_domething

Re: any() and all() on empty list?

2006-04-01 Thread Ron Adam
Steve R. Hastings wrote: > On Sat, 01 Apr 2006 14:35:58 -0300, Felipe Almeida Lessa wrote: >> Two changes: >> - Use "is None". >> - Use "try ... except" instead of "in" > > Yes. > > >> Maybe you don't like my version, and the gains aren't that much, but >> please use "is None" instead of "== N

Re: any() and all() on empty list?

2006-04-01 Thread Ron Adam
Steve R. Hastings wrote: > Here is a function called "tally()". It reduces a list to a dictionary > of counts, with one key for each value from the list. The value for > each key is the count of how many times it appeared in the list. > > > def tally(seq, d=None): > if d == None: >

Re: running IDLE from another program?

2006-04-01 Thread John Salerno
Kent Johnson wrote: > John Salerno wrote: >> Kent Johnson wrote: >> >>> The working directory must be wrong. Try calling Python directly with >>> full paths: >>> >>> C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py >> >> Perfect! Thank you so much! >> >> I put this line

Re: Doc suggestions

2006-04-01 Thread Kent Johnson
Terry Reedy wrote: > Yes, there have been claims that doc patches have to be in Latex or are > otherwise not welcome. This is counter to my own experience and this page which says, "There's no need to worry about text markup; our documentation team will gladly take care of that." http://docs.

Re: any() and all() on empty list?

2006-04-01 Thread Steve R. Hastings
On Sat, 01 Apr 2006 14:35:58 -0300, Felipe Almeida Lessa wrote: > Two changes: > - Use "is None". > - Use "try ... except" instead of "in" Yes. > Maybe you don't like my version, and the gains aren't that much, but > please use "is None" instead of "== None". Actually, I do like your version.

Re: running IDLE from another program?

2006-04-01 Thread Kent Johnson
John Salerno wrote: > Kent Johnson wrote: > >>The working directory must be wrong. Try calling Python directly with >>full paths: >> >>C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py > > > Perfect! Thank you so much! > > I put this line in the command line field, a

Re: Identifying filled circles in a scanned image

2006-04-01 Thread Terry Reedy
"> Douglas Douglas <[EMAIL PROTECTED]> writes: > >> Hi everybody. >> >> I have a paper form that I scan into an image. My user fills some >> circles in >> this paper form using black ink. Every form has ten rows with five >> circles each >> and the user fills only one circle for each row. >> >>

Re: Doc suggestions

2006-04-01 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Terry Reedy" wrote: > Not sure how premature it is. I've been reading > c.l.p. on and off for nearly a year. Yes, there have been claims that doc patches have to be in Latex or are otherwise not welcome. But these mostly (all?) hav

Re: Scatter/gather on sockets?

2006-04-01 Thread Paul Rubin
Roy Smith <[EMAIL PROTECTED]> writes: > This is true, but I'm generating the message being sent in very small > chunks (often as small as 4 bytes at a time), and typically need to flush a > packet out onto the network after a few dozen bytes. Maybe at most a few > hundred. I don't know of any

Re: Scatter/gather on sockets?

2006-04-01 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Anthony Greene <[EMAIL PROTECTED]> wrote: > On Sat, 01 Apr 2006 14:56:02 -0500, Roy Smith wrote: > > > I've got a bunch of strings in a list: > > > > vector = [] > > vector.append ("foo") > > vector.append ("bar") > > vector.append ("baz") > > > > I want to send

Re: Scatter/gather on sockets?

2006-04-01 Thread Roy Smith
Peter Hansen <[EMAIL PROTECTED]> wrote: > B. Don't bother trying, because even if the MTU is large enough there is > absolutely no guarantee that the packet will stay intact all the way > through the network anyway (even if you use sendall() instead of send()). This is true, but I'm generating t

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Bruno Desthuilliers
Grant Edwards a écrit : > On 2006-04-01, Steve Holden <[EMAIL PROTECTED]> wrote: > >>As the only director of the Python Software Foundation to vote against a >>recent Board motion to implement the change in licensing terms described in >> >> http://pyfound.blogspot.com/2006/04/python-25-licensi

Re: running IDLE from another program?

2006-04-01 Thread John Salerno
Kent Johnson wrote: > The working directory must be wrong. Try calling Python directly with > full paths: > > C:\Python24\pythonw C:\Python24\Lib\idlelib\idle.pyw -r C:\path\to\myprog.py Perfect! Thank you so much! I put this line in the command line field, and I left "working directory" empt

Re: Connecting to gnuplot with Popen?

2006-04-01 Thread John J. Lee
Anton81 <[EMAIL PROTECTED]> writes: > > Hi Anton, > > > > here is a little snippet using os.popen: > > Unfortunately I'm having more problem getting the output from Gnuplot, which > I'd like to examine for error messages and settings of options. If you must roll your own, look at standard modul

Re: Identifying filled circles in a scanned image

2006-04-01 Thread John J. Lee
Douglas Douglas <[EMAIL PROTECTED]> writes: > Hi everybody. > > I have a paper form that I scan into an image. My user fills some circles in > this paper form using black ink. Every form has ten rows with five circles > each > and the user fills only one circle for each row. > > I was wondering

Re: running IDLE from another program?

2006-04-01 Thread Kent Johnson
John Salerno wrote: > Kent Johnson wrote: >>One thing that is really useful about running in an editor window is >>that (in TextPad, anyway) I can double-click on an error message and go >>directly to the line with the error. > > > Interesting. The way I have it now, it shows errors the way I w

Re: Can I export my datas in pickle format safely ?

2006-04-01 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, DurumDara wrote: > I thinking about that I can use the pickle to serialize/load my datas > from the file. > > But: I remember that in the year of 2004(?) I tried this thing. I store > my CD informations in pickled objects (in files). > And when I changed my python versio

Re: urllib2 through basic auth'ed proxy

2006-04-01 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: > Alejandro Dubrovsky <[EMAIL PROTECTED]> writes: [...Alejandro complains about non-working HTTP proxy auth in urllib2...] [...John notes urllib2 bug...] > A workaround is to supply a stupid HTTPPasswordMgr that always returns > the proxy credentials regard

Python-implimenting-valueweb

2006-04-01 Thread brandon.mcginty
Hi All, I hope this post is acceptable on this list. I'm wondering if anyone here has experience using python on a web server? Specifically, has anyone used python on value web's servers? If anyone has any info, general or specific, please let me know. All help is appreciated. Sincerely, Brandon mc

Berkeley DB XML vs 4suite for fast searching in XML DB?

2006-04-01 Thread Sullivan WxPyQtKinter
Storing XML in relational database with indexing feature is exactly what I need. But 4suite is mentioned from time to time and seemingly holding better support for python. I have no idea if 4 suite has provide strong support for random access or relatively random access for XML database and with in

Re: Scatter/gather on sockets?

2006-04-01 Thread Anthony Greene
On Sat, 01 Apr 2006 14:56:02 -0500, Roy Smith wrote: > I've got a bunch of strings in a list: > > vector = [] > vector.append ("foo") > vector.append ("bar") > vector.append ("baz") > > I want to send all of them out a socket in a single send() call, so > they end up in a single packet (assuming

Re: running IDLE from another program?

2006-04-01 Thread John Salerno
Kent Johnson wrote: > I'm not sure what you mean by a 'debug' type environment. If you mean, > you want to run the program in a debugger and step through it, then this > approach won't work. If you just mean that you want to see the output of > the program, it will work. No, just an environmen

Re: Scatter/gather on sockets?

2006-04-01 Thread Peter Hansen
Roy Smith wrote: > I've got a bunch of strings in a list: > > vector = [] > vector.append ("foo") > vector.append ("bar") > vector.append ("baz") > > I want to send all of them out a socket in a single send() call, so > they end up in a single packet (assuming the MTU is large enough). I > can d

Re: wx.checklistbox

2006-04-01 Thread luca72
Thank Fredrik I try and then i will inform you Luca -- http://mail.python.org/mailman/listinfo/python-list

Scatter/gather on sockets?

2006-04-01 Thread Roy Smith
I've got a bunch of strings in a list: vector = [] vector.append ("foo") vector.append ("bar") vector.append ("baz") I want to send all of them out a socket in a single send() call, so they end up in a single packet (assuming the MTU is large enough). I can do: mySocket.send ("".join (vector))

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-01 Thread Michael Ekstrand
Jack Diederich wrote: > Xah, is that you? Nope, can't be. Xah doesn't use caps like that, and Xah also is very big Free Software not Open Source... Xah also tends to communicate in a slightly more intelligent fashion. (note: do not take this as a defense of Xah) - Michael -- mouse, n: a dev

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Grant Edwards
On 2006-04-01, walterbyrd <[EMAIL PROTECTED]> wrote: > Is this an April fool's joke? Did you read the blog entry? -- Grant Edwards grante Yow! I will invent "TIDY at BOWL"... visi.com

Site err? - modpython - django?

2006-04-01 Thread EP
Hi i am gettng slow response from thssite en wonder if problem with gil? or django bug. is this coded in modpython and to many instances? i need to select web teknology en maybe python en zope is too old to handle high volume of download objs. what cas problem? thks for your help. http://

wxpython in action book

2006-04-01 Thread Butternut squash
any recommendations? any opinions? I want to learn to program in python and need a gui reference. I'll be updating various mysql tables. I have most of the code ready to roll by using a command line. I need put some lipstick on my project. pyQT seems viable but there is not really a good referenc

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-01 Thread Jack Diederich
Xah, is that you? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread walterbyrd
Is this an April fool's joke? Please post a link to the original article. Not just a post to a blog. -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL ImageDraw line not long enough

2006-04-01 Thread Bob Greschke
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Greschke wrote: > >> I have to extend the vertical line to y+8, instead of y+7 to get the line >> segment to be drawn long enough. This is on Linux, Solaris, 2.x versions >> of >> Python, 1.1.5 version of PIL, and on

Application Generators

2006-04-01 Thread walterbyrd
I would like to put together a very simple inventory program. When I ship an item, and edit the quantity; I would like the quantity _on_hand to auto-decrement, and the quantity_to_reorder to auto-increment. Also, when the data is displayed in a table format, I would like to be able to edit the qua

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread EP
> > >Hmmm... after due consideration (and reading the announcmement >properly), I support this license change in full. > > > If I could read past the first paragraph do you think I would really hang onto this newsgroup asking stupid questions?! The personal harm caused readers of this announc

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Martin P. Hellwig
Fuzzyman wrote: > From the site: "Advanced Program for Research In Licensing, whose First Object-Oriented License" string = "Advanced Program for Research In Licensing, whose First Object-Oriented License" for letter in string: if ord(letter) in range(65,91): print(letter), --

Re: Looking for a language/framework

2006-04-01 Thread Scott David Daniels
Gregor Horvath wrote: >> But what you overlook is SQL's strength: >> >> SQL can be translated into _very_ efficient query plans w/o changing >> the SQL. SQL's query optimizers (more properly, de-pessimizers) give > > Premature optimization is the root of all evil. > > On the top level of an

Re: New Python Logo Revealed

2006-04-01 Thread Paul Boddie
Giovanni Bajo wrote: > robin wrote: > > > http://diagrammes-modernes.blogspot.com > > Tell me tell me it's an april's joke, please? :) Well, I thought that the Python mimetype icon from the Crystal SVG icon set always looked pretty good - it employs a recognisable snake image, although no batterie

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-04-01 Thread rurpy
"Fredrik Lundh" wrote: > > > I'm not much of an expert in anything yet, but I had an idea, and then > > managed to put the documents in a wiki, which was at least trying to > > do something. Fredrik beat me to it and did a much better job, but > > even so I feel quite proud that I did something a

datetime, tzinfo ... strange conversion?

2006-04-01 Thread Tino Lange
Hi! I'm surprised about the following code, maybe you can give me a hint whether that's bug or feature? I'm just trying to convert local time to GMT and one method gives a strange result: ## > #! /usr/bin/env python > > import datetime, pytz > > _tz_utc = pytz.timezone("UT

trouble with mxODBC, unixODBC and MSSQL

2006-04-01 Thread erik . myllymaki
I am using a script that's worked for me in the past on Windows, but now that i've moved it to a Linux machine it is not. The trouble seems to be when trying to insert escaped characters into a varchar field (\n \r ,etc.). --

Re: newbie string conversion question

2006-04-01 Thread Scott David Daniels
Rohit wrote: > As part of a proprietary socket based protocol I have to convert a > string of length 10, > > say, "1234567890" > > to send it as 5 characters such that their hex values are > > 0x21 0x43 0x65 0x87 0x09 > > (Hex value of each character is got by transposing two digit

Re: New Python Logo Revealed

2006-04-01 Thread Giovanni Bajo
robin wrote: > I have an entry on my blog discussing the new Python logo, which is > apparently due to replace the current one within the month. I'd be > interested in what people think of it. > > Surf: > http://diagrammes-modernes.blogspot.com Tell me tell me it's an april's joke, please? :) --

Re: any() and all() on empty list?

2006-04-01 Thread Felipe Almeida Lessa
Em Sáb, 2006-04-01 às 08:35 -0800, Steve R. Hastings escreveu: > def tally(seq, d=None): > if d == None: > d = {} > > for x in seq: > if x in d: > d[x] += 1 > else: > d[x] = 1 > return d Two changes: - Use "is None". - Use "try ... ex

Re: wx.checklistbox

2006-04-01 Thread Fredrik Lundh
"luca72" wrote: > i have again one simple problem: > the script is this: > > def output(self): > global lista2 > lista2 = open('/lista2', 'w') > iteminlista2 = self.checkListBox2.GetStrings() > lista2.writelines(iteminlista2) > > def input1(self): > li

Re: Exception handling....dumb question?

2006-04-01 Thread Peter Hansen
kbperry wrote: > I have a Python book, but it didn't mention this at all. I also tried > looking through the online docs to no avail. This is covered by the tutorial though, and if you're a Python rookie it would be a good idea to step your way through most of it soon: See http://docs.python.or

New Python Logo Revealed

2006-04-01 Thread robin
I have an entry on my blog discussing the new Python logo, which is apparently due to replace the current one within the month. I'd be interested in what people think of it. Surf: http://diagrammes-modernes.blogspot.com - robin noisetheatre.blogspot.com -- http://mail.python.org/mailman/list

Re: smtplib "authentication required" error

2006-04-01 Thread [EMAIL PROTECTED]
Dear tjg: That was extremely helpful. Thank you very kindly. The server did not respond to the .starttls() method but authentication was successful after, it seems, the .ehlo() was specified. I have tried the script without the first s.ehlo() and without s.starttls() and it works perfectly. My auth

Re: any() and all() on empty list?

2006-04-01 Thread Steve R. Hastings
On Sat, 01 Apr 2006 00:38:08 -0800, Steve R. Hastings wrote: > my proposed truecount() returns a tuple, with the length and > the count of true values. I never liked the name truecount(), and the more I think about it, the less I like the function. It should either solve a very important need, or

Re: wx.checklistbox

2006-04-01 Thread Philippe Martin
Hi, I do not see where you close the file: I beleve you need to close it to flush information prior to reading again. Philippe luca72 wrote: > i have again one simple problem: > the script is this: > > def output(self): > global lista2 > lista2 = open('/lista2', 'w') >

Re: Logging and threading

2006-04-01 Thread usenet
As simple and as obvious as I expected, thanks Dennis. -Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread reedobrien
That isn't in the published 2.5 License. http://docs.python.org/dev/ref/node110.html Thanks for the scare.. ~r -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie string conversion question

2006-04-01 Thread Duncan Booth
Felipe Almeida Lessa wrote: a = "1234567890" b = [] for i in range(len(a)/2): > ... b.append(chr(int(a[i*2:i*2+2][::-1], 16))) > ... b = ''.join(b) print b > !Ce� print repr(b) > '!Ce\x87\t' Alternatively: >>> s = "1234567890" >>> ''.join(chr(int(b+a,16)) for

Re: python tutorial: popular/informative Python sites ?

2006-04-01 Thread gene tani
Fredrik Lundh wrote: > the "what now?" page in the tutorial > > to replace it with something else, what should that be? what sites > do pythoneers and pythonistas visit these days? > > post your suggestions in this thread or on this page: > Pilgrims tricks/ips http://diveintopython.org/appendix/t

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: > As the only director of the Python Software Foundation to vote against a > recent Board motion to implement the change in licensing terms described in > >http://pyfound.blogspot.com/2006/04/python-25-licensing-change.

ANN: PyGUI 1.7

2006-04-01 Thread greg
PyGUI 1.7 is now available: http://www.cosc.canterbury.ac.nz/~greg/python_gui/ New features: * GL.DisplayList class for managing OpenGL display lists in a similar way to the GL.Texture class introduced in 1.6. * Facilites for displaying a chosen cursor when the mouse is

Re: newbie string conversion question

2006-04-01 Thread Felipe Almeida Lessa
Em Sáb, 2006-04-01 às 06:17 -0800, Rohit escreveu: > As part of a proprietary socket based protocol I have to convert a > string of length 10, > > say, "1234567890" > > to send it as 5 characters such that their hex values are > > 0x21 0x43 0x65 0x87 0x09 > > (Hex value of each cha

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Grant Edwards
On 2006-04-01, Piet van Oostrum <[EMAIL PROTECTED]> wrote: >> "Fuzzyman" <[EMAIL PROTECTED]> (F) wrote: > >>F> Can I ask for clarification. The charge applies to any commercial use >>F> of a derivative work based on the Python source code ? > >>F> Normal applications that use Python, including

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Grant Edwards
On 2006-04-01, Steve Holden <[EMAIL PROTECTED]> wrote: > As the only director of the Python Software Foundation to vote against a > recent Board motion to implement the change in licensing terms described in > >http://pyfound.blogspot.com/2006/04/python-25-licensing-change.html Good one Steve

newbie string conversion question

2006-04-01 Thread Rohit
As part of a proprietary socket based protocol I have to convert a string of length 10, say, "1234567890" to send it as 5 characters such that their hex values are 0x21 0x43 0x65 0x87 0x09 (Hex value of each character is got by transposing two digits at a time) How can I do t

Re: String pattern matching

2006-04-01 Thread forward
Firstly sort variable expressions by its length xy = 'abca' xyz = 'abcaaab' vxw = 'eeabcac' Expand all expressions by its values except itself xy = 'abca' 'abca' z = 'abcaaab' vxw = 'eeabcac' Cut all left and right matches xy = 'abca' z = 'aab' vxw = 'eeabcac' Repeat until you

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread [EMAIL PROTECTED]
Look at the date. Worry about this if it is still around tomarrow -- http://mail.python.org/mailman/listinfo/python-list

Re: wx.checklistbox

2006-04-01 Thread luca72
i have again one simple problem: the script is this: def output(self): global lista2 lista2 = open('/lista2', 'w') iteminlista2 = self.checkListBox2.GetStrings() lista2.writelines(iteminlista2) def input1(self): lista2leggi = open('/lista2', 'r')

Re: Tkinter divider

2006-04-01 Thread Jim Lewis
That did the trick - thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: why doesn't is work?a script to backup a directory

2006-04-01 Thread obeeker
i am very sorry . the erroer was from my Portable Hard Disk because its disk sign has changed from "o" to "h" ,from "p" to "i" i'm very sorry -- http://mail.python.org/mailman/listinfo/python-list

Re: why doesn't is work?a script to backup a directory

2006-04-01 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > please don't read the prevous post ,please read this one: > > thank you for your suggestion and apologize for my mistake. > if i run it and answer the raw_input with "Enter" i get > > sth is wrong > press Return> > > i comment the try-except and run it and answer the raw

Re: Tkinter divider

2006-04-01 Thread Fredrik Lundh
Jim Lewis wrote: > Anyone know how to create a draggable divider between two Tkinter > windows? http://effbot.org/tkinterbook/panedwindow.htm might be what you need. -- http://mail.python.org/mailman/listinfo/python-list

COM Server & wxPython

2006-04-01 Thread nelson
Hi all, i'm doing a COM server that have to expose some graphics (panels and configuration controls), that would be embedded in an application through OLE. I was wondering if I can do this using wxPython. Another question is if my COM server would inherits from one of the wxPython class. If it's t

Re: why doesn't is work?a script to backup a directory

2006-04-01 Thread obeeker
please don't read the prevous post ,please read this one: thank you for your suggestion and apologize for my mistake. if i run it and answer the raw_input with "Enter" i get sth is wrong press Return> i comment the try-except and run it and answer the raw_input with "Enter" and get message fo

Re: why doesn't is work?a script to backup a directory

2006-04-01 Thread obeeker
thank you for your suggestion and apologize for my mistake. if i run it and answer the raw_input with "Enter" i get sth is wrong press Return> i comment the try-except and run it and answer the raw_input with "Enter" and get message following: Traceback (most recent call last): File "G:\9\E

Tkinter divider

2006-04-01 Thread Jim Lewis
Anyone know how to create a draggable divider between two Tkinter windows? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Aww, but I liked the idea of copying Perl 6 REs, and porting python to > the toy CPU :-) I think if PSF is going to support porting of Python to "toy" CPUs then the Digi-Comp should be the first target. This will breathe new life into these toys which for years have be

Re: running IDLE from another program?

2006-04-01 Thread Kent Johnson
John Salerno wrote: > Kent Johnson wrote: > >>John Salerno wrote: >> >>>Kent Johnson wrote: >>> You probably don't need to do that. Just run the file in python directly. I don't know UE, but when you configure an external tool, tell it to run python.exe and pass the current file as a

Re: Doc suggestions (was: Why "class exceptions" are not deprecated?)

2006-04-01 Thread Fredrik Lundh
Ed Singleton wrote: > I'm not much of an expert in anything yet, but I had an idea, and then > managed to put the documents in a wiki, which was at least trying to > do something. Fredrik beat me to it and did a much better job, but > even so I feel quite proud that I did something and tried to m

python tutorial: popular/informative Python sites ?

2006-04-01 Thread Fredrik Lundh
the "what now?" page in the tutorial http://www.python.org/doc/tut/node14.html lists a couple of relevant web sites for Python users, including: http://www.python.org http://starship.python.net http://www.python.org/pypi the starship link has been there since 1998 or so (Python

Re: Should any() and all() take a key= argument?

2006-04-01 Thread Felipe Almeida Lessa
Em Sáb, 2006-04-01 às 20:44 +1000, Steven D'Aprano escreveu: > Here's another way of doing it: > > lst = [2, 4, 42] > any(map(lambda x: x==42, lst)) In fact, as we're talking about Python 2.5 anyway, it would be better not to waste memory and use: any(x == 42 for x in lst) -- Felipe. -- http

String pattern matching

2006-04-01 Thread Jim Lewis
Anyone have experience with string pattern matching? I need a fast way to match variables to strings. Example: string - variables abcaaab - xyz abca - xy eeabcac - vxw x matches abc y matches a z matches aab w maches ac v maches ee -- http://mail.python.org/mailman/listinfo/python-

Re: packaging question - documentation

2006-04-01 Thread schwehr
Sorry about not being clear. I have been downloading quite a few packages for examples, but have not found a good example of man page building from optparse. seismic-py - setup.py - seismic - __init.py__ - bulk of the code *.py - scripts - programs that go in bin/

Re: Should any() and all() take a key= argument?

2006-04-01 Thread Steven D'Aprano
On Fri, 31 Mar 2006 22:35:10 -0800, Steve R. Hastings wrote: > The list.sort() method accepts a "key=" parameter to let you specify a > function that will change the way it sorts. In Python 2.5, min() and > max() now accept a "key=" parameter that changes how the functions decide > min or max. >

Re: why doesn't is work?a script to backup a directory

2006-04-01 Thread Steven D'Aprano
On Fri, 31 Mar 2006 18:37:11 -0800, obeeker wrote: > """there is threee directories,one of these is used for the base > directory,decided by the user, default is d0""" [snip code] It doesn't work? Have you tried running it to see what it does? When you do, please post a description of what it do

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-01 Thread steve
On Sat, 1 Apr 2006 13:06:52 +0800, Luc The Perverse wrote (in article <[EMAIL PROTECTED]>): > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Programing Languiges Are Ment to be free. That is why i am starting The >> Coo De Tar thats french for Blow of state it is a flash/java >>

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread bearophileHUGS
Ivan Herman>I would certainly look at *all details* of the announcement,< Aww, but I liked the idea of copying Perl 6 REs, and porting python to the toy CPU :-) (But making strings mutable sounds too much strange). Bye and thank you, bearophile -- http://mail.python.org/mailman/listinfo/python-

Re: a simple regex question

2006-04-01 Thread Roel Schroeven
John Salerno schreef: >> pattern = '([a-z][A-Z]{3}[a-z][A-Z]{3}[a-z])+' >> print re.search(pattern, mess).groups() >> >> Anyway, this returns one matching string, but when I put this letter in >> as the solution to the problem, I get a message saying "yes, but there >> are more", so assuming this

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Ivan Herman
I would certainly look at *all details* of the announcement, including the second line from the top which gives the date:-) Ivan Caleb Hattingh wrote: > WAIT- > > Did I just get caught by an April Fools Joke? > > I have a nasty feeling about this :)) > > C > -- http://mail.python.org/mailma

Re: Python 2.5 licensing: stop this change

2006-04-01 Thread Piet van Oostrum
> "Fuzzyman" <[EMAIL PROTECTED]> (F) wrote: >F> Can I ask for clarification. The charge applies to any commercial use >F> of a derivative work based on the Python source code ? >F> Normal applications that use Python, including bunding the standard >F> CPython as an executable, using tools li

Re: Python 2.4.3 Documentation: Bad link

2006-04-01 Thread bones17
Now, it works well... I really don't know why it before report 404 Not Found... I was tested it 5x... I'm sorry for unwanted false bug report. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >