FAQ

Search Discussions

193 discussions - 1,577 posts

  • This has probably been discussed before, but why is there an implicit conversion to a boolean in if and while statements? if not None: print('hi') prints 'hi' since bool(None) is False. If this was ...
    Andrew BergAndrew Berg
    Jul 15, 2012 at 8:34 am
    Feb 16, 2013 at 12:12 am
  • Pythoners Python 2.7.3 Ubuntu Linux 12.04 LTS I've been taking a brief look at Python. From the tutorial documentation I get the following 'Python is an easy to learn, powerful programming language ...
    Lipska the KatLipska the Kat
    Jul 17, 2012 at 8:45 am
    Aug 19, 2012 at 12:06 pm
  • the meaning of r?.......?? An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20120720/5b003186/attachment-0001.html
    Levi nieLevi nie
    Jul 20, 2012 at 7:56 am
    Aug 29, 2012 at 4:04 am
  • funcs = [ lambda x: x**i for i in range( 5 ) ] print funcs[0]( 2 ) print funcs[1]( 2 ) print funcs[2]( 2 ) This gives me 16 16 16 When I was excepting 1 2 4 Does anyone know why? Cheers, Daniel -- ...
    Daniel FetchinsonDaniel Fetchinson
    Jul 11, 2012 at 6:41 am
    Aug 16, 2012 at 12:26 am
  • Hi! I just had an idea, it occurred to me that the pass statement is pretty similar to the print statement, and similarly to the print() function, there could be a pass() function that does and ...
    Ulrich EckhardtUlrich Eckhardt
    Jul 25, 2012 at 8:40 am
    Jul 27, 2012 at 6:39 am
  • Hello, I want my script to generate a ~1KB status file several times a second. The script may be terminated at any time but the status file must not be corrupted. When the script is started next time ...
    Richard Baron PenmanRichard Baron Penman
    Jul 8, 2012 at 11:29 am
    Jul 14, 2012 at 12:38 pm
  • Pythoners Firstly, thanks to those on the tutor list who answered my questions. I'm trying to understand where Python fits into the set of commonly available, commercially used languages of the ...
    Lipska the katLipska the kat
    Jul 29, 2012 at 4:01 pm
    Aug 24, 2012 at 6:46 pm
  • Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at ...
    Ethan FurmanEthan Furman
    Jul 20, 2012 at 11:59 pm
    Aug 3, 2012 at 1:17 pm
  • Greetings Pythoners A short while back I posted a message that described a task I had set myself. I wanted to implement the following bash shell script in Python Here's the script sort -nr $1 | head ...
    Lipska the KatLipska the Kat
    Jul 21, 2012 at 7:08 pm
    Jul 24, 2012 at 11:34 am
  • I'm writing a program which has to interact with many external resources, at least: - mysql database - perforce - shared mounts - files on disk And the logic is quite complex, because there are many ...
    Andrea crottiAndrea crotti
    Jul 4, 2012 at 9:42 am
    Jul 13, 2012 at 5:24 pm
  • Has anybody else noticed the sudden double-posting of nearly all messages in the python mailing list? Previously, I've seen some messages double posted, and it was nearly always a newbie, presumably ...
    Dave AngelDave Angel
    Jul 21, 2012 at 10:48 am
    Jul 22, 2012 at 3:12 pm
  • I just came across this (https://gist.github.com/1208215): import sys import ctypes pyint_p = ctypes.POINTER(ctypes.c_byte*sys.getsizeof(5)) five = ctypes.cast(id(5), pyint_p) print(2 + 2 == 5) # ...
    Paul RubinPaul Rubin
    Jul 4, 2012 at 7:37 pm
    Jul 15, 2012 at 3:19 pm
  • My current preference is SciTE, available on Linux and Windows both. It's configured using Lua, has lexers (and thus syntax highlighters and auto-indenters) for a huge list of languages (including ...
    Chris AngelicoChris Angelico
    Jul 28, 2012 at 3:51 pm
    Jul 29, 2012 at 9:41 pm
  • I'm trying to do something rather tricky, in which a program imports a module that starts a thread that exec's a (possibly altered) copy of the source in the original program, and the module doesn't ...
    Bruce SherwoodBruce Sherwood
    Jul 18, 2012 at 11:03 pm
    Jul 24, 2012 at 3:33 am
  • Dear Group, I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to discuss some coding issues. If any one of this learned room can shower some light I would be helpful enough. I got to ...
    SubhabangaloreSubhabangalore
    Jul 4, 2012 at 11:21 pm
    Jul 16, 2012 at 2:17 pm
  • I have an interesting problem I'm trying to solve. I have a solution almost working, but it's super ugly, and know there has to be a better, cleaner way to do it. I have a list of path names that ...
    Larry MartellLarry Martell
    Jul 18, 2012 at 10:20 pm
    Jul 20, 2012 at 3:45 pm
  • Hi all, I'd like to ask about the possibilities to do some basic manipulation on timestamps - such as incrementing a given time (hour.minute - string) by some minutes. Very basic notion of "time" is ...
    Vlastimil BromVlastimil Brom
    Jul 5, 2012 at 12:29 am
    Jul 6, 2012 at 9:48 pm
  • I wish to extract the bit fields from a Python float, call it x. First I cast the float to 8-bytes: s = struct.pack('=d', x) i = struct.unpack('=q', s)[0] Then I extract the bit fields from the int, ...
    Steven D'ApranoSteven D'Aprano
    Jul 30, 2012 at 12:44 am
    Jul 30, 2012 at 8:50 pm
  • Hi widget wizards, The manual describes the "event" attribute "widget" as "The widget which generated this event. This is a valid Tkinter widget instance, not a name. This attribute is set for all ...
    Frederic RentschFrederic Rentsch
    Jul 8, 2012 at 9:19 pm
    Jul 16, 2012 at 10:32 am
  • Hello, very often I have the following problem: I write a program that processes many files which it assumes to be encoded in utf-8. Then, some day, I there is a non-utf-8 character in one of several ...
    Jaroslav DobrekJaroslav Dobrek
    Jul 25, 2012 at 11:05 am
    Aug 30, 2012 at 5:50 am
  • Do you participate in StackOverflow discussions? As a part of a joint on-going research effort of the Brunel University (UK) and Eindhoven University of Technology (The Netherlands) on the impact of ...
    Alexander SerebrenikAlexander Serebrenik
    Jul 23, 2012 at 12:51 pm
    Jul 24, 2012 at 8:33 am
  • Hi all I'm new to Python but soon after a few days of studying its features I find it my favourite mean of programming scripts to allow for data storing and mining. My idea would be to inplement ...
    Maurizio SpadaccinoMaurizio Spadaccino
    Jul 5, 2012 at 7:22 am
    Jul 7, 2012 at 2:31 pm
  • Dear Group, I was trying to convert the list to a set, with the following code: set1=set(list1) the code was running fine, but all on a sudden started to give the following error, set1=set(list1) ...
    SubhabangaloreSubhabangalore
    Jul 29, 2012 at 9:27 am
    Jul 30, 2012 at 11:15 am
  • I'm totally confused by this code: Code: I'm expecting the code as: What's wrong? And this question made my GUI program totally out of control. Thanks[?] An HTML attachment was scrubbed... URL ...
    Stone LiStone Li
    Jul 23, 2012 at 2:50 pm
    Jul 24, 2012 at 10:05 am
  • In Foxpro if you do a GOTO 7 with deleted off and record 7 is deleted, the record pointer doesn't move (at least in version 6). I don't like that. I see four other options: 0) don't move the pointer ...
    Ethan FurmanEthan Furman
    Jul 17, 2012 at 10:57 pm
    Jul 18, 2012 at 7:13 pm
  • I created py2c ( http://code.google.com/p/py2c )- an open source Python to C/C++ translator! py2c is looking for developers! To join create a posting in the py2c-discuss Google Group or email me! ...
    Maniandram01Maniandram01
    Jul 30, 2012 at 1:27 pm
    Jan 9, 2015 at 9:24 am
  • I have a program that creates various database objects in PostgreSQL. There is a DOM, and for each element in the DOM, a database object is created (schema, table, field, index and tablespace). I do ...
    Laszlo NagyLaszlo Nagy
    Jul 26, 2012 at 12:26 pm
    Jul 27, 2012 at 9:59 am
  • In article <3rCdnUCiWpP1gZHNnZ2dnUVZ7vQAAAAA at giganews.com , Tony the Tiger wrote: To answer the question you asked, to convert a list of strings to a list of ints, you want to do something like ...
    Roy SmithRoy Smith
    Jul 22, 2012 at 3:39 pm
    Jul 23, 2012 at 3:31 pm
  • I found that the behaviour of assertRaises used as a context manager a bit surprising. This small example doesn't fail, but the OSError exception is cathed even if not declared.. Is this the expected ...
    Andrea crottiAndrea crotti
    Jul 16, 2012 at 1:38 pm
    Jul 17, 2012 at 11:31 pm
  • Dear friends, I just joined the group. I was trying porting from bash shell to python. let me know if someone has tried to implement (grep and PIPE) ?shell commands in python `lspci | grep Q | grep ...
    Vikas Kumar ChoudharyVikas Kumar Choudhary
    Jul 30, 2012 at 7:05 am
    Jul 30, 2012 at 11:46 pm
  • Hi, I just want to use a beep command that works cross platform. I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. This fails on my Ubuntu 12.04 host, as the ...
    Gelonida NGelonida N
    Jul 14, 2012 at 1:00 am
    Jul 24, 2012 at 10:19 pm
  • Is there any software to help understand python code ? Thanks hamilton
    HamiltonHamilton
    Jul 16, 2012 at 1:26 am
    Jul 17, 2012 at 2:11 pm
  • I've been using unittest for many years, but have steadfastly (perhaps stubbornly) avoided newfangled improvements like nose. I finally decided to take a serious look at nose. There were a few pain ...
    Roy SmithRoy Smith
    Jul 13, 2012 at 12:42 pm
    Jul 27, 2012 at 2:51 pm
  • Hello, I have a daemon process that runs for a considerable amount of time (weeks on end) without any problems. At some point I start getting the exception: Exception info: Traceback (most recent ...
    IvdneutIvdneut
    Jul 24, 2012 at 11:48 am
    Jul 24, 2012 at 8:08 pm
  • Hello Pythonlist, I have one very basic question about speed,memory friendly coding, and coding style of the following easy "if"-statement in Python 2.7, but Im sure its also the same in Python 3.x ...
    Jan RiechersJan Riechers
    Jul 21, 2012 at 7:33 am
    Jul 23, 2012 at 9:48 pm
  • Hello Someone I know with no computer knowledge has a studio appartment to rent in Paris and spent four months building a small site in Joomla to find short-time renters. The site is just... - a few ...
    GillesGilles
    Jul 4, 2012 at 9:30 am
    Jul 13, 2012 at 1:07 pm
  • hi all, are there any information about upcoming availability of parallel computations in CPython without modules like multiprocessing? I mean something like parallel "for" loops, or, at least, ...
    DmitreyDmitrey
    Jul 1, 2012 at 5:51 pm
    Jul 4, 2012 at 3:16 am
  • as some folks may remember, I have been working on making Python and its tool base more accessible to disabled programmers. I've finally come up with a really simple technique which should solve 80% ...
    Eric S. JohanssonEric S. Johansson
    Jul 29, 2012 at 11:21 pm
    Aug 3, 2012 at 8:04 pm
  • Hi group, I have a question of which I'm unsure if the specification guarantees it. With an arbitrary dictionaty d, are d.keys() and d.values() guaraneed to be in the same order? I.e. what I mean ...
    Henrik FaberHenrik Faber
    Jul 23, 2012 at 11:23 am
    Jul 26, 2012 at 9:13 pm
  • I'm trying to combine python-code made with QT4 designer with plain python statements like file = open("test","w") Can anyone tell me what I have to add to the following code just to open a file when ...
    Jean DuboisJean Dubois
    Jul 11, 2012 at 3:37 pm
    Jul 16, 2012 at 1:56 pm
  • Hi all I have a situation where I thought using weakrefs would save me a bit of effort. I have a basic publish/subscribe scenario. The publisher maintains a list of listener objects, and has a method ...
    Frank MillmanFrank Millman
    Jul 4, 2012 at 1:46 pm
    Jul 7, 2012 at 5:41 am
  • aList is a list.i want to get the output seem this "aList is [x,x,x,x,x,x,x,x,x]" how can i get this? it's wrong when i write this, print "aList is "+[x,x,x,x,x,x,x,x,x] An HTML attachment was ...
    Levi nieLevi nie
    Jul 4, 2012 at 4:12 am
    Jul 4, 2012 at 8:24 am
  • Hi, would like to take eliminate a specific number in an array and its correspondent in an other array, and vice-versa. given a=np.array([1,2,4,4,5,4,1,4,1,1,2,4]) ...
    Giuseppe AmatulliGiuseppe Amatulli
    Jul 24, 2012 at 6:27 pm
    Aug 10, 2012 at 8:47 am
  • Hello again pythoners I'm trying to understand the python package stuff I have the following directory /home/lipska/python/dev/mods In this directory I have two files, both executable ...
    Lipska the KatLipska the Kat
    Jul 23, 2012 at 10:02 am
    Jul 24, 2012 at 7:49 am
  • Hi, This is a general question, loosely related to python since it will be the implementation language. I would like some suggestions as to manage simulation results data from my ASIC design. For my ...
    MoogydMoogyd
    Jul 14, 2012 at 5:50 am
    Jul 17, 2012 at 8:20 am
  • All, I am trying to figure out how to send a image in the body of a email when Making a Meeting Request. Below is my current code. Thanks, Bruce # code below is mainly from ...
    Bruceg113355Bruceg113355
    Jul 23, 2012 at 5:19 pm
    Jul 24, 2012 at 12:42 am
  • If a class has defined its own __repr__ method, is there a way of getting the default repr output for that class anyway? I'm attempting to graph some objects by digging around in the garbage ...
    Dan StrombergDan Stromberg
    Jul 22, 2012 at 10:48 pm
    Jul 23, 2012 at 1:14 pm
  • tim at laptop:~/tmp$ python Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. ['Emai', ''] I get the same ...
    Tim ChaseTim Chase
    Jul 19, 2012 at 11:21 am
    Jul 20, 2012 at 4:59 pm
  • COPY THIS MESSAGE FAST BECAUSE JEWS AND TRAITORS DELETE IT FAST! After Jews created Israel illegally, Israel became the main base of criminal operations for the most insane type of Jews called ...
    Suzi MrezutttiiSuzi Mrezutttii
    Jul 15, 2012 at 7:06 pm
    Jul 20, 2012 at 1:58 pm
  • I've held off announcing this until I was sure it was really stable; it's been 19 days since I made the last change to it, so here goes. PollyReports is my Python module for report generation. It is ...
    Chris GonnermanChris Gonnerman
    Jul 11, 2012 at 2:06 pm
    Jul 12, 2012 at 2:10 pm
Group Navigation
period‹ prev | Jul 2012 | next ›
Group Overview
grouppython-list @
categoriespython
discussions193
posts1,577
users298
websitepython.org

298 users for July 2012

Steven D'Aprano: 133 posts Chris Angelico: 117 posts Ian Kelly: 46 posts Mark Lawrence: 46 posts Terry Reedy: 42 posts Ethan Furman: 38 posts Rusi: 36 posts Rick Johnson: 35 posts Devin Jeanpierre: 33 posts Lipska the Kat: 29 posts Roy Smith: 27 posts Dave Angel: 26 posts MRAB: 26 posts Andrea Crotti: 24 posts Andrew Berg: 22 posts Laszlo Nagy: 22 posts Peter Otten: 22 posts Tim Chase: 22 posts Thomas Jollans: 20 posts Hans Mulder: 18 posts
show more
Archives