FAQ

Search Discussions

300 discussions - 1,669 posts

  • Tkinter: The good, the bad, and the ugly! ----------------------------------------- An expose by rantingrick ---------------------- The Good ---------------------- Back in the early days of Python ...
    RantingrickRantingrick
    Dec 29, 2010 at 11:58 pm
    Feb 25, 2011 at 11:28 pm
  • When I run pychecker through my modules I get the message that comparisons with "False" is not necessary and that it might yield unexpected results. Yet in some situations I need to specifically ...
    HarishankarHarishankar
    Dec 2, 2010 at 7:28 am
    Dec 9, 2010 at 5:54 pm
  • Hi c.l.p folks This is a rather long post, but i wanted to include all the details & everything i have tried so far myself, so please bear with me & read the entire boringly long post. I am trying to ...
    Spaceman-spiffSpaceman-spiff
    Dec 20, 2010 at 7:34 pm
    Jan 14, 2011 at 2:22 am
  • Consider this code: def spam(*args, **kwargs): args, kwargs = __pre_spam(*args, **kwargs) # args & kwargs are OK: proceed # ... def __pre_spam(*args, **kwargs): # validate args & kwargs; # return ...
    KjKj
    Dec 14, 2010 at 9:14 pm
    Dec 27, 2010 at 1:07 pm
  • (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of ...
    John GordonJohn Gordon
    Dec 16, 2010 at 9:49 pm
    Dec 21, 2010 at 7:54 pm
  • Hello, This is my first post on python mailing list. I've working in code which must run on python 2 and python 3. I am using array.array as data buffers. I am stuck with the following code line, ...
    Wander.lairsonWander.lairson
    Dec 12, 2010 at 1:32 am
    Dec 28, 2010 at 3:00 pm
  • I'm aggravated by this behavior in python: x = "4" print x < 7 # prints False The issue, of course, is comparisons of incompatible types. In most languages this throws an error (in Perl the types are ...
    TomFTomF
    Dec 6, 2010 at 4:59 pm
    Dec 10, 2010 at 1:55 pm
  • Consider the following common exception handling idiom: def func(iterable): it = iter(iterable) try: x = next(it) except StopIteration: raise ValueError("can't process empty iterable") print(x) The ...
    Steven D'ApranoSteven D'Aprano
    Dec 3, 2010 at 1:04 pm
    Dec 13, 2010 at 9:43 pm
  • Hi, all, Python critique from strchr.com: http://www.strchr.com/python_critique
    Kolo 32Kolo 32
    Dec 10, 2010 at 10:31 am
    Jan 31, 2011 at 4:48 pm
  • Hi all, I need to stop a threaded (using CTR+C or kill) application if it runs too much or if I decide to resume the work later. I come up with the following test implementation but I wanted some ...
    GervazGervaz
    Dec 29, 2010 at 11:31 pm
    Jan 6, 2011 at 1:25 am
  • I would like to design a web site that can be used to help people to find a cat that they can adopt. Note, this is a non-profit project, but one that I believe to be quite important. Here are some of ...
    Virgil StokesVirgil Stokes
    Dec 4, 2010 at 1:32 pm
    Dec 18, 2010 at 7:51 pm
  • Hello all. Newbie question. Sorry. As part of my process to learn python I am working on two personal applications. Both will do it fine with a simple structure of data stored in files. I now there ...
    Jorge BiquezJorge Biquez
    Dec 4, 2010 at 10:42 pm
    Dec 6, 2010 at 6:46 pm
  • Hi! I'm trying to solve a computational problem and of course speed and size is important there. Apart from picking the right algorithm, I came across an idea that could help speed up things and keep ...
    Ulrich EckhardtUlrich Eckhardt
    Dec 27, 2010 at 11:05 am
    Dec 29, 2010 at 11:25 am
  • Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old ...
    SeanSean
    Dec 22, 2010 at 9:43 pm
    Dec 26, 2010 at 7:53 pm
  • Is there any way to use a true lists (with O(c) insertion/deletion and O(n) search) in python? For example, to make things like reversing part of the list with a constant time.
    Dmitry GroshevDmitry Groshev
    Dec 19, 2010 at 6:18 am
    Dec 21, 2010 at 11:27 pm
  • So I just got an e-mail from O'Reilly and their School of Technology about a Python Certification course... anybody have any experience with this? It also says Steve Holden is involved -- is this ...
    Ethan FurmanEthan Furman
    Dec 15, 2010 at 5:54 pm
    Dec 29, 2010 at 11:41 am
  • I am trying to understand how much memory is available to a 64 bit python process running under Windows XP 64 bit. When I run tests just creating a series of large dictionaries containing string keys ...
    Rob RandallRob Randall
    Dec 8, 2010 at 2:44 pm
    Dec 11, 2010 at 2:32 pm
  • With Microsoft abandoning Visual FoxPro come 2015, we have 100K developers jumping ship (rough guess), perhaps to dot NET, but not necessarily.** This page is potentially getting a lot of hits (I'm ...
    Kirby UrnerKirby Urner
    Dec 1, 2010 at 8:38 pm
    Dec 2, 2010 at 6:51 pm
  • discovered this rather late. Google has a AI Challenge: planet wars. http://ai-contest.com/index.php it started sometimes 2 months ago and ended first this month. the winner is G?bor Melis, with his ...
    Xah LeeXah Lee
    Dec 2, 2010 at 5:06 pm
    Jan 20, 2011 at 8:59 pm
  • I'm processing a stream of N numbers and want to keep track of the K largest. There's too many numbers in the stream (i.e. N is too large) to keep in memory at once. K is small (100 would be ...
    Roy SmithRoy Smith
    Dec 25, 2010 at 3:42 pm
    Dec 31, 2010 at 10:52 pm
  • Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the ...
    Jean-Michel PichavantJean-Michel Pichavant
    Dec 16, 2010 at 11:55 am
    Dec 17, 2010 at 12:56 am
  • Some changes are being proposed to how logging works in default configurations. Briefly - when a logging event occurs which needs to be output to some log, the behaviour of the logging package when ...
    Vinay SajipVinay Sajip
    Dec 10, 2010 at 12:12 am
    Dec 15, 2010 at 9:50 pm
  • Hi, I've got a python script that calls a function many times with various arguments and returns a result. What I'm trying to do is run this function each on different processors and compile the ...
    Astan CheeAstan Chee
    Dec 9, 2010 at 9:54 am
    Dec 13, 2010 at 9:51 pm
  • Hi, i'm trying to compile Python 2.7.1 on Debian (Virtual Box). Compiling end successfully but readline and curses fail to build. I'm working with virtualenv and I install all my packages in ...
    Benedict VerheyenBenedict Verheyen
    Dec 22, 2010 at 8:33 am
    Dec 24, 2010 at 3:01 am
  • Hi, i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? Best regards, Torsten.
    Torsten MohrTorsten Mohr
    Dec 17, 2010 at 1:07 am
    Dec 18, 2010 at 12:19 am
  • In a message (<4cf97c94$0$30003$c3e8da3$5496439d at news.astraweb.com ) on a different thread, Steven D'Aprano tells me: I disagree with your assessment. What you call "little corner cases" I call ...
    KjKj
    Dec 22, 2010 at 2:20 pm
    Jan 18, 2011 at 11:53 pm
  • Is there anyay to use input masks in python? Similar to the function found in access where a users input is limited to a type, length and format. So in my case I want to ensure that numbers are saved ...
    FlebberFlebber
    Dec 27, 2010 at 4:37 am
    Jan 1, 2011 at 9:21 am
  • Hi, I'd like to have a reference to an instance attribute as default argument in a method. It doesn't work because "self" is not defined at the time the method signature is evaluated. For example: ...
    ErnestErnest
    Dec 12, 2010 at 11:35 am
    Jan 1, 2011 at 6:43 am
  • I want to take a copy of a list a b=a and then do things with b which don't affect a. How can I do this? Dirk
    Dirk NachbarDirk Nachbar
    Dec 10, 2010 at 1:48 pm
    Dec 10, 2010 at 8:23 pm
  • Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that looks like this : raise fooMod.fooException("Some message ...
    ShearichardShearichard
    Dec 6, 2010 at 3:40 am
    Dec 8, 2010 at 6:39 pm
  • Hi, I met a situation where I was passing an object created in/with an upper level module class to a lower level module class' instance in one of its __init__ argument and saving a ref of the upper ...
    GstGst
    Dec 7, 2010 at 3:52 pm
    Dec 8, 2010 at 3:56 pm
  • Hi, Could someone link me to info - I'm sure this is commonly done: "Long ago" with Fortran and Pascal there was a pattern used a lot. It was like: Start Main Global Var Subprogram1 Subprogram2 ...
    GoldtechGoldtech
    Dec 1, 2010 at 4:16 pm
    Dec 2, 2010 at 3:39 am
  • Hi all, I would like to ask you how I can use the more efficient join operation in a code like this: ... def __init__(self, v1, v2): ... self.v1 = v1 ... self.v2 = v2 ... ... txt = "" ... for x in l: ...
    GervazGervaz
    Dec 31, 2010 at 3:22 pm
    Jan 4, 2011 at 8:36 pm
  • I just wanted to put out a question about IDE's but this is NAWIT - not another which ide thread. My question relates to community contribution. My concern arose when recently installing the ...
    FlebberFlebber
    Dec 28, 2010 at 10:26 am
    Jan 1, 2011 at 1:08 am
  • ... <class '__main__.neodict' <type 'dict' Bug? Feature? Genius beyond the grasp of schlubs like me? ~kj
    KjKj
    Dec 24, 2010 at 6:52 pm
    Dec 27, 2010 at 12:29 pm
  • Hi! When a look att py2exe homepage it is not looking like mutch happen, as a beginner i was thinking to start with Python 3, but i like to now if py2exe will be for 3 too. Is any one have any info ?
    Anders PerssonAnders Persson
    Dec 7, 2010 at 1:23 pm
    Dec 9, 2010 at 8:31 am
  • This works for me: def sendList(): return ["item0", "item1"] def query(): l=sendList() return ["Formatting only {0} into a string".format(l[0]), l[1]] query() However, is there a way to bypass the ...
    GnarlodiousGnarlodious
    Dec 1, 2010 at 1:08 am
    Dec 1, 2010 at 10:26 pm
  • I stumbled upon this. Python 2.6: Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. 9.9499999999999993 ...
    Hrvoje NiksicHrvoje Niksic
    Dec 23, 2010 at 6:57 pm
    Dec 29, 2010 at 10:52 am
  • Hi Folks I have this: url = 'http://docs.python.org/dev/library/stdtypes.html? highlight=partition#str.partition' So I want convert to myList = ...
    MacmMacm
    Dec 23, 2010 at 5:26 pm
    Dec 28, 2010 at 12:55 am
  • Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws I also have to read back the response returned as a ...
    Anurag ChourasiaAnurag Chourasia
    Dec 20, 2010 at 6:58 pm
    Dec 22, 2010 at 3:24 am
  • [python-2.4.3, rh CentOS release 5.5 linux, 24 xeon cpu's, 24GB ram] I have a little data generator that I'd like to go faster... any suggestions? maxint is usually 9223372036854775808(max 64bit ...
    GryGry
    Dec 14, 2010 at 2:50 am
    Dec 14, 2010 at 11:59 am
  • I'm going to be writing a utility that will be pulling three fields from a MySQL table. I've already got a sample dataset - there's a long int (which is a db key), a short string, and a looong ...
    DraeathDraeath
    Dec 2, 2010 at 10:44 pm
    Dec 3, 2010 at 7:15 am
  • When I execute this file: #---------------------------------------------------------------------- def nodelfactory(klass): class nodel(klass): def _delitem(self, _): raise TypeError("can't delete") # ...
    KjKj
    Dec 26, 2010 at 5:53 pm
    Dec 28, 2010 at 12:41 am
  • I want to implement a frozen and ordered dict. I thought I'd implement it as a subclass of collections.OrderedDict that prohibits all modifications to the dictionary after it has been initialized. In ...
    KjKj
    Dec 24, 2010 at 4:24 pm
    Dec 25, 2010 at 10:41 pm
  • I am using tempfile.mkdtemp() to create a working directory on a remote *nix system through a Samba share. When I use this on a Windows box, it works, and I have full access to the created dir. When ...
    UtabintarboUtabintarbo
    Dec 7, 2010 at 9:03 pm
    Dec 16, 2010 at 6:33 pm
  • Attached below is a Tkinter script that demonstrates polling, that is, performing a long-running process in parallel with the GUI. The script asks for an input file name and an output file name and ...
    JohnWShipmanJohnWShipman
    Dec 12, 2010 at 9:56 pm
    Dec 15, 2010 at 12:55 pm
  • ActiveState is pleased to announce ActivePython 2.7.1.3, a complete, ready-to-install binary distribution of Python 2.7. http://www.activestate.com/activepython/downloads What's New in ...
    Sridhar RatnakumarSridhar Ratnakumar
    Dec 13, 2010 at 6:08 pm
    Dec 14, 2010 at 12:35 am
  • I'm getting bogged down with backslash escaping. I have some text files containing characters with the 8th bit set. These characters are encoded one of two ways: either "=hh" or "\xhh", where "h" ...
    Dan MDan M
    Dec 6, 2010 at 3:03 pm
    Dec 6, 2010 at 5:58 pm
  • Hi there, I'm currently writing an application to control and take measurements during an experiments. This is to be done on an embedded computer running XPe so I am happy to have python available, ...
    Jack KeeganJack Keegan
    Dec 1, 2010 at 2:45 am
    Dec 3, 2010 at 4:44 am
  • I wrote miscellaneous interactive interpreters and I fall on this. In Python 2.7 (understand Python 2.6), a source code can be compiled with "native" '\r\n' as eol. In Python 3.1, it does not seem to ...
    JmfauthJmfauth
    Dec 29, 2010 at 4:07 pm
    Jan 16, 2011 at 10:55 am
Group Navigation
period‹ prev | Dec 2010 | next ›
Group Overview
grouppython-list @
categoriespython
discussions300
posts1,669
users405
websitepython.org

405 users for December 2010

Steven D'Aprano: 76 posts Steve Holden: 49 posts Tim Harig: 48 posts MRAB: 42 posts John Nagle: 35 posts Terry Reedy: 34 posts Jean-Michel Pichavant: 31 posts Peter Otten: 30 posts Stefan Behnel: 29 posts Ethan Furman: 27 posts Stefan Sonnenberg-Carstens: 24 posts Adam Tauno Williams: 21 posts Ian Kelly: 21 posts Kj: 20 posts Mark Wooding: 20 posts Harishankar: 19 posts Octavian Rasnita: 19 posts Carl Banks: 18 posts Rantingrick: 18 posts Emile van Sebille: 17 posts
show more
Archives