Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Cameron Laird
I pine for the fjords. And it's time to bring "Python-URL!" to a close. "Python-URL!", which Jean-Claude Wippler and I appear to have launched in 1998, has reached the end of its utility. We still have many loyal and enthusiastic readers--one subscription request arrived within the last day, in

Python-URL! - weekly Python news and links (Mar 31)

2012-04-02 Thread Cameron Laird
I pine for the fjords. And it's time to bring "Python-URL!" to a close. "Python-URL!", which Jean-Claude Wippler and I appear to have launched in 1998, has reached the end of its utility. We still have many loyal and enthusiastic readers--one subscription request arrived within the last day, in

Python-URL! - weekly Python news and links (Aug 25)

2011-08-25 Thread Cameron Laird
[Original draft by Gabriel Genellina.] QOTW: "Python is a programming language, not an ice cream shop." - Steven D'Aprano, 2011-08-10, on providing the language with just "more choices" Comparing the relative speed of `i += 1` and `i = i + 1` http://groups.google.com/group/comp.lang.

Python-URL! - weekly Python news and links (Aug 10)

2011-08-10 Thread Cameron Laird
QOTW: "If an elegant solution doesn't occur to me right away, then I first compose the most obvious solution I can think of. Finally, I refactor it until elegance is either achieved or imagined." - Neil Cerutti, 2011-07-28 What is the real purpose of __all__? http://old.nabble.com/__all

Python-URL! - weekly Python news and links (Aug 10)

2011-08-10 Thread Cameron Laird
QOTW: "If an elegant solution doesn't occur to me right away, then I first compose the most obvious solution I can think of. Finally, I refactor it until elegance is either achieved or imagined." - Neil Cerutti, 2011-07-28 What is the real purpose of __all__? http://old.nabble.com/__all

Re: Looking PDF module

2011-06-24 Thread Cameron Laird
On Jun 24, 6:45 am, "neil.suffi...@gmail.com" wrote: > You might also want to have a look at Pisa (http://www.xhtml2pdf.com/ > ) . It's based on reportlab but might suit you better. There's more to the story. As with many things, the answer is, "it depends". In this case, there are so many varia

Python-URL! - weekly Python news and links (Jun 14)

2011-06-14 Thread Cameron Laird
[Originally drafted by Gabriel Genellina.] QOTW: "Well, it's incompatible with the Python compiler I keep in my head. Have these developers no consideration for backward-thinking- compatibility?" (Ben Finney, 2011-06-10, on certain old but not-so-obvious change) Python versions 2.7.2 and 3

Python-URL! - weekly Python news and links (Jun 7)

2011-06-07 Thread Cameron Laird
[Drafted by Gabriel Genellina.] QOTW: "'Reminds me of the catch-phrase from the first Pirates of the Caribbean movie: 'It's more of a guideline than a rule.'" - Tim Roberts, 2011-05-27, on the "mutator-methods-return-None" Announcing two maintenance releases (including security fixes): 2.5.

Python-URL! - weekly Python news and links (May 26)

2011-05-26 Thread Cameron Laird
[This edition drafted by Gabriel Genellina.] QOTW: "They did a study once to determine the best tool for development. Turns out that the most productive tool was generally the one that the user believed was the most productive. In hindsight I think that that was rather obvious." - D'Arcy J.M. C

Python-URL! - weekly Python news and links (May 18)

2011-05-18 Thread Cameron Laird
QOTW: "When did we come to the idea that people should be able to program in a language without actually learning it? The fact that Python comes so close to that possibility is nothing short of revolutionary. I suppose one day a reasoning android will be able to sit down at the terminal of a sta

Python-URL! - weekly Python news and links (May 10)

2011-05-10 Thread Cameron Laird
[This content provided by Gabriel Genellina, despite what the "From:" line says.] QOTW: "Often, the cleverness of people is inversely proportional to the amount of CPU power and RAM that they have in their computer. Unfortunately, the difficulty in debugging and maintaining code is often directl

Python-URL! - weekly Python news and links (Apr 21)

2011-04-21 Thread Cameron Laird
QOTW: "Python is a pragmatic language, so all the rules come pre- broken." - Mel http://groups.google.com/group/comp.lang.python/msg/208face4a8e00062 Look! In the sky! It's a SciPy demonstration! It's a business! No, it's ForecastWatch: http://goo.gl/AvzqZ EuroPython 201

Python-URL! - weekly Python news and links (Apr 9)

2011-04-09 Thread Cameron Laird
QOTW: [You'll have to see it for yourself: !Viva 2.7.1!] http://groups.google.com/group/comp.lang.python/msg/8d79c5ee3913f82d "De-briefing" is characteristically something we do too little; there's a LOT of value in systematic examination of what we've experienced. Unladen Swallow pre

Python-URL! - weekly Python news and links (Apr 2)

2011-04-02 Thread Cameron Laird
QOTW: "Let us cease to nourish those fabled ones who dwell under bridges." - Tom Zych http://groups.google.com/group/comp.lang.python/msg/c1052c962becfc26 Look for "Python Insider" below. Then read through everything there. You'll want to know about this one. Once again, the PSF sp

Python-URL! - weekly Python news and links (Mar 23)

2011-03-23 Thread Cameron Laird
QOTW: "So far as I know, that actually just means that the test suite is insufficient." - Peter Seebach, when an application passes all its tests http://groups.google.com/group/comp.lang.lisp/msg/29aff9595bb0eac0 Administrative note: it's been a while--since the end of October 2010, in fact;

Python-URL! - weekly Python news and links (Jun 22)

2010-06-22 Thread Cameron Laird
QOTW: "It's hard to overestimate the variance you'll see when you start asking your users for information." - Cody Powell http://www.codypowell.com/taods/2010/01/production-aint-pretty-a-case-for-excessive-application-logging.html The second Release Candidate of Python 2.7 is available fo

Re: GUIs - A Modest Proposal

2010-06-16 Thread Cameron Laird
On Jun 6, 5:49 pm, Kevin Walzer wrote: . [much wisdom, particularly in regard to Tkinter] . . > > The very diversity of GUI toolkits came into effect because Python is > very easy to extend and integrate with other C/C++ libraries. Writing a > GUI toolkit from scratch is much, muc

Python-URL! - weekly Python news and links (Jun 16)

2010-06-16 Thread Cameron Laird
QOTW: "Python advocacy seems to be by example, not cheerleading." - Cameron Simpson http://groups.google.com/group/comp.lang.python/msg/2cc7e643702d0ec8 The first release candidate of Python 2.7 is now available for testing: http://groups.google.com/group/comp.lang.python/t/e3cd74b1

Python-URL! - weekly Python news and links (Jun 6)

2010-06-07 Thread Cameron Laird
QOTW: "... it's just laziness and hubris passed off under the banner of agility." - Clifford Heath, on the fashion of justification of "metaschemas" because those darn data architects are just too slow Efficient way to apply a function to every element in a list, discarding the results:

Python-URL! - weekly Python news and links (May 5)

2010-05-06 Thread Cameron Laird
[Authored by Gabriel Genellina.] QOTW: "Even on alt.haruspicy they cannot do much without a liver now and then..." - Peter Otten http://groups.google.com/group/comp.lang.python/msg/7852938d0b92bd7b Mixing bytes and unicode when writing data in Python 3.x: http://groups.google.com.a

Python-URL! - weekly Python news and links (Apr 21)

2010-04-21 Thread Cameron Laird
QOTW: "There's no RightAnswer(tm), just our best guess as to what is the most useful behavior for the most number of people." - Raymond Hettinger http://groups.google.com/group/comp.lang.python/msg/e7f78ef27811781b First beta version of Python 2.7 is available: http://groups.google.

Python-URL! - weekly Python news and links (Feb 9)

2010-04-21 Thread Cameron Laird
QOTW: "You see? That's what I like about the Python community: people even apologise for apologising :)" - Tim Golden http://groups.google.com/group/comp.lang.python/msg/858d1c31d0c2adff The third alpha version of Python 2.7 is ready for testing: http://groups.google.com/group/comp

Python-URL! - weekly Python news and links (Mar 17)

2010-04-21 Thread Cameron Laird
QOTW: "... [T]hat kills yet another usage of C ..." - Maciej Fijalkowski http://morepypy.blogspot.com/2009/11/some-benchmarking.html Making operations in the Fraction class automatically return a subclass instance when called with subclass arguments: http://groups.google.com/grou

Python-URL! - weekly Python news and links (Mar 9)

2010-04-21 Thread Cameron Laird
ly echoing Guido's criterion of debuggability in language design http://groups.google.com/group/comp.lang.python/msg/3ebe7a0b78086acf Editor Cameron Laird apologizes for the following three entries, which appeared in the last installment only in an unusably garbled form: There is no module

Python-URL! - weekly Python news and links (Dec 26)

2009-12-27 Thread Cameron Laird
QOTW: "It took Python to make me realize that programming *could* be fun, or at least not annoying enough to keep me from making a career of programming." - Aahz http://groups.google.com/group/comp.lang.python/msg/65ad4e71c194d97e Thanks to Gabriel Genellina for these references: How t

Python-URL! - weekly Python news and links (Dec 15)

2009-12-15 Thread Cameron Laird
This installment, like all those for several months, was authored by Gabriel Genellina. We have hopes of correcting the attribution before year's-end. QOTW: "Plus, it's not something that's never foolproof." - Carl Banks, daring negater http://groups.google.com/group/comp.lang.python/msg/e8

Python-URL! - weekly Python news and links (Dec 9)

2009-12-09 Thread Cameron Laird
QOTW: "I'm not sure you ever understood what the problem was, or where, but I'm happy you feel like you've solved it." - Marco Mariani http://groups.google.com/group/comp.lang.python/browse_thread/thread/8ec7ad4fcc714538 Python 2.7a1, the first alpha release of the 2.7 series, is availa

Python-URL! - weekly Python news and links (Nov 24)

2009-11-24 Thread Cameron Laird
QOTW: "... it's generally accepted that COM sucks rocks through straws, so explore alternatives when they're available ;-)" - Chris Withers http://groups.google.com/group/comp.lang.python/msg/29577c851ceed167 From nothing to a complete working program - Peter Otten on stepwise refine

Python-URL! - weekly Python news and links (Nov 10)

2009-11-10 Thread Cameron Laird
QOTW: "Don't get me wrong - innovation often comes from scratching ones personal itch. But you seem to be suffering from a rather bad case of neurodermatitis." - Diez B. Roggisch, on ... well, personal style in problem-solving http://groups.google.com/group/comp.lang.python/msg/4cf102bdd3a3267

Python-URL! - weekly Python news and links (Nov 3)

2009-11-03 Thread Cameron Laird
QOTW: "I consider "import *" the first error to be fixed ..." - Robert Kern, author of PyFlakes, a potential replacement for Pylint and Pychecker, on his personal style http://groups.google.com/group/comp.lang.python/msg/5bf77b21b3b0caf2 Python 2.6.4 is out; it fixes some small but impor

Python-URL! - weekly Python news and links (Oct 25)

2009-10-25 Thread Cameron Laird
QOTW: "It was intended to be understood, not copied." - Dave Angel comments on a characteristic of didactic examples http://groups.google.com/group/comp.lang.python/msg/61e2d60d08f1c630 Altering the default character encoding (sys.setdefaultencoding) is never a good idea: ^://gr

Re: Python-URL! - weekly Python news and links (Sep 17)

2009-09-24 Thread Cameron Laird
In article , Gabriel Genellina wrote (but I edited): . . . >More ways to define an empty function that you ever imagined: >http://groups.google.com/group/comp.lang.python/t/c9f494b6745c7d74/

Re: [Diversity] Language note

2009-08-23 Thread Cameron Laird
In article , Rami Chowdhury wrote: > >> Most indian languages have a different >> grammer (compared to English). So i'm curious to see how that would be >> implemented in a parser > >+1 -- I'd be interested in seeing this too, although we have drifted >OT here and perhaps this conversation woul

Re: Help in reading the pdf file

2009-03-28 Thread Cameron Laird
In article , Gabriel Genellina wrote: >En Thu, 26 Mar 2009 18:31:31 -0300, M Kumar >escribió: > >> I need to read pdf files and extract data from it, is there any way to >> do it >> through python. > >If you are interested in the text, I'd use ghostscript pdf2text (you may >invoke it from insid

Re: can multi-core improve single funciton?

2009-02-19 Thread Cameron Laird
In article , Steven D'Aprano wrote: >> . >> . >> . And now for my version (which admitedly isn't really mine, and returns slightly incorrect fib(n) for large values of n, due to the limited floating point precision). >>

Re: can multi-core improve single funciton?

2009-02-17 Thread Cameron Laird
In article , Steven D'Aprano wrote: . . . >> And now for my version (which admitedly isn't really mine, and returns >> slightly incorrect fib(n) for large values of n, due to the limited >> floating point precision). > >The f

Re: Results of executing hyperlink in script

2009-01-28 Thread Cameron Laird
In article , MRAB wrote: >Muddy Coder wrote: . . . >You could put quotes around the URL: > >os.startfile('"%s"' % URL) > >or: > >os.system('start "%s"' % URL) > >if "&" has a special meaning to the command-line. In fact, no,

Re: How to execute a hyperlink?

2009-01-28 Thread Cameron Laird
In article <8uvfl.45$n_6...@newsfe22.ams2>, Roel Schroeven wrote: >Muddy Coder schreef: >> Hi Folks, >> >> Module os provides a means of running shell commands, such as: >> >> import os >> os.system('dir .') >> >> will execute command dir >> >> I think a hyperlink should also be executed. I t

Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Cameron Laird
In article , 7stud wrote: . . . >> Vim and a terminal works for me, specifically with screen. > >What does 'with screen' mean? > http://www.gnu.org/software/screen/ > -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Application Server

2009-01-28 Thread Cameron Laird
In article , James Mills wrote: >On Wed, Jan 28, 2009 at 2:42 PM, James Mills > wrote: >(...) > >> Might I recommend circuits (1) as a general purpose >> framework that you can build your application on top of. >> >> circuits will allow you to communicate with long-running >> background processes

Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Cameron Laird
In article <33d59aa0-e73b-45f8-bdfe-4c78717c6...@v5g2000prm.googlegroups.com>, joseph.a.mar...@gmail.com wrote: >On Jan 27, 6:47 pm, André wrote: >> On Jan 27, 7:06 pm, "joseph.a.mar...@gmail.com" >> >> wrote: >> > Greetings! I've heard enough raving about Python, I'm going to see for >> > mysel

Re: How many followers of comp.lang.python

2009-01-27 Thread Cameron Laird
In article <8692c77c-0498-4c68-940f-e4d4427f3...@x37g2000yqj.googlegroups.com>, rantingrick wrote: >Seems like the only thing people are interested in is bickering and >name calling. I noticed the post "Does Python really follow..." has >over 400 post mainly from the same 10 people. Maybe this is

Re: Windows SSH (remote execution of commands) - Python Automation

2008-12-29 Thread Cameron Laird
In article , Tino Wildenhain wrote: . . . >> I am looking for some information on how to automate remote login to a >> UNIX machine using ssh from a windows XP box. >> >> Possible way: >> >> 1. Use putty (or any other ss

Re: Multiple equates

2008-12-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >In message <[EMAIL PROTECTED]>, Cameron Laird wrote: > >>def shell_escape(Arg) : >>"""returns Arg suitably escaped for use as a command-line

Re: Multiple equates

2008-12-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >>def f1(Match): >>return > >Something missing here? Ugh; yes, sorry: def shell_escape(Arg) : """returns

Re: Multiple equates

2008-12-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >In message <[EMAIL PROTECTED]>, Cameron Laird wrote: > >> In article <[EMAIL PROTECTED]>, >> Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >> >&g

Re: Multiple equates

2008-11-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> I've been trying to decide if there's any sober reason to advocate >> the one-liner >> >> map(lambda i: a.__setitem__(i, False

Re: Multiple equates

2008-11-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Chase <[EMAIL PROTECTED]> wrote: . . . >To the OP, I think rather than cluttering my code, I'd just >create a loop > > for i in [x1,x2,x3,x4,...x1024]: > a[i] = False

Re: Parse each line by character location

2008-11-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Chase <[EMAIL PROTECTED]> wrote: >> I hope this is the right place to ask, but I am trying to come up with >> a way to parse each line of a file. Unfortunately, the file is neither >> comma, nor tab, nor space delimited. Rather, the character locations >> imply

SQL is many things, but "mini" had never occurred to me as one of them (was: push-style templating - an xml-like way to process xhtml)

2008-11-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tino Wildenhain <[EMAIL PROTECTED]> wrote: . . . >Mini languages is the correct term. And yes they have their >purpose. (Think of SQL for example). .

Re: Anyone in the Houston / College Station / Austin area? Looking to do some sprints / joint projects.

2008-11-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, xkenneth <[EMAIL PROTECTED]> wrote: >All, > > I'm in Houston/College Station/Austin quite often and I'm looking >for other coders to do some joint projects with, share experiences, or >do some sprints. Let me know if you're interested. .

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mensanator <[EMAIL PROTECTED]> wrote: >On Oct 29, 2:44 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: >> Guilherme Polo wrote: >> > On 10/29/08, Stef Mientki <[EMAIL PROTECTED]> wrote: >> >> >> hello, >> >> >>  Why gives "k = 09"  a syntax error ? >> >> > 09 is not a v

Re: Commercial Products in Python

2008-10-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paulo J. Matos <[EMAIL PROTECTED]> wrote: >Hi all, > >I was just wondering, if you wish to commercialize an application >developed in Python, what's the way to go? >I guess the only way is to sell the source, right? > >This is because (and tell me if I am wrong): >1)

Re: Developing for Python (2.x or 3)?

2008-10-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Sean DiZazzo <[EMAIL PROTECTED]> wrote: >I would use 2.5.2 or 2.6. I don't think 3 is anywhere near stable >yet. > >Paulo J. Matos wrote: >> Hi all, >> >> I am in the process of choosing which Python version for a brand new >> application. Van Rossum in an intervie

Re: use str as variable name

2008-09-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: >Mathieu Prevot a écrit : >> 2008/9/4 Chris Rebert <[EMAIL PROTECTED]>: > >(snip) > >>> You're looking for the setattr() built-in function. In this exact case: >>>setattr(a, arg, new_value) >>> >>> This is probably

Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >On Sun, 31 Aug 2008 18:05:08 +, Cameron Laird <[EMAIL PROTECTED]> wrote: >>In article <[EMAIL PROTECTED]>, >>Paul Boddie <[EMAIL PROTECTED]> wrote: >> [snip

Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Boddie <[EMAIL PROTECTED]> wrote: >On 31 Aug, 20:05, [EMAIL PROTECTED] (Cameron Laird) wrote: >> >> Let's take a definite example: I have a convenient >> Ubuntu 8.04.1 >> The content of /etc/apt/sources.li

Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Boddie <[EMAIL PROTECTED]> wrote: >On 31 Aug, 16:45, [EMAIL PROTECTED] (Cameron Laird) wrote: >> Yes and no. My own experience with Debian packages is that with a >> standard >> apt-get install python2.5 >> an attem

Re: python subprocess know how

2008-08-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, King <[EMAIL PROTECTED]> wrote: >Hi, > >I am using subprocess module to execute a command and print results >back. > >startupinfo = subprocess.STARTUPINFO() >startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW >my_process = subprocess.Popen(cmnd, startupinfo=star

Re: (in memory) database

2008-08-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >mark wrote: . . . >> Unfortunately I have only some knowledge of SQLite which is not an >> option here. > >why is sqlite not an option? it's is bundled

Re: When to use try and except?

2008-08-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl Banks <[EMAIL PROTECTED]> wrote: . . . >> Basically, there's a general principle (EAFP: Easier to ask >> forgiveness than permission) in Python to just "try" something and >> then catch the

Re: Multipart - Counting the amount of Values for One key

2008-08-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >En Fri, 29 Aug 2008 14:41:53 -0300, Ron Brennan <[EMAIL PROTECTED]> >escribi�: > >> I am trying to find the amount of values there are pertaining to one key. >> >> For example: >> >> - To find the average of the value

Re: Command lime code

2008-08-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Timothy Grant <[EMAIL PROTECTED]> wrote: >On Fri, Aug 29, 2008 at 3:38 PM, <[EMAIL PROTECTED]> wrote: >>>Seriously, did you think we've hacked your computer and are spying on >>>your web browsing? How would we know what web page you have visited? >> >> I was hoping

Re: Ensure only single application instance.

2008-08-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Uberman <[EMAIL PROTECTED]> wrote: >On Fri, Aug 29, 2008 at 6:51 AM, Heston James <[EMAIL PROTECTED]> wrote: >> Good afternoon all. >> >> I have an application/script which is launched by crontab on a regular >> basis. I need an effective and accurate way to ensure

Re: Python in a Nutshell -- Book vs Web

2008-08-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> No. No, to an almost libelous extent. > >No matter what you write about, there's always a certain subcategory of >potential readers who insist that collect

Re: Python in a Nutshell -- Book vs Web

2008-08-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Matimus <[EMAIL PROTECTED]> wrote: >On Aug 28, 3:05 pm, "W. eWatson" <[EMAIL PROTECTED]> wrote: >> I read an Amazon of Python in a Nutshell. The first edition is supposedly >> much like the web site. What web site? The second edition apparently adds >> more to the b

Re: Wild Card String Comparison

2008-08-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, W. eWatson <[EMAIL PROTECTED]> wrote: >Is it possible to do a search for a wild card string in another string. For >example, I'd like to find "v*.dat" in a string called bingo. v must be >matched against only the first character in bingo, and not simply found >som

Re: Tkinter event loop question

2008-08-27 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >gordon wrote: > >> is it possible to send a message to the gui instance while the Tk >> event loop is running?I mean after i create a gui object like . .

Re: Are dictionaries the same as hashtables?

2008-08-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: > >> In article <[EMAIL PROTECTED]>, >> Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >>>Martin Marcher wrote: >>> >>>> On 2008-

Re: Are dictionaries the same as hashtables?

2008-08-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >Martin Marcher wrote: > >> On 2008-08-26 00:32:20, cnb wrote: >>> Are dictionaries the same as hashtables? . . . >Python does not have a "one key maps

Re: Turning py into an Executable Program for Win?

2008-08-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >On 24 Aug, 01:28, "W. eWatson" <[EMAIL PROTECTED]> wrote: >> How do I get my py code into some executable form so that Win users who >> don't have python can execute it? > >Py2exe: http://www.py2exe.org/ More generally, http://wiki.pytho

Re: rules of thumb for cross os code

2008-08-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, DwBear75 <[EMAIL PROTECTED]> wrote: >I am considering using python as a replacement for a lot of bash >scripting that I have been doing. I would like to be as cross platform . . . >2) nifty lamb

Re: Using Tkinter

2008-08-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >On Aug 22, 7:20 am, J-Burns <[EMAIL PROTECTED]> wrote: . . . >> If I have a drop down box in Pythons tkinter, is it possible that the >> entities that the drop down h

Re: Prevalent Python/Django academic software

2008-08-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Daniel Bickett <[EMAIL PROTECTED]> wrote: >Is anyone working on any software at present, using django or python >in general, which serves various academic/course functions, or else >that of student-instructor arbitration? A popular example which my >university uses

Re: AOP in Python

2008-08-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: >On 18 Aug., 15:21, Hussein B <[EMAIL PROTECTED]> wrote: >> Hey, >> AOP is build in Groovy language via many means, does Python support >> AOP out of the box without the need for such >tools:http://pythonsource.com/open-source

Re: Is there a such Python module ?

2008-07-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Matthew Fitzgibbons <[EMAIL PROTECTED]> wrote: >Johny wrote: >> Is there a Python module that can help with reading SMS message from a >> mobile phone? >> Or is there an example how to read SMS message using a program written >> in Python,C, or any other language? >

Re: Testing for an empty list

2008-07-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Matthew Fitzgibbons <[EMAIL PROTECTED]> wrote: >Alexnb wrote: >> Okay this is a simple question I just don't know how. If I have a list, say: >> >> funList = [] >> >> and after a while something possible should have been appended to it, but >> wasn't. How can I te

Python needn't apologize (was: Using Python for programming algorithms)

2008-06-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, sturlamolden <[EMAIL PROTECTED]> wrote: >On May 18, 5:46 am, "inhahe" <[EMAIL PROTECTED]> wrote: > >> The numbers I heard are that Python is 10-100 times slower than C. > >Only true if you use Python as if it was a dialect of Visual Basic. If >you use the right tool

Books for a new generation of Pythoneers (was: Newbie to python --- why should i learn !)

2008-05-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, maxinbjohn <[EMAIL PROTECTED]> wrote: >Hi Raxit, > >One of the the tempting features of Python is that it is fun to code >in Python. If you are really trying to learn python, you should read >Adventures with Neko (http://gnuvision.com/books/pybook/) . It is an >intr

Who makes up these rules, anyway? (was: Python-URL! - weekly Python news and links (Apr 28))

2008-04-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gabriel Genellina <[EMAIL PROTECTED]> wrote: . . . >Explicit variable declaration for functions: > >http://groups.google.com/group/comp.lang.python/browse_thread/thread/6c4a508edd2fbe0

Re: Mathematical Python Library

2008-04-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Mon, 7 Apr 2008 09:05:57 -0700 (PDT), mc <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > >> I'm looking for a library which can do mathematical stuff like >> solving equations. Or calculation the

Re: Combinatorics

2008-02-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Cameron Laird: >> It does occur to me, though, that even more widely applicable >> than the combinatorics module of Mathematica (if only because of >> its licensing) might be such resources as > &g

Re: Combinatorics

2008-02-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Michael Robertson: >> I'm guessing sage has this, but shouldn't something like this be part of >> the standard library (perhaps in C)? > >My answer is positive. As a reference point you can look at the >combinatorics module of Mathematica

Re: cloud computing (and python)?

2008-01-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Aaron Watters <[EMAIL PROTECTED]> wrote: >So, in between skiing runs I noticed >a Business Week cover story on >"cloud computing". The article had >lots of interesting information in it like >about how somebody's mom used to >be an airline stewardess and the >inter

Re: pexpect ssh login and ls | grep

2007-12-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, crybaby <[EMAIL PROTECTED]> wrote: >I need to ssh into a remote machine and check if mytest.log file is >there. I have setup ssh keys to handle login authentications. > >How do I determine if mytest.log is there by using Pexpect. What I >have done so far is spawned

Re: Python+Expect+Win32 = Not Possible?

2007-09-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, gamename <[EMAIL PROTECTED]> wrote: >On Sep 13, 1:42 am, [EMAIL PROTECTED] wrote: >> On Sep 12, 9:27 pm, gamename <[EMAIL PROTECTED]> wrote: >> >> > Hi, >> >> > Is it still the case there is no practical Expect-like module for >> > win32? I know that cygwin can supp

Re: automatic parallelization

2007-09-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mikhail Teterin <[EMAIL PROTECTED]> wrote: . . . >> I'm fond of Linda > http://www.unixreview.com/documents/s=10125/ur0704l/ >, Parallel >> Python http://www.parallelpython.com/ > only one of s

Re: automatic parallelization

2007-09-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Schlenker <[EMAIL PROTECTED]> wrote: >Mikhail Teterin schrieb: >> While C/C++ and Fortran have OpenMP (http://www.OpenMP.org/), there is >> nothing comparable in Tcl (nor, as far as I know, in the two other >> scripting languages). >> >> Or is there? I'd li

My first Python CGI (was: Coming from Perl)

2007-09-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Amer Neely <[EMAIL PROTECTED]> wrote: >Amer Neely wrote: >> TheFlyingDutchman wrote: >>> On Sep 12, 5:30 pm, Amer Neely <[EMAIL PROTECTED]> wrote: I'm a complete newbie with Python, but have several years experience with Perl in a web environment. >>>

Re: Basic GUI

2007-09-12 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >You can also use threads, which is a little bit more portable than >using Python's fork methodology, or so I've read. The concepts on this >page can be applied

Re: Why is this loop heavy code so slow in Python? Possible Project Euler spoilers

2007-09-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Dickinson <[EMAIL PROTECTED]> wrote: >On Sep 2, 9:45 am, [EMAIL PROTECTED] wrote: >> [snip code] >> >> Thanks for that. I realise that improving the algorithm will speed >> things up. I wanted to know why my less than perfect algorithm was so >> much slower in

Re: simple spider in python

2007-08-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >thanks everybody, s kind. I'll take a look at booth. >have a nice day/night (depending on your latitude!) ^_^ > >ciao! > Somewhere in the middle between the two suggestions you've already received is http://www.unixreview.com/documen

Re: Server-side scripting in python

2007-08-22 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nagarajan <[EMAIL PROTECTED]> wrote: >> >> . >> . >> . >Let me phrase my problem in a finer way. >I have done simple projects in python. >I wanted to explore web programming facet of python. The

Re: Server-side scripting in python

2007-08-21 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nagarajan <[EMAIL PROTECTED]> wrote: >Hi group, >I need to develop a web application. I am in a fix as to choose among >the various server-side scripting options. I want to explore python >(am a newbie) to gain expertise and upon search, I learnt about >PSP(Python S

Re: Simple python iteration question

2007-08-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, BartlebyScrivener <[EMAIL PROTECTED]> wrote: >On Aug 14, 11:59 am, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > >> Just for my own sanity: Isn't this the third response advocating the >> use of enumerate()? Did the other responses not get through, or was >> this a

Re: Simple python iteration question

2007-08-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Shawn Milochik <[EMAIL PROTECTED]> wrote: . . . >Just for my own sanity: Isn't this the third response advocating the >use of enumerate()? Did the other responses not get through, or was >this a

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I mused: >In article <[EMAIL PROTECTED]>, >Azazello <[EMAIL PROTECTED]> wrote: >>On Jul 31, 12:45 pm, Walt Leipold <[EMAIL PROTECTED]> wrote: > . > . > . >>> It has nothing to do with 'proprietary iss

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Azazello <[EMAIL PROTECTED]> wrote: >On Jul 31, 12:45 pm, Walt Leipold <[EMAIL PROTECTED]> wrote: . . . >> It has nothing to do with 'proprietary issues'. A lot of it has to do >> with the perc

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > > >I'm attempting to start some process control using Python. I've have . . . >Is there an existing forum on this already? .

Re: The Future of Python Threading

2007-08-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Chris Mellon <[EMAIL PROTECTED]> wrote: . . . >There's nothing "undocumented" about IPC. It's been around as a >technique for decades. Message passing is as old as the hills.

  1   2   3   4   5   6   7   >