nks.
Andriy Kornatskyy
On Mar 17, 2014, at 3:06 PM, Frank Millman wrote:
> Hi all
>
> I know I *should* be using a Source Control Management system, but at
> present I am not. I tried to set up Mercurial a couple of years ago, but I
> think I set it up wrongly, as I got myself con
Eras,
You have to override getSubject method of SMTPHandler.
http://hg.python.org/cpython/file/677327810121/Lib/logging/handlers.py#l907
Thanks.
Andriy Kornatskyy
On Mar 12, 2014, at 12:08 PM, eras.rasmu...@gmail.com wrote:
> Hi
>
> I use logging.handlers.SMTPHandler and i have
I used to do core python development using debian linux (gnome). All way long
work just fine. However recently I have had a chance to try MacOS X 10.8 and
later 10.9. I used macports.org to setup everything I found “missing”.
Vim works fine regardless the platform… quite happy.
Thanks.
Andriy
Chris,
Your comments are very valuable. I didn’t find any free mailman lists, so it
appears google groups is the only option.
Thanks.
Andriy Kornatskyy
On Feb 23, 2014, at 12:30 AM, Chris Angelico wrote:
> On Sun, Feb 23, 2014 at 8:48 AM, wrote:
>> Let's open a group for W
me directly. I will be happy to answer in either case.
Thanks.
Andriy Kornatskyy
On Feb 22, 2014, at 11:48 PM, milos2...@gmail.com wrote:
> Let's open a group for Wheezy.web. I'm just wondering which forum site to
> choose? Any suggestions?
> --
> https://mail.pytho
list or
personally.
Thanks.
Andriy Kornatskyy
On Feb 19, 2014, at 1:48 AM, Marcio Andrey Oliveira wrote:
> Hi.
>
> I stumbled upon Wheezy.web and I got interested into learn more about it.
>
> After googling I didn't find that many information about it: only docs and
&g
Sam,
How about this?
from uuid import getnode as get_mac
'%012x' % get_mac()
Thanks.
Andriy Kornatskyy
On Jan 11, 2014, at 4:26 PM, Sam wrote:
> I would like to use python to retrieve the mac address of the ethernet port.
> Can this be done? Thank you.
> --
> h
your data. Both
are not directly addressed by version control itself, thus a sort of security
facade is necessary. Read more here:
http://mindref.blogspot.com/2013/10/how-to-manage-git-or-mercurial.html
Thanks.
Andriy Kornatskyy
--
https://mail.python.org
A memory consumption by python web frameworks is relatively low. A `typical`
web site developed using wheezy.web (a lightweight full-featured web framework)
consumes about 14-23 Mb per worker on x86 platform. The django is not far from
there.
A minimal django hello world application hosted in u
$ python3.2
Python 3.2.3 (default, Jun 25 2012, 22:55:05)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from timeit import repeat
>>> repeat("s=s[:-1]+'\u0034'","s='asdf'*1",number=1)
[0.2566258907318115, 0.14485502243041992, 0.14464998245
> existing servers because we want to do things exactly as we wish.
>
> Rgds,
>
> Jake
>
> On Fri, Mar 1, 2013 at 8:55 PM, Andriy Kornatskyy
> mailto:andriy.kornats...@live.com>> wrote:
>
> The following benchmarks are related to:
>
> a
://mindref.blogspot.com/2012/10/python-web-caching-benchmark.html
b) template engines
http://mindref.blogspot.com/2012/10/python-templates-benchmark.html
http://mindref.blogspot.com/2012/07/python-fastest-template.html
With source code:
https://bitbucket.org/akorn/helloworld
Thanks.
Andriy Kornatskyy
I would advise try answer the question: what is my goal?
Don't be surprised that not everyone become a programmer... many people fail
and get back to market thinking it was waste of time.
Thanks.
Andriy Kornatskyy
> Date: Wed, 27 Feb 2013
sses = 0.024002
This machine benchmarks at 2.08316e+06 pystones/second
Thanks.
Andriy Kornatskyy
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Nuitka now supports Python 3.2
> Date: Tue, 26 Feb 2013 12:18:56 +
> To: python-list@py
functions or ORM. Here are some thoughts why you might prefer SQL functions
over ORM in your next project:
http://mindref.blogspot.com/2013/02/sql-vs-orm.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
--
http://mail.python.org
Per community request I have added tenjin to the templates benchmark and
updated with latest version of other template engines.
Just in case here is a link:
http://mindref.blogspot.com/2012/10/python-templates-benchmark.html
Thanks.
Andriy Kornatskyy
There is sometimes a need to ship python egg distribution with pyo files only.
There is confusion using bdist_egg command since it doesn't have any options to
do that; you can read more about solution here:
http://mindref.blogspot.com/2012/11/python-egg-pyo.html
Thanks.
Andriy Korna
Kornatskyy
> To: python-list@python.org
> From: richard_hubb...@lavabit.com
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Wed, 21 Nov 2012 09:49:39 -0800
>
> On Tue, 20 Nov 2012 20:41:42 +0300
> Andriy Kornatskyy wrote:
>
: Re: Web Frameworks Excessive Complexity
> Date: Wed, 21 Nov 2012 12:26:26 +
>
> On 21/11/2012 12:17, Andriy Kornatskyy wrote:
> >
> > Agreed. I think we have pretty much the same point of view on this.
> >
> > All these metrics advise you... this is again depen
analysis give
you an initial picture, how it fits with your own vision, etc. Convince or
accept?
Andriy Kornatskyy
> To: python-list@python.org
> From: robert.k...@gmail.com
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Wed, 21 Nov 2
I believe for the quality of code you produce.
Thanks.
Andriy
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Wed, 21 Nov 2012 11:43:10 +
> To: python-list@python.org
>
> On Wed, 21 Nov 2012 22
.
Thanks.
Andriy
> Date: Wed, 21 Nov 2012 22:21:23 +1100
> Subject: Re: Web Frameworks Excessive Complexity
> From: ros...@gmail.com
> To: python-list@python.org
>
> On Wed, Nov 21, 2012 at 10:09 PM, Andriy Kornatskyy
> wrote:
>
We choose Python for its readability. This is essential principal of language
and thousands around reading the open source code. Things like PEP8, CC, LoC
are all to serve you one purpose: bring your attention, teach you make your
code better.
Thanks.
Andriy
.
Thanks.
Andriy
> To: python-list@python.org
> From: robert.k...@gmail.com
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Tue, 20 Nov 2012 20:33:46 +
>
> On 20/11/2012 20:22, Andriy Kornatskyy wrote:
> >
> >
> To: python-list@python.org
> From: robert.k...@gmail.com
> Subject: Re: Web Frameworks Excessive Complexity
> Date: Tue, 20 Nov 2012 20:07:54 +
>
> On 20/11/2012 19:46, Andriy Kornatskyy wrote:
> >
> > Robert,
> >
coverage with unit tests) thus
have certain degree of interest to both: end users and framework developers.
Thanks.
Andriy Kornatskyy
> To: python-list@python.org
> From: robert.k...@gmail.com
> Subject: Re: Web Frameworks Excessive Complexity
&g
frameworks
examined: bottle, cherrypy, circuits,
django, flask, pyramid, pysi, tornado, turbogears, web.py, web2py and
wheezy.web.
You can read more here:
http://mindref.blogspot.com/2012/11/python-web-excessive-complexity.html
Thanks.
Comments or suggestions are welcome.
Andriy Kornatskyy
Web Routing Benchmark has been updated with latest version of various web
frameworks.
http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html
Note, wheezy.web seo routing benchmark has been improved by approximately 40%.
Thanks.
Andriy Kornatskyy
I believe it is not valid relate a lazy attribute as something `cached` since
it cause confusion (e.g. delete of attribute cause cached item to be
re-evaluated...), `cached` and `lazy` have completely different semantic
meaning... however might overlap, as we see.
Andriy
: Lazy Attribute
> Date: Fri, 16 Nov 2012 05:12:11 -0500
> To: python-list@python.org
>
> On 11/16/2012 04:32 AM, Rouslan Korneychuk wrote:
> > On 11/16/2012 02:49 AM, Andriy Kornatskyy wrote:
> >>> If accessing the descriptor on the class object has no special
> >&g
n Fri, 16 Nov 2012 10:49:07 +0300, Andriy Kornatskyy wrote:
>
> > Ian,
> >
> > Thank you for the comments.
> >
> >> The name "attribute" is not very descriptive. Why not "lazy_attribute"
> >> instead?
> >
> > It just
from wheezy.core.descriptors import attribute as lazy
@lazy
def display_name...
Thanks.
Andriy Kornatskyy
> Date: Fri, 16 Nov 2012 09:56:41 +0200
> From: s...@mweb.co.za
> To: python-list@python.org
> Subject: Re: Lazy Attribute
>
>
Ian,
Thank you for mentioning about this research, really appreciate that.
Thanks.
Andriy Kornatskyy
> From: ian.g.ke...@gmail.com
> Date: Thu, 15 Nov 2012 15:46:19 -0700
> Subject: Re: Lazy Attribute
> To: python-list@python.org
>
&
(it is not None, being applied to an object). Thus it behaves as designed.
Thanks.
Andriy Kornatskyy
> From: ian.g.ke...@gmail.com
> Date: Thu, 15 Nov 2012 15:24:40 -0700
> Subject: Re: Lazy Attribute
> To: python-list@python.org
>
>
A lazy attribute is an attribute that is calculated on demand and only once.
The post below shows how you can use lazy attribute in your Python class:
http://mindref.blogspot.com/2012/11/python-lazy-attribute.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
duck(Foo).match(IFoo, )
duck(Foo).like(IFoo, )
Hm... function name in most cases is read as verb... this may cause confusion:
duck => synonyms => immerse, dip
Thanks.
Andriy Kornatskyy
> From: ramit.pra...@jpmorgan.com
> To: andriy.kornats
potentially I will use some
`features` that are not in IFoo, thus that breaks my code switching to Foo2
later.
That might not apply for 100% usability cases, just wanted to point that out as
reasonable thing.
Thanks.
Andriy Kornatskyy
> Date: Sat, 10
1. In looks-like we check features of Foo (that may be superset) of what IFoo
offers.
assert looks(Foo).like(IFoo)
2. We can check if Foo is limited to IFoo only:
assert looks(IFoo).like(Foo)
So it valid to have both asserts.
Thanks.
Andriy Kornatskyy
ore function `foo` and arguments passed to `bar`, than probably
it like IFoo.
I think #1 is easier to understand once it is written. Thoughts?
Also construction looks(Foo).like(IFoo) points direction of check. It you need
the two be replaceable you need two asserts:
assert looks(
oo, notice=['__len__']).like(IFoo)
I believe if IFoo.foo is decorated as property, it must remain property,
otherwise you need exclude it from checks, thus this way you pay code reviewer
attention to that.
Thanks.
Andriy Kornatskyy
> From: ian.g
assert duck typing between two Python
classes:
http://mindref.blogspot.com/2012/11/python-duck-typing-assert.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
--
http://mail.python.org/mailman/listinfo/python-list
assert duck typing between two Python
classes:
mindref.blogspot.com/2012/11/python-duck-typing-assert.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
--
http://mail.python.org/mailman/listinfo/python-list
Tim,
Good point. b32decode seems to be capable to understand such common mistakes
(see map01 argument to b32decode), I haven't tried:
http://docs.python.org/2/library/base64.html
Thanks.
Andriy
> Date: Sat, 3 Nov 2012 10:34:26 -0500
> From: python.l..
> From: r...@panix.com
> Subject: Re: How to generate account number?
> Date: Sat, 3 Nov 2012 09:22:55 -0400
> To: python-list@python.org
>
> In article ,
> Andriy Kornatskyy wrote:
>
> > 'Z05738521581'
> >
Steven, see below, please.
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: How to generate account number?
> Date: Fri, 2 Nov 2012 22:39:31 +
> To: python-list@python.org
>
> On Sat, 03 Nov 2012 00:13:19 +0300, Andri
#x27;Z17888279480'
>>> account_number(3)
'Z07395350007'
Short, human readable and satisfy original requirements.
Andriy
> From: ganggre...@example.com
> Subject: Re: How to generate account number?
> Date: Fri, 2 Nov 201
n.org
>
> Hello Andriy
>
> Thanks for your work!
>
> I will try it!
> Jose
>
>
> On Fri, Nov 2, 2012 at 3:13 PM, Andriy Kornatskyy
> mailto:andriy.kornats...@live.com>> wrote:
>
> Requirements for `account number` generator:
>
> 1. Issue pseudo random
ious python web frameworks (bottle, django, flask, pyramid, web.py,
> wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find
> it interesting:
>
> http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html
>
> Comments or suggestions are welc
Alex,
You can read wheezy.web introduction here:
http://mindref.blogspot.com/2012/10/wheezy-web-introduction.html
Thanks.
Andriy Kornatskyy
> Date: Mon, 15 Oct 2012 18:26:16 -0700
> Subject: Re: Fastest web framework
> From: wuwe...@gmail
:
http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
> From: andriy.kornats...@live.com
> To: python-list@python.org
> Subject: Fastest web framework
> Date: Sun,
gines (jinja2, mako, tenjin, tornado and
> > > wheezy.template) run on cpython2.7 and pypy1.9.. you might find it
> > > interesting:
> > >
> > > http://mindref.blogspot.com/2012/07/python-fastest-template.html
> > >
> > > Comments or suggestions are welcome.
> > >
> > > Thanks.
> > >
> > > Andriy Kornatskyy
> > > --
> > > http://mail.python.org/mailman/listinfo/python-list
> >
>
> --
> http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
n cpython2.7 and pypy1.9.. you might find it
> > interesting:
> >
> > http://mindref.blogspot.com/2012/07/python-fastest-template.html
> >
> > Comments or suggestions are welcome.
> >
> > Thanks.
> >
> > Andriy Kornatskyy
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list
to be inconsistent. The report makes excuse for
the following:
E501 line too long (> 79 characters)
E231 missing whitespace after ',:'
W291 trailing whitespace
W293 blank line contains whitespace
Comments or suggestions are welcome.
Thanks.
Andr
Demian,
Thank you, see below.
> I think that my first batch of questions were slightly out of context,
> mostly due to a lack of caffeine first thing in the morning. My
> understanding at the time was that your "an answer to effectivity" was,
> in fact, a list of highlights for wheezy.web (which
;s just wrong. You
> simply *cannot* have a database driven application run at the exact
> same performance as a "hello world" app.
For you, personally, let me point this again. N.P.
Here is how: use content caching with cache dependency. Read more:
http://packages.python.org/wheezy.http/userguide.html#content-cache
Thanks.
Andriy Kornatskyy
--
http://mail.python.org/mailman/listinfo/python-list
g/wheezy.web/tutorial.html
All web frameworks are good, some better. It is important what you see as an
advantage...
Thanks.
Andriy Kornatskyy
> Date: Mon, 15 Oct 2012 18:26:16 -0700
> Subject: Re: Fastest web framework
> From: wuwe...@gmail.com
&g
es are pointing to the same handler).
>
> http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html
>
> Benchmark is executed in isolated environment using CPython 2.7.
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatskyy
>
> > From: andriy.
here:
https://bitbucket.org/akorn/helloworld/src/tip/03-urls
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
> From: andriy.kornats...@live.com
> To: python-list@python.org
> Subject: Fastest web framework
> Date: Sun, 23 Sep 2
e pointing to
the same handler).
http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html
Benchmark is executed in isolated environment using CPython 2.7. Source is here:
https://bitbucket.org/akorn/helloworld/src/tip/02-routing
Comments or suggestions are welcome.
Thanks
routes are pointing to
the same handler).
http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html
Benchmark is executed in isolated environment using CPython 2.7.
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
> From: andriy.kornats...@live.com
> To: python
this benchmark.
BONUS: added benchmark for python 3.3 (for the web frameworks that support it)
and plain simple WSGI application (for contrast).
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
> From: andriy.kornats...@live.com
>
(jinja2, mako, tenjin, tornado and wheezy.template)
> run on cpython2.7 and pypy1.9.. you might find it interesting:
>
> http://mindref.blogspot.com/2012/07/python-fastest-template.html
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatsk
The following doctest fails with python3.3 (it is okay for python2.4-2.7, 3.2).
class adict(dict):
"""
prioritize
and/or practically implement them?
Thanks.
Andriy
> Date: Wed, 26 Sep 2012 11:41:26 +0200
> From: ta...@ziade.org
> To: andriy.kornats...@live.com
> CC: python-list@python.org
> Subject: Re: Fastest web framework
>
> On 9/26/12
012 13:52:25 +0300
>
>
> The post has been updated with two more frameworks (per community request):
> tornado and web2py.
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatskyy
>
>
>
> > From:
(jinja2, mako, tenjin, tornado and wheezy.template)
> run on cpython2.7 and pypy1.9.. you might find it interesting:
>
> http://mindref.blogspot.com/2012/07/python-fastest-template.html
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatsk
ems correct in terms of enhancing the
> frameworks estimated(OS ops)time to completion.
> Andriy Kornatskyy
>
> 5:39 AM (5 minutes ago)
>
> to me
> David,
>
> This makes sense... and probably can pretend to be most accurate.
>
>
> Well, in a higher level language,
python-list@python.org
> Subject: Re: Fastest web framework
>
> On 9/25/12 3:21 PM, Andriy Kornatskyy wrote:
> > Tarek,
> >
> > With all respect, running benchmark on something that has sleeps, etc is
> > pretty far from real world use case. So I went a little bit
.
Andriy
> Date: Mon, 24 Sep 2012 13:50:31 +0200
> From: ta...@ziade.org
> To: python-list@python.org
> Subject: Re: Fastest web framework
>
> On 9/23/12 11:19 AM, Andriy Kornatskyy wrote:
> > I have run recently a benchmark of a trivial &
tml
>
> Comments or suggestions are welcome.
>
> Thanks.
>
> Andriy Kornatskyy
> --
> http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
Alec
While performing benchmark for web2py I noticed a memory leak. It constantly
grows and never release it...
Thanks.
Andriy Kornatskyy
> Date: Mon, 24 Sep 2012 17:36:25 +1000
> Subject: Re: Fastest web framework
> From: alec.tayl...@gmail.
The post has been updated with two more frameworks (per community
request): tornado and web2py.
Comments or suggestions are welcome.
Thanks.
Andriy Kornatskyy
> From: andriy.kornats...@live.com
> To: python-list@python.org
> Subject: Fa
, 24 Sep 2012 15:42:00 -0400
>
> On Sun, 2012-09-23 at 12:19 +0300, Andriy Kornatskyy wrote:
> > I have run recently a benchmark of a trivial 'hello world' application for
> > various python web frameworks (bottle, django, flask, pyramid, web.py,
> > wheezy.web) host
> On Sun, Sep 23, 2012 at 7:19 PM, Andriy Kornatskyy
> mailto:andriy.kornats...@live.com>> wrote:
>
> I have run recently a benchmark of a trivial 'hello world' application
> for various python web frameworks (bottle, django, flask, pyramid,
> web.py, wheez
Andriy
> To: python-list@python.org
> From: acl...@aclark.net
> Subject: Re: Fastest web framework
> Date: Sun, 23 Sep 2012 17:25:20 -0400
>
> On 2012-09-23 09:19:16 +, Andriy Kornatskyy said:
>
> >
> > I have run recently a benchmark
dedicated to test
purpose).
Thanks.
Andriy Kornatskyy
> Date: Sun, 3 Sep 012 6::6::5 -400<
> Subject: Re: Fastest web framework
> From: dwightdhu...@gmail.com
> To: andriy.kornats...@live.com
> CC: python-list@python.org
>
>> Hope I u
> On Sun, Sep 23, 2012 at 5:19 AM, Andriy Kornatskyy
> wrote:
> >
> > I have run recently a benchmark of a trivial 'hello world' application for
> > various python web frameworks (bottle, django, flask, pyramid, web.py,
> > wheezy.web) hosted in uWSGI/c
> To: python-list@python.org
> From: stefan...@behnel.de
> Subject: Re: Fastest web framework
> Date: Sun, Sep 2 :: +0<<<
>
> Andriy Kornatskyy, ..2 ::
> > If we take a look at web application we can split it into at least two
>
#cachedependency
Andriy
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: Fastest web framework
> Date: Sun, 23 Sep 2012 18:20:03 +0100
>
> On 23/09/2012 16:50, Stefan Behnel wrote:
> > Roy Smith, 23.09.2012 16:02:
>
#cachedependency
Andriy
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: Fastest web framework
> Date: Sun, 23 Sep 2012 18:20:03 +0100
>
> On 23/09/2012 16:50, Stefan Behnel wrote:
> > Roy Smith, 23.09.2012 16:02:
>
#cachedependency
Andriy
> To: python-list@python.org
> From: breamore...@yahoo.co.uk
> Subject: Re: Fastest web framework
> Date: Sun, 23 Sep 2012 18:20:03 +0100
>
> On 23/09/2012 16:50, Stefan Behnel wrote:
> > Roy Smith, 23.09.2012 16:02:
>
Date: Sun, 23 Sep 2012 17:50:20 +0200
>
> Roy Smith, 23.09.2012 16:02:
> > Andriy Kornatskyy wrote:
> >> I have run recently a benchmark of a trivial 'hello world' application for
> >> various python web frameworks (bottle,�django, flask, pyramid, web.py,
next call IS without impact that database call may cause... but you still
keep serving pages out...
Thanks.
Andriy
From: r...@panix.com
Subject: Re: Fastest web framework
Date: Sun, 23 Sep 2012 10:02:28 -0400
To: python-list@python.org
In article ,
Andriy
/downloads/
Files:
wheezy.web-introduction.pdf
wheezy.web-examine.pdf
Hope you find it interesting.
Thanks.
Andriy Kornatskyy
--
http://mail.python.org/mailman/listinfo/python-list
84 matches
Mail list logo