[Fwd: [pyamf-users] Writing an object to a file, should be easy?]

View: New views
2 Messages — Rating Filter:   Alert me  

[Fwd: [pyamf-users] Writing an object to a file, should be easy?]

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey guys,

See http://lists.pyamf.org/archives/users/2007-December/000003.html for reference.

Basically, encoding a python dict results in an AS array type and we use pyamf.Bag to encode anonymous objects. I think that this is going to be a common misgiving, so I was wondering if we should change the type mappings so that:

dicts -> Object
pyamf.Bag -> Array

Maybe we should also change the name to something more descriptive?

What do you reckon?

Cheers,

Nick

Re: [Fwd: [pyamf-users] Writing an object to a file, should be easy?]

by Arnar Birgisson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

On Dec 14, 2007 9:57 AM, Nick Joyce <nick@...> wrote:

>  Basically, encoding a python dict results in an AS array type and we use
> pyamf.Bag to encode anonymous objects. I think that this is going to be a
> common misgiving, so I was wondering if we should change the type mappings
> so that:
>
>  dicts -> Object
>  pyamf.Bag -> Array
>
>  Maybe we should also change the name to something more descriptive?
>
>  What do you reckon?

I'm not familiar enough with AS conventions to understand what are the
common use cases. The only analogy I know well is JSON, and the only
option there is to encode dicts to objects.

Arnar