Why not just use util.Dict (defaulting to dict) instead of {}?
Then whoever wants, replaces that with Ordered one and voila, all
things get repeatable, if a little slower.
the ordering of the data sent to the sort should not affect the
outcome of the program. therefore its important
[...] I challenged him to name *any* scenario where an
administrator would want a local-environment-based PYTHONPATH to be
overridden by an application-wide configuration and he didnt reply to
that one. he sees it as a if youre using .eggs, then you must accept
that PYTHONPATH only points
u mean eggs will override pythonpath? that's bullshit!
one more reasone for me to hate eggs... be them cockroach' or python
ones...
as I have like 12 different SA directories which id like to jump
between without going through a distinct install for each one, im a
big fan of PYTHONPATH, and
If you have the time and know how, do you know what the efficient
way to iterate through all the class definitions in a module would
be to grab all the classes that have a certain member?
import module
for k,v in module.__dict__.iteritems()
if isinstance(v,type):
if issubclass(v,
On Wed, 2007-07-02 at 11:53 +0200, svilen wrote:
If you have the time and know how, do you know what the efficient
way to iterate through all the class definitions in a module would
be to grab all the classes that have a certain member?
import module
for k,v in
Darn, apologies to all. Clearly I am too sleepy to be doing this as I
can't even work my mail client. :/
Thanks
On Wed, 2007-07-02 at 01:58 -0800, iain duncan wrote:
On Wed, 2007-07-02 at 11:53 +0200, svilen wrote:
If you have the time and know how, do you know what the efficient
way to
Thanks. I've been using the inspect module but there's such a lot in
there it's a bit dizzying!
FWIW, you can also use ipython and its dynamic object introspection,
completion, etc... This helps a *lot* finding what you want. It's also
usefull to dive into the sources, precisely where you
Hello sqlalchemy users and developers!
I was wondering if there was a way to store a list of strings (or
unicode strings) and access them using a normal Python list when using
SQLAlchemy?
I've pasted my attempt at implementing a simple book database below
this message. You can specify a book's
Is there anyway I can specify the list of tags like this, instead?
book.tags = [upython, uprogramming]
Well you could use a PickleType column in your book table... Of course, you'll
loose functionnalities you could have using a real Tag object. The problem is
how you consider a tag in your
Hi Iain,
I'm working on an admin interface and trying to make it generic when
that will do, a la django, but more easily customizable. A couple of
things I could not yet find in the SA docs, can anyone point me to the
right place or if they know pipe up?
- how would one ask a mapper object
If you have the time and know how, do you know what the efficient way to
iterate through all the class definitions in a module would be to grab
all the classes that have a certain member?
Ie If I add this field to an orm class
class Page:
admin_fields = [blahblah]
then I want to
I have taken a quick look at this code. But be warned I have not
actually used it yet so I have limited real experience with it...
Overall it looks very interesting. I was expecting something much
more along the vein of DbUnit where you do something like this:
setUp():
dataset =
I am going to try to integrate this into my testing framework this
afternoon so I am sure I will have more questions after that. In the
meantime see below...
On 2/7/07, Kumar McMillan [EMAIL PROTECTED] wrote:
Thanks for taking a close look Allen. Here are some answers...
On 2/7/07, Allen
db = SQLAlchemyFixture()
# anytime before db.data().setup() ...
db.session = my_session
In my current system I have a single global session that is used for
everything. Is there any reason you can see that I could not just
reuse this session in all the test cases or should I be
theres an ancient ticket for this which i didnt entirely disagree
with, i just chose not to deal with it. mostly becuase its not
always guaranteed about what type you get back, like string could
return str or unicode, etc.
doing the FLOAT=Float thing, if it doesnt break anything, still
15 matches
Mail list logo