Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #877

Be synthetic with PySynthetic (0.4.6 release)

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <yjaaidi@gmail.com>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'argument': 0.04; 'method.': 0.05; '(using': 0.07; 'decorator': 0.07; 'python': 0.09; 'url:github': 0.09; 'bug': 0.10; 'url:)': 0.13; 'url:issues': 0.16; 'instance,': 0.17; 'examples': 0.18; 'trying': 0.21; 'subject:release': 0.22; 'task': 0.23; 'properties': 0.24; 'thus': 0.24; 'skip:" 20': 0.26; '(see': 0.27; 'checking': 0.27; 'list:': 0.27; 'message-id:@mail.gmail.com': 0.27; 'aims': 0.29; '8bit%:5': 0.29; 'class': 0.29; 'classes': 0.30; 'skip:& 30': 0.30; 'code': 0.31; 'shorter': 0.33; 'skip:l 40': 0.33; 'strict': 0.33; 'code:': 0.33; 'hi,': 0.33; 'skip:& 20': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'add': 0.36; 'url:org': 0.36; 'useful': 0.36; 'subject:with': 0.36; 'thank': 0.36; 'subject: (': 0.36; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'takes': 0.39; 'skip:" 10': 0.40; 'first': 0.61; 'times': 0.63; 'more': 0.63; 'it!': 0.64; 'making': 0.64; 'to:addr:python-announce-list': 0.65; 'applying': 0.69; 'pain': 0.84; 'respectively': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=93Rihndvi91gYARkfwJLDrv6OyZf5ocYHYgslLaaj4Q=; b=oP1Dt8/G4A688JDZRDAVLnNHLOjYF78ywexX8dP/BW8XwCcjStgx7qjajmChR9yFz0 EoELSlQ5uklktEm8rGgphBTT1gWgd62FK5svoGere2Xq4GqC872gqWL1SgYVsVM9z0Y4 m7tcU2xjPfe21BrAHgOoHsdjO1GMT+20CsHrkl6JvM860ThEgh3VN9lNeVYIk1bs0n78 CXT/tpcjuMfdRgkLxi/lZYbhmO3JG98Ou9pvsljfZbCD8D8Fupb7gye79Ro4zw1atb1J oZKeNYXAkZCp6ZJ7iDSEwc5SG+22hFSk0yfkSK60UJvX9n7VOZx+Gmoz0pMQ78LwKgLf pKLw==
MIME-Version 1.0
X-Received by 10.194.87.229 with SMTP id bb5mr11112603wjb.32.1362858928784; Sat, 09 Mar 2013 11:55:28 -0800 (PST)
Date Sat, 9 Mar 2013 20:55:28 +0100
Subject Be synthetic with PySynthetic (0.4.6 release)
From Younes JAAIDI <yjaaidi@gmail.com>
To python-announce-list@python.org
X-Mailman-Approved-At Sun, 10 Mar 2013 14:17:50 +0100
Content-Type text/plain; charset=ISO-8859-1
X-Content-Filtered-By Mailman/MimeDel 2.1.15
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.3153.1362921471.2939.python-announce-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362921471 news.xs4all.nl 6892 [2001:888:2000:d::a6]:55856
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:877

Show key headers only | View raw


Hi,

PySynthetic first public version has just been released!

PySynthetic is a set of tools that aims to make writing Python classes
shorter and "cleaner".

For instance, one can add properties and accessors (getters/setters) to a
class with only one line of code (using respectively "synthesize_property"
and "synthesize_member" decorators), thus making the code more than 5 times
shorter (see examples
https://pysynthetic.readthedocs.org/en/latest/#examples). One can even
avoid the laborious task of members initialization by using the
"synthesize_constructor" decorator that takes care of writing the
"__init__" method.

PySynthetic is also useful for applying strict type checking with no pain
just by using the decorators' "contract" argument (see PyContracts
http://andreacensi.github.com/contracts/).

Thank you for trying it!

----------------------------------------------------------------------

* Documentation: http://pysynthetic.readthedocs.org/en/latest/
* Bug Tracker: https://github.com/yjaaidi/pysynthetic/issues
* Code: https://github.com/yjaaidi/pysynthetic
* Mailing list:
https://groups.google.com/forum/?fromgroups#!forum/pysynthetic <
pysynthetic@googlegroups.com>

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Be synthetic with PySynthetic (0.4.6 release) Younes JAAIDI <yjaaidi@gmail.com> - 2013-03-09 20:55 +0100

csiph-web