On Friday, July 9, 2010 at 9:28:35 PM UTC+5:30, crow wrote:
> Hi, everyone
>
> I'm a new hand at python.
>
> I tried to set system default encoding by using
>
> "import sys; sys.setdefaultencoding('utf-f')",
>
> but I got error message:
>
> >>> sys.setdefaultencoding('utf-8')
> Traceback (
A recent post by Terry Jan Reedy got me thinking about formatting. I
like the new(ish) format method for strings and I see some value in F
strings but it only works well with locals. Anything more starts
getting messier than format() and it is supposed to be cleaner. Also, I
find that I tend to
On 2/14/2018 7:54 AM, ast wrote:
Le 14/02/2018 à 13:46, ast a écrit :
Hello
It seems that caracter % can't be escaped
>>>"test %d %" % 7
ValueError: incomplete format
>>>"test %d \%" % 7
ValueError: incomplete format
>>>"test %d" % 7 + "%"
'test 7%' # OK
But is there a way to escape a %
Le 14/02/2018 à 13:46, ast a écrit :
Hello
It seems that caracter % can't be escaped
>>>"test %d %" % 7
ValueError: incomplete format
>>>"test %d \%" % 7
ValueError: incomplete format
>>>"test %d" % 7 + "%"
'test 7%' # OK
But is there a way to escape a % ?
thx
Found, double % to escap
Hello
It seems that caracter % can't be escaped
>>>"test %d %" % 7
ValueError: incomplete format
>>>"test %d \%" % 7
ValueError: incomplete format
>>>"test %d" % 7 + "%"
'test 7%' # OK
But is there a way to escape a % ?
thx
--
https://mail.python.org/mailman/listinfo/python-list
Mark Lawrence writes:
>> This may be the result of a misconfigured spam filter, or an actual spam
>> attack; anyway, I've now filtered news.bbs.geek.nz from my feed.
>>
> IIRC the same source for the "nospam" stuff of some months ago which I
> believe was purely accidental.
It's kinda funny, bac
Hi Ned
Le 2018-02-13 à 19:54, Ned Batchelder a écrit :
There are a number of things that are confusing about this. You
should state clearly what django-hotsauce is. You say "Django
alternative microframework." Usually people use "Django" and
"microframework" as opposites, not something y