473,543 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
29
1,817
thread by: mike_wilson1333 | last post Aug 15 '06 by: Jason Nordwick
I would like to generate every unique combination of numbers 1-5 in a 5 digit number and follow each combo with a newline. So i'm looking at generating combinations such as: (12345) , (12235), (55554) and so on. What would be the best way to do this? So, basically i'm looking for a list of all combinations of 1-5 in a 5 digit unique number....
29
2,038
thread by: Xah Lee | last post Oct 1 '06 by: Scott David Daniels
Computer Language Popularity Trend This page gives a visual report of computer languages's popularity, as indicated by their traffic level in newsgroups. This is not a comprehensive or fair survey, but does give some indications of popularity trends. http://xahlee.org/lang_traf/index.html Xah
29
4,946
thread by: John Salerno | last post Nov 7 '06 by: John Henry
Just curious what users of the two big commercial IDEs think of them compared to one another (if you've used both). Wing IDE looks a lot nicer and fuller featured in the screenshots, but a glance at the feature list shows that the "personal" version doesn't even support code folding! That's a little ridiculous and makes me have doubts about...
29
1,406
thread by: John Salerno | last post Oct 26 '06 by: John Salerno
Hi guys. I'm looking for a nicer, more compact way of writing this code. It doesn't have to be anything fancy, just something without the duplication and preferably only one return statement. def create_db_name(self): dlg = wx.TextEntryDialog(self.frame, 'Enter a database name:', 'Create New Database') if dlg.ShowModal() == wx.ID_OK:...
29
1,226
thread by: Dustan | last post Nov 15 '06 by: Robert Kern
According to the following page on Wikipedia: http://en.wikipedia.org/wiki/Python_%28programming_language%29#Future_development reduce is going to be removed in python 3.0. It talks of an accumulation loop; I have no idea what that's supposed to mean. So, =============================== , , ]
29
1,965
thread by: walterbyrd | last post Nov 17 '06 by: Michael
Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of Python. Now that Java has been GPL'd that might change. IMO: it won't make much difference. But I don't really know.
29
2,746
thread by: dyork | last post Dec 18 '06 by: John Nagle
When getting data from a database using the dbapi and an SQL query, how do you in general round trip the data? Especially date-time? An SQL datetime column translates nicely into a Python datetime (surprise), which then translates into a string like '2005-08-03 07:32:48'. No problem with that -- all works quite nicely, until you try to...
29
5,055
thread by: Harlin Seritt | last post Feb 24 '07 by: Paul Rubin
Hi... I would like to take a string like 'supercalifragilisticexpialidocius' and write it to a file in binary forms -- this way a user cannot read the string in case they were try to open in something like ascii text editor. I'd also like to be able to read the binary formed data back into string format so that it shows the original value....
29
2,319
thread by: dbhbarton | last post Mar 11 '07 by: Paddy
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and there's no doubt that context- dependent text formatting in IDEs (keywords, strings, comments etc) is a massive help too, therefore benefitting...
29
1,924
thread by: n00m | last post Mar 26 '07 by: mark.dufour
http://www.spoj.pl/problems/SUMFOUR/ 3 0 0 0 0 0 0 0 0 -1 -1 1 1 Answer for this input data is 33. My solution for the problem is ======================================================================
29
560
thread by: Gerald | last post Apr 3 '07 by: Hendrik van Rooyen
Hi ,Im a BSc4 Maths/Computer Science student.Unfortunately my curriculum did not include Python programming yet I see many vacancies for Python developers.I studied programming Pascal,C++ and Delphi.So I need to catch up quickly and master Python programming.How do you suggest that I achieve this goal?Is python platform independent?What is...
29
5,916
thread by: Carl Banks | last post Sep 26 '07 by: Anurag
Anyone with me here? (I know the deadline for P3 PEPs has passed; this is just talk.) Not many people are bit-fiddling these days. One of the main uses of bit fields is flags, but that's not often done in Python because of keyword arguments and dicts, which are lot more versatile. Another major use, talking to hardware, is not something...
29
1,965
thread by: psaffrey | last post Oct 26 '07 by: Sion Arrowsmith
I've been programming in Python for 5 or more years now and whenever I want a quick-n-dirty GUI, I use Tkinter. This is partly because it's the first toolkit I learnt, but also because it's part of the standard Python distribution and therefore easy to get Python apps to work cross platform - it usually requires almost no porting effort. ...
29
1,546
thread by: joe jacob | last post Dec 8 '07 by: Graham Dumpleton
There are a lot of web frameworks for python like django, mod_python, spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms of performance and ease of study.
29
1,590
thread by: castironpi | last post Feb 17 '08 by: castironpi
What is dream hardware for the Python interpreter?
29
1,671
thread by: jmDesktop | last post Mar 26 '08 by: Simon Brunning
For students 9th - 12th grade, with at least Algebra I. Do you think Python is a good first programming language for someone with zero programming experience? Using Linux and Python for first exposure to programming languages and principles. Thank you.
29
2,315
thread by: s0suk3 | last post Jun 27 '08 by: Nicola Musatti
Hello, I was hoping to get some opinions on a subject. I've been programming Python for almost two years now. Recently I learned Perl, but frankly I'm not very comfortable with it. Now I want to move on two either Java or C++, but I'm not sure which. Which one do you think is a softer transition for a Python programmer? Which one do you think...
29
5,940
thread by: s0suk3 | last post Jun 27 '08 by: Bruno Desthuilliers
I was shocked a while ago when a discovered that in Python you can't do a multiline assignment with comments between the lines. For example, let's say I want to assign a bunch of variables to an initial, single value. In C or a similar language you would do: CONSTANT1 = /* This is some constant */ CONSTANT2 =
29
1,668
thread by: AlFire | last post Jun 27 '08 by: Alexander Schmolck
Hi, I have a piece of software which uses threads in very massive way - like hundreds of them generated every second. there is also a piece of code which maintains the number of outstanding threads, simply counter+=1 is executed when before starting the thread and counter-=1 after it finishes.
29
5,773
thread by: ram.rachum | last post Jun 27 '08 by: ram.rachum
Quick question: I have python code that does a lot of floating point arithmetic. How do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If I'll install a 64-bit operating system, will that do the trick?
29
1,947
thread by: process | last post Nov 6 '08 by: Steve Holden
i just downloaded 2.6 and when running the gui nothing happens. anyone else with the same problem?
28
2,319
thread by: Mark Carter | last post Jul 18 '05 by: John J. Lee
I am using Windows 98, python 2.3, ClientCookie 0.4.3a. When I do: import ClientCookie import os c = ClientCookie.MSIECookieJar(delayload=1) c.load_from_registry() I get the response: Traceback (most recent call last):
28
2,810
thread by: AK | last post Jul 18 '05 by: Erik Max Francis
Hi, I recently read an advice here that one should try to use make and version control system even if you're the only one working on the program. Is that a good advice? How many of you do that? Thanks, -AK
28
3,656
thread by: Paul Rubin | last post Jul 18 '05 by: Trevor Perrin
http://www.nightsong.com/phr/python/sharandom.c This is intended to be less predicable/have fewer correlations than the default Mersenne Twister or Wichmann-Hill generators. Comments are appreciated.
28
3,245
thread by: David MacQuigg | last post Jul 18 '05 by: has
I'm concerned that with all the focus on obj$func binding, &closures, and other not-so-pretty details of Prothon, that we are missing what is really good - the simplification of classes. There are a number of aspects to this simplification, but for me the unification of methods and functions is the biggest benefit. All methods look like...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.