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 you can combine together.
Sorry for being unclear. I meant "Django-based alternative 
microframework". :-)


I plan to commercialize a Django extension for allowing pragmatic and 
high-performance WSGI programming *on top* of Django.





You say there will be a free version.  Does it already exist? Link to it.

https://www.isotopesoftware.ca/software/django-hotsauce/
https://pypi.python.org/pypi/Django-hotsauce/0.9.0


Finally, you seem to be asking experts to volunteer their time to help 
you design and test software that you will then sell.  This seems 
unrealistic at best, and exploitive or unfair at worst.


Yes. I'm really looking for serious people and/or companies to 
try/test/review django-hotsauce 1.0 commercial edition for *commercial 
purposes* in exchange of a small fee.



--Ned.


Best regards,
Etienne

--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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, back in the 90s Usenet was spammed every now and again
by various misconfigured BBS's running a Usenet gateway. Usually sending
all messages back from every group to every group. I thought BBS's are
fairly dead and Usenet is mostly gone too but apparently this downside
has made a comeback.

-- 
https://mail.python.org/mailman/listinfo/python-list


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: 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 escape it

>>>"test %d%%" % 7
'test 7%'
--
https://mail.python.org/mailman/listinfo/python-list


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 % ?

thx


Found, double % to escape it

 >>>"test %d%%" % 7
'test 7%'


Same with { and } in new format and f strings.
>>> a = 3
>>> f'{{x:{a}}}'
'{x:3}'

--
Terry Jan Reedy


--
https://mail.python.org/mailman/listinfo/python-list


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-use format strings and wish there was a
formatting string option.  Here is what I came up with.

class FSTR(str):
  def __call__(self, *args):
return self.format(*args)

And here is how it could be used.

s = FSTR("ABC {1} {0} {2[x]}")
...
print(s(1, 2, dict(x=3)))

Too bad that it is too late to assign f'' to that function.

-- 
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:da...@vex.net VoIP: sip:da...@vybenetworks.com
-- 
https://mail.python.org/mailman/listinfo/python-list


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 (most recent call last):
>   File "", line 1, in 
> AttributeError: 'module' object has no attribute 'setdefaultencoding'
> 
> Then I checked dir(sys), seems there was no function named
> "setdefaultencoding" in "sys" module. But in python's document, it
> said I should use sys.setdefaultencoding.
> 
> So, my questions: why there is no setdefaultencoding in sys module? if
> I want to change system's default encoding, what should I do?
> 
> Thanks in advance

Becuase you are using python 3.setdefaultencoding is no longer supportedin 
python 3. python3automatically have utf-8 in its configuration by default. so 
you don't have to use it. just remove the line.
-- 
https://mail.python.org/mailman/listinfo/python-list