On Aug 21, 2:40 am, Oscar Benjamin oscar.j.benja...@gmail.com wrote:
On Mon, 20 Aug 2012 21:17:15 -0700 (PDT), Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Consider this code:
class SlowStorage(dict):
def __getattr__(self,key):
return self[key]
def
Hello Oscar,
thanks for your help but your proposal of adding:
def __setitem__(self,key,value):
self.__dict__[key] = value
dict.__setitem__(self, key, value)
does not help me.
What I have today is a class that works like SlowStorage. I want to
replace it with NewStorage because it is 10x
I discovered I can do this:
class A(object): pass
class B(object):
__class__ = A # magic
b = B()
isinstance(b,A) # returns True (as if B derived from A)
isinstance(b,B) # also returns True
I have some reasons I may want to do this (I an object with same
methods as a
: __class__ assignment: only for heap types
On Aug 20, 1:39 pm, Ian Kelly ian.g.ke...@gmail.com wrote:
On Mon, Aug 20, 2012 at 12:01 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
I discovered I can do this:
class A(object): pass
class B(object):
__class__ = A # magic
Consider this code:
class SlowStorage(dict):
def __getattr__(self,key):
return self[key]
def __setattr__(self,key):
self[key]=value
class FastStorage(dict):
def __init__(self, __d__=None, **kwargs):
self.update(__d__,**kwargs)
def
Hello everybody,
I hope somebody could help me with this problem. If this is not the right place
to ask, please direct me to the right place and apologies.
I am using Python 2.7 and I am writing some code I want to work on 3.x as well.
The problem can be reproduced with this code:
# from
Thank you. I tried __rtruediv__ and it works.
On Jan 23, 2012, at 12:14 AM, Ian Kelly wrote:
On Sun, Jan 22, 2012 at 10:22 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Hello everybody,
I hope somebody could help me with this problem. If this is not the right
place to ask
Thanks to our 100+ contributors. This is our best release ever.
[download here](http://www.web2py.com/examples/default/download).
--
Free open source full-stack framework for rapid development of fast, scalable,
secure and portable database-driven web-based applications. Written and
Dimensional Analysis / Formula Validation/ Units Conversion / Error Propagation
In one single small file without dependencies
buckingham.py
http://code.google.com/p/buckingham/
based on the Buckingham Theorem
How to use
download the module
download Python
start Python
import the module:
from
The third edition of the web2py book is out:
http://www.lulu.com/product/paperback/web2py-%283rd-edition%29/12199578
also available in pDF and online for free in html at http://web2py.com/book
It includes documentation about many features not documented in the
2nd edition including:
-
http://www.web2py.com/p3d
A Python library that generates processing.js code for 3D rendering
and visualization including a pure python algorithm for computing iso-
surfaces from VTK files. The generated 3D objects can rotated in the
browser. Requires a browser with canvas support, jquery
So does web2py allow for raw sql if there is an advanced procedure
or query that needs to be performed that is outside the scope of the
web2pr orm
Yes
db.executesql(whatever you want)
http://www.web2py.com/examples/static/epydoc/web2py.gluon.sql.SQLDB-class.html
Massimo
--
On Oct 20, 2009, at 4:59 PM, Emmanuel Surleau wrote:
Compared to custom tags in, say, Mako? Having to implement a mini-
parser for
each single tag when you can write a stupid Python function is
needless
complication.
I like Mako a lot and in fact web2py template took some inspiration
Hello,
Just to clarify. I did not make any statement about web2py is
superior to SQLAlchemy since that is somewhat subjective.
SQLALchemy for example does a much better job at accessing legacy
databases. web2py is more limited in that respect and we are working
on removing those
A fast portable pure-python multithreaded experimental WSGI web server
in 300 lines of code:
Python 2.4,2.5,2.6 version:
http://code.google.com/p/web2py/source/browse/trunk/gluon/sneaky.py
Python 3.0,3.1 version:
http://code.google.com/p/web2py/source/browse/trunk/gluon/
sneaky3.py
The new web2py book is available on lulu.com
http://www.lulu.com/content/e-book/web2py/4968879
Lots of new stuff with100 more pages (341 pages in total). Covers
Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better
deployment recipes.
Massimo
--
web2py 1.64.0 is out
http://www.web2py.com
new features:
- full Jython support, including xzJDBC for sqlite and postgresql.
install jython and run: jython web2py.py -h
- models are 2.5x faster
- better LDAP support
- custom forms
Example:
#in model
web2py 1.63 is OUT
Check out the new features in this slides:
http://www.scribd.com/doc/16085263/web2py-slides-version-163
Massimo
P.S. with love and respect to all other python programmers out there!
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python
Hello everybody web2py 1.62.1 is out
http://www.web2py.com
Here is a video of some of the new features:
http://www.screencast.com/t/OH8Uc5ab6
New features:
- admin interface reads web2py twits
- deploy on Google App Engine directly from the web based admin
- commit your apps to
web2py 1.59 is out
http://www.web2py.com
Check out this video about the new features:
http://www.vimeo.com/3703345
What is web2py?
=
- It is the web framework used by PyCon 2009 for registration.
- It a very easy and very powerful Python web framework.
- It is
web2py 1.56.4 is out
http://www.web2py.com
What is web2py?
=
- It is the web framework used by PyCon 2009 for registration.
- It a very easy and very powerful Python web framework.
- It is fast and rock solid. It has a very clean design and it is
strong on security.
-
web2py 1.56 is out, including a new web site with better documentation
http://www.web2py.com
What is web2py?
=
- It is the web framework used by PyCon 2009 for registration.
- It a very easy and very powerful Python web framework.
- It is fast and rock solid. It has a very
http://web2py.appspot.com/t3/default/wiki/main(there is a
video tutorial)
T3 version 0.2 is out. Now you can develop for GAE on GAE and it
could not get any easier.
T3 is a development platform (built on web2py) that works like a WIKI
and it lets you embed python code and
because when you loop over open(...) is the same as looping over open
(...).readlines() and readlines() reads everything including newlines.
Try replace:
if item == var:
with
if item.strip() == var:
Massimo
On Nov 28, 2008, at 9:47 PM, [EMAIL PROTECTED] wrote:
Hi All,
I dont
Live demo with examples:
http://web2py.appspot.com/plugin_checkout
Source code:
http://mdp.cti.depaul.edu/appliances/default/show/43
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
web2py 1.40 is out
A web2py book is out too:
http://he-cda.wiley.com/WileyCDA/Section/id-321954.html
Here is a sample:
http://mdp.cti.depaul.edu/examples/static/web2py_manual_cut.pdf
Here are some videos:
http://www.vimeo.com/videos/search:web2py
version 1.40 includes:
- Database Abstraction
web2py (not to be confused with web.py although both of them are
excellent) comes with XMLRPC, XML, JSON and RSS API. You can find an
XMLRPC example here:
http://mdp.cti.depaul.edu/examples/default/examples#xmlrpc_examples
The web2py source (including the optional web based interface) fits
Hello everybody,
I just released the KPAX CMS 1.0 beta (based on web2py).
Create web pages, wikis with locking and versioning, blogs, chats,
surveys, video/audio streams. No programming required. Runs off a USB
drive too.
The name is temporary.
Here is a screencast/tutorial
Hi Menkaur,
I work in a university as well. I am looking for some help in
developing an apache graphical log analyzer using gluon http://
mdp.cti.depaul.edu/
I am about to release a pre-configured virtual appliance with it and
a graphical log analyzer would be very handy.
Massimo
On Oct
if the .py file is imported as a module that condition is false else
(if the .py file is executed) that condition is true
On Oct 19, 2007, at 6:29 PM, Robert Dailey wrote:
Hi,
I've read various portions of the Python 2.5 documentation in an
attempt to figure out exactly what the following
Shouldn't this
print re.sub('a','\\n','bab')
b
b
output
b\nb
instead?
Massimo
On Oct 16, 2007, at 1:34 AM, George Sakkis wrote:
On Oct 15, 11:02 pm, 7stud [EMAIL PROTECTED] wrote:
I'm applying groupby() in a very simplistic way to split up some
data,
but when I timeit against
Even stranger
re.sub('a', '\\n','bab')
'b\nb'
print re.sub('a', '\\n','bab')
b
b
Massimo
On Oct 16, 2007, at 1:54 AM, DiPierro, Massimo wrote:
Shouldn't this
print re.sub('a','\\n','bab')
b
b
output
b\nb
instead?
Massimo
On Oct 16, 2007, at 1:34 AM, George Sakkis wrote:
Schluehr wrote:
On Oct 13, 4:23 am, Massimo Di Pierro [EMAIL PROTECTED]
wrote:
Hello everybody,
I just joined this mailing list. Thanks for your comments about
gluon.
I have posted a short video about it and I am planning to make more
over the week-end.
http://www.youtube.com/watch?v
Hello,
Two users have reported this error when used the OSX version of Gluon
(http://mdp.cti.depaul.edu/examples)
Traceback (most recent call last):
File /Users/jacek/src/gluon/runme.app/Contents/Resources/
__boot__.py, line 157, in module
rograms/gluon/runme.py'))
File
Hi Daniel,
in many respects Gluon is similar to Django and was greatly inspired
by Django. Some differences are:
Gluon is easier to install - you never need to use the shell, there
are no configuration files.
Gluon is a web app. You can do all development via a web interface.
You can
... I almost forgot ...
another difference between Gluon and Django,TG is that in Gluon if
you write controllers without view you automatically get generic view
that render and BEAUTIFY() the variables returned by the controllers.
That means you can develop the logic of your application
Hello everybody,
I just joined this mailing list. Thanks for your comments about gluon.
I have posted a short video about it and I am planning to make more
over the week-end.
http://www.youtube.com/watch?v=VBjja6N6IYk
About some of your comments:
- the most complex modules (like html and sql
happy to hear that.
you may want take a loot at http://mdp.cti.depaul.edu/vqcd
It is mostly python stuff and will post the code soon.
Massimo
On Oct 12, 2007, at 10:47 PM, Fernando Perez wrote:
Massimo Di Pierro wrote:
P.S. Michele Simionato. I have heard your name before? Is it possible
we
38 matches
Mail list logo