Re: Who uses Python?

2007-06-04 Thread Hendrik van Rooyen
"walterbyrd" <[EMAIL PROTECTED]> wrote: > Anything else? Finance? Web-analytics? SEO? Digital art? Industrial control and alarm annunciation - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in C

2007-06-04 Thread mistabean
On 5 Jun., 01:32, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 04 Jun 2007 11:58:38 -0300, <[EMAIL PROTECTED]> escribió: > > > > > > > Onwards to the problem, I have been having difficulty embedding a > > python module into my C/C++ program. (just a test program before > > moving on int

Re: ctypes: error passing a list of str to a fortran dll

2007-06-04 Thread Charles Sanders
luis wrote: > I'm using ctypes to call a fortran dll from python. I have no problems > passing integer and double arryas, but I have an error with str arrys. > For example: [snip] I do not know about Microsoft Fortran compilers (your mention of dll indicates you are probably using MS), nor much ab

Re: Python rocks

2007-06-04 Thread Michele Simionato
On Jun 2, 10:59 pm, Mark Carter <[EMAIL PROTECTED]> wrote: > Josiah Carlson wrote: > > Mark Carter wrote: > >> Not that I'm particularly knowledgeable about language design issues, > >> but maybe closures and slightly different scoping rules would be nice. > > > Python has had closures for years. >

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Terry Reedy
"Joe Salmeri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I have tried (unsuccessfully) to get you to view things from the end user | perspective. But that perspective is not directly relevant to *your* topic line. When you make a claim that os.stat is 'broken' and bugged, you

Re: excel library without COM

2007-06-04 Thread james_027
On Jun 4, 8:16 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jun 4, 3:52 pm, yuce <[EMAIL PROTECTED]> wrote: > > > i think this one works pretty nice:http://www.python.org/pypi/xlrd > > Sure does :-) However the "rd" in "xlrd" is short for "ReaD". As > Waldemar suggested, "xlwt" ("wt" as in WriTe

ANN: tftpy 0.4.2

2007-06-04 Thread msoulier
Copyright, Michael P. Soulier, 2006. About Release 0.4.2: Bugfix release for some small installation issues with earlier Python releases. About Release 0.4.1: Bugfix release to fix the installation path, with some restructuring into a tftpy package from t

Re: get_traceback

2007-06-04 Thread half . italian
On Jun 4, 3:51 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 04 Jun 2007 14:23:00 -0300, <[EMAIL PROTECTED]> escribió: > > > Is there a function or idoim for returning an exception/traceback > > rather than just printing it to stdout? I'm running a deamon where > > stdout is going t

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Steve Howell
--- MRAB <[EMAIL PROTECTED]> wrote: > Instead of having many different Pythons for many > different languages, > how about one for a language like Esperanto? > > http://en.wikipedia.org/wiki/Esperanto > > That could be the language for the standard > libraries instead of > English. > English b

Re: Strange behavior in Windows

2007-06-04 Thread David Stockwell wxp
my guess its your path. I'm not familiar with IDLE but if you try getting the properties of IDLE, chances are its got the patch set up correctly. in DOS you can try this to see what your path is: echo "My path is %PATH%" - Original Message - From: "Jakob Svavar Bjarnason" <[EMAIL PROT

Getting mount stats for filesystems

2007-06-04 Thread Mitko Haralanov
Hi, I am trying to find a way to figure out whether a certain remote filesystem is mounted using tcp vs. udp in Python. I've looked at the statvfs call and module but they don't give me anything useful (the F_FLAGS field for both a tcp and a udp filesystem is the same. I could, of course, get the

Re: "Plugin" architecture - how to do?

2007-06-04 Thread anglozaxxon
On Apr 10, 10:26 pm, c james <[EMAIL PROTECTED]> wrote: > Take a look at Trac. This might give you some ideas. > > http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture Thanks cJames, that's exactly what I'm looking for. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread MRAB
On Jun 5, 12:03 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, MRAB wrote: > > Instead of having many different Pythons for many different languages, > > how about one for a language like Esperanto? > > >http://en.wikipedia.org/wiki/Esperanto > > > That could be t

Re: Delete a file from a CGI

2007-06-04 Thread Steve Holden
Matias Surdi wrote: > Steve Holden escribió: > >> Matias Surdi wrote: >>> Thanks for your reply. >>> >>> This is the code that creates the file: >>> lock_file = open(".lock","w") >>> lock_file.write("test") >>> lock_file.close() >>> #Change permissions so that CGI can write lock file >>> os.chmod(

Re: how to print out each single char from a string in HEX format?

2007-06-04 Thread mike
Great! It works. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Joe Salmeri
I have tried (unsuccessfully) to get you to view things from the end user perspective. I wish that you would consider looking at what the end user sees because that is what really matters. Without end users we would not need to develop software would we? This entire conversation was VERY nicel

Re: how to print out each single char from a string in HEX format?

2007-06-04 Thread Gabriel Genellina
En Mon, 04 Jun 2007 20:03:39 -0300, mike <[EMAIL PROTECTED]> escribió: > I've researched python pretty much but still have no idea how to print > out each single character from a string in HEX format? Hope someone > can give me some hints. Thanks a lot. > > e.g.###here is a string > >

Re: Who uses Python?

2007-06-04 Thread [EMAIL PROTECTED]
On Jun 4, 2:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote: I am using python for csound.. You can use it inside of csound as well as using it on csound files... python makes text files very easy... I have to say that the price was very good and that is very important because I don't get funding fr

Re: Embedding Python in C

2007-06-04 Thread Gabriel Genellina
En Mon, 04 Jun 2007 11:58:38 -0300, <[EMAIL PROTECTED]> escribió: > Onwards to the problem, I have been having difficulty embedding a > python module into my C/C++ program. (just a test program before > moving on into the real thing). I have been making test runs using the > codes from http://docs

Re: How do you htmlentities in Python

2007-06-04 Thread js
Thanks you Matimus. That's exactly what I'm looking for! Easy, clean and customizable. I love python :) On 6/5/07, Matimus <[EMAIL PROTECTED]> wrote: > On Jun 4, 6:31 am, "js " <[EMAIL PROTECTED]> wrote: > > Hi list. > > > > If I'm not mistaken, in python, there's no standard library to convert >

Re: Who uses Python?

2007-06-04 Thread Maurice LING
walterbyrd wrote: > I mean other than sysadmins, programmers, and web-site developers? > > I have heard of some DBAs who use a lot of python. > > I suppose some scientists. I think python is used in bioinformatics. I > think some math and physics people use python. > > I suppose some people use

Re: pythonwin closes unexpectedlyI

2007-06-04 Thread leegold
snip... Slight off-topic fix for anyone whose search comes here: Recommend to patch ESRI application to newest update. You might also see error message: OLE error 0x80040212 http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=30524 gp.SetProduct("ArcView") is fix

how to print out each single char from a string in HEX format?

2007-06-04 Thread mike
guys, I've researched python pretty much but still have no idea how to print out each single character from a string in HEX format? Hope someone can give me some hints. Thanks a lot. e.g.###here is a string a='01234' ###how to print out it out in this way 0x31

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, MRAB wrote: > Instead of having many different Pythons for many different languages, > how about one for a language like Esperanto? > > http://en.wikipedia.org/wiki/Esperanto > > That could be the language for the standard libraries instead of > English. Esperanto remind

Re: Check for descriptors (in C)

2007-06-04 Thread Gabriel Genellina
En Sun, 03 Jun 2007 21:35:05 -0300, Alex Martelli <[EMAIL PROTECTED]> escribió: >> My actual use case: I want to check if an object (instance of a class >> that inherits from file) still uses the original write method or has >> overriden it. > > I'd check for identity between type(o).write and fil

Re: Who uses Python?

2007-06-04 Thread Cody Brown
I went through my who undergrad experience without touching python (I've hear of it, but never used it). Now starting to work in an Research Lab Seismic processing of data, we use it all the time! That and Madagascar pyton interface. ~code -- http://mail.python.org/mailman/listinfo/python-li

Re: get_traceback

2007-06-04 Thread Gabriel Genellina
En Mon, 04 Jun 2007 14:23:00 -0300, <[EMAIL PROTECTED]> escribió: > Is there a function or idoim for returning an exception/traceback > rather than just printing it to stdout? I'm running a deamon where > stdout is going to /dev/null, and I'm not even watching it..until > now. All the functions

RE: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Ryan Ginstrom
> On Behalf Of Steve Howell > Asia: > >Python should be *completely* internationalized for > Mandarin, Japanese, and possibly Hindi and Korean. > Not just identifiers. I'm talking the entire language, > keywords and all. I am a Japanese-to-English translator in my day job, and live in Jap

Re: magic names in python

2007-06-04 Thread Steven D'Aprano
On Mon, 04 Jun 2007 22:19:35 +, Lenard Lindstrom wrote: > What is "magic" about __init__ and __repr__? They are identifiers just > like "foo" or "JustAnotherClass". They have no special meaning to the > Python compiler. The leading and trailing double underscores represent > no special inca

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread MRAB
On Jun 4, 6:12 pm, Ross Ridge <[EMAIL PROTECTED]> wrote: > Ross Ridge wrote: > > Translating keywords and standard identifiers into Chinese could make > > learning Python even more difficult. It would probably make things > > easier for new programmers, but I don't know if serious programmers woul

Re: another thread on Python threading

2007-06-04 Thread sturlamolden
On Jun 4, 10:11 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: > However, locking isn't just for refcounts, it's to make sure that thread > A isn't mangling your object while thread B is traversing it. > With > object locking (course via the GIL, or fine via object-specific locks), > you get the

Re: Who uses Python?

2007-06-04 Thread Bjoern Schliessmann
walterbyrd wrote: > Anything else? Finance? Web-analytics? SEO? Digital art? We're using Python for a computer-controlled railway simulation system at a german university. It consists of a rather large model railway network, constructed with realism concerning railway operations, coupled to reali

Re: magic names in python

2007-06-04 Thread Lenard Lindstrom
per9000 wrote: > Hi, > > I recently started working a lot more in python than I have done in > the past. And I discovered something that totally removed the pretty > pink clouds of beautifulness that had surrounded my previous python > experiences: magic names (I felt almost as sad as when I disco

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Steve Howell
--- Josiah Carlson <[EMAIL PROTECTED]> wrote: > Steve Howell wrote: > > I don't predict a huge upswing in Slavic-writing > > Python programmers after PEP 3131, even among > > children. > I slightly misspoke here. I meant to say children and young adults, i.e. students up to early university age

Re: Who uses Python?

2007-06-04 Thread DaveM
On Mon, 04 Jun 2007 12:37:10 -0700, walterbyrd <[EMAIL PROTECTED]> wrote: >I mean other than sysadmins, programmers, and web-site developers? > >I have heard of some DBAs who use a lot of python. > >I suppose some scientists. I think python is used in bioinformatics. I >think some math and physics

RE: MySQL InterfaceError

2007-06-04 Thread Joe
Sorry, forgot some valuable information. If you couldn't tell from the traceback, the error will be thrown during the first executed query that the program runs into (no matter what that query is). Jough _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Sent: Mo

MySQL InterfaceError

2007-06-04 Thread Joe
I still consider myself a newbie, and being new to the list I request that you take it easy on me. ;) We're running a RHEL LAMP server with the mod_python publisher interpreter. The MySQLdb module seems to be giving me more problems than I had hoped for. With a fresh restart of apache, all pro

Re: another thread on Python threading

2007-06-04 Thread sturlamolden
On Jun 4, 10:11 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: > lock = threading.Lock() > > with lock: > #synchronized block! > pass True, except that the lock has to be shared among the threads. This explicit initiation of an reentrant lock is avoided in a Java synchr

Re: *Naming Conventions*

2007-06-04 Thread Wildemar Wildenburger
Carsten Haese wrote: > On Mon, 2007-06-04 at 23:20 +0200, Wildemar Wildenburger wrote: > >> I guess it is commonplace to use i, j, k and n >> (maybe others) in constructs like >> >> for i in range(len(data)): >> do_stuff(data[i]) >> >> Or should the good python hacker do that differently?

Re: Tkinter - resize tkMessageBox

2007-06-04 Thread jim-on-linux
On Monday 04 June 2007 16:29, [EMAIL PROTECTED] wrote: > Hi, > Is there a way to resize the width of the > "tkMessageBox.askyesno" dialog box, so that the > text does not wrap to the next line. Thanks > Rahul I don't know of any. It's a little more work but your better off using Toplevel and/or f

Re: *Naming Conventions*

2007-06-04 Thread Michael Hoffman
Wildemar Wildenburger wrote: > [EMAIL PROTECTED] wrote: >> On Jun 4, 12:20 am, Ninereeds <[EMAIL PROTECTED]> wrote: >> >>> First, for small loops with loop variables whose meaning is obvious >>> from context, the most readable name is usually something like 'i' or >>> 'j'. >>> >> >> 'i' and

Re: *Naming Conventions*

2007-06-04 Thread Carsten Haese
On Mon, 2007-06-04 at 23:20 +0200, Wildemar Wildenburger wrote: > I guess it is commonplace to use i, j, k and n > (maybe others) in constructs like > > for i in range(len(data)): > do_stuff(data[i]) > > Or should the good python hacker do that differently? Hope not ;). That's a big, fat "

Re: *Naming Conventions*

2007-06-04 Thread Wildemar Wildenburger
[EMAIL PROTECTED] wrote: > On Jun 4, 12:20 am, Ninereeds <[EMAIL PROTECTED]> wrote: > >> First, for small loops with loop variables whose meaning is obvious >> from context, the most readable name is usually something like 'i' or >> 'j'. >> > > 'i' and 'j' are the canonical names for for lo

Logic [WAS: Re: Who uses Python?]

2007-06-04 Thread Wildemar Wildenburger
Mark Carter wrote: > A woman from a job agency 'phoned me up the other day, and asked me if I > was any good with "algortihms". I told her that all programs are > algorithms, so the question didn't make that much sense. > > What does your "answer" have to do with the qustion, I wonder? She ask

Re: Who uses Python?

2007-06-04 Thread Mark Carter
Thomas Jollans wrote: > Broadly speaking, everyone who uses python programs in it and may thus be > considered a "programmer". A woman from a job agency 'phoned me up the other day, and asked me if I was any good with "algortihms". I told her that all programs are algorithms, so the question

Re: *Naming Conventions*

2007-06-04 Thread [EMAIL PROTECTED]
On Jun 4, 12:20 am, Ninereeds <[EMAIL PROTECTED]> wrote: > On Jun 4, 5:03 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > > > for validanswer in validanswers: > > if myAnswers.myanswer in myAnswers.validAnswers[validanswer]: > > MyOptions['style'] = validanswer > > First, for small loop

Re: wxPython splitwindow with interpreter on bottom

2007-06-04 Thread chewie54
On Jun 4, 4:36 pm, [EMAIL PROTECTED] wrote: > On Jun 4, 9:57 am, chewie54 <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Does anyone know of an example of wxPython source code that shows how > > to put a python shell (interpreter) in a bottom window with a > > graphical application in the top windo

Re: Who uses Python?

2007-06-04 Thread Mark Carter
walterbyrd wrote: > Anything else? Finance? Web-analytics? SEO? Digital art? I played with NodeBox a little while ago: http://nodebox.net/code/index.php/Home "NodeBox is a Mac OS X application that lets you create 2D visuals (static, animated or interactive) using Python programming code and ex

Re: wxPython splitwindow with interpreter on bottom

2007-06-04 Thread kyosohma
On Jun 4, 9:57 am, chewie54 <[EMAIL PROTECTED]> wrote: > Hi all, > > Does anyone know of an example of wxPython source code that shows how > to put a python shell (interpreter) in a bottom window with a > graphical application in the top window? > > Thanks, There's the pyCrust/pyShell examples in

RE: Who uses Python?

2007-06-04 Thread Ahmed, Shakir
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I think some math and physics people use python. I suppose some people use python to learn "programming" i

Tkinter - resize tkMessageBox

2007-06-04 Thread rahulnag22
Hi, Is there a way to resize the width of the "tkMessageBox.askyesno" dialog box, so that the text does not wrap to the next line. Thanks Rahul -- http://mail.python.org/mailman/listinfo/python-list

Re: Who uses Python?

2007-06-04 Thread supercooper
I use it for processing GIS data (ALOT), building data harvesting apps that slurp data into MySQL/SQLServer from text files (ALOT), batch processing of daily mindless tasks like copying files and backups, and filing/cataloging/EXIF-IPTC metadata editing on digital photos - to name a few. I took Mar

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Josiah Carlson
Steve Howell wrote: > I don't predict a huge upswing in Slavic-writing > Python programmers after PEP 3131, even among > children. Are you predicting a sharp upswing in Chinese-writing (or any language) Python programmers after PEP 3131 among children? If so, why certain groups of children and

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Martin v. Löwis
Joe Salmeri schrieb: > There is a conflict with the answers that you and Terry have given. No, there isn't. See some of my earlier replies: both windows and python are correct, despite the fact they give different results. When Windows renders a time stamp, it always uses the current UTC offset.

Re: another thread on Python threading

2007-06-04 Thread Josiah Carlson
sturlamolden wrote: > On Jun 4, 3:10 am, Josiah Carlson <[EMAIL PROTECTED]> > wrote: >> From what I understand, the Java runtime uses fine-grained locking on >> all objects. You just don't notice it because you don't need to write >> the acquire()/release() calls. It is done for you. (in a simi

Re: Automating a telnet session with an echo to stdout

2007-06-04 Thread Samuel
On Sat, 02 Jun 2007 17:41:01 +, Samuel wrote: > I am trying to automate a telnet session (currently using Python's > telnetlib) and would like to echo any response of the remote host to > stdout, as soon as it arrives on telnetlib's open TCP socket. For the records: Because I did not find any

Re: Who uses Python?

2007-06-04 Thread Thomas Jollans
"walterbyrd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >[...] programmers, and web-site developers? Broadly speaking, everyone who uses python programs in it and may thus be considered a "programmer". Python is a fully-fledged programming language and as such used for loads of

Re: Who uses Python?

2007-06-04 Thread [EMAIL PROTECTED]
On Jun 4, 3:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I mean other than sysadmins, programmers, and web-site developers? > > I have heard of some DBAs who use a lot of python. > > I suppose some scientists. I think python is used in bioinformatics. I > think some math and physics people use py

RE: Who uses Python?

2007-06-04 Thread Adam Pletcher
I'm a Technical Artist at a videogame developer. The TAs here are using Python more and more for our development needs. Although I'd say our primary use is on the tools and data-mining front... only indirectly relating to creation of digital art. It's closer to why a programmer or sysadmin would

Re: get_traceback

2007-06-04 Thread kyosohma
On Jun 4, 12:23 pm, [EMAIL PROTECTED] wrote: > Hi, > > Is there a function or idoim for returning an exception/traceback > rather than just printing it to stdout? I'm running a deamon where > stdout is going to /dev/null, and I'm not even watching it..until > now. All the functions I found in tra

Re: Who uses Python?

2007-06-04 Thread Grant Edwards
On 2007-06-04, walterbyrd <[EMAIL PROTECTED]> wrote: > Anything else? Finance? Web-analytics? SEO? Digital art? Electrical engineering. It's pretty handy for writing programs to talk to embedded systems using various protocols/interface (async-serial, ethernet, etc.). It's also good for analyzi

Re: Who uses Python?

2007-06-04 Thread kyosohma
On Jun 4, 2:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I mean other than sysadmins, programmers, and web-site developers? > > I have heard of some DBAs who use a lot of python. > > I suppose some scientists. I think python is used in bioinformatics. I > think some math and physics people use py

Who uses Python?

2007-06-04 Thread walterbyrd
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I think some math and physics people use python. I suppose some people use python to learn "programming" in g

Python Memory Leak using SWIG

2007-06-04 Thread cody314
Versions: Python 2.5.1 (r251:54863, May 14 2007, 10:50:04) SWIG Version 1.3.20 Hello I have some code that wraps a C++ library so I may use it in python. The code basically just gets some data and puts it in the PyArrayObject* which is returned as a PyObject*. I then call it from python like so:

Re: c[:]()

2007-06-04 Thread Terry Reedy
"Warren Stringer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |> "Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message | > news:[EMAIL PROTECTED] | > || Warren Stringer wanted to call the functions just for the side effects | > | without interest in the return values.

Re: Graph plotting module

2007-06-04 Thread Grant Edwards
On 2007-06-04, Viewer T. <[EMAIL PROTECTED]> wrote: > Is there a python module anywhere out there that can plot straight > line graphs, curves (quadratic, etc). If anyone knows where I can > download one, please let me know. gnuplot-py matplotlib -- Grant Edwards grante

Re: Graph plotting module

2007-06-04 Thread Szabolcs Nagy
Viewer T. wrote: > Is there a python module anywhere out there that can plot straight > line graphs, curves (quadratic, etc). If anyone knows where I can > download one, please let me know. http://matplotlib.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Python for embedded systems with memory constraints

2007-06-04 Thread vishnu
Hi there, I am embedding python 2.5 on embedded system running on RTOS where I had strict memory constraints. As python is a huge malloc intensive application, I observed huge memory fragmentation in my system which is leading to out of memory after running few scripts. So I decided to re-initiali

safe cgi parameter

2007-06-04 Thread Robin Becker
I'm trying to pass xml into a cgi script and have some problems because I both want to escape all my inputs (to avoid the possibility of an html injection attack) and also allow my xml to be obtained in its original form. I thought of this from xml.sax.saxutils import escape as xmlEscape class

Re: python for EE CAD program

2007-06-04 Thread chewie54
On Jun 4, 12:47 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-06-04, Chris Mellon <[EMAIL PROTECTED]> wrote: > > > > >> Your opinions are noted, thank you, but I don't agree with > >> you. There are portions of the code that are under review for > >> patents and as such need to be protecte

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Roel Schroeven
olive schreef: > Lol! > > What is a "sharp hair boss" ? Pointy-haired boss, see http://en.wikipedia.org/wiki/Pointy_Haired_Boss -- If I have been able to see further, it was only because I stood on the shoulders of giants. -- Isaac Newton Roel Schroeven -- http://mail.python.org/mailman/list

webbrowser.open launches firefox in background

2007-06-04 Thread BartlebyScrivener
Hello, On Debian Etch, when I use the webbrowser.open module to launch firefox with a url, it opens UNDER gnome terminal in the background. If I just launch firefox from the commandline, it opens in the foreground. Any ideas about why? Is there a command option I'm missing. Thanks, Rick -- h

get_traceback

2007-06-04 Thread half . italian
Hi, Is there a function or idoim for returning an exception/traceback rather than just printing it to stdout? I'm running a deamon where stdout is going to /dev/null, and I'm not even watching it..until now. All the functions I found in traceback and sys seemed only to print the error rather tha

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Ross Ridge
Ross Ridge wrote: > Translating keywords and standard identifiers into Chinese could make > learning Python even more difficult. It would probably make things > easier for new programmers, but I don't know if serious programmers would > actually prefer programming using Chinese keywords. It would

Re: How do you htmlentities in Python

2007-06-04 Thread Matimus
On Jun 4, 6:31 am, "js " <[EMAIL PROTECTED]> wrote: > Hi list. > > If I'm not mistaken, in python, there's no standard library to convert > html entities, like & or > into their applicable characters. > > htmlentitydefs provides maps that helps this conversion, > but it's not a function so you have

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

2007-06-04 Thread Gabriel Genellina
QOTW: "Stop thinking of three lines as 'extensive coding' and your problem disappears immediately." - Steve Holden "Hey, did you hear about the object-oriented version of COBOL? They call it 'ADD ONE TO COBOL'." - Tim Roberts EuroPython: Registration is open! http://www.europyth

Re: How do you htmlentities in Python

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Adam Atlas <[EMAIL PROTECTED]> wrote: >As far as I know, there isn't a standard idiom to do this, but it's >still a one-liner. Untested, but I think this should work: > >import re >from htmlentitydefs import name2codepoint >def htmlentitydecode(s): >return re.su

Graph plotting module

2007-06-04 Thread Viewer T.
Is there a python module anywhere out there that can plot straight line graphs, curves (quadratic, etc). If anyone knows where I can download one, please let me know. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Steve Howell
--- olive <[EMAIL PROTECTED]> wrote: > What is a "sharp hair boss" ? > "Sharp hair boss" came out from my translation into French of "pointy-haired boss." Wikipedia tells me I should have said "Boss a tête de pioche." Here are some links, if you've never had the pleasure of reading Dilbert:

Re: python for EE CAD program

2007-06-04 Thread Grant Edwards
On 2007-06-04, Chris Mellon <[EMAIL PROTECTED]> wrote: >> Your opinions are noted, thank you, but I don't agree with >> you. There are portions of the code that are under review for >> patents and as such need to be protected. > > For the record: This is not true. If you've already applied > for t

Re: python for EE CAD program

2007-06-04 Thread Chris Mellon
On 6/4/07, chewie54 <[EMAIL PROTECTED]> wrote: > On Jun 4, 10:58 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > > Hello Diez, > > > > > I did look at PythonCad but the distribution and install methods for > > > Windows is not user freindly. Since the public domain software, I > > > don't th

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Wildemar Wildenburger
Ross Ridge wrote: > Translating keywords and standard identifiers into Chinese could make > learning Python even more difficult. It would probably make things > easier for new programmers, but I don't know if serious programmers would > actually prefer programming using Chinese keywords. It would

Re: magic names in python

2007-06-04 Thread Facundo Batista
Josiah Carlson wrote: > I don't believe that there is a full list of all __magic__ methods. The > operator module has a fairly extensive listing of functions that call > such methods, but I know that some have been left out. There IS a full documentation of this special methods:: http://doc

Re: python for EE CAD program

2007-06-04 Thread chewie54
On Jun 4, 10:58 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > Hello Diez, > > > I did look at PythonCad but the distribution and install methods for > > Windows is not user freindly. Since the public domain software, I > > don't think they protect the source code either. > > The subject of

Re: How do you htmlentities in Python

2007-06-04 Thread Thomas Jollans
"Adam Atlas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As far as I know, there isn't a standard idiom to do this, but it's > still a one-liner. Untested, but I think this should work: > > import re > from htmlentitydefs import name2codepoint > def htmlentitydecode(s): >retu

Re: How do you htmlentities in Python

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Adam Atlas <[EMAIL PROTECTED]> wrote: >As far as I know, there isn't a standard idiom to do this, but it's >still a one-liner. Untested, but I think this should work: > >import re >from htmlentitydefs import name2codepoint >def htmlentitydecode(s): >return re.su

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, ahlongxp <[EMAIL PROTECTED]> wrote: . . . >I'm a Chinese. >Language/English is really a big problem for Chinese programmers. >If python can be written in Chinese, it may become the most popul

Re: FAQ: how to vary the byte offset of a field of a ctypes.Structure

2007-06-04 Thread p . lavarre
> > http://docs.python.org/lib/module-pickle.html > > ... concise Python ways of pickling and unpickling > > the (0xFF ** N) possible ways of > > packing N strings of byte lengths of 0..xFE together ... Aye, looks like an exercise left open for the student to complete: >>> pickle.dumps("") "S''\n

Re: Pyrex: problem with blanks in string

2007-06-04 Thread Michael Hoffman
Hans Terlouw wrote: > When trying to wrap C code using Pyrex, I encountered a strange problem > with a piece of pure Python code. I tried to isolate the problem. The > following code causes Pyrex to generate C code which gcc cannot compile: It works for me. Try posting your error messages and v

pychecker

2007-06-04 Thread puff
I'm new to pychecker. Some of my code generates the following No class attribute (HWND) found While HWND is not an attribute of the class, it IS an attribute of the instance created (my class is one of several classes used to create the new class). Can I use __pychecker__ to selectively supres

Re: python for EE CAD program

2007-06-04 Thread Grant Edwards
On 2007-06-04, chewie54 <[EMAIL PROTECTED]> wrote: > 1) Can I use py2exe or pyinstaller to produce an executable >for Linux, Windows, and Mac? If not, is there a way it can be >done? > > 2) Is there any way to protect the source code, like obfuscation? > > 3) Memory footprint of applic

Re: Using pyTTS with other languages.

2007-06-04 Thread simon kagwe
gmail.com> writes: > It describes how to use mis-spelled words to force correct > pronunciation as well as how to do it with XML. > > Mike > Thanks Mike. I had already read that article. I thought the mis-spelling and XML are meant to deal with pronunciation of English words. Will it really

Re: python for EE CAD program

2007-06-04 Thread Diez B. Roggisch
> Hello Diez, > > I did look at PythonCad but the distribution and install methods for > Windows is not user freindly. Since the public domain software, I > don't think they protect the source code either. The subject of code obfuscation in python has been beaten to death quite a few times on th

Embedding Python in C

2007-06-04 Thread mistabean
Hello, first of all, I am a programming newbie, especially in python... Onwards to the problem, I have been having difficulty embedding a python module into my C/C++ program. (just a test program before moving on into the real thing). I have been making test runs using the codes from http://docs.

wxPython splitwindow with interpreter on bottom

2007-06-04 Thread chewie54
Hi all, Does anyone know of an example of wxPython source code that shows how to put a python shell (interpreter) in a bottom window with a graphical application in the top window? Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Pyrex: problem with blanks in string

2007-06-04 Thread Hans Terlouw
Hi, When trying to wrap C code using Pyrex, I encountered a strange problem with a piece of pure Python code. I tried to isolate the problem. The following code causes Pyrex to generate C code which gcc cannot compile: class Axis: axtype = "unknown type of axis" def __init__(self):

Re: Python 3000: Standard API for archives?

2007-06-04 Thread Tim Golden
Chuck Rhode wrote: > samwyse wrote this on Mon, 04 Jun 2007 12:02:03 +. My reply is > below. > >> I think it would be a good thing if a standardized interface >> existed, similar to PEP 247. This would make it easier for one >> script to access multiple types of archives, such as RAR, 7-Zip,

Re: Python, Dutch, English, Chinese, Japanese, etc.

2007-06-04 Thread Ross Ridge
Steve Howell <[EMAIL PROTECTED]> wrote: >I'm wondering if all the English keywords in Python >would present too high a barrier for most Chinese >people--def, if, while, for, sys, os, etc. So you >might need to go even further than simply allowing >identifiers to be written in Simplified-Chinese.

Re: Python 3000: Standard API for archives?

2007-06-04 Thread Chuck Rhode
samwyse wrote this on Mon, 04 Jun 2007 12:02:03 +. My reply is below. > I think it would be a good thing if a standardized interface > existed, similar to PEP 247. This would make it easier for one > script to access multiple types of archives, such as RAR, 7-Zip, > ISO, etc. Gee, it would

Re: How to do this with groupby (or otherwise)? (Was: iterblocks cookbook example)

2007-06-04 Thread Gerard Flanagan
On Jun 4, 1:52 pm, Gerard Flanagan <[EMAIL PROTECTED]> wrote: > On Jun 2, 10:47 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > > > On Jun 2, 10:19 am, Steve Howell <[EMAIL PROTECTED]> wrote: > > > > George Sakkis produced the following cookbook recipe, > > > which addresses a common problem

  1   2   >