- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
2D and 3D Animation
- Interests
- 2D and 3D Animation
16 Posted Topics
#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of … | |
In Python: #python class myClass: istat = 111 #exists as soon as import class def __init__(self): print("in ctor") self.iauto = 222 #does not exist until instance created ..... mc1 = myClass() mc2 = myClass() In C++: //C++ class myClass { public: static int istat; int iauto; }; ..... //main myClass … | |
import os def a(): print("A") def b(): print("B") # I want to sometimes skip the main body if os.path.isdir("C:\\Blender\\mainbody"): print("main body of module_A") Is there a way to control whether or not the main body of a module gets executed by passing in arguments to the import command, such as … | |
I am finding myself a little confused about how Python imports. Would the following be a correct statement: In any Python interactive shell, if the shell (since it was initiated or opened) has never before imported "myScript.py" then if the user types in "myScript" he will get an error like: … | |
Re: With one you need to debug functions, with the other you need to function then debug. | |
[CODE] private void testFunc() { int[] arrayParam = new int[88]; arrayParam[2] = 67; calledFunc(arrayParam); Console.WriteLine("testFunc Done"); } private void calledFunc(int[] intArray) { Console.WriteLine(intArray[2]); //if new array declared, values not changed in testFunc intArray = new int[66]; intArray[2] = 33; intArray[5] = 55; } [/CODE] If calledFunc simply changes array values, … | |
I have an OpenGL program using GLUT which works fine on my Windows XP desktop using Visual C++ Express. I copied it over to my Vista laptop 64 bit and I copied the glut3.dll into Windows/system32 but although it compiles, when I try to run it I get a glut32.dll … | |
I am reading "Database Systems" by Kifer, Bernstein, and Lewis. In chapter 19 on transaction models, it discusses how a flat transaction can adhere perfectly to ACID, but other transaction models are needed that sacrifice some of the ACID properties (such as isolation) for gains in performance, flexibility, etc... The … | |
Here is some old VBA code inside a Word 2003 document to open and then save a word document: [code] Documents.Open FileName:=docFileName, ConfirmConversions:=True, _ ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _ PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _ WritePasswordTemplate:="", Format:=wdOpenFormatAuto 'do stuff to the opened file here... ActiveDocument.SaveAs _ FileName:=docFileName, _ FileFormat:=wdFormatDocument, _ LockComments:=False, _ Password:="", … | |
This is pertaining to debugging VBA macros for Word 2003. I am debugging a document with a LOT of buttons which launch macros. If I place a breakpoint in a subroutine, and execute the macro by running it from the VBE debugger, execution stops at the breakpoint. But is there … | |
In VC++ 2008 Express, I open a new "Hello World" project (CLR Console Application). If I right-click the project in the solution explorer, and select "properties", I get a "... Property Pages" window which shows a line entry for: Configuration Properties / C,C++ / General / Additional Include Directories. It … | |
Well I made it through my first semester of an MSCS. Almost. This summer I want to build a game. I am trying to understand a little bit of the history of Windows graphics and am a bit confused. There's WinAPI. There's OpenGL. There's DirectX. As I understand it, OpenGL … | |
In XP, or from the DOS command line, is there a nice way to list the objects inside a .dll or .lib file. | |
In linear algebra a 1 by m array of (let's say integers) can be considered a vector (row or column). Given 2 row vectors of the same size, can they be compared using <,> ? If so, what relation between individual elements in the arrays is required for "less than" … | |
It's tough being 50 and back in college! If anyone has recently taken an Algorithm class, my question is this: Is the proof for Prim's algorithm any different than for Kruskal? I understand both algorithms are greedy in the sense of picking the least weight edge each itiration. Prims only … | |
I was a Unix, C, C++ programmer for 17 years then got out of IT during the 2001 dot com crash (to teach Junior/High School). Teaching was/is rewarding but I want to finish my working years in IT. I've been taking some steps (updating my training, etc...) to return to … |
The End.