FAQ

Search Discussions

323 discussions - 1,738 posts

  • might be interesting. ?Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress)? http://xahlee.org/comp/comp_lang_unicode.html ...
    Xah LeeXah Lee
    Feb 16, 2011 at 10:07 pm
    Mar 15, 2011 at 12:36 am
  • Hi, I have a series of parameter values which i need to pass throughout my code ( 100), in C I would use a structure for example. However in python it is not clear to me if it would be better to use ...
    Martin De KauweMartin De Kauwe
    Feb 11, 2011 at 2:56 pm
    Feb 14, 2011 at 12:48 pm
  • I'm sure this question is as old as time, but what is the best way to gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk v2.18.9, on RHEL6.) Ta, G. gmotion PyGTK desktop GUI for Motion ...
    GSOGSO
    Feb 16, 2011 at 9:26 pm
    Feb 20, 2011 at 4:54 pm
  • I don't quite understand the interplay of the two different __init__ methods when trying to extend a class. Below is my hack attempt at doing so... class ship(object): def ...
    Benjamin J. RacineBenjamin J. Racine
    Feb 13, 2011 at 9:17 pm
    Feb 16, 2011 at 12:03 am
  • Hey guys, I just found out, how much Python fails on simple math. I checked a simple equation for a friend. [code] False [/code] So WTF? The equation is definitive equivalent. (See ...
    Christian schulzeChristian schulze
    Feb 22, 2011 at 1:20 pm
    Mar 9, 2011 at 4:26 pm
  • def num_digits(n): count = 0 while n: count = count + 1 n = n / 10 return count This is a function that basically says how many digits are in a number. For example, 2 4 This function counts the ...
    NandersonNanderson
    Feb 9, 2011 at 5:52 am
    Feb 11, 2011 at 8:45 am
  • I use Python a lot, but not well. I usually start by writing a small script, no classes or modules. Then I add more content to the loops, and repeat. It's a bit of a trial and error learning phase, ...
    SnorbleSnorble
    Feb 16, 2011 at 6:35 pm
    Feb 23, 2011 at 12:08 pm
  • How can I do something like this in python: #!/usr/bin/python3.1 class MyNumbers: def __init__(self, n): self.original_value = n if n <= 100: self = SmallNumers(self) else: self = BigNumbers(self) ...
    SpamSpam
    Feb 16, 2011 at 2:23 am
    Feb 22, 2011 at 12:43 pm
  • i have a samba server at home (acting as my test environment) with one of the 'shares' mounted as v: on my windows box. inside of that are 4 folders week[1-4]. i have created c:\users\name\backup , ...
    Ecu_jonEcu_jon
    Feb 13, 2011 at 10:06 am
    Feb 15, 2011 at 3:55 am
  • Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 and Idon't move neither up nor down from it (the best & the fastest version)
    N00mN00m
    Feb 27, 2011 at 1:34 pm
    Mar 8, 2011 at 3:45 am
  • I'm interested in developing Python-based programs, including an engineering app. ... re-writing from Fortran and C versions. One of the objectives would to be make reasonable use of the available ...
    Fred MarshallFred Marshall
    Feb 28, 2011 at 4:03 pm
    Mar 10, 2011 at 12:51 am
  • Hi, I was wondering if someone had some advice: I want to create a set of xml input files to my code that look as follows: <?xml version="1.0" encoding="UTF-8"? <!-- Settings for the algorithm to be ...
    Matt FunkMatt Funk
    Feb 21, 2011 at 5:30 pm
    Feb 23, 2011 at 6:48 am
  • I have a tkinter application under Python 2.6 which is shows text in a giant font, about twenty(?) times larger than expected. The fonts are set using: titlefont = ...
    Steven D'ApranoSteven D'Aprano
    Feb 10, 2011 at 6:59 am
    Feb 18, 2011 at 2:13 pm
  • Hello, This might sound crazy..and dont know if its even possible, but... Is it possible that the Python process, creates copies of the interpreter for each thread that is launched, and some how the ...
    VishalVishal
    Feb 8, 2011 at 9:39 am
    Mar 1, 2011 at 6:37 am
  • Hi, I'm looking for a pythonic way to translate this short Ruby code : t=[6,7,8,6,7,9,8,4,3,6,7] i=t.index {|x| x<t.first} If you don't know Ruby, the second line means : What is the index, in array ...
    LL.SnarkLL.Snark
    Feb 11, 2011 at 9:24 pm
    Feb 14, 2011 at 2:07 pm
  • hi Tass, Xah wrote: ?How to Write grep in Emacs Lisp? http://xahlee.org/emacs/elisp_grep_script.html not sure what you meant above. I made a mistake above. I meant to say my search string is few ...
    Xah LeeXah Lee
    Feb 8, 2011 at 12:54 pm
    Feb 11, 2011 at 4:14 pm
  • Hello, I have just subscribed to this python-list@ and this is my N list. Usually many mailing lists use square brackets to identify its name when you have e-mails from different forums. Would you ...
    Przemyslaw BakPrzemyslaw Bak
    Feb 8, 2011 at 10:00 am
    Feb 9, 2011 at 7:45 pm
  • Hi everybody, I am using Python 3.0. I have such a code : b=time.clock() while time.clock()-b<3 : data=s.recv(1024) However I would like to set timeout on the socket rcv method, so that the while ...
    Dwayne BlindDwayne Blind
    Feb 3, 2011 at 5:56 pm
    Feb 7, 2011 at 11:37 pm
  • All, Given the following Perl script: #!/usr/bin/perl %dig = ( solaris = "/usr/sbin/dig", linux = "/usr/bin/dig", darwin = "/usr/bin/dig" ); $DIG = $dig{"$^O"}; $DOMAIN = "example.com"; $DNS = ...
    Gary ChambersGary Chambers
    Feb 2, 2011 at 4:36 am
    Feb 3, 2011 at 4:26 pm
  • Hi all Sorry if this is a dumb question, I would guess it's answered in an FAQ somewhere but I haven't been able to find anything that helps. I'm trying to use Tkinter to create a menu whose entries ...
    RotwangRotwang
    Feb 11, 2011 at 4:54 am
    Feb 11, 2011 at 2:43 pm
  • On behalf of the Python development team, I'm delighted to announce Python 3.2 final release. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final ...
    Georg BrandlGeorg Brandl
    Feb 20, 2011 at 10:22 pm
    Jul 11, 2011 at 10:22 pm
  • Hi! I need to create a pretty complex class at runtime. something like this one: (note: "...." means that the number of attributes can be variable) class VirtualUserLimitForm(ModelForm): swap_limit = ...
    Marc AymerichMarc Aymerich
    Feb 4, 2011 at 7:17 pm
    Feb 6, 2011 at 12:31 pm
  • I have a large (10gb) data file for which I want to parse each line into an object and then append this object to a list for sorting and further processing. I have noticed however that as the length ...
    Kelson ZawackKelson Zawack
    Feb 22, 2011 at 2:57 am
    Feb 23, 2011 at 2:31 pm
  • I have a trivially simple piece of code called timewaster.py: while True: i = 0 for i in range(10): break It runs fine with Eric but when I try to run it from shell... ./timewaster.py: line 4: syntax ...
    WernerWerner
    Feb 17, 2011 at 8:27 am
    Feb 18, 2011 at 5:48 pm
  • I am looking for ways to go about capturing the frequency of unique values in one field in a dbf table which contains ~50k records. The values are numbers with atleast 5 digits to the right of the ...
    NoydbNoydb
    Feb 8, 2011 at 6:36 pm
    Feb 9, 2011 at 8:44 pm
  • Hi, while I usually cope with the woes of floating point issues, this is one, that I didn't expect: 2.3799999999999999 Doesn't the docs say, it's rounded up for this case? <quote Values are rounded ...
    Hans-Peter JansenHans-Peter Jansen
    Feb 15, 2011 at 11:49 pm
    Feb 16, 2011 at 5:39 am
  • Hi all, I am new to python. Currently I encountered a problem, please help me to solve this. Thanks in advance! I have a file like below: ++++++++++++++++++++++++++++++++++++++ block1 { key1=value1 ...
    Wang CoeusWang Coeus
    Feb 14, 2011 at 5:47 am
    Feb 15, 2011 at 5:36 am
  • Hi everybody, I'm totally new to Python but well motivated :-) I'm fooling around with Python in order to interface with FlightGear using a telnet connection. I can do what I had in mind (send some ...
    RobiRobi
    Feb 28, 2011 at 3:54 pm
    Mar 1, 2011 at 7:57 am
  • Hi, I am trying to work through the tutorial at: http://docs.python.org/tutorial/ The issue I am facing is with regards to the discussion about "Invoking the Interpreter" and "Executable Python ...
    Grobs456Grobs456
    Feb 23, 2011 at 10:22 pm
    Feb 24, 2011 at 4:48 pm
  • n += 1 z = z * z + c 3.1415926 Compute ? ? e by counting Mandlebrot set iterations :-) Raymond
    Raymond HettingerRaymond Hettinger
    Feb 20, 2011 at 8:08 am
    Feb 22, 2011 at 12:53 am
  • Hi guys, I'm working on debugging a large python simulation which begins by preloading a huge cache of data. I want to step through code on many runs to do the debugging. Problem is that it takes 20 ...
    Charles Fox (Sheffield)Charles Fox (Sheffield)
    Feb 10, 2011 at 2:30 pm
    Feb 12, 2011 at 2:19 pm
  • Hello ! I'm trying to develop with AF_UNIX socket type in python (2.5) but python says that AF_UNIX is not supported How can I do for work with AF_UNIX sockets? Thank you
    GracemiaGracemia
    Feb 8, 2011 at 12:30 pm
    Feb 8, 2011 at 6:25 pm
  • I work on emacs with flymake activated and pylint, pyflakes and pep8 running in background to notify for some style problems. Now there are at a couple of pylint warnings which I don't understand 1. ...
    Andrea CrottiAndrea Crotti
    Feb 14, 2011 at 11:48 pm
    Feb 15, 2011 at 9:25 pm
  • We need to start demanding that folks move towards 3.0 compliance with their tutorials. Most of the functionality in Python3000 is available from the __future__ module, especially in Python2.6 and ...
    RantingrickRantingrick
    Feb 13, 2011 at 7:18 pm
    Feb 14, 2011 at 11:16 am
  • I'm starting a server process as a subprocess. Startup is slow and unpredictable (around 3-10 sec), so I'm reading from its stdout until I get a line that tells me it's ready before proceeding, in ...
    John O'HaganJohn O'Hagan
    Feb 1, 2011 at 8:30 am
    Feb 12, 2011 at 5:32 am
  • I'm trying to create an image for use in Tkinter. If I understand the PIL documentation correctly, I first need to import Image, then create an instance of the Image class and call 'open' (this ...
    Richard HolmesRichard Holmes
    Feb 7, 2011 at 10:27 pm
    Feb 8, 2011 at 12:43 am
  • In windows ,I tried this p1 = "C:\Users\me\Documents" p2 = "..\Pictures\images\my.jpg" print os.path.join(p1,p2) This gives 'C:\\Users\\me\\Documents\\..\\Pictures\\images\\my.jpg' I expected I would ...
    HarryosHarryos
    Feb 3, 2011 at 4:46 am
    Feb 4, 2011 at 12:10 am
  • Hi all, I want to provide an encapsulated static attribute called _registry for several classes. I try to use inheritance in order to make it DRY: all classes inherit from a BaseClass that implements ...
    Marc AymerichMarc Aymerich
    Feb 1, 2011 at 9:53 pm
    Feb 3, 2011 at 10:13 am
  • Vista Python 3.1.3 I can't figure out how to get IDLE to wrap text pasted in from, say, a newspaper article. Usually, a each paragraph will appear as one long unwrapped line, with no way to read the ...
    Richard D. MooresRichard D. Moores
    Feb 19, 2011 at 11:56 pm
    Jul 7, 2012 at 11:30 am
  • Richard Kettlewell's log on stardate 10 vlj 2011 Indeed. However, it seems to be quite "doable", as it took me from 0 knowledge of Python to come up with a solution that does only part of the thing ...
    BubbaBubba
    Feb 16, 2011 at 5:26 pm
    Mar 18, 2011 at 5:35 am
  • Hi all I thought I was getting the hang of circular imports, but after upgrading to python 3.2 I am stumped again. I know some people think that circular imports are always bad, but others suggest ...
    Frank MillmanFrank Millman
    Feb 27, 2011 at 10:08 am
    Mar 6, 2011 at 7:56 am
  • Hi all, I have to convert integer ranges expressed in a popular "compact" notation (e.g. 2, 5-7, 20-22, 41) to a the actual set of numbers (i.e. 2,5,7,20,21,22,41). Is there any library for doing ...
    SeldonSeldon
    Feb 25, 2011 at 9:27 am
    Mar 3, 2011 at 5:32 pm
  • Here is a simple example: [app] [module] __init__.py -- empty a.py -- import b b.py -- defined a function foo() test.py In the test.py, contains the below statement: from module import a Execute the ...
    人言落日是天涯,望极天涯不见家人言落日是天涯,望极天涯不见家
    Feb 27, 2011 at 12:11 pm
    Feb 27, 2011 at 2:05 pm
  • Hi all I know that the use of 'eval' is discouraged because of the dangers of executing untrusted code. Here is a variation that seems safe to me, but I could be missing something. I have a class, ...
    Frank MillmanFrank Millman
    Feb 24, 2011 at 8:48 am
    Feb 25, 2011 at 5:15 am
  • Hi, I have an inetd service on freebsd that calls a program (daemon.py) with which I want the remote user to communicate. I can call daemon.py from the command line on the host machine and it works ...
    TimTim
    Feb 17, 2011 at 4:14 pm
    Feb 18, 2011 at 10:28 pm
  • Hi All, I apologize in advance if I'm going to write very stupid things, my expertise in http/socket/imap stuff is very close to zero. I'm using Python 2.6.5 on Windows XP SP3. I am trying to access ...
    Andrea GavanaAndrea Gavana
    Feb 17, 2011 at 4:58 am
    Feb 18, 2011 at 9:59 pm
  • Hi, I'd love some help converting this code to the python equivalent: private int getCSSCount(String aCSSLocator){ String jsScript = "var cssMatches = eval_css(\"%s\", ...
    SMERSH009SMERSH009
    Feb 1, 2011 at 4:23 am
    Feb 18, 2011 at 7:09 am
  • The Python logging module calls time.time() in LogRecord.__init__ to fetch the timestamp of the log record. However, time.time() isn't particularly accurate on Windows. We're logging start and end of ...
    BenhoytBenhoyt
    Feb 15, 2011 at 8:32 pm
    Feb 16, 2011 at 7:47 pm
  • I searched quickly to see whether this may have been discussed before, but it's possible my search criteria was not refined enough to get any hits. Forgive me if this is a silly question.. I was ...
    Christian.postaChristian.posta
    Feb 11, 2011 at 3:06 pm
    Feb 11, 2011 at 10:49 pm
  • I'm working on a program that automatically generates C++ code for a Python extension and I noticed a few limitations when using the weaklist and instance dictionaries (tp_weaklistoffset and ...
    Rouslan KorneychukRouslan Korneychuk
    Feb 9, 2011 at 6:54 pm
    Feb 10, 2011 at 4:02 am
Group Navigation
period‹ prev | Feb 2011 | next ›
Group Overview
grouppython-list @
categoriespython
discussions323
posts1,738
users455
websitepython.org

455 users for February 2011

Steven D'Aprano: 73 posts Rantingrick: 52 posts Terry Reedy: 47 posts Chris Rebert: 43 posts Westley Martínez: 41 posts Ben Finney: 35 posts Peter Otten: 32 posts Stefan Behnel: 28 posts MRAB: 26 posts Dan Stromberg: 25 posts Jean-Michel Pichavant: 22 posts Andrea Crotti: 21 posts Martin De Kauwe: 21 posts Stephen Hansen: 20 posts Alex23: 19 posts Ecu_jon: 19 posts Benjamin Kaplan: 17 posts Corey Richardson: 17 posts Ian Kelly: 16 posts Grant Edwards: 15 posts
show more
Archives