Search Discussions
-
Everyone knows that the python command ord(u'?') will output the number 8230 which is the unicode character for the horizontal ellipsis. How would I use ord() to find the unicode value of a string ...
Charles Jensen
Aug 16, 2012 at 10:09 pm
Aug 22, 2012 at 6:53 pm -
I'm having an issue its my first time using python and i set up a class one of the methods is supposed to return a string but instead returns: <bound method Param.returnString of <Param.Param ...
Shaun
Aug 22, 2012 at 2:13 pm
Aug 26, 2012 at 11:29 pm -
This is neither a complaint nor a question, just a comment. In the previous discussion related to the flexible string representation, Roy Smith added this comment ...
Wxjmfauth
Aug 23, 2012 at 12:47 pm
Sep 4, 2012 at 12:53 am -
I'm looking for a good introduction to object oriented programming with Python. I am looking for an introduction which only refers to Python. I have seen introductions where the authors make ...
Jean Dubois
Aug 4, 2012 at 3:49 pm
Aug 9, 2012 at 7:29 am -
Hi, I have a dict() unique like this {(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2} and i want to print to a file without the brackets comas and semicolon in order to obtain something like ...
Giuseppe Amatulli
Aug 9, 2012 at 8:11 pm
Aug 14, 2012 at 6:15 pm -
Most people are aware, if only vaguely, of the big Four Python implementations: CPython, or just Python, the reference implementation written in C. IronPython, written in .NET. Jython, written in ...
Steven D'Aprano
Aug 4, 2012 at 6:15 am
Aug 8, 2012 at 8:29 am -
I am currently using python 2.6 and am not going to install the newer versions of python and i am looking for people that are still using ver 2.6 in python to help with with the code line: sentence = ...
John Mordecai Dildy
Aug 5, 2012 at 7:29 pm
Aug 7, 2012 at 2:09 pm -
Hello, I observed an inconsistency in the behavior of 'set' and 'dict' iterators. It is "by design" according to the docs. ''' http://docs.python.org/dev/library/stdtypes.html#dict-views ...
Aaron Brady
Aug 16, 2012 at 6:00 pm
Sep 10, 2012 at 8:14 pm -
I post using gmail, and I just delete two blank lines at the top and go down the bottom to type. But on the way down, I also trim quoted text, so people don't have to download and read the entire ...
Chris Angelico
Aug 16, 2012 at 10:36 pm
Aug 25, 2012 at 1:37 am -
���
Xantipius
Aug 13, 2012 at 10:18 am
Aug 16, 2012 at 9:01 pm -
As far as I've been able to determine, Python does not remember (immutably, that is) the working directory at the program's start-up, or, if it does, it does not officially expose this information ...
Kj
Aug 19, 2012 at 8:42 pm
Aug 21, 2012 at 8:35 pm -
consider a nested loop algorithm - for i in range(100): for j in range(100): do_something(i,j) Now, suppose I don't want to use i = 0 and j = 0 as initial values, but some other values i = N and j = ...
Tom P
Aug 6, 2012 at 3:52 pm
Aug 14, 2012 at 9:08 pm -
I have a question about the split function? surpose a = "|",and when I use a.split("|") , I got the list ['"",""] ,but I want to get the empty list,what should I do ? An HTML attachment was ...
Mingqiang hu
Aug 14, 2012 at 9:23 am
Aug 25, 2012 at 3:31 pm -
I've been tracking down some weird import problems we've been having with django. Our settings.py file is getting imported twice. It has some non-idempotent code in it, and we blow up on the second ...
Roy Smith
Aug 7, 2012 at 1:18 pm
Aug 9, 2012 at 5:52 am -
Hello I'm slowly teaching myself python so apologies if this is a dumb question. but something has confused me with the os.stat() function: posix.stat_result(st_mode877, st_ino"78764L, st_dev 53L, ...
Boltar2003
Aug 30, 2012 at 11:54 am
Sep 5, 2012 at 1:21 pm -
Hi Everyone, I just had a great idea for a new python module. I haven't bothered googling it or doing any research. I need help putting together some code; today preferably, my boss is on my back ...
Simon Cropper
Aug 14, 2012 at 6:34 am
Aug 14, 2012 at 1:31 pm -
In an earlier question about lists, I was told about the issue of creation of local names in a function. However, I still can't understand why the program below outputs: [999] sss [999] and not two ...
Mok-Kong Shen
Aug 10, 2012 at 9:19 am
Aug 10, 2012 at 3:12 pm -
We're having some really obscure problems with gzip. There is a program running with python2.7 on a 2.6.18-128.el5xen (red hat I think) kernel. Now this program does the following: if filename == ...
Andrea crotti
Aug 1, 2012 at 10:39 am
Aug 2, 2012 at 10:59 am -
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is making all functionality ...
Lee Harr
Aug 15, 2012 at 9:08 pm
Aug 21, 2012 at 4:22 pm -
Hi list, I'm confronted with a strang problem I cannot find a clean solution for. To me it seems like I need meta-classes. Anyway, I stucked a bit deeper in that topic and couldn't find a proper ...
Thomas Bach
Aug 15, 2012 at 9:17 pm
Aug 18, 2012 at 10:36 am -
I have gotten used to switching back and forth between Boolean algebra and numerical values. Python generally makes this quite easy. I just found a case that surprises me. Here is what I want to ...
John Ladasky
Aug 11, 2012 at 10:30 pm
Aug 14, 2012 at 4:32 pm -
Yes, I think that is correct. Instead of detaching a child process, you can create independent processes and use other frameworks for IPC. For example, Pyro. It is not as effective as ...
Laszlo Nagy
Aug 1, 2012 at 8:19 am
Aug 2, 2012 at 2:29 pm -
Suppose I want to define a function "safe", which returns the argument passed if there is no error, and 42 if there is one. So the setup is something like: def safe(x): # WHAT WOULD DEFINE HERE? ...
Mark Carter
Aug 23, 2012 at 9:05 am
Aug 23, 2012 at 9:48 pm -
Hi All, We are trying python 2.6 installation on an RHEL PC , whose 'uname -a' is (Linux 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux ) But, python compilation is ...
Ganesh Reddy K
Aug 20, 2012 at 1:31 pm
Aug 23, 2012 at 11:34 am -
So I'm trying to get as low level as I can with my Dymo label printer, and this method described the PDF http://sites.dymo.com/Documents/LW450_Series_Technical_Reference.pdf seems to be it. I'm ...
Adam W.
Aug 29, 2012 at 12:04 am
Aug 30, 2012 at 10:47 pm -
when i write code like this: class A(object): d = 'it is a doc.' t = A() print t.__class__.d print t.d the output is same. so it means class object's attribute is also the instance's attribute. is it ...
陈伟
Aug 30, 2012 at 10:55 am
Aug 30, 2012 at 11:58 pm -
Hi, I am migrating from PHP to Python and I am slightly confused. I am making a function that takes a startingList, finds all the strings in the list that begin with 'x', removes those strings and ...
Light1quark
Aug 14, 2012 at 3:38 pm
Aug 16, 2012 at 8:09 pm -
I am in the situation where I am working on different projects that might potentially share a lot of code. I started to work on project A, then switched completely to project B and in the transiction ...
Andrea crotti
Aug 13, 2012 at 4:53 pm
Aug 16, 2012 at 3:47 pm -
I'm new to Python and have been using IDLE 3.2.3 to experiment with code as I learn. Despite being configured to use a 4 space indentation width, sometimes IDLE's "smart" indentation insists upon ...
Alex
Aug 24, 2012 at 10:33 pm
Oct 17, 2012 at 3:34 pm -
Hallo, I have an html file on my pc and I want to read it to extract some text. Can you help on which libs I have to use and how can I do it? thank you so much. Michele
Mikcec82
Aug 27, 2012 at 10:59 am
Aug 29, 2012 at 12:00 pm -
My program uses Python 2.6 and Sqlite3 and connects to a network database 100 miles away. My program reads approx 60 records (4000 bytes) from a Sqlite database in less than a second. Each time the ...
Bruceg113355
Aug 27, 2012 at 1:23 am
Aug 28, 2012 at 10:01 pm -
12
Books?
What books do you recomend for learning python? Preferably free and/or online.Anonymous Group
Aug 22, 2012 at 1:36 am
Aug 24, 2012 at 3:13 am -
Here is the script I am using: from os import linesep from string import punctuation from sys import argv script, givenfile = argv with open(givenfile) as file: # List to store the capitalised ...
Santosh Kumar
Aug 22, 2012 at 6:21 am
Aug 23, 2012 at 7:34 am -
Hi, I'm new to regular expressions. I want to be able to match for tokens with all their properties in the following examples. I would appreciate some direction on how to proceed. <h1 @foo1</h1 ()</p ...
Frank Koshti
Aug 18, 2012 at 4:41 am
Aug 18, 2012 at 8:18 pm -
Hi, I'm new to python. I'm searching for a way to develope a Python graphical application for a Postgresql database. I have installed on my Debian GNU/Linux testing/sid system many python packages, ...
Csanyi Pal
Aug 2, 2012 at 6:24 pm
Aug 7, 2012 at 4:03 am -
A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. After a ...
Lipska the kat
Aug 3, 2012 at 11:34 am
Aug 4, 2012 at 7:46 am -
Dear List, In all previous versions of python, I've been able to install packages into the path: ~/Library/Python/$py_version_short/site-packages but in the rc builds of python 3.3 this is no longer ...
Nicholas Cole
Aug 26, 2012 at 6:47 pm
Aug 27, 2012 at 9:29 am -
Hello everyone, I want to use socket.create_connection(...) to set a source address in a ping implementation in python. But how can I then set the type and the protocol? Because, before, I did: icmp ...
Guillaume Comte
Aug 20, 2012 at 9:14 am
Aug 23, 2012 at 1:53 pm -
I discovered I can do this: class A(object): pass class B(object): __class__ = A # <<<< magic b = B() isinstance(b,A) # returns True (as if B derived from A) isinstance(b,B) # also returns True I ...
Massimo Di Pierro
Aug 20, 2012 at 6:01 pm
Aug 21, 2012 at 3:43 pm -
Indexes have a new method (rebirth of an old one, really): .index_search( match, start=None, stop=None, nearest=False, partial=False ) The defaults are to search the entire index for exact matches ...
Ethan Furman
Aug 15, 2012 at 11:26 pm
Aug 16, 2012 at 5:46 pm -
11
type(None)()
Why is that? Why doesn't it just return an existing instance of the type, like bool, int, str and other built-in non-mutable types do? Just wondering, -- HansMHans Mulder
Aug 16, 2012 at 12:47 pm
Aug 16, 2012 at 4:07 pm -
Hi All, I'm pleased to announce the release of xlrd 0.8.0: http://pypi.python.org/pypi/xlrd/0.8.0 This release finally lands the support for both .xls and .xlsx files. Many thanks to John Machin for ...
Chris Withers
Aug 1, 2012 at 3:01 pm
Sep 3, 2012 at 12:18 am -
I am trying to unpack values from sensor data I am retrieving through a serial cable, but I get errors while using struct.unpack, how can I use struct.unpack to unload the data in a readable format? ...
9bizy
Aug 25, 2012 at 6:34 pm
Aug 28, 2012 at 11:55 pm -
10
asking
can I use just one statement to figure out if substring ?a? ,"b" "c" are in string "adfbdfc" ? not use the statement like ("a" in "adfbdfc") or ( "b" in "adfbdfc") or ("c" in "adfbdfc" ) ,because if ...Mingqiang hu
Aug 22, 2012 at 2:57 am
Aug 22, 2012 at 1:56 pm -
Hi, as you can argue from the subject, i'm really,really new to python. What is the best way to achieve that with python? Because the syntax int('30',2) doesn't seem to work!
Gianpycea
Aug 20, 2012 at 7:50 am
Aug 21, 2012 at 4:23 pm -
Is there a way in Python to pass arguments without listing each argument? For example, my program does the following: testData (z[0], z[1], z[2], z[3], z[4], z[5], z[6], z[7]) Is there a clever way ...
Bruceg113355
Aug 9, 2012 at 12:41 am
Aug 9, 2012 at 7:48 pm -
Hello friends Does anyone know if it's possible to pickle and un-pickle a file across a network socket. i.e: First host pickles a file object and writes the pickled file object to a client socket ...
S.B
Aug 6, 2012 at 1:32 pm
Aug 8, 2012 at 9:38 pm -
Hi. I need help with an assignment and I hope you guys can guide me in the right direction. This is the code: ------------------ """ Demostration of setUp and tearDown. The tests do not actually test ...
Tigerstyle
Aug 23, 2012 at 11:25 am
Sep 1, 2012 at 5:08 am -
Hello, I have a bunch of Python bindings for a 3rd party software running on the server side. I can add client side extensions that communicate over some http / xml type requests. So I can define ...
Eric Frederich
Aug 16, 2012 at 8:54 pm
Aug 21, 2012 at 1:22 pm -
Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this.......?? Please help me Thank you Pervez
Mullapervez
Aug 14, 2012 at 5:12 am
Aug 16, 2012 at 11:44 am
Group Overview
group | python-list |
categories | python |
discussions | 205 |
posts | 1,808 |
users | 319 |
website | python.org |
319 users for August 2012
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)