Comment 2 for bug 2065120

Revision history for this message
Leonard Richardson (leonardr) wrote :

I'm not sure why pytest is behaving the way it is but I wouldn't be surprised if it makes "private" Python methods in bs4 unavailable to tests of another package.

After thinking about this for a while I'm OK with exposing this method publicly, but "clone" is a bad name for it as a public method. Most people will think of "clone" as doing something closer to what copy.deepcopy does. And other terms like "copy" and "shallow copy" are taken by Python already. I'd be interested in any naming ideas you have.