Search Discussions
-
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 ...
David
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 ...
R
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 ...
Kj
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 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 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.
Casebash
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 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 += ...
Zaur
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 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. 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 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ö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 ...
Nmm1
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 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 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 ?
Deep_Feelings
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 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 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 ...
Durumdara
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 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 # ...
RunThePun
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 ...
Esmail
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 ...
Phil
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 ...
Rurpy
Aug 25, 2009 at 7:45 pm
Aug 30, 2009 at 4:42 pm -
22
hashability
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 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 ...
R
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 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 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) ...
cool-RR
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 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 ...
Zaur
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 ...
Jizzai
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 ...
Josef
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 ...
Candide
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 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
Seb
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) ...
David
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 ...
Caezar
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 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 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 ...
Mensanator
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. 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 ...
Vsoler
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 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 ...
Joy99
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 ...
Kosta
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 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 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 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... ...
Pierre
Aug 19, 2009 at 8:48 am
Aug 21, 2009 at 8:36 am
Group Overview
group | python-list |
categories | python |
discussions | 576 |
posts | 3,867 |
users | 734 |
website | python.org |
734 users for August 2009
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)