Search Discussions

576 discussions - 3,867 posts

  • Hi all, Is there some magic to make the 2.x CPython interpreter to ignore the annoying octal notation? I'd really like 012 to be "12" and not "10". If I want an octal I'll use oct()! "Explicit is ...
    Aug 20, 2009 at 7:06 pm
    Sep 5, 2009 at 1:09 am
  • I was reading the thread here... http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=en&lnk=raot#b0385050b4c6c84e and it raised some fundamental ...
    Aug 29, 2009 at 10:46 pm
    Sep 22, 2009 at 12:03 am
  • I have many years of programming experience, and a few languages, under my belt, but still Python scoping rules remain mysterious to me. (In fact, Python's scoping behavior is the main reason I gave ...
    Aug 25, 2009 at 3:33 pm
    Aug 28, 2009 at 5:23 pm
  • Hey guys. Being a C++ programmer, I like to keep variable definitions close to the location in which they will be used. This improves readability in many ways. However, when I have a multi-line ...
    Robert DaileyRobert Dailey
    Aug 11, 2009 at 8:08 pm
    Aug 24, 2009 at 4:12 pm
  • A friend of mine is just learning Python, and he's a bit tweaked about how unrecognized escape sequences are treated in Python. This is from the Python 3.0 reference manual: Unlike Standard C, all ...
    Douglas AlanDouglas Alan
    Aug 9, 2009 at 7:26 pm
    Aug 17, 2009 at 2:21 am
  • So much of it could be removed even by simple keyword filtering.
    Aug 30, 2009 at 12:18 am
    Sep 8, 2009 at 11:49 am
  • I've been taking a look at the multitude of coroutine libraries available for Python, but from the looks of the projects they all seem to be rather "quiet". I'd like to pick one up to use on a ...
    Phillip B OldhamPhillip B Oldham
    Aug 23, 2009 at 3:02 pm
    Oct 9, 2009 at 8:35 am
  • Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "copyright", "credits" or "license()" for more information. True 2 1 I thought that += ...
    Aug 29, 2009 at 12:45 pm
    Sep 2, 2009 at 12:40 pm
  • i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language?
    Qwe rtyQwe rty
    Aug 28, 2009 at 10:37 pm
    Sep 8, 2009 at 3:45 pm
  • I wrote the following correct but inefficient test of primality for purposes of demonstrating that the simplest algorithm is often not the most efficient. But, when I try to run the following code ...
    Dr. Phillip M. FeldmanDr. Phillip M. Feldman
    Aug 15, 2009 at 1:25 am
    Aug 18, 2009 at 11:45 am
  • Hello I was wondering if some people in this ng use Python and some GUI toolkit (PyWin32, wxWidgets, QT, etc.) to build professional applications, and if yes, what it's like, the pros and cons, etc. ...
    Gilles GanaultGilles Ganault
    Aug 24, 2009 at 12:08 pm
    Aug 30, 2009 at 12:10 pm
  • HI! These both expressions are equivalent but which is faster or should be used for any reason? u = unicode(s,'utf-8') u = s.decode('utf-8') # looks nicer Ciao, Michael.
    Michael StröderMichael Ströder
    Aug 5, 2009 at 2:43 pm
    Aug 9, 2009 at 10:01 am
  • I am interested in surveying people who want to interoperate between Fortran and Python to find out what they would like to be able to do more conveniently, especially with regard to types not ...
    Aug 23, 2009 at 10:35 am
    Aug 24, 2009 at 9:39 pm
  • In the past, on this group, I have made statements that said that on Linux, the serial port handling somehow does not allow transmitting and receiving at the same time, and nobody contradicted me. I ...
    Hendrik van RooyenHendrik van Rooyen
    Aug 14, 2009 at 9:04 am
    Aug 17, 2009 at 9:36 am
  • Hello, I want to simply wrap a function up into an object so it can be called with no parameters. The parameters that it would otherwise have taken are already filled in. Like so: print1 = lambda: ...
    Robert DaileyRobert Dailey
    Aug 18, 2009 at 8:27 pm
    Aug 21, 2009 at 2:12 am
  • python got relatively fewer numbers of developers than other high level languages like .NET , java .. etc why ?
    Aug 28, 2009 at 12:34 am
    Aug 31, 2009 at 6:10 am
  • i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please?
    Qwe rtyQwe rty
    Aug 28, 2009 at 10:19 pm
    Sep 26, 2009 at 1:14 am
  • Hi everyone, I've been trying to figure out a simple algorithm on how to combine a list of parts that have 1D locations that overlap into a non- overlapping list. For example, here would be my input: ...
    Jay BirdJay Bird
    Aug 4, 2009 at 6:15 pm
    Aug 6, 2009 at 5:36 pm
  • Hi! I found an interesting thing in Python. Today one of my "def"s got wrong result. When I checked the code I saw that I miss a "," from the list. l = ['?' '?'] Interesting, that Python handle them ...
    Aug 7, 2009 at 12:31 pm
    Aug 9, 2009 at 11:51 pm
  • Hello, I need to convert DD MM YYYY dates into the MySQL-friendly YYYY-MM-DD, and translate the month name from literal French to its numeric equivalent (eg. "Janvier" into "01"). Here's an example: ...
    Gilles GanaultGilles Ganault
    Aug 17, 2009 at 10:26 pm
    Aug 20, 2009 at 4:52 am
  • I'd like to build a database wrapper using DictMixin and allow items to be appended by my own code. The problem is += is always understood as setitem and getitem plainly. d = MyDict() d['a'] = 1 # ...
    Aug 26, 2009 at 10:16 pm
    Sep 2, 2009 at 3:24 am
  • Hi all, What is your favorite tool to help you debug your code? I've been getting along with 'print' statements but that is getting old and somewhat cumbersome. I'm primarily interested in utilities ...
    Aug 22, 2009 at 2:25 pm
    Aug 25, 2009 at 8:33 pm
  • I've seen lots of web sites explaining everything, but for whatever reason I seem to not be picking something up. I am a graphical person, which is probably the reason I haven't found my answer. May ...
    Aug 26, 2009 at 1:09 am
    Sep 3, 2009 at 2:39 pm
  • In Python 2.5 on Windows I could do [*1]: # Create a unicode character outside of the BMP. # On Windows it is represented as a surogate pair. 2 (u'\ud800', u'\udc40') # Create the same character with ...
    Aug 25, 2009 at 7:45 pm
    Aug 30, 2009 at 4:42 pm
  • Hello All, I wrote the function to test hashability of arbitrary objects. My reason is that the built-in python (2.5) hashing is too permissive for some uses. A symptom of this permissiveness comes ...
    James StroudJames Stroud
    Aug 12, 2009 at 12:54 am
    Aug 12, 2009 at 6:41 pm
  • --------------------------------------------- Tkinter and IDLE Shortfalls --------------------------------------------- *The following is an assessment of Tkinter as i have experienced it. Even with ...
    Aug 27, 2009 at 9:22 pm
    Nov 8, 2009 at 2:57 am
  • While refactoring some code, I ran across an opportunity to use a conditional expression. Original: if total P.BASE: excessblk = Block(total - P.BASE, srccol, carry_button_suppress=True) else: ...
    John PosnerJohn Posner
    Aug 18, 2009 at 2:04 pm
    Aug 26, 2009 at 1:09 pm
  • Hi fellows, Does anyone know a way to write virtual methods (in one virtual class) that will raise an exception only if called without being overridden ? Currently in the virtual method I'm checking ...
    Jean-Michel PichavantJean-Michel Pichavant
    Aug 14, 2009 at 2:49 pm
    Aug 17, 2009 at 12:35 pm
  • Hello, I wanted to announce that I have just released my little side project, PythonTurtle. Here is its website: http://pythonturtle.com Its goal is to be the lowest-threshold way to learn (or teach) ...
    Aug 3, 2009 at 1:18 pm
    Aug 5, 2009 at 1:46 pm
  • Hi All, I'm using the following script to download a 150Mb file: from base64 import encodestring from httplib import HTTPConnection from datetime import datetime conn = HTTPSConnection('localhost') ...
    Chris WithersChris Withers
    Aug 11, 2009 at 8:25 pm
    Sep 7, 2009 at 11:59 am
  • Hi folk! What do you think about idea of "object's nesting scope" in python? Let's imaging this feature, for example, in this syntax: obj=<expression : <body or <expression : <body That's means that ...
    Aug 26, 2009 at 12:51 pm
    Aug 31, 2009 at 11:25 am
  • Is a _pure_ python program buffer overflow proof? For example in C++ you can declare a char[9] to hold user input. If the user inputs 10+ chars a buffer overflow occurs. In python, I cannot seem to ...
    Aug 2, 2009 at 1:50 pm
    Aug 7, 2009 at 8:54 pm
  • To begin, I'm new with python. I've read a few discussions about object references and I think I understand them. To be clear, Python uses a "Pass By Object Reference" model. x = 1 x becomes the ...
    Aug 21, 2009 at 6:07 am
    Sep 1, 2009 at 1:55 pm
  • Suppose you need to split a string into substrings of a given size (except possibly the last substring). I make the hypothesis the first slice is at the end of the string. A typical example is ...
    Aug 15, 2009 at 12:22 am
    Aug 17, 2009 at 11:14 pm
  • Hi all I mentioned yesterday that I had a problem sending a message to the newsgroup via the Outlook Express news reader. Today I received an email from DaveA, which was sent to me via python-list at ...
    Frank MillmanFrank Millman
    Aug 27, 2009 at 7:31 am
    Aug 29, 2009 at 1:50 am
  • Hi, i was wondering if there is a syntax alike: for i in range(10) if i 5: print i equivalent to for i in (for i in range(10) if i 5): print i sebastien
    Aug 23, 2009 at 8:09 am
    Aug 26, 2009 at 7:50 am
  • Hi all, I'm trying to launch a function at regular time intervals but cannot find the way to do it. Here is the code I wrote (time_interval is a user defined variable in seconds): while(1) ...
    Aug 12, 2009 at 9:09 pm
    Aug 14, 2009 at 10:40 pm
  • I cannot connect to the official Python website. I get the following error message: "Connection Interrupted The connection to the server was reset while the page was loading. The network link was ...
    Aug 8, 2009 at 1:31 pm
    Aug 10, 2009 at 7:38 pm
  • Hi all I have a class that uses a dictionary to map message numbers to methods. Here is a simple example - class MyClass(object): def __init__(self): self.method_dict = {} self.method_dict[0] = ...
    Frank MillmanFrank Millman
    Aug 26, 2009 at 8:22 am
    Aug 28, 2009 at 6:06 am
  • I'm looking for a way to parallelize my python script without using typical threading primitives. For example, C++ has pthreads and TBB to break things into "tasks". I would like to see something ...
    Robert DaileyRobert Dailey
    Aug 18, 2009 at 6:19 pm
    Aug 19, 2009 at 2:14 pm
  • I hadn't noticed this before, but the overhaul of Turtle Graphics dating back to 2.6 has been broken as far as gmpy is concerned. I hadn't noticed because I usually have tracing turned off (tracing ...
    Aug 5, 2009 at 5:49 am
    Aug 7, 2009 at 9:01 pm
  • Hi List, On several occasions I have needed (and build) a parser that reads a binary piece of data with custom structure. For example (bogus one): BE ...
    Martin P. HellwigMartin P. Hellwig
    Aug 5, 2009 at 2:46 pm
    Aug 7, 2009 at 11:29 am
  • I am trying to read a csv file generated by excel. Although I succeed in reading the file, the format that I get is not suitable for me. I've done: <_csv.reader object at 0x01022E70 print row ...
    Aug 27, 2009 at 7:06 pm
    Aug 28, 2009 at 7:00 pm
  • Hello I'm using Python for S60 1.9.7 on my Nokia phone. I've made a program that gets input from an accelerometer sensor, and then calculates some stuff and displays the result. The sensor framework ...
    Esben von BuchwaldEsben von Buchwald
    Aug 24, 2009 at 12:14 am
    Aug 28, 2009 at 11:15 am
  • Dear Group, I like to convert some simple strings of natural language to XML. May I use Python to do this? If any one can help me, on this. I am using primarily UTF-8 based strings, like Hindi or ...
    Aug 22, 2009 at 2:15 am
    Aug 25, 2009 at 9:08 am
  • I am a Python newbie, tasked with automating (researching) building Windows drivers using the WDK build environment. I've been looking into Python for this (instead of writing a bunch of batch ...
    Aug 4, 2009 at 7:13 pm
    Aug 10, 2009 at 5:31 am
  • I have some simple threaded code... If I run this with an arg of 1 (start one thread), it pegs one cpu, as I would expect. If I run it with an arg of 2 (start 2 threads), it uses both CPUs, but ...
    Derek MartinDerek Martin
    Aug 18, 2009 at 8:10 pm
    Aug 25, 2009 at 6:25 pm
  • ? A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode http://xahlee.org/UnixResource_dir/writ/emacs_whitespace-mode_problems.html plane text version follows: ...
    Xah LeeXah Lee
    Aug 14, 2009 at 1:36 am
    Aug 18, 2009 at 10:38 am
  • Hey.... I'm a Python noob.... So far so good! I've written the following: num1 = raw_input('Enter the first number: ') num2 = raw_input('Enter the second number: ') op = raw_input('Select one of the ...
    Duke NormandinDuke Normandin
    Aug 28, 2009 at 3:52 am
    Aug 29, 2009 at 5:39 pm
  • Hello, I would like to know how to find the difference (set operation) between 2 arrays : a = array([1,2, 3,2,5,2]) b = array([1,2]) I want a - b = [3,5] Well, the equivalence of setdiff in matlab... ...
    Aug 19, 2009 at 8:48 am
    Aug 21, 2009 at 8:36 am
Group Navigation
period‹ prev | Aug 2009 | next ›
Group Overview
grouppython-list @

734 users for August 2009

Steven D'Aprano: 120 posts Diez B. Roggisch: 93 posts MRAB: 85 posts Dave Angel: 80 posts Chris Rebert: 76 posts Carl Banks: 67 posts R: 67 posts Hendrik van Rooyen: 65 posts Gabriel Genellina: 63 posts Sturlamolden: 59 posts Jan Kaliszewski: 55 posts Piet van Oostrum: 53 posts Ben Finney: 50 posts Kj: 48 posts Aahz: 45 posts Mark Lawrence: 44 posts Stefan Behnel: 44 posts Xavier Ho: 42 posts Steven D'Aprano: 38 posts Alex23: 37 posts
show more