On Mon, Mar 9, 2009 at 23:35, Dan Korostelev nad...@gmail.com wrote:
def hello(who:'name') - None:
... print('Hello, {0}!'.format(who))
...
hello.__annotations__
{'who': 'name', 'return': None}
Yup. So, it's stored on the function, not the class. Hence, it will not collide.
Might be
Dan Korostelev wrote:
2009/3/9 Dieter Maurer die...@handshake.de:
Jacob Holm wrote at 2009-3-6 01:55 +0100:
...
I added it while working for ZC two years ago. It was needed to support
a use case where the context used for looking up the annotation was not
necessarily the current site. I
2009/3/13 Christian Theune c...@gocept.com:
On Thu, 2009-03-12 at 22:00 +0300, Dan Korostelev wrote:
Please, can someone review the current zope.site's trunk? It fails the
persistent_interfaces tests.
I didn't ever work with persistent code, so I don't have idea about
what's going on. But
Chris Withers wrote:
[snip]
It's interesting, this use case sound pretty close to what I'm talking
about in the very last part of this message:
http://mail.zope.org/pipermail/zope-dev/2009-March/035220.html
ie: adapter context based on object traversal rather than notion of
current site.
Hey there!
The refactoring of zope.app.security is now generally done. In the
process, three new packages has been created:
* zope.authentication - the most interesting and small. It contains
the IAuthentication contract, as well as
IUnauthenticatedPrincipal/IAuthenticatedGroup and company.
On Fri, Mar 13, 2009 at 08:10, Dan Korostelev nad...@gmail.com wrote:
As I said before, even if python itself won't add __annotations__ to
some callable objects, this thing may be done by third-party tools.
Ah, I have would expected that to go on __call__ but you are right,
that probably
Summary of messages to the zope-tests list.
Period Thu Mar 12 12:00:00 2009 UTC to Fri Mar 13 12:00:00 2009 UTC.
There were 6 messages: 6 from Zope Tests.
Tests passed OK
---
Subject: OK : Zope-2.10 Python-2.4.6 : Linux
From: Zope Tests
Date: Thu Mar 12 21:28:53 EDT 2009
URL:
2009/3/13 Dan Korostelev nad...@gmail.com:
The refactoring of zope.app.security is now generally done. In the
process, three new packages has been created:
[snip]
Please, check it out and say your opinion. I'd like new packages to be
released ASAP. :-)
BTW, now when we have a steering group,
On Friday 13 March 2009, Dan Korostelev wrote:
2009/3/13 Dan Korostelev nad...@gmail.com:
The refactoring of zope.app.security is now generally done. In the
process, three new packages has been created:
[snip]
Please, check it out and say your opinion. I'd like new packages to be
Tres Seaver wrote at 2009-3-11 21:27 -0400:
...
In packages that don't load their own ZCML during the tests, it's harder
to say. One reaction could be that this package doesn't have enough
tests then! Of course another would argue that this is configuration
information only that can be
Tres Seaver wrote at 2009-3-12 14:25 -0400:
...
Sorry, I meant mandatory tests which load ZCML. I'm actually against
ever loading ZCML in tests at all.
If you ship ZCML, you should test it, no?
You will not ship ZCML, but this may not apply to everybody
--
Dieter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dieter Maurer wrote:
Tres Seaver wrote at 2009-3-12 14:25 -0400:
...
Sorry, I meant mandatory tests which load ZCML. I'm actually against
ever loading ZCML in tests at all.
If you ship ZCML, you should test it, no?
Not necessarily: in fact,
Tres Seaver wrote at 2009-3-13 16:20 -0400:
...
Dieter Maurer wrote:
Tres Seaver wrote at 2009-3-12 14:25 -0400:
...
Sorry, I meant mandatory tests which load ZCML. I'm actually against
ever loading ZCML in tests at all.
If you ship ZCML, you should test it, no?
Not necessarily: in
2009/3/13 Dan Korostelev nad...@gmail.com:
2009/3/11 Martijn Faassen faas...@startifact.com:
- Move LocalPermission into new zope.localpermission package. I
personally didn't ever need local permissions.
You're talking about locally defined permissions, correct, not about
giving someone a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dan Korostelev wrote:
2009/3/13 Dan Korostelev nad...@gmail.com:
2009/3/11 Martijn Faassen faas...@startifact.com:
- Move LocalPermission into new zope.localpermission package. I
personally didn't ever need local permissions.
You're talking about
Dieter Maurer wrote:
Tres Seaver wrote at 2009-3-13 16:20 -0400:
...
Dieter Maurer wrote:
Tres Seaver wrote at 2009-3-12 14:25 -0400:
...
Sorry, I meant mandatory tests which load ZCML. I'm actually against
ever loading ZCML in tests at all.
If you ship ZCML, you should test it, no?
Not
16 matches
Mail list logo