|
More site info...
|
|
Forum profile page for Python on http://www.daniweb.com.
This report page is the aggregated overview from a single forum: Python, located on the Message Board at http://www.daniweb.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Python" on the Message Board at http://www.daniweb.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Python:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
151
|
529
|
1,381
|
|
Post:
|
419
|
1,434
|
3,771
|
|
|
Python Posting activity graph:
|
Top authors during last week:
user's latest post:
Understanding get and set methods.
Published (2009-11-30 03:25:27)
well you're almost right • • • • __init__ creates a private attribute name? The second line in main crit.talk() and prints Hi, I'm, self.name ("Poochie"), which it is able to get because get_name method? print cirt.name prints "Poochie", again using the get_method? (1)yes in this case, but if omit the underscores in the beginning and write it like this self.name...
user's latest post:
Understanding static methods
Published (2009-11-29 14:28:02)
Help with Code Tags Python Syntax ( Toggle Plain Text ) def status ( ) : print " The total number of critters is" , Critter. total status = staticmethod ( status ) def status(): print "The total number of critters is", Critter.total status = staticmethod(status) This allows class function status() to be called with the class name rather than the instance name ( an...
user's latest post:
Free Disk Space - Page 2 - Python
Published (2009-11-30 07:25:14)
Use your brain, instead of total_space put the name of the variable which contains the result!
user's latest post:
need help
Published (2009-11-29 00:00:00)
Give your thread a meaningful title and more people will help.
user's latest post:
fetching data from qt
Published (2009-11-26 13:24:07)
• • • • fetching data from qt The short answer is to look at QLineEdit here http://www.devshed.com/c/a/Python/PyQT-Input-Widgets/ More tutorials are on the wiki http://www.diotavelli.net/PyQtWiki/Tutorials
user's latest post:
Calling Function?
Published (2009-11-28 07:40:57)
• • • • Originally Posted by masterofpuppets hi, be careful with the indentation for the else statement here Now, this means that the result will be shown only if the mark is greater than 25, which is not helpful. You need the mark to be in range 0 <= mark <= 25 right? so the if would be: Help with Code Tags Python Syntax ( Toggle Plain Text ) def gradeTest ( ) : mark = input...
user's latest post:
Buying a proffessional editor -...
Published (2009-11-29 00:00:00)
Yeah, IDEs like notepad++ lack the auto-indent feature. I'm also looking for an IDE but unfortunately I'm kind of broke..so I guess IDLE works for me for now.
user's latest post:
Free Disk Space - Page 2 - Python
Published (2009-11-30 07:25:14)
• • • • Originally Posted by Aiban ok ok ... sorry mate .. yeah you have tried to help, but i didn't see it as a 'tkinter' issue ... just an moving of output issue which i couldnt' define with the correct 3 to 4 words. Its ok, but control your temper. you might end kicking your IDE
user's latest post:
get and set methods, &...
Published (2009-11-30 09:24:34)
• • • • Originally Posted by programmersbook Private attributes are always with "__" double underscore. Taken directly from the zipfile module: Help with Code Tags Python Syntax ( Toggle Plain Text ) def _check_zipfile ( fp ) : #Begins with a single underscore. Protected function. Will not be returned by zipfile.__all__ #... def is_zipfile ( filename...
user's latest post:
Recursion is beating me.
Published (2009-11-27 14:42:53)
You can use helper functions, you know. Help with Code Tags Python Syntax ( Toggle Plain Text ) def harmonicSum ( n ) : def realSum ( p ) : if p > n: return 0 return 1 /p + realSum ( p +1 ) return realSum ( 1 ) def harmonicSum(n): def realSum(p): if p > n: return 0 return 1/p + realSum(p+1) return realSum(1) There's probably a more eloquent solution, but what...
|
|
|
|
Latest active threads on Python::
Started 1 week ago (2009-11-24 11:00:08)
by ov3rcl0ck
• • • • Originally Posted by coffeebox ... since Mac are realy running shiny Linux/BSD it should work there to. Mac OS X is based around Darwin UNIX, a version of UNIX that derived from NEXTSTEP, which derived from BSD. OS X Contains no BSD code nor NEXTSTEp code anymore.
Started 2 days, 18 hours ago (2009-11-29 15:23:56)
by ShadyTyrant
Not sure if this runs any faster then yours but it does run quickly for files a little over 50 mb. At least on my Debian box.
Help with Code Tags Python Syntax ( Toggle Plain Text ) import os l = [ "/home/tyrant/Desktop/1.part" , "/home/tyrant/Desktop/2.part" , "/home/tyrant/Desktop/3.part" ] source_file = "/home/tyrant/Desktop/source.file...
Started 2 days, 12 hours ago (2009-11-29 21:24:34)
by lrh9
The class if functionally correct. A few things I'd like to suggest.
1) As far as I'm aware, protected names usually begin with one underscore.
Help with Code Tags Python Syntax ( Toggle Plain Text ) self ._name #"Correct" self .__name #"Incorrect" self._name #"Correct"
self.__name #"Incorrect"
2) I'd probably put an underscore ...
Started 2 days ago (2009-11-30 09:24:21)
by johnroach1985
Yeah... I can see that... I would have rather gotten a quick answer than to read documentation... But thanks... I think... But if anyone else could help that will still be great!
Started 2 days ago (2009-11-30 09:24:09)
by lrh9
• • • • Originally Posted by mahela007 So how, then, does Tk manage to provide windows which look 'native' for the different operating systems? I don't know the way it technically does it, but my best guess is that it uses an API - application programming interface - to standardize how it draws widgets without being aware of operating system details....
Started 2 days, 14 hours ago (2009-11-29 19:24:47)
by masterofpuppets
hi,
you could also use a dictionary if you want to assign values to the variables, e.g.:
Help with Code Tags Python Syntax ( Toggle Plain Text ) d = { } for i in range ( 10 ) : d [ "x" + str ( i ) ] = i print d # -> {'x8': 8, 'x9': 9, 'x2': 2, 'x3': 3, 'x0': 0, 'x1': 1, 'x6': 6, 'x7': 7, 'x4': 4, 'x5': 5}...
Started 2 days, 20 hours ago (2009-11-29 13:25:00)
by vegaseat
If you have Windows you can use this ...
Help with Code Tags Python Syntax ( Toggle Plain Text ) # get disk information on Windows # using the win32 extension module from: # http://sourceforge.net/projects/pywin32/files/ # tested on Windows XP with Python25 and Python31 import win32file def get_drivestats ( drive ) : ...
|
|
Hot threads for last week on Python::
Started 2 days, 20 hours ago (2009-11-29 13:25:00)
by vegaseat
If you have Windows you can use this ...
Help with Code Tags Python Syntax ( Toggle Plain Text ) # get disk information on Windows # using the win32 extension module from: # http://sourceforge.net/projects/pywin32/files/ # tested on Windows XP with Python25 and Python31 import win32file def get_drivestats ( drive ) : ...
Started 6 days, 5 hours ago (2009-11-26 04:21:58)
by ShadyTyrant
Thank you very much for your input. Let me elaborate on what I plan on doing with this module. I will perform SQL query's on a SQLite database holding information about books. I will be able to add, remove, and edit information about books in the database. The reason I even thought about nested classes is because I see the search and edit methods as two separate features. Though ...
Started 5 days, 10 hours ago (2009-11-27 00:00:00)
by Ene Uran
The only one that comes to mind is the Wing IDE from:
http://wingide.com/wingide
There might be a trial version you can test drive.
Started 1 week ago (2009-11-24 18:00:59)
by Musafir
• • • • Originally Posted by woooee Start by asking the player(s) for a name and store it in a dictionary that will also keep track of their score. Then, open one graphic window that will simply display the name and score of the player(s). Worry about the multiple windows and clicking on each at a latter time. The design will be both easier and better if ...
Started 1 week, 1 day ago (2009-11-24 05:02:30)
by Paul Thompson
Why dont you just have it that it reads the first line of project1 and that can have a simple string telling you what version it is. Then if there is a newer one replace
Have this as the first line:
• • • • "12" Help with Code Tags Python Syntax ( Toggle Plain Text ) f = open ( 'proj1.py' ) lineOne = int ( f. readlines ( ) ...
Started 4 days, 16 hours ago (2009-11-27 17:42:15)
by masterofpuppets
hi,
as Ene Uran mentioned, not sure what GUI toolkit this is but I'll try to help anyway, I think I get the overall idea
Just a note: put the import statements in the beginning of the program.
It's something like this:
Help with Code Tags Python Syntax ( Toggle Plain Text ) import time def trafficLights ( ) : win = GraphWin ( )...
Started 4 days, 18 hours ago (2009-11-27 15:40:18)
by lrh9
There are other options as well.
Make both functions methods of a class, and use class attributes to store relevant data.
Combine both functions into one.
Started 1 week, 1 day ago (2009-11-24 06:01:12)
by Archenemie
To be honest when this line is run
Help with Code Tags Python Syntax ( Toggle Plain Text ) print ( ( fname, b ) ) print((fname, b))
it shows both fname, and b, exactly how i want them, I.E it shows the names of the files i want to rename, and b shows the thenamed version. for example
'FerrariCar.jpg' 'Car1.jpg'
LambourghiniCar.jpg'...
Started 1 week ago (2009-11-24 18:00:21)
by ffs82defxp
how do i do that?
like this:
Help with Code Tags Python Syntax ( Toggle Plain Text ) main ( ) main()
?
Started 4 days, 4 hours ago (2009-11-28 05:39:39)
by NicholasE
Hi,
Sorry but i have just realised that it does what i wrote, does not appear correct for some reason.
ok
Help with Code Tags Python Syntax ( Toggle Plain Text ) for i in range ( 0 , 20 , 1 ) : for j in range ( 1 , i, 1 ) : print j for i in range(0, 20, 1):
for j in range(1, i, 1):
print j
the outcome ...
|
|