getMeshFromObject() Stripping Vertex Groups

In Blender 2.49b, I’m using BPyMesh.getMeshFromObject() to get a mesh where the modifiers are applied and the vertex groups retained. The function is supposed to retain the vertex groups if possible. I’ve found that even with a simple cube, the vertex groups are not being retained (or copied as the case may be).

Has anyone encountered this?
Is there another way to get a mesh from an object with the modifiers applied and vertex groups retained?

Regards,
John

Do not understand fully

But in Blender 2.54 SVN 32610
If I have a cube WITH a vertexgroup and if I use Shift D to copy the cube, the copied cube as the vertex-group too, that’s your question?

This is with regards to Blender 2.49b, calling the getMeshFromObject() function in the BPyMesh module from a Python script.

Sorry, I do not really invest in 2.49 … (only if there are old good scripts, e.g. building a city, 2.49 without further …)