Search Discussions

828 discussions - 4,135 posts

  • 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 ReicheltThomas 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 ...
    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
    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 PerezJon 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 ...
    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 BaxterAnthony 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 ...
    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 PardonAntoon 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 LakchiriCharif 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 # ...
    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 GenerowiczJacek 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 AschwandenMarco 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 ...
    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 FabianiJohn 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
    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 BrewerRobert 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 GodeeKen 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 NessuxBart 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 HahnMark 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öwisMartin 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 MillmanFrank 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 MorrowPaul 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 HunsleyAlex 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 LevElbert Lev
    Jul 15, 2004 at 7:09 pm
    Jul 17, 2004 at 5:41 am
  • 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 PechKarl 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 MizrahiAlex 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., KhalidA. 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 WundramHeiko 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 HunsleyAlex 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 GenerowiczJacek 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 EdwardsGrant 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 ...
    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 BrewerRobert 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 PechKarl 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 AschwandenMarco 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 PettijohnKristofer 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
    Jul 27, 2004 at 11:12 am
    Jul 30, 2004 at 5:55 pm
  • 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 SweeneyPaul 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 ...
    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 KellerWolfgang 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 SmithRoy 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 BolandDave 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 JacobiPeter 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 CioffiChris 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 SuominenEd 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 PrincehouseLonnie 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 DumptyHumpty 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 ChiriliucAdal 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 GarabikRadovan 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 TownsendRichard Townsend
    Jul 21, 2004 at 10:48 am
    Jul 24, 2004 at 10:32 pm
Group Navigation
period‹ prev | Jul 2004 | next ›
Group Overview
grouppython-list @

934 users for July 2004

Christopher T King: 146 posts Peter Hansen: 137 posts Thomas Lindgaard: 82 posts Jacek Generowicz: 80 posts Peter Otten: 74 posts Ville Vainio: 71 posts Washu: 53 posts Grant Edwards: 51 posts John Lenton: 48 posts Tim Peters: 45 posts David Fraser: 42 posts Michael Hudson: 41 posts Jepler: 38 posts Larry Bates: 38 posts Robert Brewer: 37 posts Terry Reedy: 35 posts Martin v. Löwis: 34 posts Michele Simionato: 33 posts Skip Montanaro: 33 posts Jeff Shannon: 32 posts
show more