473,554 Members | 3,240 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.
27
1,928
thread by: alacrite | last post Apr 20 '06 by: John Salerno
Anyone know if there is a book for Ironpython in the works? A good knowledge of .NET and Python is enough to get started but just poking around Ironpython homepage it seems like there are some new language features added to handle some quirks with working within the CLR. Although I could be wrong. Thanks -Jake
27
3,949
thread by: Julien Fiore | last post May 27 '06 by: greg
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva
27
2,030
thread by: hacker1017 | last post Jun 12 '06 by: John J. Lee
im just asking out of curiosity.
27
1,714
thread by: Ritesh Raj Sarraf | last post Aug 6 '06 by: Gerhard Fiedler
Hi, I have some basic doubts about thread. I have a list which has items in it which need to be downloaded from the internet. Let's say list is: list_items which has 100 items in it.
27
2,805
thread by: Pom | last post Sep 26 '06 by: Lawrence D'Oliveiro
Hello I want to convert a Mysql resulset to a dictionary. I made some code myself, and want to ask you if I do this the right way. def remapmysql(a): return (a, (a)) def test_map():
27
2,802
thread by: fdu.xiaojf | last post Sep 29 '06 by: Neil Cerutti
Hi, String formatting can be used to converting an integer to its octal or hexadecimal form: '307' 'c7' But, can string formatting be used to convert an integer to its binary form ?
27
2,143
true911m
thread by: true911m | last post Dec 21 '06 by: bartonc
I would like to solicit your thoughts and ideas (code can come later) about how you would approach a project idea I just tossed together. I chose this as a testbed for me to play with objects, specifically multiple instances of a few specific objects, and as I thought about it, it raised a lot of questions about how to manage, contain, signal...
27
5,312
thread by: psbasha | last post Feb 28 '08 by: jlm699
Hi, I want to create a Exe of an Pyton Aplication in Windows and UNIX.For example,Ihave the following ".py"files Sample1.py Sample2.py Sample3.py ................ Samplen.py Main.py
27
3,204
thread by: somialis | last post Mar 23 '07 by: somialis
Hi all, I want to read the contents of a csv file thru my python script. The csv file has say n rows and each row contains some numbers separated by commas. I have to access a specific row and then all the numbers separately. For ex: the csv file is something like this: 1 01,02,05,07,18 2 00.01,04 3 09,20,21 now the first number...
27
2,820
thread by: Paulo da Silva | last post Mar 25 '07 by: Paulo da Silva
Hi! I was told in this NG that string is obsolet. I should use str methods. So, how do I join a list of strings delimited by a given char, let's say ','? Old way:
27
2,456
thread by: Robert Hicks | last post Mar 25 '07 by: Robert Hicks
I want to upgrade to 2.5 but I don't see any unistall instructions anywhere. Robert
27
2,891
thread by: bcwhite | last post Apr 20 '07 by: Magnus Lycka
I've been trying to find out what the future of Python is with regard to Tk. It seems there are several interfaces that make use of new functionality, including "Tile" and "Ttk". If I want to write a program that will run under the standard Python distribution of the future, what extension module should I work with today? Thanks!
27
5,300
thread by: Steven D'Aprano | last post Apr 20 '07 by: Steven D'Aprano
I thought that an iterator was any object that follows the iterator protocol, that is, it has a next() method and an __iter__() method. But I'm having problems writing a class that acts as an iterator. I have: class Parrot(object): def __iter__(self): return self def __init__(self): self.next = self._next()
27
1,661
thread by: seberino | last post Apr 25 '07 by: Neil Cerutti
Please help me think of an example where immutable tuples are essential. It seems that everywhere a tuple is used one could just as easily use a list instead. chris
27
2,207
thread by: scott | last post May 21 '07 by: Michael L Torrie
Hi all, I have been looking at the various programming languages available. I have programed in Basic since I was a teenager and I also have a basic understanding of C, but I want something better. Can anybody tell me the benefits and weaknesses of using Python? -- Your friend,
27
1,703
thread by: idoerg | last post Jun 14 '07 by: Gabriel Genellina
Hi all, I am running Python 2.5 on Feisty Ubuntu. I came across some code that is substantially slower when in a method than in a function. ################# START SOURCE ############# # The function def readgenome(filehandle): s = ''
27
2,922
thread by: texas22 | last post Jun 25 '07 by: bartonc
If I have a large number of files how would I search for a particular word in all of the files then have the system print out all the lines in those files that have the word that I am looking for. What would have to be different if I wanted to do another program that would search for two words of my choice and then only print out the lines in...
27
1,473
thread by: John J. Lee | last post Aug 10 '07 by: greg
I'm surprised to read this: http://en.wikipedia.org/wiki/Python_3 """Note that while there is no explicit requirement that code be able to run unmodified in both versions, in practice it is quite likely for most code. As of January 2007, it looks like most reasonable code should run quite well under either branch."""
27
2,527
thread by: brad | last post Oct 10 '07 by: Magnus Lycka
Does anyone else feel that unittesting is too much work? Not in general, just the official unittest module for small to medium sized projects? It seems easier to write some quick methods that are used when needed rather than building a program with integrated unittesting. I see the value of it (the official unittest that is)... especially...
27
1,710
thread by: Licheng Fang | last post Oct 18 '07 by: Marc 'BlackJack' Rintsch
Python is supposed to be readable, but after programming in Python for a while I find my Python programs can be more obfuscated than their C/C ++ counterparts sometimes. Part of the reason is that with heterogeneous lists/tuples at hand, I tend to stuff many things into the list and *assume* a structure of the list or tuple, instead of...
27
5,293
thread by: Sanjay | last post Oct 11 '07 by: Jerry Hill
Hi All, I am using pytz.common_timezones to populate the timezone combo box of some user registration form. But as it has so many timezones (around 400), it is a bit confusing to the users. Is there a smaller and more practical set? If not, some suggestions on how to handle the registration form effectively would help me a lot. thanks...
27
1,850
thread by: notnorwegian | last post Jun 27 '08 by: I V
(might not be the right forum for this but...) what is the definition of a highlevel-language? well there isnt one specifically and wikipedia and the like gives just a very general description obv you can say it abstracts away lowlever operations. yes but how?
27
2,078
thread by: Mark | last post Jun 27 '08 by: MRAB
Hi all, I have a scenario where I have a list like this: User Score 1 0 1 1 1 5 2 3 2 1
28
2,325
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,813
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

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.