Re: QuoteSQL

2006-09-25 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Steve > Holden wrote: > > >>When you use the DB API correctly and paramterise your queries you still >>need to quote wildcards in search arguments, but you absolutely >>shouldn't quote the other SQL specials. >> >>That's what parameteri

Re: A critique of cgi.escape

2006-09-25 Thread Steve Holden
Jon Ribbens wrote: > In article <[EMAIL PROTECTED]>, Brian Quinlan wrote: > >>>Now you're just being ridiculous. In this thread you have been rude, >>>evasive, insulting, vague, hypocritical, and have failed to answer >>>substantive points in favour of sarcastic and erroneous sniping - I'd >>>sugg

Re: Timeline for Python?

2006-09-25 Thread wesley chun
> From: Fredrik Lundh <[EMAIL PROTECTED]> > Date: Sat, Sep 23 2006 12:03 pm > >> i cover through 2.5, but also include stuff that have >> already been slated for 2.6 and 2.7. > > and what would that be? target versions in the PEP:s are usually just > wild guesses... true, and it's obviously a *b

Re: Query regarding grep!!

2006-09-25 Thread Fredrik Lundh
bhavya sg wrote: > I saw in PEP4 of python 2.5 that grep module has gone > obsolete in perl 2.5. But I am not able to find an > alternative for that. the grep module has been deprecated for ages (it's been in the lib-old non-standard library since at least Python 2.1). The old grep module dep

Re: A critique of cgi.escape

2006-09-25 Thread Gabriel G
At Monday 25/9/2006 11:08, Jon Ribbens wrote: >> What precisely do you think it would "break"? > > existing code, and existing tests. I'm sorry, that's not good enough. How, precisely, would it break "existing code"? Can you come up with an example, or even an explanation of how it *could* brea

Query regarding grep!!

2006-09-25 Thread bhavya sg
Hi, I saw in PEP4 of python 2.5 that grep module has gone obsolete in perl 2.5. But I am not able to find an alternative for that.My doubt is "are the other forms of grep like egrep and ggrep be used instead"? cheers, Spurthi __

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Fredrik Lundh
Fredrik Lundh wrote: > the OP didn't ask for a field name => value mapping, though. footnote: but for those who want that, I strongly recommend using something like Greg Stein's dtuple module: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81252 http://www.lyra.org/greg/pytho

Re: Python CTypes translation of (pv != NULL)

2006-09-25 Thread Gabriel Genellina
At Monday 25/9/2006 21:27, [EMAIL PROTECTED] wrote: Q: The C idea of (pv != NULL) is said most directly in Python ctypes how? Perhaps reading the ctypes tutorial? (both in the 2.5 docs and in ) Gabriel Genellina Softlab SRL

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Fredrik Lundh
Lawrence D'Oliveiro wrote: > yield dict(zip(Fields, NextRow)) the OP didn't ask for a field name => value mapping, though. -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes question about call by reference

2006-09-25 Thread Gabriel Genellina
At Sunday 24/9/2006 15:49, Lawrence Oluyede wrote: > Is it at all possbile to use a struct without defining it with ctypes? If you want to use it you have to define it somewhere... If it's an "opaque" thing, totally managed by the external code, yes - treat it as a pointer. That is, if you n

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Fredrik Lundh
Dennis Lee Bieber wrote: > Your remap operation will create a dictionary using the first field > as the key, and the rest of the fields as a list identified by that > key COPY 3 the tuple-to-dictionary conversion mostly shuffles pointers around, though; it's not a full copy of all the

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

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > i dont know how i can get the words from a txt file for searching by > turn checking the "reading and writing files" section in the tutorial might be somewhat helpful: http://docs.python.org/tut/node9.html#SECTION00920 -- http://mail.python.or

Re: python gtk based file manager

2006-09-25 Thread Fabian Braennstroem
Hi, * faulkner <[EMAIL PROTECTED]> wrote: > http://www.google.com/search?q=emelfm2 > awesome file manager written in C using gtk. > i've been meaning to write something like emelfm in pygtk, but emelfm > already exists... Thanks! I found it too, but I am looking for a python version ... python se

Re: does anybody earn a living programming in python?

2006-09-25 Thread Fredrik Lundh
walterbyrd wrote: > I'm surprised. It seems I never see listings for python developers. someone just posted this > Site Perl Python > Hotjobs 2756 655 > Monster >1000 317 > Dice 4828 803 to the "talking to marketing people" thread (see th

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Pom wrote: > I want to convert a Mysql resulset to a dictionary. Here's a function that does this one row at a time: def GetEachRecord(TableName, Fields, Condition, Values, Extra = "") : """generator which does an SQL query which can return 0 or more resul

Re: Remap Mysql tuple to dictionary

2006-09-25 Thread Pom
Dennis Lee Bieber wrote: > It might be more economical to perform the conversion while fetching > the data: > > mdict = {} > for rec in crsr: > mdict[rec[0]] = rec[1:] > I didn't think of that. I just took the fetchall() from my first version (where I looped through the tuples, whi

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

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 13:51:55 +0200, Fredrik Lundh wrote: > http://www.google.com/terms_of_service.html > > "You may not send automated queries of any sort to Google's system > without express > permission in advance from Google." I'm not just being a pedantic weasel here, but what's

Re: does anybody earn a living programming in python?

2006-09-25 Thread Fredrik Lundh
walterbyrd wrote: > does anybody earn a living programming in python? of course. > If so, I doubt there are many. don't be silly. > I wonder why that is? what what is ? -- http://mail.python.org/mailman/listinfo/python-list

Logfile analysing with pyparsing

2006-09-25 Thread Andi Clemens
Hi, we had some problems in the last weeks with our mailserver. Some messages were not delivered and we wanted to know why. But looking through the logfile is a time consuming process. So I wanted to write a parser to analyse the logs and parse them as XML. But I have never written a parser befor

Re: Python extensions on Win32

2006-09-25 Thread Martin v. Löwis
Cliff Wells schrieb: > 1) Is VC++ 2005 compatible with VC++ 2003? No. If you know very well how the extension module is written, and what precisely the incompatibilities are, you may get away with linking to msvcr8.dll, anyway. > If not, how can someone > acquire VC++ 2003 (aside from thepirate

Re: does anybody earn a living programming in python?

2006-09-25 Thread Aahz
In article <[EMAIL PROTECTED]>, walterbyrd <[EMAIL PROTECTED]> wrote: > >If so, I doubt there are many. >I wonder why that is? Once upon a time, I was a Perl programmer. Then my job forced me to learn Python. Once I got hooked, I never looked back. I've had two different jobs as a full-time Py

Re: License / Registration key enabled software

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 22:54:58 +1200, Lawrence D'Oliveiro wrote: > 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? Ca

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

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 16:11:38 +0200, Christophe wrote: > Steven D'Aprano a écrit : >> By memory, in an thread about the same topic just a few days ago, Fredrik >> Lundh posted a link to Perl's FAQs that suggests a method for "validating" >> email addresses: treat it like a password and ask the user

Re: A critique of cgi.escape

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 16:48:03 +0200, Max M wrote: > Any change in Python that has these consequences will rightfully be > considered a bug. So what you are suggesting is to knowingly introduce a > bug in the standard library! It isn't like there have never been backwards _in_compatible changes

Re: Iterating by both element and index?...

2006-09-25 Thread Robert Kern
[EMAIL PROTECTED] wrote: > I'd like to iterate over a sequence by both element > and index, something like > > for (element, index) in somefun(sequence): > ... for index, element in enumerate(sequence): ... -- Robert Kern "I have come to believe that the whole world is an enigma, a ha

Iterating by both element and index?...

2006-09-25 Thread kenneth . m . mcdonald
I'd like to iterate over a sequence by both element and index, something like for (element, index) in somefun(sequence): ... Obviously this is easy enough to code, but I seem to remember that such a function was added to standard Python at some point, but I just can't dig up a reference to it

Re: IDLE - Customizing output format

2006-09-25 Thread Gabriel Genellina
At Sunday 24/9/2006 18:55, Robert Kern wrote: Anyways, against my better judgement, I will tell you that you can customize the output by replacing sys.displayhook with your own function: http://www.python.org/doc/current/lib/module-sys.html >>> import sys >>> def f(obj): print '

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Fredrik Lundh wrote: > 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 h

Python extensions on Win32

2006-09-25 Thread Cliff Wells
For various sundry reasons, I find myself needing to deliver a Windows-based Python app. I also chose Python 2.5 for this platform. The app has several requirements, all of which are available for Python 2.5/Win32 except one: pycurl. So I decided to try building the source but as it turns out, b

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Fredrik Lundh wrote: > In article <[EMAIL PROTECTED]>, Georg Brandl wrote: >>> I'm sorry, that's not good enough. How, precisely, would it break >>> "existing code"? Can you come up with an example, or even an >>> explanation of how it could break existing code? >>

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Max M wrote: > Jon Ribbens skrev: >> 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 ? >> >

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Fredrik Lundh wrote: > Max M wrote: > >> It also makes the escaped html harder to read for standard cases. > > and slows things down a bit. > > (cgi.escape(s, True) is slower than cgi.escape(s), for reasons that are > obvious for anyone who's looked at the code)

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Max M wrote: > Lawrence is right that the escape method doesn't work the way he expects > it to. > > Rewriting a library module simply because a developer is surprised is a > *very* bad idea. I'm not surprised. Disappointed, yes. Verging on disgust at some comment

Re: A critique of cgi.escape

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Duncan Booth wrote: > If I have a unicode string such as: u'\u201d' (right double quote), then I > want that encoded in my html as '”' (or ” but the numeric form > is better). Right-double-quote is not an HTML special, so there's no need to quote it. I'm only conce

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Jon Ribbens wrote: > In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro wrote: >> You're proposing two separate functions: >> >> 1) quoting of non-wildcard specials >> 2) quoting of wildcard specials > > Lawrence, you're wrong... Did I misunderstand what

Re: shlex.split != shlex.shlex get_token til eof

2006-09-25 Thread p . lavarre
> I see shlex.split gives me what I want ... > shlex.shlex surprisingly gives me something else ... > I can get closer ... by hacking ... > .wordchars += ".+-" Kindly offline I was told, Try patching .whitespace_split = True instead. Compare: shlex.split("//./PhysicalDrive9 //./Cdrom9 //./Tape9

Re: does anybody earn a living programming in python?

2006-09-25 Thread skip
walter> It just doesn't seem like there is much demand for professional walter> python developers. Keep an eye on this page: http://www.python.org/community/jobs/ and if you're so inclined, subscribe to the RSS feed of that page. I think Peter Kropf is processing 3-5 new postings p

Re: does anybody earn a living programming in python?

2006-09-25 Thread skip
walter> If so, I doubt there are many. You're kidding, right? Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-25 Thread Dustan
walterbyrd wrote: > > > > Well I do. So do the other dozen or so developers at my company. We're > > looking > > to hire a few more, in fact. > > > > I'm surprised. It seems I never see listings for python developers. > > I didn't mean any disrespect. I think python is a great language. It > just

Re: does anybody earn a living programming in python?

2006-09-25 Thread walterbyrd
> > Well I do. So do the other dozen or so developers at my company. We're looking > to hire a few more, in fact. > I'm surprised. It seems I never see listings for python developers. I didn't mean any disrespect. I think python is a great language. It just doesn't seem like there is much demand

Mail Delivery System

2006-09-25 Thread ruth hill
Mail transaction failed. Partial message is available. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __

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

2006-09-25 Thread altemurbugra
And also writing the result as a html or xml file -- http://mail.python.org/mailman/listinfo/python-list

Re: Talking to marketing people about Python

2006-09-25 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "codefire" <[EMAIL PROTECTED]> wrote: > Might be handy to point out that the Python version will be easier (and > therefore cheaper) to maintain compared to the Perl version. As someone > said there are numerous success stories at python.org. > > You could also po

Re: accepts decorator

2006-09-25 Thread urielka
i think i got what the * and ** mean. *args mean arguments that are assigned by position(that is why *arg is a tuple) **kwds mean arguments that are assigned using equals a=2,b=3 (that is why **kwds i a dict) but why self is in *args and other thing goes to **kwds? even if not assigned using equals

Re: does anybody earn a living programming in python?

2006-09-25 Thread Heikki Toivonen
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Software Development Magazine (maybe? been a while since I read the article) interviews lots of programmers yearly, asking - among other things - what programming languages they use. The article mentioned that Python's

Re: does anybody earn a living programming in python?

2006-09-25 Thread faulkner
where do you find these "contract jobs", if you don't mind my asking? Christian wrote: > walterbyrd wrote: > > If so, I doubt there are many. > > > > I wonder why that is? > > Previously I used Python while earning a living working in IT at a > college. Currently it is putting food on the table v

Re: Timeline for Python?

2006-09-25 Thread Blair P. Houghton
Aahz wrote: > You did see my advice, seconded by Wes, that any book should cover the > version differences? How is that sufficiently inadequate that new books > should specifically target older versions? I think it's a good idea, but I also think that it may cause authors to rely on the old docu

Re: does anybody earn a living programming in python?

2006-09-25 Thread Christian
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Previously I used Python while earning a living working in IT at a college. Currently it is putting food on the table via contract jobs. I imagine there are "many" out there like me, doing just that. Christian http://ww

Re: does anybody earn a living programming in python?

2006-09-25 Thread faulkner
both my last summer jobs consisted entirely of python, and the jobs i'm looking at for next summer all involve python. and one of my profs makes a living teaching python. and the office i worked for 2 summers ago was 5 old guys who did nothing but python and stock trade analysis all day. if i'm luc

Python CTypes translation of (pv != NULL)

2006-09-25 Thread p . lavarre
Q: The C idea of (pv != NULL) is said most directly in Python ctypes how? A: We are of course supposed to write something like: def c_not_null(pv): return (ctypes.cast(pv, ctypes.c_void_p).value != None) Yes? Working from the doc, me the clueless newbie, I was slow to gu

Re: Printing a percent sign

2006-09-25 Thread John Machin
[EMAIL PROTECTED] wrote: > Thanks -- a percent escapes itself when using %-formatting. > > Stephen > > [EMAIL PROTECTED] wrote: > > Hi all. How do I escape the "%" sign in a print statement so that it > > prints? Thanks. > > The following methods of getting answers to problems can be handy if it'

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

2006-09-25 Thread altemurbugra
For example i give you an example about making search on one of the site and get the result. # #!/usr/bin/python # # -*- coding: windows-1254; -*- # # import urllib # dictionary = {}# wow, it's actually a dictionary # words = ['apple', 'banana', 'cheese'] # for word in words: # dictionary[

Re: does anybody earn a living programming in python?

2006-09-25 Thread Fuzzyman
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? I earn a living programming with IronPython - at http://www.resolversystems.com A very cool place to work. :-) Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python

Re: QuoteSQL

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro wrote: > You're proposing two separate functions: > > 1) quoting of non-wildcard specials > 2) quoting of wildcard specials Lawrence, you're wrong in this thread for the same reason you were right in the cgi.escape thread. Escaping gener

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

2006-09-25 Thread altemurbugra
Thank you very much for your explications. I dont mean a search engine. for example a dictionary site for searching words. -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-25 Thread Max M
walterbyrd skrev: > If so, I doubt there are many. > > I wonder why that is? Because you are ignorant? -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-25 Thread Neil Hodgson
For the last 5 years most of my jobs have been Python based. At two of those places Python has been the main but not only language used. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-25 Thread Jon Ribbens
In article <[EMAIL PROTECTED]>, Georg Brandl wrote: >> Here's a point for you - the documentation for cgi.escape says that >> the characters "&", "<" and ">" are converted, but not what they are >> converted to. > > It says "to HTML-safe sequences". That's reasonably clear without the need > to re

Re: does anybody earn a living programming in python?

2006-09-25 Thread Felipe Almeida Lessa
2006/9/25, Robert Kern <[EMAIL PROTECTED]>: > walterbyrd wrote: > > If so, I doubt there are many. > > > > I wonder why that is? > > Well I do. So do the other dozen or so developers at my company. We're looking > to hire a few more, in fact. And there are also those ReportLab guys: www.reportlab

Re: does anybody earn a living programming in python?

2006-09-25 Thread Robert Kern
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Well I do. So do the other dozen or so developers at my company. We're looking to hire a few more, in fact. http://www.enthought.com/careers.htm -- Robert Kern "I have come to believe that the whole world is an

Re: does anybody earn a living programming in python?

2006-09-25 Thread Paul Rubin
"walterbyrd" <[EMAIL PROTECTED]> writes: > If so, I doubt there are many. > I wonder why that is? Python programmers get their code working so fast that management has to find other things for them to do to fill their time. So they're not really making a living programming in Python. -- http://

Re: does anybody earn a living programming in python?

2006-09-25 Thread James Stroud
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? > If you know German, there was just a job posting on this list for a python programmer. That would be at least one person. James -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angele

RE: does anybody earn a living programming in python?

2006-09-25 Thread Delaney, Timothy (Tim)
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Well, I'm not qualified to analyse the reasons for your doubts, but I'd guess it's because you have preconceived notions. Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steve Holden wrote: > When you use the DB API correctly and paramterise your queries you still > need to quote wildcards in search arguments, but you absolutely > shouldn't quote the other SQL specials. > > That's what parameterised queries are for on the first pla

does anybody earn a living programming in python?

2006-09-25 Thread walterbyrd
If so, I doubt there are many. I wonder why that is? -- http://mail.python.org/mailman/listinfo/python-list

Re: QuoteSQL

2006-09-25 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Sybren Stuvel wrote: > Lawrence D'Oliveiro enlightened us with: >>> An escaping function should be small and not do all kinds of >>> escaping for different situations at once. >> >> Even when the two situations are related? > > Yup, even then. Different situations

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

2006-09-25 Thread Adam Jones
[EMAIL PROTECTED] wrote: > I dont mean only google, also other sites aswell Google expressly forbids doing any form of automated search outside of their api. If you want to write a script that will run Google searches, you have to use the api to do so. As far as I know most of the other search si

Re: Problems with Python 2.5 installer.

2006-09-25 Thread John Machin
paw wrote: > 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. What do you mean by "install to C: Pyt

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

2006-09-25 Thread altemurbugra
I dont mean only google, also other sites aswell -- http://mail.python.org/mailman/listinfo/python-list

accepts decorator

2006-09-25 Thread urielka
i want to make a decorator that make a function accept only types,if the types are wrong but the number of types is equal to arguments try to convert them to the type. for example: @Accept(int,int) def Sum(a,b): return a+b print Sum("2",2.0) this should print 4,coz the decorator sees that t

Re: Need compile python code

2006-09-25 Thread mistral
Piet van Oostrum писал(а): > > "MonkeeSage" <[EMAIL PROTECTED]> (M) wrote: > > >M> mistral wrote: > >>> No, something is wrong there. what I need is just compile one python > >>> file which will generate html page, with parameters: > >>> "exec" "python" "-O" "$0" "$@" > >>> > >>> just need si

Re: python gtk based file manager

2006-09-25 Thread faulkner
http://www.google.com/search?q=emelfm2 awesome file manager written in C using gtk. i've been meaning to write something like emelfm in pygtk, but emelfm already exists... Fabian Braennstroem wrote: > Hi, > > I am looking for a file manager based on pygtk. It seems > that there does not exist any!

Re: ruby %w equivalent

2006-09-25 Thread hg
MonkeeSage wrote: > hg wrote: >> But today ? what is the cost of replacing %w("blah blah") by >> Hi_I_Want_To_Split_The_String_That_Follows( "blah blah") > > How about r'blah', u'blah', """blah""", and '''blah'''. :) > > Regards, > Jordan > Some truth to that ! -- http://mail.python.org/mailm

Re: installation of python-dev

2006-09-25 Thread Martin v. Löwis
Diez B. Roggisch schrieb: > I guess it is some linuxish system, as he talks about dev-packages. > Unfortunately, quite a few distros (debian based ones and Suse to my > knowledge) in fact remove distutils from the core and make it available as > extra devel package. For whatever reason... I guess

Re: ruby %w equivalent

2006-09-25 Thread Wildemar Wildenburger
MonkeeSage wrote: > hg wrote: >> But today ? what is the cost of replacing %w("blah blah") by >> Hi_I_Want_To_Split_The_String_That_Follows( "blah blah") > > How about r'blah', u'blah', """blah""", and '''blah'''. :) C'mon, the last two really don't count. wildemar -- http://mail.python.org/mai

Re: python interpreter on solaris 10

2006-09-25 Thread MrJean1
FWIIW, On my stock Ultra 20 / Solaris 10 / Opteron box, python, idle, etc. just run fine provided /usr/sfw/bin is in your PATH environment variable. That is Python 2.3.3, however. In addition, I installed the Python 2.4.3 build for Solaris from ActiveState and python, idle, etc. run without any

Re: Problems with Python 2.5 installer.

2006-09-25 Thread Martin v. Löwis
paw schrieb: > Google turned up nothing useful that I could find, is anyone else > seeing this problem? I haven't heard of it before. Please run the file with msiexec /i python-2.5.msi /l*v python.log and post the resulting python.log in a bug report at sf.net/projects/python. Regards, Martin -

Re: Advice for a novice on making ambitious cross-platform GUI app

2006-09-25 Thread Wildemar Wildenburger
Chelonian wrote: > Project: ambitious GUI program for Win/Mac/Linux. Target user: > average person. App to look elegant, and be intuitive, responsive, > exectuable, have its own icon, etc. Needs to store user info in large > database for the long term, run in the background and pop up at > assi

Re: ruby %w equivalent

2006-09-25 Thread MonkeeSage
hg wrote: > But today ? what is the cost of replacing %w("blah blah") by > Hi_I_Want_To_Split_The_String_That_Follows( "blah blah") How about r'blah', u'blah', """blah""", and '''blah'''. :) Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.5 updates for syntax file

2006-09-25 Thread John Salerno
Andrea wrote: >> Hi everyone. I'm updating my UltraEdit syntax file for Python 2.5 and >> was wondering if anyone knew of other additions to make besides these. I >> found all of these in the What's New document, but wasn't sure if there >> were other important things to add for highlight. > > Gre

Re: Need compile python code

2006-09-25 Thread Piet van Oostrum
> "MonkeeSage" <[EMAIL PROTECTED]> (M) wrote: >M> mistral wrote: >>> No, something is wrong there. what I need is just compile one python >>> file which will generate html page, with parameters: >>> "exec" "python" "-O" "$0" "$@" >>> >>> just need simple way do this(script is correct), i will

Re: Printing a percent sign

2006-09-25 Thread stephen
Thanks -- a percent escapes itself when using %-formatting. Stephen [EMAIL PROTECTED] wrote: > Hi all. How do I escape the "%" sign in a print statement so that it > prints? Thanks. > > Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing a percent sign

2006-09-25 Thread Rob Williscroft
Rob Williscroft wrote in news:Xns9849DC7DB4102rtwfreenetREMOVEcouk@ 216.196.109.145 in comp.lang.python: > wrote in news:[EMAIL PROTECTED] in > comp.lang.python: > >> Hi all. How do I escape the "%" sign in a print statement so that it >> prints? Thanks. >> > > print "%%" > Ok, confused by

Re: Printing a percent sign

2006-09-25 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > Hi all. How do I escape the "%" sign in a print statement so that it > prints? Thanks. >>> print "%" % Did you mean in a string being interpolated with the % operator? Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing a percent sign

2006-09-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Hi all. How do I escape the "%" sign in a print statement so that it > prints? Thanks. print doesn't do anything with percent signs: >>> print "%" % if you're doing string formatting using the "string % tuple" operator, use two percent signs to get a percent sign in

Re: 2.5 updates for syntax file

2006-09-25 Thread Andrea
> Hi everyone. I'm updating my UltraEdit syntax file for Python 2.5 and > was wondering if anyone knew of other additions to make besides these. I > found all of these in the What's New document, but wasn't sure if there > were other important things to add for highlight. Great :) - Two new built

Re: SSL meta data

2006-09-25 Thread BerndWill
Thanks Jan. I will try pycurl then. Regards Bernd "Jan Dries" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Paul Rubin wrote: >> "BerndWill" <[EMAIL PROTECTED]> writes: >>> I would love to read programmatically some information out of the >>> certificates itself (who signe

Re: R.S.I. solutions?

2006-09-25 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Diez> I bought a TouchStream keyboard and could recommend it - but > Diez> unfortunately they are out of business. > > Is this what you're referring to? > > http://www.fingerworks.com/ST_product.html Yup. Diez -- http://mail.python.org/mailman/listinfo/

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

Re: Printing a percent sign

2006-09-25 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: > Hi all. How do I escape the "%" sign in a print statement so that it > prints? Thanks. > print "%%" Rob. -- http://www.victim-prime.dsl.pipex.com/ -- http://mail.python.org/mailman/listinfo/python-list

Printing a percent sign

2006-09-25 Thread stephen
Hi all. How do I escape the "%" sign in a print statement so that it prints? Thanks. Stephen -- http://mail.python.org/mailman/listinfo/python-list

Re: ruby %w equivalent

2006-09-25 Thread Georg Brandl
Thorsten Kampe wrote: > * John Machin (24 Sep 2006 15:32:20 -0700) >>Antoine De Groote wrote: >>> is there a python equivalent for the ruby %w operator? >>> %w{a b c} creates an array with strings "a", "b", and "c" in ruby... >>> >> >>| >>> "a b c".split() >>| ['a', 'b', 'c'] >> >>... appears to ma

Re: R.S.I. solutions?

2006-09-25 Thread Sybren Stuvel
Paddy enlightened us with: > All this keyboarding has finally caught up with me and I'm getting > aches in my fingers. Use more force with your fingers, and take regular typing breaks. Often RSI is caused by subtle movements without applying a lot of force. Another good way to beat RSI is to lea

Re: R.S.I. solutions?

2006-09-25 Thread skip
Diez> I bought a TouchStream keyboard and could recommend it - but Diez> unfortunately they are out of business. Is this what you're referring to? http://www.fingerworks.com/ST_product.html Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: ruby %w equivalent

2006-09-25 Thread hg
hg wrote: > MonkeeSage wrote: >> hg wrote: >>> Why would they want to make such an obscure API ? ... didn't they have >>> Python to learn from (I am truly amazed - nothing cynical ...just ... >>> why ?) >> In ruby there are several special literal notations, just like python. >> In ruby it goes

Re: ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread Brian Beck
km wrote: > and how different is MIT licence to GPL ? > could u elaborate on that ? > regards, > KM The GPL license is a copyleft license, meaning: "The GPL does not give the licensee unlimited redistribution rights. The right to redistribute is granted only if the licensee includes the source cod

Re: ruby %w equivalent

2006-09-25 Thread Thorsten Kampe
* John Machin (24 Sep 2006 15:32:20 -0700) >Antoine De Groote wrote: >> is there a python equivalent for the ruby %w operator? >> %w{a b c} creates an array with strings "a", "b", and "c" in ruby... >> > >| >>> "a b c".split() >| ['a', 'b', 'c'] > >... appears to match your single example. Somethi

Re: ruby %w equivalent

2006-09-25 Thread hg
MonkeeSage wrote: > hg wrote: >> Why would they want to make such an obscure API ? ... didn't they have >> Python to learn from (I am truly amazed - nothing cynical ...just ... >> why ?) > > In ruby there are several special literal notations, just like python. > In ruby it goes like this: >

Re: ANN: dmath 0.9 - Math routines for the Decimal type

2006-09-25 Thread Fredrik Lundh
km wrote: > and how different is MIT licence to GPL ? wikipedia has the answer: http://en.wikipedia.org/wiki/BSD_and_GPL_licensing (that article talks about BSD instead of MIT, but those two license are pretty much the same). > could u elaborate on that ? who's u ? -- http://mail.p

Re: R.S.I. solutions?

2006-09-25 Thread skip
> "Paddy" == Paddy <[EMAIL PROTECTED]> writes: Paddy> All this keyboarding has finally caught up with me and I'm Paddy> getting aches in my fingers. ... Paddy> I was wondering if any Pythonistas had been through this and Paddy> found something that worked for them? There a

  1   2   3   4   >