Search Discussions
-
172
Typed Python?
Moin, short question: is there any language combining the syntax, flexibility and great programming experience of Python with static typing? Is there a project to add static typing to Python? Thank ...Thomas Reichelt
Jul 3, 2004 at 7:56 am
Jul 20, 2004 at 6:44 am -
Hi, I am a beginner in Python, and am wondering what is it about the indentation in Python, without which python scripts do not work properly. Why can't the indentation not so strict so as to give ...
Sateesh
Jul 7, 2004 at 11:04 am
Jul 20, 2004 at 8:08 am -
IronPython is currently at a pre-alpha stage suitable for experimentation but not for serious development work. http://www.ironpython.com
Neuruss
Jul 28, 2004 at 9:53 pm
Sep 21, 2004 at 11:13 am -
I saw this code snippet: sock.listen(20) for in range(20): newsock, client_addr = sock.accept() print "Client connected:", client_addr data[newsock] = "" why use for this example? Is there any ...
Jon Perez
Jul 28, 2004 at 6:20 am
Jul 30, 2004 at 11:00 pm -
Does anyone here find the list comprehension syntax awkward? I like it because it is an expression rather than a series of statements, but it is a little harder to maintain it seems. e.g. you could ...
Moosebumps
Jul 10, 2004 at 7:46 am
Jul 22, 2004 at 5:45 pm -
On behalf of the Python development team and the Python community, I'm happy to announce the first alpha of Python 2.4. Python 2.4a1 is an alpha release. We'd greatly appreciate it if you could ...
Anthony Baxter
Jul 9, 2004 at 7:11 am
Jul 16, 2004 at 7:29 pm -
Let us assume I have a list like ['1','2','7','8','12','13] and would like to transoform it into the string '{1,2},{7,8},{12,13}' Which is the simplest way of achiebing this? (The list is in fact ...
Jblazi
Jul 31, 2004 at 12:27 pm
Aug 5, 2004 at 3:06 pm -
I have been working with unittests lately and found that the self.failUnlessAlmostEqual, isn't as usefull as it could be. My main problem is, that it is only usefull with objects that can be ...
Antoon Pardon
Jul 19, 2004 at 11:06 am
Jul 22, 2004 at 6:12 pm -
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI programming? ...
Charif Lakchiri
Jul 8, 2004 at 5:06 am
Jul 16, 2004 at 4:43 pm -
Hi, Folks- I have a question regarding the "proper" use of try: finally:... Consider some code like this: d = Device.open() try: d.someMethodThatCanRaiseError(...) if SomeCondition: raise Error # ...
Djw
Jul 6, 2004 at 5:05 pm
Jul 16, 2004 at 6:15 pm -
Python's closures are read-only. But is there a way of hacking one's way around this restriction? The funct_closure attribute is read-only, so I can't rebind it. It's a tuple, so I can't mutate it. ...
Jacek Generowicz
Jul 8, 2004 at 2:01 pm
Jul 13, 2004 at 7:54 am -
Hi I checked the other day a module of mine with pylint. And for some function it told me, that I was using too many return-statements in my code... there were about 5 or 7 of them in my function. ...
Marco Aschwanden
Jul 9, 2004 at 7:32 am
Jul 20, 2004 at 7:38 am -
I am writing a program to do some reliability calculations that require several nested for-loops. However, I believe that as the models become more complex, the number of required for-loops will ...
Chad
Jul 7, 2004 at 6:45 pm
Jul 13, 2004 at 3:49 am -
Hi, I'm a newbie and I'm attempting to learn howto create a select statement. When I use All works as expected. But Traceback (innermost last): File "<stdin ", line 1, in ? File ...
John Fabiani
Jul 31, 2004 at 8:23 am
Aug 10, 2004 at 11:39 am -
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST" ... Thanks a lot. Nancy W
Nancy
Jul 21, 2004 at 2:44 pm
Jul 26, 2004 at 2:35 pm -
One way to say it is that *you* might be able to read the code and understand what was going on if self were not included, but the interpreter doesn't. Binding 'self' is just a means of being ...
Robert Brewer
Jul 7, 2004 at 11:24 pm
Jul 9, 2004 at 9:49 am -
module1 calls a function in module2 module2 starts a thread that calls a function in module3 and then returns to module1 thread finishes and I need the return value from the thread to use in module1 ...
Ken Godee
Jul 14, 2004 at 3:28 pm
Jul 19, 2004 at 3:59 pm -
Here's a function that I want to use to capture user input. They enter a path and then confirm that it's the correct path or not or decide to quit the program if they want. The 'y' (the path is ...
Bart Nessux
Jul 29, 2004 at 3:17 pm
Jul 30, 2004 at 9:26 am -
Prothon is pleased to announce another major release of the language, version 0.1.2, build 710 at http://prothon.org. This release adds many new features and demonstrates the level of maturity that ...
Mark Hahn
Jul 7, 2004 at 11:39 pm
Jul 13, 2004 at 6:21 pm -
The Python Software Foundation is seeking grant proposals for projects related to the further development of Python, Python-related technology, and educational resources. The PSF plans to issue calls ...
Martin v. Löwis
Jul 20, 2004 at 5:16 am
Aug 4, 2004 at 5:12 am -
Hi all I was helping my niece with her trigonometry homework last night. Her calculator's batteries were flat, so I thought I would use Python's math module to calculate sin, cos, and tan. I tried ...
Frank Millman
Jul 23, 2004 at 7:01 am
Jul 24, 2004 at 8:54 pm -
I've heard it said that web servers built upon the standard library's SimpleHTTPServer or CGIHTTPServer aren't really suitable for use in a production system. Is this still the case? And if so, why? ...
Paul Morrow
Jul 18, 2004 at 5:03 am
Jul 19, 2004 at 11:19 pm -
Does python provide a way to dynamically use modules and/or classes? I'm thinking in the vein of Java's Class.forName. As a pseudocode example, I'm looking for the following ability: ...
Alex Hunsley
Jul 17, 2004 at 6:00 pm
Jul 19, 2004 at 6:21 pm -
Hi, all! Here is the problem: I have a file, which contains a common dictionary - one word per line (appr. 700KB and 70000 words). I have to read it in memory for future "spell checking" of the words ...
Elbert Lev
Jul 15, 2004 at 7:09 pm
Jul 17, 2004 at 5:41 am -
17
odd question
Hi, I'm currently working on the following exercise: --- You have given the following function: def f2(i, j, k): return ((i | j) & k) | (i & j) Find a useful utilization for this function. --- ...Karl Pech
Jul 14, 2004 at 7:01 pm
Jul 16, 2004 at 5:36 pm -
Hello, All! i have 3mb long XML document with about 150000 lines (i think it has about 200000 elements there) which i want to parse to DOM to work with. first i thought there will be no problems, but ...
Alex Mizrahi
Jul 12, 2004 at 12:19 am
Jul 16, 2004 at 4:40 pm -
For those how downloaded the new python, how big is it? I am speaking of the DLL on Windows. I am just curious; it would be interesting to compare the sizes of earlier versions with this alpha ...
A. B., Khalid
Jul 12, 2004 at 9:16 pm
Jul 14, 2004 at 8:21 pm -
Hi list! I've written a little program which plays Minesweeper, using quite a simple algorithm, which I've written in Python (pseudocode): total_fields = 0 for field in <all possible consistent ...
Heiko Wundram
Jul 13, 2004 at 8:52 pm
Jul 23, 2004 at 1:47 pm -
What is the python convention for namespaces of released packages? In Java you'd write your domain name (if you have one) backwards, this: uk.org.ohmslaw.myPackage ... thus ensuring uniqueness. Is it ...
Alex Hunsley
Jul 15, 2004 at 11:39 pm
Jul 20, 2004 at 10:52 pm -
I have a module whose behaviour needs to be configurable. The module needs to decide, the first time it is imported, beteween alternative interfaces it presents. Currently, I set some environment ...
Jacek Generowicz
Jul 8, 2004 at 7:43 am
Jul 9, 2004 at 10:09 am -
Is there any utility to convert Python sources from space-based block indentation to tab-based? You can use "expand" convert from tabs- spaces, but "unexpand" isn't bright enough to do the reverse. ...
Grant Edwards
Jul 28, 2004 at 9:49 pm
Jul 29, 2004 at 2:32 pm -
What are the pros and cons of defining a method of a class versus defining a function that takes an instance of the class as an argument? In the example below, is it better to be able to write ...
Beliavsky
Jul 14, 2004 at 6:57 pm
Jul 16, 2004 at 12:17 pm -
Anyone else tired of typing date-addition logic when iterating? It would be nice if the datetime package had something like: def iterdates(first, last): for day in range((last - first).days + 1): ...
Robert Brewer
Jul 12, 2004 at 1:04 am
Jul 14, 2004 at 12:18 pm -
Hi, I got a task there I have to compute pi using the Method above. So I wrote the following program: --- import random import math n = long(raw_input("Please enter the number of iterations: ")) sy = ...
Karl Pech
Jul 8, 2004 at 9:30 pm
Jul 13, 2004 at 1:13 pm -
Hi I would like to develop an app that is (more or less) database independet. Python DB API helps when masking "parameters" of sql statements. The db driver cares for the correct conversion of a ...
Marco Aschwanden
Jul 1, 2004 at 7:45 am
Jul 3, 2004 at 11:27 pm -
My question is about lists: Is there a way to remove duplicate items from a list that are next to each other? Example... Performing the operation on ['a', 'b', 'c', 'c', 'd', 'd', 'd', 'e'] will ...
Kristofer Pettijohn
Jul 28, 2004 at 3:26 am
Aug 9, 2004 at 10:40 pm -
Is there a python for .Net, similar to what Jython is for Java? -Ike
Ike
Jul 27, 2004 at 11:12 am
Jul 30, 2004 at 5:55 pm -
14
https proxy
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at ...Paul Sweeney
Jul 27, 2004 at 3:14 pm
Jul 28, 2004 at 10:09 pm -
When I run the follwing code using Python 2.3: from time import clock t1 = clock () for i in range (10000): a = int ('bbbbaaaa', 16) t2 = clock () for i in range (10000): a = long ('bbbbaaaa', 16) t3 ...
Willem
Jul 13, 2004 at 2:09 pm
Jul 16, 2004 at 10:30 am -
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to connect ...
Wolfgang Keller
Jul 8, 2004 at 6:53 am
Jul 14, 2004 at 6:13 pm -
I just had an interesting little surprise. I've got a method that takes a string as an argument. I wanted to change it to take either a string or a tuple of strings, so I did my usual "test first" ...
Roy Smith
Jul 1, 2004 at 9:43 pm
Jul 2, 2004 at 3:22 pm -
The other day I was asked if there is an open source replacement for VB6 that is cross-platform. I spent a little bit of time at Barnes-Noble and looking at news groups, but don't have a good answer. ...
Dave Boland
Jul 20, 2004 at 4:58 pm
Sep 11, 2004 at 7:21 am -
I've seen from the 2.4alpha announcements, that the CJK codecs made it into this version. I'd like to ask whether (or how to) add the missing ISO 8859 codes: ISO 8859-11 (= TIS620) for Thai ISO ...
Peter Jacobi
Jul 27, 2004 at 11:10 am
Aug 3, 2004 at 4:09 pm -
Hello all! I'm trying to subclass int such that once it reaches a certain value, it flips back to the starting count. This is for use as an X12 control number. Subclassing int and getting the display ...
Chris Cioffi
Jul 16, 2004 at 8:08 pm
Jul 20, 2004 at 6:33 pm -
I'm thinking of implementing a real-time collaborative text editor in Python using Twisted. An initial plan is to use a Twisted PB server daemon that accepts user:password:file connections from text ...
Ed Suominen
Jul 14, 2004 at 8:25 pm
Jul 20, 2004 at 5:16 pm -
I don't know if this is a bug or a feature, but it sure is annoying. I apologize if it's already been discussed to death elsewhere (I couldn't find anything). Suppose that you've a package named ...
Lonnie Princehouse
Jul 13, 2004 at 10:25 pm
Jul 16, 2004 at 9:42 pm -
Hello, I'm experimenting with different ways of extending a class (for a plug-ins framework for a GUI) with more than one extension when some of these extensions need to collaborate, but others ...
Humpty Dumpty
Jul 9, 2004 at 3:01 am
Jul 15, 2004 at 4:11 am -
I think a function similar to the one below should be added to the builtin module: def boolselect(condition, trueresult, falseresult): if condition: return trueresult else: return falseresult --- ...
Adal Chiriliuc
Jul 11, 2004 at 12:33 pm
Jul 13, 2004 at 12:30 pm -
Christian Tismer wrote: ... What license is your pdf parser going to have? Do you have a working version? My work plans include writing a pdf parser (and I prefer python for it), if your package is ...
Radovan Garabik
Jul 30, 2004 at 6:47 am
Jul 30, 2004 at 7:10 pm -
Using Python-2.3.4 on HP-UX11i, the following code: import locale loc = locale.setlocale(locale.LC_ALL) print 'locale =', loc loc = locale.nl_langinfo(locale.CODESET) print 'locale =', loc print ...
Richard Townsend
Jul 21, 2004 at 10:48 am
Jul 24, 2004 at 10:32 pm
Group Overview
group | python-list |
categories | python |
discussions | 828 |
posts | 4,135 |
users | 934 |
website | python.org |
934 users for July 2004
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)