FAQ

Search Discussions

258 discussions - 1,569 posts

  • 'Aloha! I'm new to python, got 10-20 years perl and C experience, all gained on unix alike machines hacking happily in vi, and later on in vim. Now it's python, and currently mainly on my kubuntu ...
    MogulMogul
    Dec 27, 2012 at 8:01 pm
    Jan 7, 2013 at 5:53 am
  • Hello, to all, I hope I can describe me problem correctly. I have written a Project split up to one Main.py and different modules which are loaded using import and here is also my problem: 1. Main.py ...
    PrilisauerPrilisauer
    Dec 22, 2012 at 10:59 am
    Dec 27, 2012 at 1:25 pm
  • Hi, The objective of Brython is to replace Javascript by Python as the scripting language for web browsers, making it usable on all terminals including smartphones, tablets, connected TVs, etc ...
    Pierre QuentelPierre Quentel
    Dec 19, 2012 at 6:19 pm
    Dec 22, 2012 at 9:49 pm
  • Hi all, I'm confused again with a compare update function. The problem is that my function does not work at all and I don't get it where it comes from. in my DB I have total of 754 products. when I ...
    Anatoli HristovAnatoli Hristov
    Dec 5, 2012 at 10:50 pm
    Dec 9, 2012 at 7:39 am
  • I was using the German word "Stra?e" (Strasse) ? German translation from "street" ? to illustrate the catastrophic and completely wrong-by-design Unicode handling in Py3.3, this time from a memory ...
    WxjmfauthWxjmfauth
    Dec 19, 2012 at 2:23 pm
    Dec 29, 2012 at 7:16 pm
  • Hi, I came across itertools.dropwhile only today, then shortly afterwards found Raymond Hettinger wondering, in 2007, whether to drop [sic] dropwhile and takewhile from the itertools module. Fate of ...
    Nick MellorNick Mellor
    Dec 4, 2012 at 1:57 pm
    Dec 6, 2012 at 9:29 pm
  • Thesaurus: A different way to call a dictionary. Thesaurus is a new a dictionary subclass which allows calling keys as if they are class attributes and will search through nested objects recursively ...
    Dave CinegeDave Cinege
    Dec 11, 2012 at 3:48 am
    Dec 13, 2012 at 1:46 am
  • While I am defining a function, how can I access the name (separately as string as well as object) of the function without explicitly naming it(hard-coding the name)? For eg. I am writing like: def ...
    Abhas BhattacharyaAbhas Bhattacharya
    Dec 26, 2012 at 2:00 am
    Dec 29, 2012 at 10:18 am
  • The following test program which tries to communicate with a Keithley 2200 programmable power supply using usbtmc in Python does not work as expected. I have connected a 10 ohm resistor to its ...
    Jean DuboisJean Dubois
    Dec 4, 2012 at 12:14 pm
    Dec 12, 2012 at 4:16 pm
  • how to detect the character encoding in a web page ? such as this page http://python.org/
    iMathiMath
    Dec 24, 2012 at 12:34 am
    Jun 9, 2013 at 9:35 pm
  • My aim is to get a job into google or cisco or facebok. I have basic knowledge in python,c,java and good in javascript,html,css, database concepts. If i learn django and python. Shall I get my dream ...
    Suresh PinnapaSuresh Pinnapa
    Dec 14, 2012 at 2:49 am
    Dec 15, 2012 at 11:34 am
  • Hello guys, I'm using Linux CentOS and Python 2.4 with MySQL 5.xx, I get error with Unicode I tried many things that I found on the net but none of them working. If I dont use UTF-8 it inserts the ...
    Anatoli HristovAnatoli Hristov
    Dec 16, 2012 at 9:10 pm
    Dec 18, 2012 at 12:07 am
  • Hi, I'm interested in compilers optimizations, so I study python compilation process I ran that script: import timeit def f(x): return None def g(x): return None print(x) number = 10000 ...
    Bruno DupuisBruno Dupuis
    Dec 5, 2012 at 3:46 pm
    Dec 13, 2012 at 7:03 am
  • Hello. What I want to do is delete every dictionary key/value of the name 'Favicon' regardless of depth in subdicts, of which there are many. What is the best way to do it? -- Gnarlie
    GnarlodiousGnarlodious
    Dec 17, 2012 at 5:27 pm
    Dec 18, 2012 at 4:29 pm
  • Hi all, I would like to sort according to this order: (' ', '.', '\'', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'A', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', 'b', 'B', ...
    Pander MusubiPander Musubi
    Dec 24, 2012 at 3:32 pm
    Dec 28, 2012 at 10:27 am
  • Hey guys, I'm working on a Python rock paper scissors (lizard spock) game, and the beginning is complete. After I finished it, I thought, "You know what? I think I can make this even better, and add ...
    Darrien GlasserDarrien Glasser
    Dec 16, 2012 at 5:00 pm
    Dec 18, 2012 at 5:16 am
  • I have a list of tuples that contains a tool_id, a time, and a message. I want to select from this list all the elements where the message matches some string, and all the other elements where the ...
    Larry MartellLarry Martell
    Dec 21, 2012 at 12:19 am
    Dec 24, 2012 at 5:57 pm
  • Example of the issue for arguments sake: Platform Ubuntu server 12.04LTS, python 2.7 Say file1.txt has "hello world" in it. subprocess.Popen("cat < file1 file2", shell = True) subprocess.call("cat < ...
    Py_geneticPy_genetic
    Dec 14, 2012 at 6:13 pm
    Dec 18, 2012 at 11:03 pm
  • Python help. I can connect to and download a web page, html code, and save it to a file. If connected to the web, I can use KWrite to open the file and navigate the page. I want to view the html file ...
    Inq1ltdInq1ltd
    Dec 5, 2012 at 7:36 pm
    Dec 7, 2012 at 4:37 pm
  • Error: AttributeError: 'module' object has no attribute '_strptime' This problem is driving me crazy. It only happens in Python 3.3.0, while on my server running 3.1.3 it behaves as expected. When I ...
    GnarlodiousGnarlodious
    Dec 26, 2012 at 4:33 pm
    Dec 28, 2012 at 3:48 am
  • Follow-on question to this earlier topic - https://groups.google.com/d/topic/comp.lang.python/wnUlPBBNah8/discussion Was curious to know if there was a way to handle different user computers with ...
    NoydbNoydb
    Dec 10, 2012 at 9:18 pm
    Dec 12, 2012 at 5:29 am
  • Newbie question. I've googled a little and haven't found the answer. Given a list like: w = [1, 2, 3, 1, 2, 4, 4, 5, 6, 1] I would like to be able to do the following as a dict comprehension. a = {} ...
    Quint RankidQuint Rankid
    Dec 29, 2012 at 7:48 pm
    Jan 1, 2013 at 8:40 am
  • I really hope you can help! I need to create a program where the user can order any combination and quantity of 3 products. I then offer a 10% discount if the customer correctly answers a trivia ...
    BobflipperdoodleBobflipperdoodle
    Dec 26, 2012 at 11:04 pm
    Dec 27, 2012 at 6:33 am
  • Hi Team, i am new to python and i am using python loggin for log the value of the object. Below is my code : class field: field_name = "" length = 0 type = 0 value = "" def __init__(self, field_name, ...
    Morten EngvoldsenMorten Engvoldsen
    Dec 28, 2012 at 2:27 pm
    Dec 29, 2012 at 9:22 pm
  • Hi! Im totally new to Python, and im using it on my Raspberry pi. I found a program that sends an email, and one that checks the temperature of my CPU, but i cant seem to combine the to into the ...
    Alexander RanstamAlexander Ranstam
    Dec 22, 2012 at 8:36 pm
    Dec 24, 2012 at 12:31 am
  • Hi, I have googled but did not find an efficient solution to my problem. My customer provides a directory with a huuuuge list of files (flat, potentially 100000+) and I cannot reasonably use ...
    Gilles LenfantGilles Lenfant
    Dec 17, 2012 at 3:28 pm
    Dec 17, 2012 at 9:27 pm
  • So I implemented a simple decorator to run a function in a forked process, as below. It works well but the problem is that the childs end up as zombies on one machine, while strangely I can't ...
    Andrea crottiAndrea crotti
    Dec 10, 2012 at 3:42 pm
    Dec 12, 2012 at 3:23 pm
  • Dear Group, I have a tuple of list as, tup_list=[(1,2), (3,4)] Now if I want to covert as a simple list, list=[1,2,3,4] how may I do that? If any one can kindly suggest? Googling didn't help much ...
    SubhabangaloreSubhabangalore
    Dec 3, 2012 at 7:58 pm
    Dec 4, 2012 at 1:54 pm
  • where to view open() function's C implementation source code ?
    iMathiMath
    Dec 18, 2012 at 5:25 am
    Dec 19, 2012 at 4:49 am
  • Hi all, I'm working on a project in Python 2.7. I have a few large objects, and I want to save them for later use, so that it will be possible to load them whole from a file, instead of creating them ...
    Omer KoratOmer Korat
    Dec 27, 2012 at 10:46 am
    Jan 2, 2013 at 2:08 pm
  • I need to come up with a Python code to automate a map creation process but I am a little bit of lack of python knowledge. Any help would be much appreciated. My problem is that I have a 20 mxd file ...
    BalparmakBalparmak
    Dec 20, 2012 at 5:08 pm
    Dec 20, 2012 at 9:21 pm
  • I am somewhat new to Python and virtualenv. I have setup a virtualenv with no site packages under the assumption that all 3rd party packages will be installed into the site-packages directory for the ...
    RhythmicdevilRhythmicdevil
    Dec 19, 2012 at 2:14 pm
    Dec 20, 2012 at 6:38 pm
  • I have a program that has a main GUI and a camera. In the main GUI, you can manipulate the images taken by the camera. You can also use the menu to check the camera's settings. Images are taken by ...
    WandererWanderer
    Dec 12, 2012 at 8:11 pm
    Dec 13, 2012 at 5:53 pm
  • Hi all, I'm facing an issue inserting an html code into the DB, it comes out with a syntax error but I face it only when I have html code. Could help me escape the error somehow ? Here is my code def ...
    Anatoli HristovAnatoli Hristov
    Dec 11, 2012 at 12:04 am
    Dec 11, 2012 at 11:19 am
  • Hi, is there a means to specify that 'ignore-case' should only apply to a part of a regex? E.g. the regex should match Msg-id:, Msg-Id, ... but not msg-id: and so on. I've tried the pattern ...
    Helmut JarauschHelmut Jarausch
    Dec 30, 2012 at 11:24 am
    Jan 2, 2013 at 2:17 pm
  • When I use a config file things seem to work (in other projects), but for my current code I hoped to configure logging from Python. I distilled my problem down to the following test, which does not ...
    Andrew cookeAndrew cooke
    Dec 28, 2012 at 7:57 pm
    Dec 30, 2012 at 1:08 am
  • Hi, I hope that this isn't a stupid question, asked already a hundred times, but I haven't found anything definitive on the problem I got bitten by. I have two Python files like this: -------- S1.py ...
    Jens Thoms ToerringJens Thoms Toerring
    Dec 20, 2012 at 8:39 pm
    Dec 21, 2012 at 3:52 pm
  • Hi, I am new to python and web2py framework. Need urgent help to match a pattern in an string and replace the matched text. I've this string (basically an sql statement): stmnt = 'SELECT taxpayer.id, ...
    ATAT
    Dec 19, 2012 at 10:42 am
    Dec 19, 2012 at 2:23 pm
  • Greetings; I had an app that is a heavy user of python crash on exit earlier today, and ever since, the app complains it can't find something in the python tree, and eventually the app exits. The ...
    Gene HeskettGene Heskett
    Dec 16, 2012 at 1:38 am
    Dec 16, 2012 at 8:00 pm
  • Hi folks, I swear I used to know this but can't find it anywhere: What's the standard idiom for unpacking the first few items of an iterable whose total length is unknown? Something like a, b, c, = ...
    Daniel FetchinsonDaniel Fetchinson
    Dec 13, 2012 at 7:37 pm
    Dec 13, 2012 at 10:22 pm
  • Hey, I need to write a program that prints out a square, which is empty on the inside. So far, I've made a program that outputs a square, which is full on the inside. P.S. Between every asterisk ...
    SiimnurgesSiimnurges
    Dec 12, 2012 at 4:48 pm
    Dec 13, 2012 at 12:12 am
  • Hi All How to using python send file uptp 60MB ? s = smtplib.SMTP("localhost") #~~ s.set_debuglevel(1) s.sendmail(from_addr, to_addr,m.as_string()) s.quit For 13MB file have below error ...
    MoonhktMoonhkt
    Dec 4, 2012 at 8:15 am
    Dec 10, 2012 at 3:51 pm
  • I am working with Python looping in SPSS. What are the limits for the for var1, var2, var3 in zip(Variable1, Variable2, Variable3): statement in the Python looping function within SPSS? I am getting ...
    AlankrinskyAlankrinsky
    Dec 28, 2012 at 4:01 pm
    Dec 28, 2012 at 6:20 pm
  • Hello: I am writing a program that is made up of a collection of POV-Ray macros. POV-Ray is available at povray.org. It is a ray-tracing program that reads a scene description language (SDL) to ...
    Kene MeniruKene Meniru
    Dec 23, 2012 at 5:19 pm
    Dec 24, 2012 at 11:35 am
  • how to detect the encoding used for a specific text data ?
    iMathiMath
    Dec 20, 2012 at 11:57 am
    Dec 21, 2012 at 2:14 pm
  • Hi; I have this test code: if i_id == "1186": sql = 'insert into interactions values(Null, %s, "Call Back", "%s")' % (i_id, date_plus_2) cursor.execute(sql) db.commit() print sql It prints the sql ...
    Tom BorkinTom Borkin
    Dec 18, 2012 at 9:34 pm
    Dec 19, 2012 at 1:28 pm
  • Hello all. Got a question for anyone out there that is willing to help. Looking to make a Python Daemon, Google searches lead me to http://pypi.python.org/pypi/python-daemon. My question is 2 part ...
    N8feltonN8felton
    Dec 16, 2012 at 3:26 pm
    Dec 17, 2012 at 12:18 pm
  • Hello guys, Excuse me for the noob question, but is there a way to compare a field in mysql as lower() somehow? I have a situation where I compare the SKU in my DB and there are some SKU that are ...
    Anatoli HristovAnatoli Hristov
    Dec 11, 2012 at 9:01 pm
    Dec 15, 2012 at 12:57 am
  • I understand this is not exactly a Python question, but it may be of interest to other Python programmers, so I'm asking it here instead of a more generic Linux group. I have a Centos system which ...
    Steven D'ApranoSteven D'Aprano
    Dec 14, 2012 at 2:45 am
    Dec 14, 2012 at 5:59 pm
  • I need help with a program i am doing. it is a cryptography program. i am given a regular alphabet and a key. i need to use the user input and use the regular alphabet and use the corresponding ...
    QbaileyQbailey
    Dec 10, 2012 at 10:38 pm
    Dec 11, 2012 at 10:21 pm
Group Navigation
period‹ prev | Dec 2012 | next ›
Group Overview
grouppython-list @
categoriespython
discussions258
posts1,569
users327
websitepython.org

327 users for December 2012

Chris Angelico: 127 posts Steven D'Aprano: 79 posts Dave Angel: 67 posts Terry Reedy: 65 posts Ian Kelly: 47 posts Mitya Sirenef: 44 posts Hans Mulder: 37 posts Anatoli Hristov: 32 posts MRAB: 31 posts Roy Smith: 29 posts Peter Otten: 26 posts iMath: 18 posts Mark Lawrence: 17 posts Neil Cerutti: 16 posts Subhabangalore: 15 posts Jean Dubois: 15 posts Vlastimil Brom: 15 posts Prilisauer: 14 posts Alexander Blinne: 14 posts Cameron Simpson: 13 posts
show more
Archives