IPython 0.7.3 is out

2006-12-20 Thread Ville Vainio
Hi all, The IPython team is happy to release version 0.7.3, with a lot of new enhancements, as well as many bug fixes (including full Python 2.5 support). We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to

itools 0.15.0 released

2006-12-20 Thread J. David Ibáñez
itools is a Python library, it groups a number of packages into a single meta-package for easier development and deployment: itools.catalogitools.http itools.uri itools.cmsitools.i18n itools.vfs itools.csvitools.ical

[ANNOUNCE] Thirty-fifth release of PythonCAD now available

2006-12-20 Thread Art Haas
Hi. I'm pleased to announce the thirty-fifth development release of PythonCAD, a CAD package for open-source software users. As the name implies, PythonCAD is written entirely in Python. The goal of this project is to create a fully scriptable drafting program that will match and eventually

Re: [PythonCAD] [ANNOUNCE] Thirty-fifth release of PythonCAD now available

2006-12-20 Thread Art Haas
Hi again. In addition to the thirty-fifth release of PythonCAD finally seeing the light of day, the PythonCAD website was given a long overdue makeover. I'd like to thank Jose Antonio Martin for doing the stylesheet and artwork. The new look is an vast improvement from the plain text layout the

ANN: Pygments 0.6 Zimtstern released

2006-12-20 Thread Georg Brandl
I'm happy to announce the second public release of Pygments, the generic Python syntax highlighter. Download it from http://cheeseshop.python.org/pypi/Pygments, or look at the demonstration at http://pygments.pocoo.org/demo. News The new features since 0.5.1 include: * New lexers:

Re: python script terminating

2006-12-20 Thread Fredrik Lundh
Aditya Vaish wrote: Using perl script name perl is not a valid Python statement. neither is Do something. if you want to get help with your Python code, please post the actual code. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb, lots of columns and newb-ness

2006-12-20 Thread Fredrik Lundh
Andrew Sackville-West wrote: I've also tried building tuples and lists and then using this cursor.execute(insert into daily values (%s), values) with no luck. it appears to me that I have to put in all 132 '%s' in order to make that work and that just seems stupid. on the other hand,

Any easy-to-use email send module?

2006-12-20 Thread oyster
I find that the existing email moudle is some hard for me to understand, especially the part of how to set the CC, BCC and attach the files. Is there any more easy one like this p-code? import easyemail smtpserver=easyemail.server('something') smtpserver.login('[EMAIL PROTECTED]', pwd)

Re: Working with unsigned/signed types

2006-12-20 Thread Ant
On Dec 20, 6:25 am, [EMAIL PROTECTED] wrote: That seems like it'll do the trick quite well. As far as the future generations go, there's no question as to whether it would last if it were on my site - there are always changes being made to it and I'm not expecting it to be very stable

Re: SQLALCHEMY - Method to have the last word, by Michael Bayer

2006-12-20 Thread Hendrik van Rooyen
Diez B. Roggisch [EMAIL PROTECTED] wrote: So - stop it, go away, and please, pretty please with sugar on top: don't come back. Python doesn't need you, this NG doesn't need you, no FOSS project needs you. Buy a dog. That needs you. Until it runs away from being evaluated. This proves it.

Re: urllib.unquote and unicode

2006-12-20 Thread Duncan Booth
Martin v. Löwis [EMAIL PROTECTED] wrote: Duncan Booth schrieb: The way that uri encoding is supposed to work is that first the input string in unicode is encoded to UTF-8 and then each byte which is not in the permitted range for characters is encoded as % followed by two hex characters.

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Sebastian 'lunar' Wiesner
Gabriel Genellina [EMAIL PROTECTED] schrieb On 17 dic, 19:21, Roger Upole [EMAIL PROTECTED] wrote: os.stat(selected)[ST_MODE] (S_IXUSR|S_IXGRP|S_IXOTH This will tell you that x.exe is executable, even if x.exe contains nothing but zeros. Isn't the same with any other recipe,

Re: SQLALCHEMY - Method to have the last word, by Michael Bayer

2006-12-20 Thread Diez B. Roggisch
Hendrik van Rooyen wrote: Diez B. Roggisch [EMAIL PROTECTED] wrote: So - stop it, go away, and please, pretty please with sugar on top: don't come back. Python doesn't need you, this NG doesn't need you, no FOSS project needs you. Buy a dog. That needs you. Until it runs away from being

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Sebastian 'lunar' Wiesner
Tim Roberts [EMAIL PROTECTED] schrieb Gabriel Genellina [EMAIL PROTECTED] wrote: On 16 dic, 04:47, Tim Roberts [EMAIL PROTECTED] wrote: os.stat(selected)[ST_MODE] (S_IXUSR|S_IXGRP|S_IXOTH This will tell you that x.exe is executable, even if x.exe contains nothing but zeros. Isn't the

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Fredrik Lundh
Sebastian 'lunar' Wiesner wrote: No, they aren't! Try this: you're confusing the shell's is this file executable check with the loader's can I execute this file check: $ export PATH=.:$PATH $ dd if=/dev/zero of=ls count=1 1+0 records in 1+0 records out $ ls -l ls -rw-rw-r-- 1 slab slab 512

Re: Good Looking UI for a stand alone application

2006-12-20 Thread Luc Heinrich
Chris Mellon [EMAIL PROTECTED] wrote: FYI: OS X ships with wxWidgets installed. For the sole purpose of providing an easy way to run existing wxPerl and wxPython code (and possibly pure wxWidgets code as well). As a *porting* aid if you will, as hinted in the Using Traditional UNIX Graphical

cross-compiling python: reviewers needed

2006-12-20 Thread Han-Wen Nienhuys
Hello, I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The patch is available at https://sourceforge.net/tracker/?func=detailatid=305470aid=1597850group_id=5470

IPython 0.7.3 upgrade notes

2006-12-20 Thread Ville Vainio
Something I forgot to emphasize in the announcement, knowing that not everyone reads the release notes - if you are upgrading from a previous version of IPython, you must either: - Delete your ~/ipython (or ~/_ipython) directory OR - Run %upgrade once IPython starts. --

Re: IPython 0.7.3 upgrade notes

2006-12-20 Thread Ville Vainio
Ville Vainio wrote: Something I forgot to emphasize in the announcement, knowing that not everyone reads the release notes - if you are upgrading from a previous version of IPython, you must either: - Delete your ~/ipython (or ~/_ipython) directory OR - Run %upgrade once IPython starts.

Re: IPython 0.7.3 upgrade notes

2006-12-20 Thread Ville Vainio
Ville Vainio wrote: Something I forgot to emphasize in the announcement, knowing that not everyone reads the release notes - if you are upgrading from a previous version of IPython, you must either: - Delete your ~/ipython (or ~/_ipython) directory OR - Run %upgrade once IPython starts.

Re: automatically grading small programming assignments

2006-12-20 Thread Slawomir Nowaczyk
On Thu, 14 Dec 2006 21:36:31 -0500 Brian Blais [EMAIL PROTECTED] wrote: # Paddy wrote: # It might turn out to be a poor substitute for the personal touch, # especially If they are just starting to program. # # Oh, I didn't mean it to completely replace me grading things, but I # think it

Re: python-hosting.com projects: dead?

2006-12-20 Thread greg
Remi wrote: We had to do some serious cleanup and we disabled a lot of Trac sites that looked abandoned (people left their Trac sites open to spammers and our server was crawling under the load caused by these spammers). Perhaps it would be a good idea to send email to the owners of these

Re: python-hosting.com projects: dead?

2006-12-20 Thread greg
Richard Jones wrote: Actually, to clarify the DEFAULT configuration for Trac is to leave it open to spam. That sounds like a really bad choice of default. A bit like the way Windows comes with all the let anyone in the world send me a virus options turned on... -- Greg --

Re: tuple.index()

2006-12-20 Thread greg
Nick Maclaren wrote: It does explain why you think of lists as homogeneous, but the analogy doesn't hold water on closer inspection. There doesn't seem to be ANYTHING in the specification or implementation that assumes lists are homogeneous. Then what do you think is suggested by the

Re: Page layouts in mod_python?

2006-12-20 Thread Bruno Desthuilliers
Graham Dumpleton a écrit : Bruno Desthuilliers wrote: Michael a écrit : Hey everyone, Is it possible to automatically insert headers/footers using mod_python? I will be not be using PSP's, so I cannot use the PSP/include solution. Furthermore, the header will be dynamic; it won't be a static

Re: def index(self):

2006-12-20 Thread Bruno Desthuilliers
Tim Roberts a écrit : Bruno Desthuilliers [EMAIL PROTECTED] wrote: Gert Cuykens a écrit : FWIW, the first version raises an exception (unless of course the name 'index' is already bound in the enclosing scope). And the second won't probably work as expected with CherryPy. code class

Re: tuple.index()

2006-12-20 Thread Nick Maclaren
In article [EMAIL PROTECTED], greg [EMAIL PROTECTED] writes: | | It does explain why you think of lists as homogeneous, but the | analogy doesn't hold water on closer inspection. There doesn't seem | to be ANYTHING in the specification or implementation that assumes | lists are

Re: tuple.index()

2006-12-20 Thread greg
Nick Maclaren wrote: Nope. Sorry. Consider the old model where an I/O list is an ordered sequence of strings and agents (effectively procedure calls), with no constraints on how those are ordered. With your specification, that is neither heterogenous nor homogenous :-) I don't see any

Re: automatically grading small programming assignments

2006-12-20 Thread Paul Boddie
Jeff Rush wrote: For another solution, I wonder whether you could make use of the new Abstract Syntax Tree (AST) in Python 2.5, where you convert the source of an attempt into an abstract data structure, anonymize the method/variable/class names and compare the tree against a correct

IPython 0.7.3 is out

2006-12-20 Thread Ville Vainio
Hi all, The IPython team is happy to release version 0.7.3, with a lot of new enhancements, as well as many bug fixes (including full Python 2.5 support). We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to

IPython 0.7.3 upgrade notes

2006-12-20 Thread Ville Vainio
Something I forgot to emphasize in the announcement, knowing that not everyone reads the release notes - if you are upgrading from a previous version of IPython, you must either: - Delete your ~/ipython (or ~/_ipython) directory OR - Run %upgrade once IPython starts. --

[ANN] PyInstaller 1.3 released

2006-12-20 Thread Giovanni Bajo
Hello, PyInstaller 1.3 is out! Grab latest version at: http://pyinstaller.python-hosting.com/ Description --- PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux and Irix. Its main advantages over similar tools are that

array, a better shell

2006-12-20 Thread bearophileHUGS
For array.array B means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: from array import array a = array(B, hello) But it seems such capability isn't shared with the append: a.extend(hello) Traceback (most recent call last): File

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Sebastian 'lunar' Wiesner
Fredrik Lundh [EMAIL PROTECTED] schrieb Sebastian 'lunar' Wiesner wrote: No, they aren't! Try this: you're confusing the shell's is this file executable check with the loader's can I execute this file check: $ export PATH=.:$PATH $ dd if=/dev/zero of=ls count=1 1+0 records in 1+0

Re: Newbie: What are the rules wrt constructing PYDOC keywords

2006-12-20 Thread Steven D'Aprano
On Tue, 19 Dec 2006 12:48:16 -0800, paulsendave wrote: Still learning python (2.4) and have instructions that all of our python scripts should be SelfDoc'ing via pydoc standards. One thing that isn't clear to me is how pydoc searches for keywords. I believe that there might be certain

Re: array, a better shell

2006-12-20 Thread Steven D'Aprano
On Wed, 20 Dec 2006 03:44:25 -0800, bearophileHUGS wrote: For array.array B means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: from array import array a = array(B, hello) But it seems such capability isn't shared with the append:

Re: tuple.index()

2006-12-20 Thread Nick Maclaren
In article [EMAIL PROTECTED], greg [EMAIL PROTECTED] writes: | | Nope. Sorry. Consider the old model where an I/O list is an ordered | sequence of strings and agents (effectively procedure calls), with no | constraints on how those are ordered. With your specification, that | is neither

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Sebastian 'lunar' Wiesner wrote: Gabriel Genellina [EMAIL PROTECTED] schrieb A similar function exists on Linux too. But even if a file has the right file format, if it does not have the execute bit set, won't run. And you could set that bit on a JPG image too - and

Re: array, a better shell

2006-12-20 Thread bearophileHUGS
Steven D'Aprano: No you're not. You're describing a quite complicated shell. You're describing a hypothetical shell with features other actual shells don't have, so therefore it can't possibly be as simple as possible. You are right, it's not really simple, but: - It has just the basic

Re: array, a better shell

2006-12-20 Thread Duncan Booth
[EMAIL PROTECTED] wrote: This Mathematica shell allows you to edit small programs (like 1-15 lines of code) as input blocks, and later you can click on them and edit them. When you press shift-enter inside a block, that small program runs and its output goes just below it (and not at the end

Re: tricky(?) win32com question - Mark Hammond or other experts please.

2006-12-20 Thread Roger Upole
[EMAIL PROTECTED] wrote OK, I've asked this earlier this week with no response. Since then I've also received a suggestion from the app developers but that failed with the same type error problem. Hopefully Mark Hammond or other experts can offer a suggestion as to how to get around this

Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
Ben Finney schrieb: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination of their C programs. -- Robert Firth

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Fredrik Lundh
Sebastian 'lunar' Wiesner wrote: you're confusing the shell's is this file executable check with the loader's can I execute this file check: $ export PATH=.:$PATH $ dd if=/dev/zero of=ls count=1 1+0 records in 1+0 records out $ ls -l ls -rw-rw-r-- 1 slab slab 512 Dec 20 03:33 ls $

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Sebastian 'lunar' Wiesner
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] schrieb In [EMAIL PROTECTED], Sebastian 'lunar' Wiesner wrote: Gabriel Genellina [EMAIL PROTECTED] schrieb A similar function exists on Linux too. But even if a file has the right file format, if it does not have the execute bit set, won't run.

wxGrid: Problem with unicode mathematical symbols

2006-12-20 Thread Massi
Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following: when I try to put in the cells some mathematical symbol (such as those for belong to, for all or exists) with the method SetCellValue I always see ∊

Re: array, a better shell

2006-12-20 Thread bearophileHUGS
Duncan Booth: Later you can click on them and bring them back to the bottom of the input buffer for further editing (so no confusing output appearing out of order), I think that's worse, not better. You end with a messy final document (log), so finding things into it (during the editing too)

Re: Windows Authetication vs seperate process

2006-12-20 Thread Roger Upole
[EMAIL PROTECTED] wrote: I was wondering of someone could steer me in the right direction. We have a package that we would like to secure so that only specific individuals can access specific portions of the application. Our wxPython application will revolve around updating a central

Re: [ANN] PyInstaller 1.3 released

2006-12-20 Thread Han-Wen Nienhuys
Giovanni Bajo escreveu: Hello, PyInstaller 1.3 is out! Grab latest version at: http://pyinstaller.python-hosting.com/ Description --- PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux and Irix. Its main

Re: tuple.index()

2006-12-20 Thread Paul Boddie
Nick Maclaren wrote: Which is tantamount to saying that Python doesn't support mutable heterogeneous sequences, even though they are not locked out. That is more than just odd - it is almost unbelievable. They are a very basic data structure, after all! What a fuss about something so

RE: Is htmlGen still alive?

2006-12-20 Thread Klaus Muller
Thank you for this input. I was primarily looking for a download site. I downloaded HyperText and definitely will give it a try. It looks good. Klaus -Original Message- From: Gabriel Genellina [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 8:49 PM To: [EMAIL PROTECTED]

Re: What am I supposed to do with an egg?!

2006-12-20 Thread F. GEIGER
[EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Type sudo easy_install myeggfile.egg. Sorry for not being clear. I did exec easy_install - no errors so far. But the egg was still there. I'd expected, that it was converted into .py-files somehow, which could be imported by my

Re: regexp

2006-12-20 Thread Thomas Ploch
Mark Schoonover schrieb: You have to pay for this one, but I do like Komodo just for the regex feature. I'm rather new to Python, coming over from 10 years of Perl, and it's nice to have Komodo stay consistant. Can't wait for 4.0, so I can get back to having VI key commands Back into

Re: array, a better shell

2006-12-20 Thread Roland Puntaier
I have also used the shell of Mathematica. It's quite powerful and it can show graphics too inlined, but globally I don't like it fully because it makes editing small programs a pain (for me)... I use Vim to edit python code and can execute any selection (F3) or single lines (F2) whenever I

Regexp Neg. set of chars HowTo?

2006-12-20 Thread durumdara
Hi! I want to replace some seqs. in a html. Let: a- b = ab but: xxx - b must be unchanged, because it is not word split. I want to search and replace with re, but I don't know how to neg. this set ['\ \n\t']. This time I use full set without these chars, but neg. is better and shorter. Ok,

Re: What am I supposed to do with an egg?!

2006-12-20 Thread Duncan Booth
F. GEIGER [EMAIL PROTECTED] wrote: Sorry for not being clear. I did exec easy_install - no errors so far. But the egg was still there. I'd expected, that it was converted into .py-files somehow, which could be imported by my modules. The .egg file should have been copied into your

Re: trouble getting google through urllib

2006-12-20 Thread BJörn Lindqvist
Google doesnt like Python scripts. You will need to pretend to be a browser by setting the user-agent string in the HTTP header. and possibly also run the risk of having your system blocked by Google if they figure out you are lying to them? It is possible. I wrote a 'googlewhack'

Re: array, a better shell

2006-12-20 Thread Neil Cerutti
On 2006-12-20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: For array.array B means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: from array import array a = array(B, hello) But it seems such capability isn't shared with the append:

Re: [ANN] PyInstaller 1.3 released

2006-12-20 Thread Robin Becker
Giovanni Bajo wrote: Hello, PyInstaller 1.3 is out! Grab latest version at: http://pyinstaller.python-hosting.com/ .. I just tried this on something which we currently use py2exe+nsis to package and it certainly seems to produce a small exe, but when run I see a cryptic message on

Re: python poetry?

2006-12-20 Thread BartlebyScrivener
Michael Spencer wrote: I wrote the following in response to Steve Holden's limerick challenge a couple of years ago: Thanks! I found some of these searching the clp google group. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: python-hosting.com projects: dead?

2006-12-20 Thread dwhall
My project was temporarily disabled as well even though I had taken measures to block spam and had committed to svn and edited the trac wiki one day before. I was a bit concerned that maybe webfaction had lost my trac and svn during their house cleaning. But I emailed Remi and he had it going

Re: trouble getting google through urllib

2006-12-20 Thread Fredrik Lundh
BJörn Lindqvist wrote: For Google, that load must be piss in the ocean. I bet for Google to even notice the abuse, it must be something really, really severe. like, say, business? http://scripting.wordpress.com/2006/12/19/scripting-news-for-12192006/#comment-25891 /F --

Re: Any easy-to-use email send module?

2006-12-20 Thread Larry Bates
oyster wrote: I find that the existing email moudle is some hard for me to understand, especially the part of how to set the CC, BCC and attach the files. Is there any more easy one like this p-code? import easyemail smtpserver=easyemail.server('something') smtpserver.login('[EMAIL

Stani's Python Editor - questions

2006-12-20 Thread Laszlo Nagy
Hello, I was trying to get answers for these. SPE homepage was down. Then I found it on berlios (http://developer.berlios.de/forum/forum.php?forum_id=12695) but no one answered since 5 days. In fact nobody seems to write in anything to that forum, I presume it is dead. I have no other

Re: Fall of Roman Empire

2006-12-20 Thread Chris Mellon
On 12/20/06, Ben Finney [EMAIL PROTECTED] wrote: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination

Re: MySQLdb, lots of columns and newb-ness

2006-12-20 Thread Ant
On Dec 20, 5:20 am, Andrew Sackville-West [EMAIL PROTECTED] wrote: values = , .join([escapeAndQuote(f[:-2]) for f in fields]) Obviously this is the appropriate choice since this is a database app. In general the strip() group of string methods do what you want in a safe way - assuming you

Support of IPv6 extension headers

2006-12-20 Thread cychong
Hi, There is no probleming in programming the basic IPv6 socket program with the python. Then how about the IPv6 extension header? The RFC 2292 and man pages from the unix/linux advise to use the sendmsg to send the packet with the extension header. Does python support the extension header

Re: Support of IPv6 extension headers

2006-12-20 Thread Jean-Paul Calderone
On 20 Dec 2006 07:07:02 -0800, cychong [EMAIL PROTECTED] wrote: Hi, There is no probleming in programming the basic IPv6 socket program with the python. Then how about the IPv6 extension header? The RFC 2292 and man pages from the unix/linux advise to use the sendmsg to send the packet with the

Re: update attribute - (newbie)

2006-12-20 Thread Gabriel Genellina
At Tuesday 19/12/2006 11:49, Larry Bates wrote: I would like to have it that when I ask for p, method _get_p is always called so that attribute can be updated. How can I have this functionality here? thanks Something like this? class A: def __init__(self): self.t=4

Re: cross-compiling python: reviewers needed

2006-12-20 Thread David Boddie
Han-Wen Nienhuys wrote: I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The patch is available at

Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
Ben Finney schrieb: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination of their C programs. -- Robert Firth

Re: Fall of Roman Empire

2006-12-20 Thread Felix Benner
Thomas Ploch schrieb: Ben Finney schrieb: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination of their C

Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
Felix Benner schrieb: Thomas Ploch schrieb: Ben Finney schrieb: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__)

Re: Any easy-to-use email send module?

2006-12-20 Thread ina
I put this together for some automated testing I do with an email system. I hope it is of help to you. It dosn't do cc and bcc In this version but it would be simple to add to the eMessage headder. http://phlik.ishpeck.net/index.php?P=b1114201575phlik --

[ANNOUNCE] Thirty-fifth release of PythonCAD now available

2006-12-20 Thread Art Haas
Hi. I'm pleased to announce the thirty-fifth development release of PythonCAD, a CAD package for open-source software users. As the name implies, PythonCAD is written entirely in Python. The goal of this project is to create a fully scriptable drafting program that will match and eventually

Re: Fall of Roman Empire

2006-12-20 Thread Georg Brandl
Felix Benner schrieb: Sorry, somehow had to do this. Please slap me (i like it, don't worry) if it's totally stupid s totally stupid! You forgot the main function! (not to mention you returned universe instead of everything) static int main(int argc, char **argv) { char

perl better than python for users with disabilities?

2006-12-20 Thread Dan Jacobson
Can I feel even better about using perl vs. python, as apparently python's dependence of formatting, indentation, etc. vs. perl's (){}; etc. makes writing python programs perhaps very device dependent. Whereas perl can be written on a tiny tiny screen, and can withstand all kinds of users with

Re: merits of Lisp vs Python

2006-12-20 Thread Anders J. Munch
jayessay wrote: Please note: GC is not part of CL's definition. It is likely not part of any Lisp's definition (for reasons that should be obvious), and for the same reasons likely not part of any language's definition. Really? So how do you write a portable program in CL, that is to run

Re: Fall of Roman Empire

2006-12-20 Thread Sion Arrowsmith
Ben Finney [EMAIL PROTECTED] wrote: John Machin [EMAIL PROTECTED] writes: Ben Finney wrote: \ ...one of the main causes of the fall of the Roman Empire was | `\that, lacking zero, they had no way to indicate successful | _o__) termination of their C programs.

tkFileDialog closes main application

2006-12-20 Thread mdmdmd
Hello, I wish to collect 4 files from a user. So I have decided to use tkFileDialog askopenfilename. My problem is that after a few file selections the root window is destroyed (the whole program just dissappears) I have created a simple example and was able to reproduce the same thing with

your opinion about psycopg vs pygresql

2006-12-20 Thread Martin P. Hellwig
Hi all, I'm playing a bit with PostgreSQL, in which I've set me the target to create a python script which with user input creates a new user role and a database with that owner (connecting to template1 since I know that at least that db exists). Ok so I installed PostGreSQL and pygresql

Re: perl better than python for users with disabilities?

2006-12-20 Thread Martin P. Hellwig
Dan Jacobson wrote: Can I feel even better about using perl vs. python, as apparently python's dependence of formatting, indentation, etc. vs. perl's (){}; etc. makes writing python programs perhaps very device dependent. Whereas perl can be written on a tiny tiny screen, and can withstand

Re: perl better than python for users with disabilities?

2006-12-20 Thread Michele
What about indenting with a single space? This does not seem a problem to me, even on tiny tiny screens =) On 12/20/06, Dan Jacobson [EMAIL PROTECTED] wrote: Can I feel even better about using perl vs. python, as apparently python's dependence of formatting, indentation, etc. vs. perl's (){};

Re: perl better than python for users with disabilities?

2006-12-20 Thread Thomas Ploch
Martin P. Hellwig schrieb: Quite punny title though I assume you are really serious and mean people with a physical disability, I won't comment any further on this subject :-), if I already offended anyone, please excuse me, since I'm original from Germany I'm not supposed to be funny.

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Fredrik Lundh
Paul Arthur wrote: no, I'm showing that a local file marked as executable overrides a shared one, even if the local file isn't actually an executable. Only if you have your system set up badly. The current directory should not be in the search path, and it especially shouldn't have higher

Re: merits of Lisp vs Python

2006-12-20 Thread Rob Thorpe
Anders J. Munch wrote: jayessay wrote: Please note: GC is not part of CL's definition. It is likely not part of any Lisp's definition (for reasons that should be obvious), and for the same reasons likely not part of any language's definition. Really? So how do you write a portable

PIL broken on win32?

2006-12-20 Thread Chris Mellon
PIL 1.1.5 and 1.1.6 both seem to be broken, in different ways, on win32. 1.1.5 will load and access images, but ImageDraw fails: i = Image.open(good.jpg) d = ImageDraw.Draw(i) d.line((10,10,20,20)) Traceback (most recent call last): File input, line 1, in ? File

Does any one know of any good folder/directory modules

2006-12-20 Thread moishyyehuda
Hi Does any one know of any good folder/directory modules. I need to be able to see what files and directories are in a folder, I also need to be able to see the size of the directory content. Thanks -- http://mail.python.org/mailman/listinfo/python-list

error with IDLE on debian

2006-12-20 Thread altern
Hi when i try to run IDLE on my debian laptop I get this error. $ idle Traceback (most recent call last): File /usr/bin/idle, line 5, in ? main() File idlelib/PyShell.py, line 1359, in main File idlelib/FileList.py, line 44, in new File idlelib/PyShell.py, line 105, in __init__

Re: merits of Lisp vs Python

2006-12-20 Thread [EMAIL PROTECTED]
Anders J. Munch wrote: jayessay wrote: Please note: GC is not part of CL's definition. It is likely not part of any Lisp's definition (for reasons that should be obvious), and for the same reasons likely not part of any language's definition. Really? So how do you write a portable

Re: Does any one know of any good folder/directory modules

2006-12-20 Thread Thomas Ploch
[EMAIL PROTECTED] schrieb: Hi Does any one know of any good folder/directory modules. I need to be able to see what files and directories are in a folder, I also need to be able to see the size of the directory content. Thanks You should have a look here:

Re: PIL broken on win32?

2006-12-20 Thread Fredrik Lundh
Chris Mellon wrote: PIL 1.1.5 and 1.1.6 both seem to be broken, in different ways, on win32. 1.1.5 will load and access images, but ImageDraw fails: i = Image.open(good.jpg) d = ImageDraw.Draw(i) d.line((10,10,20,20)) Traceback (most recent call last): File input, line 1, in ? File

Re: merits of Lisp vs Python

2006-12-20 Thread Pascal Bourguignon
Rob Thorpe [EMAIL PROTECTED] writes: Anders J. Munch wrote: jayessay wrote: Please note: GC is not part of CL's definition. It is likely not part of any Lisp's definition (for reasons that should be obvious), and for the same reasons likely not part of any language's definition.

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Sebastian 'lunar' Wiesner
Fredrik Lundh [EMAIL PROTECTED] schrieb Paul Arthur wrote: no, I'm showing that a local file marked as executable overrides a shared one, even if the local file isn't actually an executable. Only if you have your system set up badly. The current directory should not be in the search

Re: perl better than python for users with disabilities?

2006-12-20 Thread Georg Brandl
Thomas Ploch schrieb: Martin P. Hellwig schrieb: Quite punny title though I assume you are really serious and mean people with a physical disability, I won't comment any further on this subject :-), if I already offended anyone, please excuse me, since I'm original from Germany I'm not

Re: Need Simple Way To Determine If File Is Executable

2006-12-20 Thread Fredrik Lundh
Sebastian 'lunar' Wiesner wrote: no, I'm showing that a local file marked as executable overrides a shared one, even if the local file isn't actually an executable. Only if you have your system set up badly. The current directory should not be in the search path, and it especially

Re: What am I supposed to do with an egg?!

2006-12-20 Thread Morpheus
On Wed, 20 Dec 2006 13:35:26 +, Duncan Booth wrote: F. GEIGER [EMAIL PROTECTED] wrote: Sorry for not being clear. I did exec easy_install - no errors so far. But the egg was still there. I'd expected, that it was converted into .py-files somehow, which could be imported by my modules.

Re: MySQLdb, lots of columns and newb-ness

2006-12-20 Thread Andrew Sackville-West
On Wed, Dec 20, 2006 at 07:00:38AM -0800, Ant wrote: On Dec 20, 5:20 am, Andrew Sackville-West [EMAIL PROTECTED] wrote: values = , .join([escapeAndQuote(f[:-2]) for f in fields]) Obviously this is the appropriate choice since this is a database app. In general the strip() group of

Boost Python tutorial needs MSVC?

2006-12-20 Thread Max Wilson
Hi, Has anyone here built Boost.Python modules under MinGW? I'm trying to build the Boost.Python tutorial under MinGW and getting an error that says it depends on MSVC, which puzzles me because Boost built using g++. Here's some of my output: [EMAIL PROTECTED]

TypeError: cannot concatenate 'str' and 'NoneType' objects

2006-12-20 Thread thompson . marisa
Hi. I'm extremely new to Python and programming as a whole. I have written a python script with the assistance of ESRI ArcGIS 9.2, which uses Python 2.4.1, however, it gives me this error when I try to run it. I've already posted at ESRI support, and I was hoping that Python people could help me

Re: Boost Python tutorial needs MSVC?

2006-12-20 Thread Max Wilson
Cancel that--I found the answer. http://groups.google.com/group/boost-list/browse_frm/thread/5a17077679a33dca/7360f2038d6e6cca?lnk=gstq=bjam+mingwrnum=3#7360f2038d6e6cca Short answer: bjam.exe should not be in /bin or /usr/bin because MinGW treats programs in there differently. In my case I

  1   2   >