Re: Why there is no "setdefaultencoding" in sys module?

2018-02-14 Thread rajindermohan001
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 (

What F strings should have been

2018-02-14 Thread D'Arcy Cain
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

Re: Old format with %

2018-02-14 Thread Terry Reedy
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 %

Re: Old format with %

2018-02-14 Thread ast
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

Old format with %

2018-02-14 Thread ast
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

Re: Respam levels.

2018-02-14 Thread Anssi Saari
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

Re: Django-hotsauce 1.0 commercial edition looking for beta testers!

2018-02-14 Thread Etienne Robillard
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