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`

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__?

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__?

Re: Looking PDF module

2011-06-24 Thread Cameron Laird
On Jun 24, 6:45 am, neil.suffi...@gmail.com 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

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

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.6

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.

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

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 directly

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

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

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

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;

[issue9673] Entry Widget Not Editable under Windows XP

2010-08-24 Thread Cameron Laird
Cameron Laird cla...@phaseit.net added the comment: If it'll help, I can translate this to Tcl/Tk, and report it to the Tk maintainers. My first impression, which is in the realm of wild speculation, is that this is a Tk defect which has already been corrected. A bit more care in composition

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 for

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:

Re: GUIs - A Modest Proposal

2010-06-16 Thread Cameron Laird
On Jun 6, 5:49 pm, Kevin Walzer k...@codebykevin.com 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

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:

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

2010-04-21 Thread Cameron Laird
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 in the standard

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:

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:

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:

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 to

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

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

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

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/4cf102bdd3a3267b

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

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:

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

2009-09-24 Thread Cameron Laird
In article h8tf2d$95...@lairds.us, Gabriel Genellina python-...@phaseit.net wrote (but I edited): . . . More ways to define an empty function that you ever imagined:

Re: [Diversity] Language note

2009-08-23 Thread Cameron Laird
In article mailman.4473.1249755333.8015.python-l...@python.org, Rami Chowdhury rami.chowdh...@gmail.com 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,

Re: Help in reading the pdf file

2009-03-28 Thread Cameron Laird
In article mailman.2823.1238221222.11746.python-l...@python.org, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 26 Mar 2009 18:31:31 -0300, M Kumar tomanis...@gmail.com escribió: I need to read pdf files and extract data from it, is there any way to do it through python. If you are

Re: can multi-core improve single funciton?

2009-02-19 Thread Cameron Laird
In article pan.2009.02.18.07.24...@remove.this.cybersource.com.au, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: . . . And now for my version (which admitedly isn't really mine, and returns slightly incorrect

Re: can multi-core improve single funciton?

2009-02-17 Thread Cameron Laird
In article pan.2009.02.10.22.26...@remove.this.cybersource.com.au, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: . . . And now for my version (which admitedly isn't really mine, and returns slightly incorrect

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 joseph.a.mar...@gmail.com wrote: On Jan 27, 6:47 pm, André andre.robe...@gmail.com wrote: On Jan 27, 7:06 pm, joseph.a.mar...@gmail.com joseph.a.mar...@gmail.com wrote: Greetings! I've heard

Re: Python Application Server

2009-01-28 Thread Cameron Laird
In article mailman.8176.1233117922.3487.python-l...@python.org, James Mills prolo...@shortcircuit.net.au wrote: On Wed, Jan 28, 2009 at 2:42 PM, James Mills prolo...@shortcircuit.net.au wrote: (...) Might I recommend circuits (1) as a general purpose framework that you can build your

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

2009-01-28 Thread Cameron Laird
In article bb128b21-43c4-4cf2-b3db-ede8f9079...@v18g2000pro.googlegroups.com, 7stud bbxx789_0...@yahoo.com wrote: . . . Vim and a terminal works for me, specifically with screen. What does 'with screen' mean? URL:

Re: How to execute a hyperlink?

2009-01-28 Thread Cameron Laird
In article 8uvfl.45$n_6...@newsfe22.ams2, Roel Schroeven rschroev_nospam...@fastmail.fm 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

Re: Results of executing hyperlink in script

2009-01-28 Thread Cameron Laird
In article mailman.8233.1233184499.3487.python-l...@python.org, MRAB goo...@mrabarnett.plus.com wrote: Muddy Coder wrote: . . . You could put quotes around the URL: os.startfile('%s' % URL) or: os.system('start %s' % URL)

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 rantingr...@gmail.com 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

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

2008-12-29 Thread Cameron Laird
In article mailman.6325.1230551707.3487.python-l...@python.org, Tino Wildenhain t...@wildenhain.de wrote: . . . I am looking for some information on how to automate remote login to a UNIX machine using ssh from a windows

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 Arg suitably escaped for use as a command-line argument to Bash

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 argument to Bash. pattern = r

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: Cameron Laird wrote: I've been trying to decide if there's any sober reason to advocate

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), [x1, x2, x3, ..., x1024]) Are lambdas like the Dark Side of Python

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 what field

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. .

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: 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 valid octal number. Instead use

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 interview recently

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) You can't

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 covered in the Python

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 with

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=startupinfo)

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 attempt to import sqlite3 results in ImportError

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.list is debhttp://us.archive.ubuntu.com/ubuntuhardy main

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] Thanks for pursuing this, Paul. You have me curious now. Let's take

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 exception

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 collection, editing, filtering, structuring

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 that only one

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 someone would

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 values pertaining to

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 somewhere in

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 book than the

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 . . . but

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 to a list

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-08-26 00:32:20, cnb wrote: Are dictionaries the same as hashtables? . . . Python does not have

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 has are

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 lambda's

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, URL:

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 is the

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

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? Thank you

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 test if that list

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, like NumPy,

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 introductory

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/6c4a508edd2fbe04/

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 nulls of a

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 What I was trying to say is that that Mathematica

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 interior decor of

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 a child

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 support pexpect, but that

Re: automatic parallelization

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

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. A question I have, if

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 like to, for

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 to any

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 python than

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 URL:

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 problem at my

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 Server

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: 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 time-delay

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 perception of

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: 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 issues'. A lot of

  1   2   3   4   5   6   7   >