ANN: Templayer 1.4 - HTML templating library

2006-09-25 Thread Ian Ward
Announcing Templayer 1.4 Templayer home page: http://excess.org/templayer/ Tarball: http://excess.org/templayer/templayer-1.4.tar.gz About this release: === This release improves integration with the Django web framework by reducing the amount

ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread Brian Beck
Hi all, I'm pleased to announce the first release of my new library, dmath. It is available under the MIT/X11 license. Download Cheese Shop: http://cheeseshop.python.org/pypi/dmath/0.9 Google Code: http://code.google.com/p/dmath/ What is dmath? == dmath provides the

SQLObject 0.7.1 final release

2006-09-25 Thread Oleg Broytmann
Hello! I'm pleased to announce the 0.7.1 release of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started

[ANN] tperimeter 1.110 Released And Available

2006-09-25 Thread Tim Daneliuk
'tperimeter' Version 1.110 is released and available at: http://www.tundraware.com/Software/tperimeter/ What's New -- This is the initial public release of 'tperimeter' What Is 'tperimeter'? - Have you ever been away from the office and needed, say, ssh access

Re: Daemonizing python

2006-09-25 Thread Andi Clemens
Hi, what is the main difference of running a python program as a daemon or as a cronjob? I have written a program at work that checks all internet connections of our failover sites and saves the results in a MySQL-database. The whole program is made with django (a webframework) so I had to be

unicode, bytes redux

2006-09-25 Thread willie
(beating a dead horse) Is it too ridiculous to suggest that it'd be nice if the unicode object were to remember the encoding of the string it was decoded from? So that it's feasible to calculate the number of bytes that make up the unicode code points. # U+270C # 11100010 10011100 10001100 buf =

Re: gtk.Entry Colors

2006-09-25 Thread Tuomas
MonkeeSage wrote: Tuomas wrote: I would like to manipulate PyGTK Entry widget's background and foreground colors. Is it possible? How? Yes, it is possible: # widget color entry.modify_base(gtk.STATE_NORMAL, gtk.gdk.color_parse(#FF)) # frame color entry.modify_bg(gtk.STATE_NORMAL,

Re: unicode, bytes redux

2006-09-25 Thread Robert Kern
willie wrote: (beating a dead horse) Is it too ridiculous to suggest that it'd be nice if the unicode object were to remember the encoding of the string it was decoded from? Yes. The unicode object itself is precisely the wrong place for that kind of information. Many (most?) unicode

Re: Talking to marketing people about Python

2006-09-25 Thread Sybren Stuvel
Roy Smith enlightened us with: I'm working on a product which for a long time has had a Perl binding for our remote access API. A while ago, I wrote a Python binding on my own, chatted it up a bit internally, and recently had a (large) customer enquire about getting access to it. I asked

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Sybren Stuvel wrote: Lawrence D'Oliveiro enlightened us with: Yes, I have done blobs. Still need a quoting function for the specials, though. Why? What makes your data so different from mine? select * from details where person_name like

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Fredrik Lundh wrote: Georg Brandl wrote: A function is broken if its implementation doesn't match the documentation. or if it doesn't match the designer's intent. cgi.escape is old enough that we would have noticed that, by now... _We_ certainly have

Re: Reverse a String?

2006-09-25 Thread Georg Brandl
[EMAIL PROTECTED] wrote: http://pyfaq.infogami.com/ Tell me more? Clueless newbie me, thru this door I'm at three deaths and counting. Does that Py Faq Wiki have a sandbox a la alt.test, and/or a tutorial? // Death One: http://pyfaq.infogami.com/_account/in?path=/ requires me to

Re: QuoteSQL

2006-09-25 Thread Sybren Stuvel
Lawrence D'Oliveiro enlightened us with: select * from details where person_name like concat(\%%\, %s, \%%\) \ % \ QuoteSQL(name, True) Wouldn't this be a whole lot better? cursor.execute( select * from details where person_name like ?, '%' + name + '%' )

Re: unicode, bytes redux

2006-09-25 Thread Duncan Booth
willie [EMAIL PROTECTED] wrote: Is it too ridiculous to suggest that it'd be nice if the unicode object were to remember the encoding of the string it was decoded from? So that it's feasible to calculate the number of bytes that make up the unicode code points. So what sort of output do you

Outlook Addin and py2exe: 2 problems

2006-09-25 Thread Thomas Thomas
I recenlty had the same issue, but clearing the build directory and rebuilding again fixed the issue for me -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode, bytes redux

2006-09-25 Thread Paul Rubin
willie [EMAIL PROTECTED] writes: # U+270C # 11100010 10011100 10001100 buf = \xE2\x9C\x8C u = buf.decode('UTF-8') # ... later ... u.bytes() - 3 (goes through each code point and calculates the number of bytes that make up the character according to the encoding) Duncan Booth explains

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Sybren Stuvel wrote: Lawrence D'Oliveiro enlightened us with: select * from details where person_name like concat(\%%\, %s, \%%\) \ % \ QuoteSQL(name, True) Wouldn't this be a whole lot better? cursor.execute( select *

Re: Unexpected behaviour of csv module

2006-09-25 Thread Andrew McLean
John Machin wrote: A better workaround IMHO is to strip each *field* after it is received from the csv reader. In fact, it is very rare that leading or trailing space in CSV fields is of any significance at all. Multiple spaces ditto. Just do this all the time: row = [' '.join(x.split())

Re: unicode, bytes redux

2006-09-25 Thread Leif K-Brooks
Paul Rubin wrote: Duncan Booth explains why that doesn't work. But I don't see any big problem with a byte count function that lets you specify an encoding: u = buf.decode('UTF-8') # ... later ... u.bytes('UTF-8') - 3 u.bytes('UCS-4') - 4 That avoids creating a new

Re: Looking for opinions

2006-09-25 Thread Bruno Desthuilliers
crystalattice wrote: Bruno Desthuilliers wrote: I have few experience with RPG softwares, but if your domain logic si anything more than trivially complex, it's always better to keep it as decoupled as possible from the user interface (unless of course the user interface actually is the

Re: unicode, bytes redux

2006-09-25 Thread Paul Rubin
Leif K-Brooks [EMAIL PROTECTED] writes: It requires a fairly large change to code and API for a relatively uncommon problem. How often do you need to know how many bytes an encoded Unicode string takes up without needing the encoded string itself? Shrug. I don't see a real large change--the

Re: unicode, bytes redux

2006-09-25 Thread John Machin
willie wrote: (beating a dead horse) Is it too ridiculous to suggest that it'd be nice if the unicode object were to remember the encoding of the string it was decoded from? Where it's been is irrelevant. Where it's going to is what matters. So that it's feasible to calculate the number

Re: Difficulty with maxsplit default value for str.split

2006-09-25 Thread Paul Rubin
Steven D'Aprano [EMAIL PROTECTED] writes: Is it safe for me to pass -1 as the default to maxsplit, meaning unlimited splits? Should the docs be fixed to mention that? Frederik gave a simple and practical solution to your immediate problem, but yes, I think the docs should be fixed after

Re: unicode, bytes redux

2006-09-25 Thread Paul Rubin
John Machin [EMAIL PROTECTED] writes: Actually, what Willie was concerned about was some cockamamie DBMS which required to be fed Unicode, which it encoded as UTF-8, Yeah, I remember that. Tell you what, why don't you and Willie get together and write a PEP? If enough people care about the

Re: Unexpected behaviour of csv module

2006-09-25 Thread John Machin
Andrew McLean wrote: John Machin wrote: A better workaround IMHO is to strip each *field* after it is received from the csv reader. In fact, it is very rare that leading or trailing space in CSV fields is of any significance at all. Multiple spaces ditto. Just do this all the time:

PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
Bonjour à tous, Dans la folie j'ai installé le nouveau python, impatient de voir les nouveautés mais je pense que j'ai été un peu rapide car j'ai voulu utiliser pyOpenGL et là problème il n'existe pas pour python 2.5 ?!!! de plus il semble que pyopengl est été abandonné depuis 2005 ? plus rien ne

Re: unicode, bytes redux

2006-09-25 Thread John Machin
Paul Rubin wrote: John Machin [EMAIL PROTECTED] writes: Actually, what Willie was concerned about was some cockamamie DBMS which required to be fed Unicode, which it encoded as UTF-8, Yeah, I remember that. Tell you what, why don't you and Willie get together and write a PEP? If

Re: QuoteSQL

2006-09-25 Thread Sybren Stuvel
Lawrence D'Oliveiro enlightened us with: Wouldn't this be a whole lot better? cursor.execute( select * from details where person_name like ?, '%' + name + '%' ) No. Can you figure out why? Ok, should have tested it better. This works fine on my machine, though: curs.execute(

Re: unicode, bytes redux

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 00:45:29 -0700, Paul Rubin wrote: willie [EMAIL PROTECTED] writes: # U+270C # 11100010 10011100 10001100 buf = \xE2\x9C\x8C u = buf.decode('UTF-8') # ... later ... u.bytes() - 3 (goes through each code point and calculates the number of bytes that make up the

Re: Daemonizing python

2006-09-25 Thread Diez B. Roggisch
Paul Rubin wrote: Diez B. Roggisch [EMAIL PROTECTED] writes: There is a good daemonization recipe on activstate: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012 That is worth reading, including the long comment thread. Yeah, it is somewhat disappointing that the version in

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Frithiof Andreas Jensen
Ingo Linkweiler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bjoern Schliessmann schrieb: Ingo Linkweiler wrote: b) verify an existing mailserver or DNS/MX records Or? That's two different things. If you don't know already: Even if you test all this, it is still

Re: What is the best way to get a web page?

2006-09-25 Thread Frithiof Andreas Jensen
something like: os.popen(wget -r3 http://juicypornpics.com;) wget understands the peculiarities of web pages so you do have to. -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Duncan Booth
Sybren Stuvel [EMAIL PROTECTED] wrote: Ok, should have tested it better. This works fine on my machine, though: curs.execute( select * from details where person_name like ?, ('%' + name + '%', ) ) Including all sorts of quotes, newlines, backslashes etc. in the name. I think

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Steven D'Aprano
On Sun, 24 Sep 2006 13:23:03 +0200, Ingo Linkweiler wrote: The usual way to cope with this is sending out confirmation mails. No need to check if the address is syntactically correct beforehand. yes, I do this allready. But it would be nice to do some checks before to avoid wrong user

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Bruno Desthuilliers
Sébastien Ramage wrote: Bonjour à tous, Hi Sébastien. Wrong newsgroup, I'm afraid - either repost here in english, or post to fr.comp.lang.python... -- bruno desthuilliers python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')]) --

Re: unicode, bytes redux

2006-09-25 Thread John Machin
Paul Rubin wrote: Leif K-Brooks [EMAIL PROTECTED] writes: It requires a fairly large change to code and API for a relatively uncommon problem. How often do you need to know how many bytes an encoded Unicode string takes up without needing the encoded string itself? Shrug. I don't see a

Re: Difficulty with maxsplit default value for str.split

2006-09-25 Thread Steven D'Aprano
On Sun, 24 Sep 2006 10:34:31 +0200, Fredrik Lundh wrote: But the split method doesn't accept a value of None for maxsplit, and I don't know what default value I should be using. def mysplit(S, *args): pre_processing() result = S.split(*args) post_processing()

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Duncan Booth wrote: Sybren Stuvel [EMAIL PROTECTED] wrote: Ok, should have tested it better. This works fine on my machine, though: curs.execute( select * from details where person_name like ?, ('%' + name + '%', ) ) Including all sorts of

Re: QuoteSQL

2006-09-25 Thread Duncan Booth
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: This could be an argument for having a utility function to escape the wildcards for this sort of situation, but certainly not an argument for his proposed QuoteSQL. Why not? That is exactly one of the options my QuoteSQL offers. Yes, but your

Makin search on the other site and getting data and writing in xml

2006-09-25 Thread altemurbugra
Hi is it possible to make search on for example on google without api with a list of words 1- there is word list 2- the script will take the words from the list by turn 3-it iwll make the search 4-will get results 5-will write the results as xml file. i dont mean only google, for other sites

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
oh! sorry, I made some search on comp.lang.python and fr.comp.lang.python and finally I forgot where I was... My question is : how use pyopengl with python 2.5 ?? it seems that pyopengl was stop on 2005 I'm on windows and I've not tools to recompile pyopengl for python 2.5 (thinking

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread andychambers2002
Sébastien Ramage wrote: oh! sorry, I made some search on comp.lang.python and fr.comp.lang.python and finally I forgot where I was... My question is : how use pyopengl with python 2.5 ?? it seems that pyopengl was stop on 2005 Have a look at this thread. I think with pyopengl you'll have

Re: QuoteSQL

2006-09-25 Thread Sybren Stuvel
Duncan Booth enlightened us with: I think his point was that any '%' characters inside name act like wildcards whereas his version looked for literal percents. But of course. This could be an argument for having a utility function to escape the wildcards for this sort of situation, but

Re: Daemonizing python

2006-09-25 Thread andychambers2002
Andi Clemens wrote: Hi, what is the main difference of running a python program as a daemon or as a cronjob? I have written a program at work that checks all internet connections of our failover sites and saves the results in a MySQL-database. The whole program is made with django (a

Re: how to remember login in zope?

2006-09-25 Thread Michele Simionato
astarocean wrote: how to remember login in zope? so when user came back , they needn't input username and password again. i'm using zope,extensiveuserfolder and cookiecrumbler, exuserfolder is set to cookie-based authentication. i'm not using cmf or plone , how could i handle this? thanks

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Ziga Seilnacht
Sébastien Ramage wrote: oh! sorry, I made some search on comp.lang.python and fr.comp.lang.python and finally I forgot where I was... My question is : how use pyopengl with python 2.5 ?? it seems that pyopengl was stop on 2005 PyOpenGL is still maintained, but most of the development is

Re: PyOpenGL pour python 2.5 ???

2006-09-25 Thread Sébastien Ramage
good news ! thank for links to the blog, very usefull now I have to wait seb -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Duncan Booth wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: This could be an argument for having a utility function to escape the wildcards for this sort of situation, but certainly not an argument for his proposed QuoteSQL. Why not? That is exactly one

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Sybren Stuvel wrote: Duncan Booth enlightened us with: I think his point was that any '%' characters inside name act like wildcards whereas his version looked for literal percents. But of course. This could be an argument for having a utility function to

Re: License / Registration key enabled software

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], T wrote: We all know that there are many softwares that require some license key or registration key to enable them. How does one implement something like this in python? Reliably? Can't be done, in Python or any other language. --

Re: License / Registration key enabled software

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], T wrote: Umm...I was hoping for something simpler and more straight forward. It cannot be done simply or straightforwardly. Or reliably, for that matter. -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Sybren Stuvel wrote: Duncan Booth enlightened us with: I think his point was that any '%' characters inside name act like wildcards whereas his version looked for literal percents. But of course. This could be an argument for having a utility function to

Re: Talking to marketing people about Python

2006-09-25 Thread GHUM
Roy Smith schrieb: Can anybody suggest some good material I can give to him which will help explain what Python is and why it's a good thing, in a way that a marketing/product management person will understand? please also look for the Python success stories There is also a aviation control

Re: Converting Perl Web Report to Python

2006-09-25 Thread [EMAIL PROTECTED]
Thanks again Dennis, This should do what I want with additional flexibility... I will develop the code later this week. During this excersize, I have come to really appreciate Python over Perl. I love the Python command line interpreter that allowed me to pretest any code very quickly. What

Re: Makin search on the other site and getting data and writing in xml

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: is it possible to make search on for example on google without api with a list of words 1- there is word list 2- the script will take the words from the list by turn 3-it iwll make the search 4-will get results 5-will write the results as xml file.

Re: Unexpected behaviour of csv module

2006-09-25 Thread skip
One could argue that your CSV file is broken. Of course, since CSV is a poorly specified format, that's a pretty weak statement. I don't remember just what your original problem was, but it concerned itself with white space as I recall. Have you tried setting the skipinitialspace parameter in

How do I submit fixes for urllib2 urlparse?

2006-09-25 Thread Neville CD
Basically I encountered some smallish problems with a couple of modules and figure I can fix the problems. I did find http://sourceforge.net/projects/python, should I report my problem report there and then assign them to myself to fix (and create test scripts). As you can probably guess I

How to run in background?

2006-09-25 Thread billie
Hi all. I know that it's possible to automatically run a Python program in background by giving it the pyw extension. This is useful when I release a source ditribution of my program. How could it be possible to do the same thing with an .exe file compiled with py2exe extension? Do I have to write

Problems with Python 2.5 installer.

2006-09-25 Thread paw
I have ran the MSI installer for Python 2.5 several times attempting to install to C: Python, however all of the files are placed in C:\ . The installer is told to only install files for me, beyond that I have only chosen the defaults. If I copy the files after installation, then uninstall

Re: Talking to marketing people about Python

2006-09-25 Thread Kay Schluehr
Roy Smith wrote: I'm working on a product which for a long time has had a Perl binding for our remote access API. A while ago, I wrote a Python binding on my own, chatted it up a bit internally, and recently had a (large) customer enquire about getting access to it. I asked for permission

Re: Talking to marketing people about Python

2006-09-25 Thread rdsteph
Roy Smith wrote: Can anybody suggest some good material I can give to him which will help explain what Python is and why it's a good thing, in a way that a marketing/product management person will understand? As a sometimes marketing droid on my day job (please don't tell anyone!) I think

Re: Reverse a String?

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: Next clue? I would have hoped that the suggestion links on the first page would have sent you to http://pyfaq.infogami.com/suggest which is the right place to submit new entries. that spam thing looks weird, though; guess I'll have to check with Aaron. /F --

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Lawrence D'Oliveiro wrote: Georg Brandl wrote: A function is broken if its implementation doesn't match the documentation. or if it doesn't match the designer's intent. cgi.escape is old enough that we would have noticed that, by now... _We_ certainly have noticed it. you're not the

Introduction to Threading with Python, a podcast

2006-09-25 Thread rdsteph
Chris Hefele has done an excellent talk about programming with threads using Python, including a fair amount of detail and a look at various related tools and topics. Chris did a lot of research and put a lot of effort into producing this podcast. I find it to be a particularly clear and lucid

Re: QuoteSQL

2006-09-25 Thread Steve Holden
Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Sybren Stuvel wrote: Duncan Booth enlightened us with: I think his point was that any '%' characters inside name act like wildcards whereas his version looked for literal percents. But of course. This could be an argument for

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Jon Ribbens wrote: Or if the design, as described in the documentation, is flawed in some way. it does exactly what it says, and is perfectly usable as is, if you bother to use it the way it was intended to be used. (still waiting for the jon's enhanced escape proposal, btw, but I guess it's

Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread metaperl
I was shocked to see the personal insults hurled in this thread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/d0758cb9545cad4b I have been very pleased with Python developers regardless of skill levels in both the IRC channel as well as here - no hot attitudes. No holier

Re: One program in different GUI Toolkits

2006-09-25 Thread metaperl
Steve Holden wrote: [EMAIL PROTECTED] wrote: Actually due to lack of documentation and feedback from the mailing list, I am fallen out of love with Pythoncard and in love with Kiwi/Pygtk. Given the large groundswell support for pygtk, i dont think I will be disappointed. In and out

Re: One program in different GUI Toolkits

2006-09-25 Thread metaperl
Steve Holden wrote: [EMAIL PROTECTED] wrote: Actually due to lack of documentation and feedback from the mailing list, I am fallen out of love with Pythoncard and in love with Kiwi/Pygtk. Given the large groundswell support for pygtk, i dont think I will be disappointed. In and out

Newbie question: PyQt Form::init()

2006-09-25 Thread Sven Ehret
Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own project, but I am having problems with initialization of my form. I want to automatically fill a couple of comboboxes upon

Re: Converting Perl Web Report to Python

2006-09-25 Thread metaperl
[EMAIL PROTECTED] wrote: Thanks again Dennis, This should do what I want with additional flexibility... I will develop the code later this week. During this excersize, I have come to really appreciate Python over Perl. I love the Python command line interpreter that allowed me to pretest

Re: QuoteSQL

2006-09-25 Thread Duncan Booth
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: Indeed. An escaping function should be small and not do all kinds of escaping for different situations at once. Look at it this way: there is _no_ case where you need escaping of wildcards without also escaping other specials. You need to engage

Re: How do I submit fixes for urllib2 urlparse?

2006-09-25 Thread Steve Holden
Neville CD wrote: Basically I encountered some smallish problems with a couple of modules and figure I can fix the problems. I did find http://sourceforge.net/projects/python, should I report my problem report there and then assign them to myself to fix (and create test scripts). As

Re: Talking to marketing people about Python

2006-09-25 Thread Roy Smith
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: 5. Number of job listings on internet job listing boards. I just did a quick survey for Perl and Python jobs on some of the big IT job boards. I came up with: Site Perl Python Hotjobs 2756 655 Monster 1000

Job offer python programmer

2006-09-25 Thread johannes
Hello, We're looking for a software developer Python/PHP/Ajax/MySQL for web applications (full time job). Maybe someone in this group might be interested in this job. Further information can be found here: About the job: http://www.Axandra.de/python About us: http://www.Axandra.de/company Best

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Jon Ribbens wrote: since it doesn't deal with encodings at all. Why does it need to? cgi.escape is (or should be) dealing with character strings, not byte sequences. I must admit, internationalisation is not my forte, so if there's something I'm missing here I'd love to hear about it. If

Re: Job offer python programmer

2006-09-25 Thread Paul Rubin
[EMAIL PROTECTED] writes: We're looking for a software developer Python/PHP/Ajax/MySQL for web applications (full time job). Maybe someone in this group might be interested in this job. Further information can be found here: About the job: http://www.Axandra.de/python Well, that page is in

Re: CONSTRUCT - New/Old Style Classes, build-in/extension types

2006-09-25 Thread Aahz
In article [EMAIL PROTECTED], Ilias Lazaridis [EMAIL PROTECTED] wrote: Have those old style classes any benefits? Yes, if you want your code to run on Python 2.1 and earlier. -- Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/ LL YR VWL R BLNG T S --

Re: Talking to marketing people about Python

2006-09-25 Thread Fredrik Lundh
Roy Smith wrote: 5. Number of job listings on internet job listing boards. I just did a quick survey for Perl and Python jobs on some of the big IT job boards. I came up with: Site Perl Python Hotjobs 2756 655 Monster 1000 317 Dice 4828

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: maybe you haven't done software long enough to understand that software works better if you use it the way it was intended to be used, but that's no excuse for being stupid. So what's your excuse? --

Re: Newbie question: PyQt Form::init()

2006-09-25 Thread Diez B. Roggisch
Sven Ehret wrote: Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own project, but I am having problems with initialization of my form. I want to automatically fill a

Re: unicode, bytes redux

2006-09-25 Thread Fredrik Lundh
John Machin wrote: Actually, what Willie was concerned about was some cockamamie DBMS which required to be fed Unicode, which it encoded as UTF-8, but silently truncated if it was more than the n in varchar(n) ... or something like that. So all he needs is a boolean result:

Re: Timeline for Python?

2006-09-25 Thread Aahz
In article [EMAIL PROTECTED], Blair P. Houghton [EMAIL PROTECTED] wrote: wesley chun wrote: 1. never write against older versions of Python... you will only obsolete your book even faster (well, sooner) I believe there is some market for documentation of older versions of software. Many

Re: Job offer python programmer

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: We're looking for a software developer Python/PHP/Ajax/MySQL for web applications (full time job). Maybe someone in this group might be interested in this job. don't forget to post to: http://www.python.org/community/jobs/ as well! (see the HOWTO link on that

Re: installation of python-dev

2006-09-25 Thread Fredrik Lundh
Dominik Müller wrote: I am running Python2.4.3; I need to install Python-dev (or does anybody know an easier way to get distutils.core ? that's what I actually need...). umm. distutils is part of the standard library, so it should be part of the core install. what platform are you using, and

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: If you're really serious about making things easier to use, shouldn't you look at the whole picture? HTML documents are byte streams, so any transformation from internal character data to HTML must take both escaping and encoding into

Re: Newbie question: PyQt Form::init()

2006-09-25 Thread Sven Ehret
Diez B. Roggisch wrote: Sven Ehret wrote: Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own project, but I am having problems with initialization of my form. I want to

Re: AttributeError Question

2006-09-25 Thread Fredrik Lundh
Javier Subervi [EMAIL PROTECTED] wrote: This came up when trying to load a Zope product: * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: field.Vocabulary(here) * Module Python expression field.Vocabulary(here), line 1, in expression *

Re: A critique of cgi.escape

2006-09-25 Thread Duncan Booth
Jon Ribbens [EMAIL PROTECTED] wrote: and will also break unit tests. Er, so change the unit tests at the same time? It is generally a principle of Python that new releases maintain backward compatability. An incompatible change such proposed here would probably break many tests for a large

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: (still waiting for the jon's enhanced escape proposal, btw, but I guess it's easier to piss on others than to actually contribute something useful). Well, yes, you certainly seem to be good at the pissing on others part, even if you have to lie

Re: what is the best practice to separate Pygtk and long running thread code

2006-09-25 Thread Thomas Guettler
seb wrote: The best thing would be to have a queue feature that would be be shared between processes but as far as I know It does not exists in python. There is a queue class to share data between threads: http://docs.python.org/lib/module-Queue.html -- Thomas Güttler,

Re: Unexpected behaviour of csv module

2006-09-25 Thread John Machin
[EMAIL PROTECTED] wrote: One could argue that your CSV file is broken. Hi Skip, His CSV file is mildly broken. The examples that I gave are even more broken, and are typical of real world files created by clueless developers from databases which contain quotes and commas in the data (e.g.

Re: A critique of cgi.escape

2006-09-25 Thread Fredrik Lundh
Jon Ribbens wrote: There's nothing to say that cgi.escape should take them both into account in the one function so what exactly are you using cgi.escape for in your code ? What precisely do you think it would break? existing code, and existing tests. /F --

Re: A critique of cgi.escape

2006-09-25 Thread Max M
Fredrik Lundh skrev: Jon Ribbens wrote: By the way, if you could try and put across your proposed arguments as to why you don't favour this suggested change without the insults and general rudeness, it would be appreciated. I've already explained that, but since you're convinced that your

Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread Steven Bethard
metaperl wrote: I was shocked to see the personal insults hurled in this thread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/d0758cb9545cad4b I see that this is a Fredrik Lundh thread. I've felt the same way before, but Fredrik has been around a long time[1] and if

Re: unicode, bytes redux

2006-09-25 Thread John Roth
willie wrote: (beating a dead horse) Is it too ridiculous to suggest that it'd be nice if the unicode object were to remember the encoding of the string it was decoded from? So that it's feasible to calculate the number of bytes that make up the unicode code points. # U+270C # 11100010

Re: Newbie question: PyQt Form::init()

2006-09-25 Thread Diez B. Roggisch
Sven Ehret wrote: Diez B. Roggisch wrote: Sven Ehret wrote: Hello List, I am trying to learn Python and followed the tutorial at http://www.cs.usfca.edu/~afedosov/qttut/. Being happy that it works, I am now trying to do my own project, but I am having problems with initialization of

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article [EMAIL PROTECTED], Duncan Booth wrote: It is generally a principle of Python that new releases maintain backward compatability. An incompatible change such proposed here would probably break many tests for a large number of people. Why is the suggested change incompatible? What

Deprecation in String.joinfields()

2006-09-25 Thread Anoop
Hi All, I am getting the following error while trying to use deprecation Please help li = [a, b, mpilgrim, z, example] newname = string.joinfields (li[:-1], .) newname 'a.b.mpilgrim.z' newname = li[:-1].joinfields(.) Traceback (most recent call last): File interactive input, line 1, in ?

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article [EMAIL PROTECTED], Fredrik Lundh wrote: There's nothing to say that cgi.escape should take them both into account in the one function so what exactly are you using cgi.escape for in your code ? To escape characters so that they will be treated as character data and not control

  1   2   3   4   >