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 ask
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"
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
[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=/
> require
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 ?",
'%' +
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
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
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 Bo
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.exec
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(
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 creat
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
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--
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 numb
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 ch
"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
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 tim
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
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 PE
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:
cu
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
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 ver
"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 thi
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
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
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 us
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('@')])"
--
htt
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
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(
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 + '%', )
>> )
>>
>> Inc
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,
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 aswel
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 recompilation
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'l
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 ce
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
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?
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
good news !
thank for links to the blog, very usefull
now I have to wait
seb
--
http://mail.python.org/mailman/listinfo/python-list
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? T
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 func
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.
--
http://mail.python.org/ma
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
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 func
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 con
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
Py
<[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.
htt
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
yo
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 hav
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 writ
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 Python
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 permis
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
[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.
--
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.
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 expl
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 coul
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
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 th
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.
>
> >
>
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.
>
> >
>
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 startin
[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 pre
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 t
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).
>
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 >1
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
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.
[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 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" -- www.nanc
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
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?
--
http://mail.python.org/mailman/listinf
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
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: u.willitfit
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
>so
[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
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, an
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 ac
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.
"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
>
>*
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 l
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
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, http://www.thomas-gu
[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. addre
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.
--
http://mail.python.org/ma
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 th
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 y
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
> #
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
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? Wha
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 "", lin
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 cont
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 to type it
> twice. That will protect against simple typos
Fredrik Lundh wrote:
> 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 n
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).
--
http://mail.python.org/mailman/listinfo/python-list
CSUIDL PROGRAMMEr wrote:
> Folks
> I am trying to read a file
> This file has a line containing string 'disable = yes'
>
> I want to change this line to 'disable = no'
>
> The concern here is that , i plan to take into account the white spaces
> also.
>
> I tried copying all file int list and t
Fredrik Lundh wrote:
> 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 inst
Jon Ribbens wrote:
> 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 a
Essentially, I'm looking for a Python equivalent to the ObjectiveC stuff that
can be found at:
http://developer.apple.com/documentation/UserExperience/Conceptual/AddressBook/index.html
Google got me that far, but was not particularly helpful past that.
Anyone have any pointers?
B.
--
http:
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 to type it
>>twice. That will protec
1 - 100 of 301 matches
Mail list logo