473,538 Members | 16,197 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.
90
3,367
thread by: John Salerno | last post Oct 30 '06 by: Antoon Pardon
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
92
6,341
thread by: Reed L. O'Brien | last post Jul 18 '05 by: Nick Craig-Wood
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption? cheers, reed
92
4,280
thread by: Ray | last post Aug 18 '06 by: aaronwmail-usenet
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our development! Two of the senior developers, however, are already rooting for Ruby on Rails--although they haven't tried RoR themselves. When I...
92
3,852
thread by: ureuffyrtu955 | last post Dec 8 '07 by: Jan Claeys
Python is a good programming language, but "Python" is not a good name. First, python also means snake, Monty Python. If we search "python" in google, emule, many results are not programming resource. If we search PHP, all results are programming resource. Second, python also means snake, snake is not a good thing in western culture....
94
4,614
thread by: Gabriel Zachmann | last post Jul 18 '05 by: Carl Banks
Is it correct to say that strong/weak typing does not make a difference if one does not use any pointers (or adress-taking operator)? More concretely, I am thinking particularly of Python vs C++. So, are there any examples (without pointers, references, or adress-taking), which would have a different result in Python and in C++? I would...
96
6,238
thread by: Gustav Hållberg | last post Nov 22 '05 by: bearophileHUGS
I tried finding a discussion around adding the possibility to have optional underscores inside numbers in Python. This is a popular option available in several "competing" scripting langauges, that I would love to see in Python. Examples: 1_234_567 0xdead_beef 3.141_592
96
4,497
thread by: zzbbaadd | last post Sep 5 '07 by: Steve Holden
What's with the index() function of lists throwing an exception on not found? Let's hope this is rectified in Python 3. If nothing else, add a function that doesn't throw an exception. There are a million situations where you can have an item not be in a list and it is not an exception situation.
97
4,329
thread by: Kjetil Torgrim Homme | last post Jul 18 '05 by: Antoon Pardon
often when re-factoring code, I need to change the indent level of some chunk of code. due to the lack of an end marker, my Emacs has to use heuristics when re-indenting, and this will occasionally lead to mistakes. of course this is really _my_ fault, not Emacs', but it's annoying all the same. a colleague uses #fi, #yrt etc. to mark the...
97
4,289
thread by: Cameron Laird | last post Dec 8 '05 by: BartlebyScrivener
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Meyer Among the treasures available in The...
97
2,672
thread by: xahlee | last post Sep 2 '08 by: Martin Gregorie
I'd like to introduce a blog post by Stephen Wolfram, on the design process of Mathematica. In particular, he touches on the importance of naming of functions. • Ten Thousand Hours of Design Reviews (2008 Jan 10) by Stephen Wolfram http://blog.wolfram.com/2008/01/10/ten-thousand-hours-of-design-reviews/ The issue is fitting here today,...
99
5,820
thread by: David MacQuigg | last post Jul 18 '05 by: Duncan Booth
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less important changes, so in this thread I would like to focus on that issue alone. I have edited the Proposed Syntax example below to take out the...
99
4,546
thread by: Paul McGuire | last post Jul 18 '05 by: Avner Ben
There are a number of messages on the python-dev mail list that indicate that Guido is looking for some concensus to come from this list as to what *one* alternative syntax for decorators we would like him to consider in place of the @ syntax that is currently in 2.4a2. I think special thanks are due to: - Anthony Baxter for his continuing...
99
4,576
thread by: Shi Mu | last post Dec 1 '05 by: Mike Meyer
Got confused by the following code: >>> a >>> b >>> c {1: , ], 2: ]} >>> c.append(b.sort()) >>> c {1: , ], 2: , None]}
102
6,947
thread by: Xah Lee | last post Mar 12 '06 by: dcrockett355
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality of its documentation, it is a impeccability. it has or possesses properties of:
103
5,789
thread by: aboxylica | last post Dec 20 '07 by: bvdet
hey! I have a program that takes two input files(one in the matrix form) and one in the sequence form.Now my problem is that i have to give the matrix file(containing many matrices) and sequence file containing many sequences and calculate the same log score as I did for one matrix file and one sequence file. how it should exactly work is...
105
5,084
thread by: Peter Hickman | last post Jul 18 '05 by: Courageous
Well after all this discussion it would appear that a 'Python like' language has appeared => Prothon. http://www.prothon.org/index.html Very alpha, sort of like Python (if you consider the indenting is what makes Python unique) and sort of Ruby in its use of prefixes to define scoping etc (although there is no reference to this trait being...
105
5,233
thread by: Christoph Zwerschke | last post Dec 3 '05 by: Donn Cave
Sometimes I find myself stumbling over Python issues which have to do with what I perceive as a lack of orthogonality. For instance, I just wanted to use the index() method on a tuple which does not work. It only works on lists and strings, for no obvious reason. Why not on all sequence types? Or, another example, the index() method has...
108
7,891
thread by: Zooko O'Whielacronx | last post Jul 18 '05 by: Carlos Ribeiro
I'm a fan of Greg Ewing's PyGUI . I used it to code a simple game for my son , and enjoyed it. Programming with wxPython feels like programming with a C++ tool that has been wrapped in Python. Programming with PyGUI feels like programming with a real Python tool. If you're developing a commercial application in Python, wxPython is...
108
6,302
thread by: Bryan Olson | last post Sep 3 '05 by: Terry Reedy
The Python slice type has one method 'indices', and reportedly: This method takes a single integer argument /length/ and computes information about the extended slice that the slice object would describe if applied to a sequence of length items. It returns a tuple of three integers; respectively these are the /start/ and /stop/ indices and...
108
5,210
thread by: JB | last post Dec 30 '05 by: John J. Lee
It seems that our master Guido van Rossum had an offer from google and he accepted it!! long life to Guido & Goole ! many things to come ;) ju²
112
13,729
thread by: mystilleef | last post Jul 21 '06 by: Ed Jensen
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdom behind them. I welcome example code and...
113
5,188
thread by: John Nagle | last post Feb 7 '07 by: azrael
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. ...
114
9,695
thread by: Maurice LING | last post Jul 18 '05 by: JanC
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
114
7,626
thread by: muldoon | last post Oct 16 '05 by: Dennis Lee Bieber
Americans consider having a "British accent" a sign of sophistication and high intelligence. Many companies hire salespersons from Britain to represent their products,etc. Question: When the British hear an "American accent," does it sound unsophisticated and dumb? Be blunt. We Americans need to know. Should we try to change the way we...
114
3,796
thread by: Andy | last post Nov 10 '08 by: Andy O'Meara
Dear Python dev community, I'm CTO at a small software company that makes music visualization software (you can check us out at www.soundspectrum.com). About two years ago we went with decision to use embedded python in a couple of our new products, given all the great things about python. We were close to using lua but for various...

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.