[rfc] [patch] pycurl transport
John Arbash Meinel
john at arbash-meinel.com
Thu Jan 12 01:43:10 GMT 2006
Robert Collins wrote:
> On Wed, 2006-01-11 at 19:32 -0600, John Arbash Meinel wrote:
>
>
>>As long as you don't do 'import _pycurl' but do 'import
>>bzrlib.transport.http._pycurl'.
>>But honestly, if they are in the bzrlib.transport.http interface, why do
>>we need the underscore?
>
>
> Because they are not in the interface, they provide the interface but
> are not directly accessible.
> I would not go quite so far as to suggest __pycurl, but the fact that
> http is provided by _pycurl does not put _pycurl itself in the
> interface.
>
> Also note that during the initialisation of a module you may not be able
> to import absolute paths under it because it is not in the parent symbol
> dictionary/system modules dictionary yet.
>
> Rob
Which is one of the reasons we switched to using
register_transport_lazy. Since we know we will import bzrlib.transport,
but otherwise we have to import everything else at some semi-arbitrary
point.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060111/0e5673b4/attachment.pgp
More information about the bazaar
mailing list