User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 370,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,026 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 21 of 21
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: FreezeBlink
Forum: Python 19 Days Ago
Replies: 2
Views: 167
Posted By FreezeBlink
Re: Finding all instances of a class?

Sounds like that should work. Thanks!
Forum: Python 20 Days Ago
Replies: 1
Views: 139
Posted By FreezeBlink
winsound SND_PURGE not working.

Sorry to have to post two consecutive questions for other people to help me with, but I'm having a problem with winsound that I simply can't figure out. I've checked all the documentation I could,...
Forum: Python 20 Days Ago
Replies: 2
Views: 167
Posted By FreezeBlink
Finding all instances of a class?

Really, the title says it all. Is there any way to compile all the instances of a class into a list, or other such data structure?
Forum: Python 23 Days Ago
Replies: 1
Views: 141
Posted By FreezeBlink
Position in list from within for loop?

It's always bugged me how it seems that the only way to find out where you are inside a for loop is to use a counter. For instance, suppose you want to iterate through a list, and print every entry...
Forum: Python 25 Days Ago
Replies: 4
Views: 296
Posted By FreezeBlink
Re: getch() woes...

Are there any ways to do something of that sort which are not Unix-only?
Forum: Python 28 Days Ago
Replies: 4
Views: 296
Posted By FreezeBlink
getch() woes...

I've been trying to program a "press any key to continue" function, simply because raw_input feels noobish, but so far I haven't been having much luck.

I did a search and the opinions are nearly...
Forum: Python Jun 3rd, 2008
Replies: 5
Views: 191
Posted By FreezeBlink
Re: Surely there's a better way?

Because if you create a new list and assign it to the old one, you're creating an un-needed variable.
Forum: Python Jun 3rd, 2008
Replies: 5
Views: 191
Posted By FreezeBlink
Surely there's a better way?

Iterating over a list, possibly deleting elements. It's the bane of my existence. Suppose, for instance, we have a list of numbers, and want to iterate over it and delete each and every odd one....
Forum: Python Jun 1st, 2008
Replies: 3
Views: 242
Posted By FreezeBlink
No "instance" type...?

Just noticed an odd little problem. Instead of explaining it, take a look at this IDLE run:

>>> ================================ RESTART ================================
>>> class test:
eggs =...
Forum: Python May 23rd, 2008
Replies: 2
Views: 157
Posted By FreezeBlink
Can someone help me improve this function?

At various points in my text-based programs, I've had to write a function for use in multiple-choice menus. It needs to have the following qualities:

Ignores non-number input, repeating the request...
Forum: Python May 21st, 2008
Replies: 5
Views: 375
Posted By FreezeBlink
Re: Crazy question -- Python + Command Line

Sorry--I just realized that wasn't worded very clearly. What I mean is this:

Is it possible for Python to store the output of calling os.system([command])? For instance, is it possible to store, in...
Forum: Python May 21st, 2008
Replies: 5
Views: 375
Posted By FreezeBlink
Re: Crazy question -- Python + Command Line

That helps very much, thanks! One last thing, is it possible for Python to read the output of the commands it executes? For instance, storing the contents of a directory in a list?
Forum: Python May 21st, 2008
Replies: 5
Views: 375
Posted By FreezeBlink
Crazy question -- Python + Command Line

This is probably totally absurd, but...is it possible to, through Python, access the command line and use it? For instance, write a program that outputted all of the files in a given directory, much ...
Forum: Python May 18th, 2008
Replies: 2
Views: 201
Posted By FreezeBlink
"break"ing out of multiple levels?

For instance, if you have the following (random example):

w = input("Enter width")
h = input("Enter height")

for x in range(0,w):
for y in range(0,h):
print x,y
if...
Forum: Python May 17th, 2008
Replies: 1
Views: 152
Posted By FreezeBlink
Extremely odd error.

Both fighters[0] and cell are object instances. How on earth does it see 3 arguments in this? I don't think wider context is needed, but just ask if it is.
Forum: Python May 12th, 2008
Replies: 3
Views: 430
Posted By FreezeBlink
Press Any Key to Continue

A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a...
Forum: Python May 10th, 2008
Replies: 8
Views: 317
Posted By FreezeBlink
Re: "choose" in Python?

And, um, while we're at it...what does Lambda do, anyway?
Forum: Python May 9th, 2008
Replies: 8
Views: 317
Posted By FreezeBlink
"choose" in Python?

There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax):
var1 = raw_input("Input a number between one and three.")

choose var1:
case...
Forum: Python May 6th, 2008
Replies: 2
Views: 273
Posted By FreezeBlink
Controlling variable types?

Python's system of deciding for you what type to give all your variables is nice and all, but is there a way to force it to give a variable a certain data type? For instance, if you give it the...
Forum: Python May 3rd, 2008
Replies: 4
Views: 405
Posted By FreezeBlink
A Python editor that runs under Ubuntu?

Recently I downloaded Ubuntu v8.04 (Hardy Heron), and was delighted to find Python pre-installed. However, that pleasant surprise was soon dampened by the fact that IDLE would not run, and so I am...
Forum: Python Apr 27th, 2008
Replies: 1
Views: 184
Posted By FreezeBlink
I've been stumped for a week on this...

Hey. I'm working on a simple project that requires a way to find all the empty grid cells accessible along a path that's <= n cells long (an analogy would be TBS movement), and I've got an...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 5:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC