Search Discussions

205 discussions - 1,808 posts

  • 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 JensenCharles 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 ...
    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 ...
    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 DuboisJean 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 AmatulliGiuseppe 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'ApranoSteven 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 DildyJohn 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 BradyAaron 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 AngelicoChris Angelico
    Aug 16, 2012 at 10:36 pm
    Aug 25, 2012 at 1:37 am
  • ���
    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 ...
    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 PTom 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 huMingqiang 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 SmithRoy 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, ...
    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 CropperSimon 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 ShenMok-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 crottiAndrea 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 HarrLee 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 BachThomas 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 LadaskyJohn 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 NagyLaszlo 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 CarterMark 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 KGanesh 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.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 ...
    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 crottiAndrea 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 ...
    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
    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 ...
    Aug 27, 2012 at 1:23 am
    Aug 28, 2012 at 10:01 pm
  • What books do you recomend for learning python? Preferably free and/or online.
    Anonymous GroupAnonymous 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 KumarSantosh 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 KoshtiFrank 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 PalCsanyi 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 katLipska 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 ColeNicholas 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 ComteGuillaume 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 PierroMassimo 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 FurmanEthan Furman
    Aug 15, 2012 at 11:26 pm
    Aug 16, 2012 at 5:46 pm
  • 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, -- HansM
    Hans MulderHans 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 WithersChris 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? ...
    Aug 25, 2012 at 6:34 pm
    Aug 28, 2012 at 11:55 pm
  • 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 huMingqiang 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!
    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 ...
    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 ...
    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 ...
    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 FrederichEric 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
    Aug 14, 2012 at 5:12 am
    Aug 16, 2012 at 11:44 am
Group Navigation
period‹ prev | Aug 2012 | next ›
Group Overview
grouppython-list @

319 users for August 2012

Steven D'Aprano: 131 posts Chris Angelico: 106 posts Mark Lawrence: 103 posts Terry Reedy: 55 posts Dave Angel: 53 posts Lipska the kat: 49 posts Roy Smith: 39 posts Ramchandra Apte: 37 posts Ian Kelly: 35 posts MRAB: 33 posts Wxjmfauth: 31 posts Paul Rubin: 30 posts Laszlo Nagy: 28 posts Peter Otten: 26 posts Rusi: 26 posts Stefan Behnel: 25 posts Hans Mulder: 24 posts Wu wei: 24 posts Andrea crotti: 23 posts Ben Finney: 22 posts
show more