First  |  Prev |  Next  |  Last
Pages: 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
Slicing [N::-1]
What does a slice as [N::-1] ? It looks that in the first it reverses the slice and then it shows only N items, right? Could you add an example to get the same result without use `::` to see it more clear? Thanks in advance ... 5 Mar 2010 22:53
Escaping variable names
Hi, Ive got an issue where a variable name needs to have a minus sign (-) in it. #Python 2.6 from SOAPpy import WSDL wsdlFile = "" server = WSDL.Proxy(wsdlFile) server.soapproxy.config.argsOrdering = {'doGetCountries': ['country-code', 'webapi-key'] } server.doGetCou... 5 Mar 2010 13:55
isinstance(False, int)
>>> isinstance(False, int) True isinstance(True, int) True Huh? issubclass(bool, int) True Huh?! Regards, mk ... 8 Mar 2010 04:14
python on a thumb drive?
Hello all, My name is Alex. I am pretty new to Python, but I really like it. I am trying to put my python and pythonw executables on my thumb drive, along with packages, using Moveable Python, but I cannot figure out how to run scripts using it. I would rather use a shell than the script runner gui since it does... 5 Mar 2010 09:24
Proper way to return an instance of a class from a class method ?
On Fri, Mar 5, 2010 at 2:35 AM, Auré Gourrier <aurelien.gourrier(a)> wrote: <snip> QUESTION 2: If I go this way, I have a second problem: if I create a new class which inherits from the previous, I would expect/like the methods from the initial class to return instances from the new class: cl... 5 Mar 2010 07:12
Selecting MAX from a list
I need to select a maximum number from a list and then call the variable that identifies that number, for example: x1,x2=1, y1,y2=4, z1,z2=3 So I need first to find 4 and then to take y to do additional operations as y-z. I will appreciate your SOON help! ... 5 Mar 2010 08:18
[ANN] pysqlite 2.6.0 released
pysqlite 2.6.0 released ======================= Release focus: Synchronize with sqlite3 module in Python trunk. pysqlite is a DB-API 2.0-compliant database interface for SQLite. SQLite is a in-process library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine... 5 Mar 2010 03:57
comparing two lists
hi I have two lists of names.I need to find the difference between these two lists.I tried to do it using sets.But I am wondering if there is a better way to do it.Please tell me if there is a more elegant way. thanks, jim my code snippet follows.. oldlst=['jon','arya','ned','bran'] newlst=['jaime','jon','c... 5 Mar 2010 12:47
Looking for the mysterious* files in Python 2.6.4(32-bit) for Windows
> IIRC a pyd file is really a DLL, but for a built-in its included into in this case python26.dll. Mystery solved! Thanks Mark! Regards, Malcolm ... 4 Mar 2010 22:31
Looking for the mysterious* files in Python 2.6.4 (32-bit)for Windows
python(a) wrote: In the process of building an EXE with py2exe, I noticed that there's no physical zlib files anywhere on my workstation. I can import zlib and use this module's features without problem. But when I query zlib.__file__, I get back an empty string. Where does the zlib code... 4 Mar 2010 21:23
First  |  Prev |  Next  |  Last
Pages: 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191