The python 2.x command is as following:
---
info = {}
execfile(join('chaco', '__init__.py'), info)
--
But execfile has been removed in python 3.x.
So my problem is how to convert the above to a 3.x based command?
thanks very much
--
https://mai
I see now. Thank you so much.
I think namespace is really a confusing part in Python.
On Friday, January 21, 2011 11:00:32 AM UTC-6, Peter Otten wrote:
> There are only two cases that matter: identical local/global namespaces and
> distinct local/global namespaces:
>
> >>> code = """\
> ... x =
Of cause your code runs well. But if you remove the "global foo" in
main(), it will fail. And it will succeed again if you call exec(t1)
directly. I think this behavior is strange. Even I pass a shadow copy
of globals and locals to exec, it still fails. So perhaps there is a
basic difference betwee
Is there a new version of Demo Docs released also?
I get this error from Sourceforge after clicking on
the link at wxPython page.
Could not read file.
Go back.
/home/ftp/pub/sourceforge//w/wx/wxpython/wxPython2.7-win32-docs-demos-2.7.2.0.exe
Nov 08, 2006 07:10
--- Robin Dunn <[EMAIL PROTECTED
you might find this interesting...
www.ogre3d.org/
and its python wrapper
http://www.ogre3d.org/wiki/index.php/PyOgre
With /without Hardware acceleration...
with /without OpenGL or DirectX...
hello
Ge
>
> mingw32 is supported and can compile many
> extensions. See the following
> post:
>
>
http://groups.google.com/group/comp.lang.python/msg/8e2260fe4d4b7de9
>
> If you meant something else with your comment,
> please explain.
>
thanks for the reference.. I just got the latest
source for pyt
> Okay if one builds such from sources... but us poor
> Windows flunkies
> without a build environment have to wait for some
> kindly soul to build
> the installer compatible with the new Python
> version.
>
especially since I havent got MS visual studio...
and mingw is not supported... :-(
I am switching from microsoft visual basic programming to python
programming. In microsoft
visual basic you can Dim a variable so that you can add variables by
changing the number
on the end of the variable as in the following example;
Dim acct(100)
numoffiles=4
data=10
ct=1
while ct <> numoffi