Dr. Dobb's Python-URL! - weekly Python news and links (Jul 17)

2006-07-17 Thread Cameron Laird
QOTW: Alas, Python has extensive libraries and [is] well documented to boot. - Edmond Dantes Locking files is a complex business. - Sybren Stuvel File-locking *sounds* like an easy thing; it just isn't so in any operating system that often appears on desktops. Take advantage of

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Jack [EMAIL PROTECTED] wrote: Yes, I mean Lua, not Loa :-p Lua is a nice language. Like you said, it doesn't have many libraries as Python does. Plus, it's still evolving and the libraries are changing. I found a few functions not working last time I tried kepler

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Carl J. Van Arsdall [EMAIL PROTECTED] wrote: . . . This raises a good question. Is there a need for python to change somewhat to work better in an embedded profile? Are there many people in

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Cameron Laird) writes: Yes and no. Python could thrive for the next decade while utterly surrendering the small-and-embedded domain to Forth, Lua, Tcl, Scheme, and so on, so, no, there's no *need

Dr. Dobb's Python-URL! - weekly Python news and links (Jul 12)

2006-07-12 Thread Cameron Laird
QOTW: Write code, not usenet posts. - Fredrik Lundh If an embedded return isn't clear, the method probably needs to be refactored with 'extract method' a few times until it is clear. - John Roth The comp.lang.python collective has become quite expert at answering Which book should I

Re: syslog best practices -- when to call closelog?

2006-07-11 Thread Cameron Laird
In article [EMAIL PROTECTED], J Rice [EMAIL PROTECTED] wrote: I have a question: When should syslog.closelog() be called? I have a daemon that spends most of its time asleep and quiet, but writes messages to the mail log when active. Should I open the log at the start and keep it open until

Re: Restricted Access

2006-07-11 Thread Cameron Laird
In article [EMAIL PROTECTED], iapain [EMAIL PROTECTED] wrote: . . . Does that mean there is no way to implement restricted enviorment? . . . The most

Re: tkinter cursors namedisplay reference

2006-07-11 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I made a document on Tkinter cursors (mouse pointers?), pairing the cursor image with its name... Not a great deal of magic here since anyone can program something to see the different cursors on screen rather easily... BUT to have a

Dr. Dobb's Python-URL! - weekly Python news and links (Jul 12)

2006-07-11 Thread Cameron Laird
QOTW: Write code, not usenet posts. - Fredrik Lundh If an embedded return isn't clear, the method probably needs to be refactored with 'extract method' a few times until it is clear. - John Roth The comp.lang.python collective has become quite expert at answering Which book should I

Re: first book about python

2006-07-08 Thread Cameron Laird
In article [EMAIL PROTECTED], IOANNIS MANOLOUDIS [EMAIL PROTECTED] wrote: I want to learn python. I plan to buy a book. I always find printed material more convenient than reading on-line tutorials. I don't know PERL or any other scripting language. I only know some BASH programming. I am looking

Re: Making a time series analysis package in python - advice or assistance sought

2006-07-07 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Ray Tomes wrote: Hi Folks I am an old codger who has much experience with computers in the distant past before all this object oriented stuff. Also I have loads of software in such languages as FORTRAN and BASIC, QBASIC etc that is very

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 26)

2006-06-26 Thread Cameron Laird
QOTW: In short, it's never what you think it is ;-) - timbot, probably on the subject of performance Real efficiency comes from elegant solutions, not optimized programs. Optimization is always just a few correctness-preserving transformations away. - Jonathan Sobel

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 26)

2006-06-26 Thread Cameron Laird
QOTW: In short, it's never what you think it is ;-) - timbot, probably on the subject of performance Real efficiency comes from elegant solutions, not optimized programs. Optimization is always just a few correctness-preserving transformations away. - Jonathan Sobel

Re: Python taught in schools?

2006-06-25 Thread Cameron Laird
In article [EMAIL PROTECTED], MilkmanDan [EMAIL PROTECTED] wrote: I'll be a college freshman this fall, attending Florida Institute of Tech studying electrical engineering. I was considering taking some classes in programming and computer science, and I happened to notice that everything taught

Re: error with string (beginner)

2006-06-25 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Pavluck [EMAIL PROTECTED] wrote: Hello. I get the following error with the following code. Is there something wrong with my Python installation? code: import types something = input(Enter something and I will tell you the type: ) if type(something) is

Re: Absolute noob to Linux programming needs language choice help

2006-06-25 Thread Cameron Laird
In article [EMAIL PROTECTED], Tim Roberts [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Cameron Laird) wrote: Tcl's maturity advantage is tiny--*maybe* two years. Both began at the end of the '80s. There've been close to two decades since to obscure any initial leads. The difference is more

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hey guys, I am absolutely new to Linux programming, with no w##s programming experience except a small amount of C++ console apps. Reasonably new to Linux, BSD etc, got good sound networking

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Ben C [EMAIL PROTECTED] wrote: . . . My favourite's Python, but Tcl is definitely worth a look. It's been around a bit longer than Python (so more time for every conceivable problem to have been

Re: 2Qs

2006-06-24 Thread Cameron Laird
In article [EMAIL PROTECTED], SuperHik [EMAIL PROTECTED] wrote: 1st question: If a make an exe with i.e. py2exe, can I get any kind of error/bug report from the exe file saved into a file error.log and how? . . . Yes. It's

Python is fun and useful (was: Python is fun (useless social thread) ; -))

2006-06-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Carl Trachte [EMAIL PROTECTED] wrote: . . . Yes. I was a production geologist in a copper mine in the mid 90's. Our mine planning software vendor Mintec (www.mintec.com) had chosen it as their

Re: Network Programming in Python

2006-06-23 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: On 2006-06-23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How will Pyon help my cause ? What's Pyon? . . . A misreading of Pyro. Pyro URL:

Re: Opening a file with system default application

2006-06-23 Thread Cameron Laird
In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], BartlebyScrivener wrote: It would probably break like mad under *nix I bet it would work the same way on linux or os x; it's the equivalent of double-clicking on the file. No it doesn't

Re: How to generate all permutations of a string?

2006-06-22 Thread Cameron Laird
In article [EMAIL PROTECTED], Girish Sahani [EMAIL PROTECTED] wrote: Hi guys, I want to generate all permutations of a string. I've managed to generate all cyclic permutations. Please help :) def permute(string): l= [] l.append(string) string1 = '' for i in

Re: Network Programming in Python

2006-06-22 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I have Python 2.4.2 on windows and Linux both. I got an import error. how can we obtain the twisted libraries ? . . . Look for Downloading under URL:

Re: OS specific command in Python

2006-06-20 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] a écrit : So basically, instead of typing in on the command line argument I want to have it in a python program and let it do the action. Try exec() and execfile() from the standard library (IIRC) for example. in my

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 20)

2006-06-20 Thread Cameron Laird
ANNOUNCEMENT: we had an incident with backups of the Python-URL! mailing list. It's possible we lost one or two transactions from the last week. If you aren't receiving an e-mailed copy of this weekly news digest that you should, or are receiving one when you shouldn't, please alert me through

Formatting practices (was: Passing data to system command)

2006-06-19 Thread Cameron Laird
In article [EMAIL PROTECTED], Chris Hieronymus [EMAIL PROTECTED] wrote: . . . msg = str(x)+ +str(y)+\n p1.stdin.write(msg) . . . While Python

Re: Date Subtraction

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], rsutradhar_python wrote: How to subtract date which is stored in string variable? Example: date1=2006-01-10 date2=2005-12-15 date = date1 - date2 should give me 25 but problem is that

Re: download file from intranet linux server to windows clients

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Luis P. Mendes [EMAIL PROTECTED] wrote: . . . I'm building an intranet web server in Linux for around 40 windows clients with Django. The problem is that I want to build an excel file based on

Re: Passing data to system command

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Chris Hieronymus [EMAIL PROTECTED] wrote: . . . input. How do I get the data into the system call? I used to do things in csh and awk, i.e., something like awk '{some manipulations here;

Re: Getting output from external programs...

2006-06-18 Thread Cameron Laird
In article [EMAIL PROTECTED], Ten [EMAIL PROTECTED] wrote: . . . You can do this in various ways, ranging from the very simple and not very good from commands import getoutput x=getoutput(command) - to your more common

Re: convert floats to their 4 byte representation

2006-06-14 Thread Cameron Laird
In article [EMAIL PROTECTED], godavemon [EMAIL PROTECTED] wrote: I've been a member for a while but I had no idea how helpful this form is. I had a one hour meeting and when I came back there were 4 replies. Thanks for your help! Scott David Daniels wrote: godavemon wrote: I need to take

Re: Making a Label that looks the same as a button.

2006-06-13 Thread Cameron Laird
In article [EMAIL PROTECTED], Grayson, John [EMAIL PROTECTED] wrote: Buttons can look like labels without the need to create another object - just remove the Command binding, set state to DISABLED and disabledforeground='same color as NORMAL'... This demonstrates how to play with button

Re: Screen Scraping for Modern Applications?

2006-06-12 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: . . . Scrape means simply scraping pixel colors from locations on the screen. I'll worry about assembling it into meaningful information. Previously, I used Java, and it

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 12)

2006-06-12 Thread Cameron Laird
QOTW: Check out BeautifulSoup -- you will never write HTMLParser-based screen scrapers again. :) - Jonathan Ellis You clearly need something instead of XML. - Paul McGuire http://groups.google.com/group/comp.lang.python/msg/09e943c8dbf1e8c5? Johann C. Rocholl donates a PNG manager in

Re: Screen Scraping for Modern Applications?

2006-06-11 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: . . . For a side project I'm working on I need to be able to scrape a modern computer desktop. Is there any basic material already available to do this? I'd rather not

Re: how to get the length of a number

2006-06-11 Thread Cameron Laird
In article [EMAIL PROTECTED], Felipe Almeida Lessa [EMAIL PROTECTED] wrote: . . . math.floor(math.log(x, 10)) + 1 -- Felipe. ... and you're restricting to the positive integers, I take it? I still have rounding problems:

Re: First question on extending Python...

2006-06-11 Thread Cameron Laird
In article [EMAIL PROTECTED], Larry Bates [EMAIL PROTECTED] wrote: Redefined Horizons wrote: . . . There is a third-party application that I need to work with. It is closed-source, but it exposes a C API. I want to wrap

Re: How to extract 2 integers from a string in python?

2006-06-09 Thread Cameron Laird
In article [EMAIL PROTECTED], Klaus Alexander Seistrup [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] skrev: how can I extract 2 integers from a string in python? for example, my source string is this: Total size: 173233 (371587) I want to extract the integer 173233 and 371587 from that

Re: Test tool for python code.

2006-06-08 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Is there any tool available that will tell me what are the different test paths for any python code? . . . URL:

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2006-06-07 Thread Cameron Laird
QOTW: You can gain substantial speed-ups in very certain cases, but the main point of Pyrex is ease of wrapping, not of speeding-up. - Simon Percivall The rule of thumb for all your Python Vs C questions is ... 1.) Choose Python by default. . . . - Ravi Teja Do you remember Python's early

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2006-06-06 Thread Cameron Laird
QOTW: You can gain substantial speed-ups in very certain cases, but the main point of Pyrex is ease of wrapping, not of speeding-up. - Simon Percivall The rule of thumb for all your Python Vs C questions is ... 1.) Choose Python by default. . . . - Ravi Teja Do you remember Python's early

Re: Python less error-prone than Java

2006-06-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Christoph Zwerschke [EMAIL PROTECTED] wrote: You will often hear that for reasons of fault minimization, you should use a programming language with strict typing: http://turing.une.edu.au/~comp284/Lectures/Lecture_18/lecture/node1.html I just came across a funny

Re: Tkinter - changing existing Dialog?

2006-06-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Michael Yanowitz [EMAIL PROTECTED] wrote: Hello: I have a Tkinter GUI Dialog with many buttons and labels and text widgets. What I would like to do is, can I: 1) Disable/deactivate/hide a button, text widget that is already drawn (and of course the opposite

Re: Tkinter - changing existing Dialog?

2006-06-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Michael Yanowitz [EMAIL PROTECTED] wrote: . . . 2) Change the text of a label or button that is already drawn? based on actions taken by the user. Can it be done without destroying the present

Dr. Dobb's Python-URL! - weekly Python news and links (May 30)

2006-05-31 Thread Cameron Laird
QOTW: Making a user class work anywhere you can put a mapping in Perl is deep magic, but easy in Python. Creating types that act like files and can be used wherever a file is used is SOP in Python; I'm not even sure it's possible in Perl (probably is, but it's again deep magic). - Mike Meyer ...

Re: Dr. Dobb's Python-URL! - weekly Python news and links (May 30)

2006-05-31 Thread Cameron Laird
In article [EMAIL PROTECTED], Fuzzyman [EMAIL PROTECTED] wrote: . . . Fuzzyman advertises yet another convenience of Movable Python: http://groups.google.com/group/comp.lang.python/msg/35baaa3af891c12f

Re: Watching serial port activity.

2006-05-30 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: On 2006-05-30, xkenneth [EMAIL PROTECTED] wrote: I'm using linux. [It's generally considered good practice to quote enough context so that your post makes sense to people without access to older postings.] Under Linux there

Re: Watching serial port activity.

2006-05-30 Thread Cameron Laird
In article [EMAIL PROTECTED], I confused matters with: . . . !? I hadn't realized there's no such monitor ... What do you think of URL: http://wiki.tcl.tk/moni ? Ugh. Please ignore, all; this was a first draft of what was

Dr. Dobb's Python-URL! - weekly Python news and links (May 30)

2006-05-30 Thread Cameron Laird
QOTW: Making a user class work anywhere you can put a mapping in Perl is deep magic, but easy in Python. Creating types that act like files and can be used wherever a file is used is SOP in Python; I'm not even sure it's possible in Perl (probably is, but it's again deep magic). - Mike Meyer ...

Re: Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread Cameron Laird
In article [EMAIL PROTECTED], Paddy [EMAIL PROTECTED] wrote: ConfigObj? http://www.voidspace.org.uk/python/configobj.html . . . Depending on what the original questioner meant by general, I'm always happy to recommend Python

Re: access serial port in python

2006-05-29 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: hi i hav written a code in python to send an SMS from a nokia 3310 connected to my PC... i wanted to receive a msg on my PC. In order to do so, the PC must know when it has to read data frm the serial port ...thus an interrupt must be

Re: Python for my mum

2006-05-26 Thread Cameron Laird
In article [EMAIL PROTECTED], vbgunz [EMAIL PROTECTED] wrote: maybe you can tell your moms what to do and what binaries to download or maybe you can download them for her and either send it to her through email or put it on a disc for her... I understand the Windows XP installation binary is easy

Re: real time info to web browser from apache side ?

2006-05-23 Thread Cameron Laird
In article [EMAIL PROTECTED], Ben Finney [EMAIL PROTECTED] wrote: Joseph [EMAIL PROTECTED] writes: So I am looking more for a push technology than a pull from teh browser (user hit Ctrl-R to refresh is a pull). Not necessarily; just write the web page so that it instructs the browser to do

Exception style (was: calling python functions using variables)

2006-05-19 Thread Cameron Laird
In article [EMAIL PROTECTED], Grant Edwards [EMAIL PROTECTED] wrote: On 2006-05-19, bruno at modulix [EMAIL PROTECTED] wrote: Either deal with the resulting NameError exception (EAFP[0]) try: getattr(commands, VARIABLE)() except NameError: print sys.stderr, Unknown command, VARIABLE

Re: how to make the program notify me explicitly

2006-05-18 Thread Cameron Laird
In article [EMAIL PROTECTED], alex23 [EMAIL PROTECTED] wrote: hankssong wrote: may be message dialog is the best way to let me be informed! EasyGui is possibly the simplest and fastest way to get message dialogue boxes in Python: http://www.ferg.org/easygui/ - alex23 No. That's sure not

Re: count items in generator

2006-05-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Cameron Laird [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . . . My preference would be (with the original

Re: count items in generator

2006-05-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . . . I'd be a bit worried about having len(x) change x's state into an unusable one. Yes, it happens in other cases (if y in x:), but adding more such

Test professionalism (was: count items in generator)

2006-05-15 Thread Cameron Laird
In article [EMAIL PROTECTED], Delaney, Timothy (Tim) [EMAIL PROTECTED] wrote: . . . That's exactly my point. Assuming your test coverage is good, such an error would be caught by the MemoryError. An infinite loop should also

Re: count items in generator

2006-05-14 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . . . My preference would be (with the original definition for words_of_the_file) to code numwords = sum(1 for w in words_of_the_file(thefilepath))

Re: 2 books for me

2006-05-11 Thread Cameron Laird
In article [EMAIL PROTECTED], Ed Leafe [EMAIL PROTECTED] wrote: On May 11, 2006, at 3:32 PM, Robert Hicks wrote: Wouldn't portability go with Tkinter since that is installed with every Python? Dunno about other platforms, but it's not on my Mac. .

Re: data entry tool

2006-05-10 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Peter wroteWow - why so big for such a simple tool? 2MB sounds like a LOT of coding. Yes, it's a lot of code, but it's code written by other people (Python, Tkinter). Using Tkinter your program will probably be quite short, even if you use

Re: Econometrics in Panel data?

2006-05-09 Thread Cameron Laird
In article [EMAIL PROTECTED], DeepBlue [EMAIL PROTECTED] wrote: so are you saying that Python is not an appropriate language for doing econometrics stuff? Dennis Lee Bieber wrote: On Tue, 09 May 2006 05:58:10 +0800, DeepBlue [EMAIL PROTECTED] declaimed the following in comp.lang.python:

Re: Python's DSLs

2006-05-09 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Cameron Laird [EMAIL PROTECTED] wrote: ... On this one isolated matter, though, I'm confused, Alex: I sure think *I* have been writing DSLs as specializations of Python, and NOT as a language in its own right. Have I been

Re: Econometrics in Panel data?

2006-05-09 Thread Cameron Laird
In article [EMAIL PROTECTED], I counseled: In article [EMAIL PROTECTED], DeepBlue [EMAIL PROTECTED] wrote: so are you saying that Python is not an appropriate language for doing econometrics stuff? Dennis Lee Bieber wrote: On Tue, 09 May 2006 05:58:10 +0800, DeepBlue [EMAIL PROTECTED]

Python's DSLs (was: A critic of Guido's blog on Python's lambda)

2006-05-08 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . . . Of course, the choice of Python does mean that, when we really truly need a domain specific little language, we have to implement it as a language in

Re: Zope Guru...

2006-05-03 Thread Cameron Laird
In article [EMAIL PROTECTED], bruce [EMAIL PROTECTED] wrote: Hi.. In doing some research into Workflow apps regarding document management, I came across Zope. Given that it's Python Based, I figured I'd shout to the group here... Are there any Zope gurus that I can talk to regarding Zope, and

Re: An Atlas of Graphs with Python

2006-05-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Giandomenico Sica [EMAIL PROTECTED] wrote: Call for Cooperation An Atlas of Linguistic Graphs I'm a researcher in graph theory and networks. I'm working about a project connected with the theory and the applications of linguistic graphs, which are mathematical

Re: stdin: processing characters

2006-04-30 Thread Cameron Laird
In article [EMAIL PROTECTED], Edward Elliott [EMAIL PROTECTED] wrote: Kevin Simmons wrote: I have a python script that prompts the user for input from stdin via a menu. I want to process that input when the user types in two characters and not have to have the user press CR. As a comparison,

Re: help

2006-04-27 Thread Cameron Laird
In article [EMAIL PROTECTED], NavyJay [EMAIL PROTECTED] wrote: For such a simple task, I would use MATLAB. http://www.mathworks.com/products/matlab/ . [pertinent Python comments] . . ... and some people would

Re: what has python added to programming languages? (lets be esoteric, shall we ; )

2006-04-21 Thread Cameron Laird
In article [EMAIL PROTECTED], Carl Banks [EMAIL PROTECTED] wrote: Wildemar Wildenburger wrote: Are there any concepts that python has not borrowed, concepts that were not even inspired by other languages? I'm just interested if it is merely a best-of collection of language features or if there

Farther OT: financial analytics (was: OT: job offering in Milan)

2006-04-07 Thread Cameron Laird
In article [EMAIL PROTECTED], Robin Becker [EMAIL PROTECTED] wrote: . . . My math skills are now so degraded I have difficulty reading about conic programming using Nesterov's barrier functions etc etc.

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 4)

2006-04-06 Thread Cameron Laird
In article [EMAIL PROTECTED], gene tani [EMAIL PROTECTED] wrote: Peter Otten wrote: The old Python To-Do List now lives principally in a SourceForge reincarnation. http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse

Re: Seems like I want a pre-processor, but...

2006-03-29 Thread Cameron Laird
In article [EMAIL PROTECTED], Russell Warren [EMAIL PROTECTED] wrote: . . . Anyway - it worked... you've answered my question perfectly, thanks. I hadn't considered that the module loading phase could basically used for

Re: instantiate a class with a variable

2006-03-27 Thread Cameron Laird
In article [EMAIL PROTECTED], Ben Finney [EMAIL PROTECTED] wrote: John [EMAIL PROTECTED] writes: class foo: def method(self): pass x='foo' Can I use variable x value to create an instance of my class? You seem to be asking is it possible to call an object whose name is stored

Remote teamwork anecdotes (was: Where can we find top-notch python developers?)

2006-03-20 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . . . Unfortunately, I entirely understand _why_ most software development firms prefer face-to-face employees: when I found myself, back when I was a

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 17)

2006-03-18 Thread Cameron Laird
QOTW: Generally, you should always go for whatever is clearest/most easily read (not just in Python, but in all languages). - Timothy Delaney You will find as your programming experience increases that the different languages you learn are appropriate for different purposes, and have different

Re: accessing a USB HID

2006-03-17 Thread Cameron Laird
In article [EMAIL PROTECTED], Serge Orlov [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: . . . The obstacle our group currently faces is communicating with a microcontroller (ACS USB Servo II) that appears in Windows as a

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 17)

2006-03-17 Thread Cameron Laird
QOTW: Generally, you should always go for whatever is clearest/most easily read (not just in Python, but in all languages). - Timothy Delaney You will find as your programming experience increases that the different languages you learn are appropriate for different purposes, and have different

Re: Tkinter - Drawing rotated text in a widget

2006-03-12 Thread Cameron Laird
In article [EMAIL PROTECTED], Eric Apperley [EMAIL PROTECTED] wrote: How do I draw rotated text in a Tkinter widget using the draw.text method? Alternatively, if I draw text as normal, how can I then subsequently rotate it about its start point? Not easily. The (base) Tk-ers have written a

Bear not false witness (was: Which GUI toolkit is THE best?)

2006-03-10 Thread Cameron Laird
In article [EMAIL PROTECTED], Thomas Guettler [EMAIL PROTECTED] wrote: . . . tkinter (or better TK) has no good table widget. . . . URL:

Re: Numbers in python

2006-03-10 Thread Cameron Laird
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: However, I can't seem to get the program to treat the numbers as numbers. If I put them in the dictionary as 'THE' = int(0.965) the program returns 1.0 It certainoly does _not_ return 1.0 - it returns 1. And that is all it

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 6)

2006-03-07 Thread Cameron Laird
QOTW: This PyCon has been better in so many respects than the three that preceded it. ... PyCon will continue to improve. - Steve Holden, chairman of PyCon 2003-2005 http://holdenweb.blogspot.com/ Design patterns are kind of like sarcasm: hard to use well, not always appropriate, and

CP4E? (was: Help - just a few lines of code needed)

2006-03-07 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: There is some fine permutation code in the cookbook. Take a look at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465 . You can easily code something like: . .

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 6)

2006-03-07 Thread Cameron Laird
QOTW: This PyCon has been better in so many respects than the three that preceded it. ... PyCon will continue to improve. - Steve Holden, chairman of PyCon 2003-2005 http://holdenweb.blogspot.com/ Design patterns are kind of like sarcasm: hard to use well, not always appropriate, and

Re: What version of python is running a script

2006-03-07 Thread Cameron Laird
In article [EMAIL PROTECTED], Fernando Rodríguez [EMAIL PROTECTED] wrote: Hi, How can my script tell which version of python is running it? . . . $ python Python 2.3.5 (#2, Aug 30 2005, 15:50:26) [GCC 4.0.2 20050821

Dr. Dobb's Python-URL! - weekly Python news and links (Mar 6)

2006-03-06 Thread Cameron Laird
QOTW: This PyCon has been better in so many respects than the three that preceded it. ... PyCon will continue to improve. - Steve Holden, chairman of PyCon 2003-2005 http://holdenweb.blogspot.com/ Design patterns are kind of like sarcasm: hard to use well, not always appropriate, and

Re: Python advocacy in scientific computation

2006-02-28 Thread Cameron Laird
In article [EMAIL PROTECTED], Georg Brandl [EMAIL PROTECTED] wrote: Michael Tobis wrote: Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. Great text. Do

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 27)

2006-02-27 Thread Cameron Laird
QOTW: Actually, Python has the distinction of being both a great tool language *and* a great Zen language. That's what makes Python so cool ;-))) - Ron Stephens It is probably possible to do the whole thing with a regular expression. It is probably not wise to do so. - John Zenger (among MANY

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 27)

2006-02-27 Thread Cameron Laird
QOTW: Actually, Python has the distinction of being both a great tool language *and* a great Zen language. That's what makes Python so cool ;-))) - Ron Stephens It is probably possible to do the whole thing with a regular expression. It is probably not wise to do so. - John Zenger (among MANY

Re: Is Python a Zen language?

2006-02-26 Thread Cameron Laird
In article [EMAIL PROTECTED], Kay Schluehr [EMAIL PROTECTED] wrote: . . . Lucid in the mid 80s that gone down a few years later. As it turned out that time Lisp was not capable to survive in what we call today a heterogenous

Pythonic exceptionalism (was: A C-like if statement)

2006-02-25 Thread Cameron Laird
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Thu, 23 Feb 2006 12:04:38 -0700, Bob Greschke wrote: try: i = a.find(3) print It's here: , i except NotFound: print No 3's here Nuts. I guess you're right. It wouldn't be proper. Things are added or

Re: What are COM-enabled applications?

2006-02-24 Thread Cameron Laird
In article [EMAIL PROTECTED], Duncan Booth [EMAIL PROTECTED] wrote: Cameron Laird wrote: Python has good COM abilities. While, to my surprise, I just realized that I'm unaware of anyone having put together a COM explorer with Python, it would be a straightforward project. Don't the tools

Re: What are COM-enabled applications?

2006-02-22 Thread Cameron Laird
In article [EMAIL PROTECTED], Tempo [EMAIL PROTECTED] wrote: As the subject of this post suggests, I have one question; what are COM-enabled applications? I believe Microsoft Word is one of these apps, but what else? Is a web browser, Paint, Solitare, games, etc? I'm not sure if it varies from

Re: Tkinter canvas size determination

2006-02-22 Thread Cameron Laird
In article [EMAIL PROTECTED], Dean Allen Provins [EMAIL PROTECTED] wrote: I need to determine the size of a canvas while the process is running. Does anyone know of a technique that will let me do that? . . . Does import

Re: HTTP tcl

2006-02-22 Thread Cameron Laird
In article [EMAIL PROTECTED], alf [EMAIL PROTECTED] wrote: . . . I actually did post in comp.lang.tcl. Please search for wctp -- the 3 results are all mine. Apparently, I am the only person interested in implementing it in

Re: Python vs. Lisp -- please explain

2006-02-20 Thread Cameron Laird
In article [EMAIL PROTECTED], Alexander Schmolck [EMAIL PROTECTED] wrote: . . . However I don't find it at all implausible to assume that had Guido known all the stuff that say, David Ungar and Guy Steele were aware of at the

Re: Python vs. Lisp -- please explain

2006-02-20 Thread Cameron Laird
In article [EMAIL PROTECTED], I wondered: In article [EMAIL PROTECTED], Alexander Schmolck [EMAIL PROTECTED] wrote: . . . However I don't find it at all implausible to assume that had Guido known all the stuff that say, David

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 20)

2006-02-20 Thread Cameron Laird
QOTW: On the other hand, lousy testing is practically worthless. - Steve D'Aprano Komodo adds no goo to your code. - Trent Mick A nice if implicit comparison of stylish use of a regular expression vs. an equally stylish procedural approach: which is easier for *you* to maintain?

Dr. Dobb's Python-URL! - weekly Python news and links (Feb 20)

2006-02-20 Thread Cameron Laird
QOTW: On the other hand, lousy testing is practically worthless. - Steve D'Aprano Komodo adds no goo to your code. - Trent Mick A nice if implicit comparison of stylish use of a regular expression vs. an equally stylish procedural approach: which is easier for *you* to maintain?

<    1   2   3   4   5   6   7   >